Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening terminal in daemon mode #86

Closed
acasadoalonso opened this issue Oct 6, 2020 · 9 comments
Closed

Error opening terminal in daemon mode #86

acasadoalonso opened this issue Oct 6, 2020 · 9 comments

Comments

@acasadoalonso
Copy link

acasadoalonso commented Oct 6, 2020

Hardware: Raspberry Pi Raspbian GNU/Linux 10
Hardware : BCM2835
Revision : a020d3
Serial : 0000000026700276
Model : Raspberry Pi 3 Model B Plus Rev 1.3

When running with a daemon/service even with the --quite mode I get this error message:

dump1090.sh[12056]: Error opening terminal: unknown.

Full message from: sudo service dump1090 status

● dump1090.service - LSB: dump1090 initscript
Loaded: loaded (/etc/init.d/dump1090.sh; generated)
Active: active (exited) since Tue 2020-10-06 12:25:02 CEST; 37s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 2200)
Memory: 0B
CGroup: /system.slice/dump1090.service

Oct 06 12:25:02 SoftRF systemd[1]: Starting LSB: dump1090 initscript...
Oct 06 12:25:02 SoftRF dump1090.sh[12056]: dump1090 started
Oct 06 12:25:02 SoftRF dump1090.sh[12056]: Tue Oct 6 12:25:02 2020 CEST dump1090-fa OGN starting up.
Oct 06 12:25:02 SoftRF systemd[1]: Started LSB: dump1090 initscript.
Oct 06 12:25:02 SoftRF dump1090.sh[12056]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Oct 06 12:25:03 SoftRF dump1090.sh[12056]: Found Rafael Micro R820T tuner
Oct 06 12:25:03 SoftRF dump1090.sh[12056]: rtlsdr: enabling tuner AGC
Oct 06 12:25:03 SoftRF dump1090.sh[12056]: Error opening terminal: unknown.

@mutability
Copy link

This appears to be a third-party repackaging of dump1090-fa; it's identifying itself as version "OGN", and we don't package an init.d script. You'd need to contact whoever built your package for support.

@acasadoalonso
Copy link
Author

acasadoalonso commented Oct 6, 2020 via email

@mutability
Copy link

mutability commented Oct 6, 2020

Please explain exactly how you built and installed dump1090-fa, then.

(In particular there is no dump1090.sh supplied by dump1090-fa, so you need to explain what that is)

@acasadoalonso
Copy link
Author

acasadoalonso commented Oct 6, 2020 via email

@mutability
Copy link

mutability commented Oct 7, 2020

Please explain exactly how you installed dump1090-fa.

(In particular there is no dump1090.sh supplied by dump1090-fa, so you need to explain what that is. Perhaps paste a copy of it here)

@acasadoalonso
Copy link
Author

acasadoalonso commented Oct 7, 2020 via email

@mutability
Copy link

mutability commented Oct 7, 2020

Your script tries to start dump1090 with --interactive

This makes no sense if you are trying to run it as a daemon and this option is the reason why dump1090 is trying (and failing) to open a terminal.

If you are on a Debian-like system, the recommended way of installing is to build and install as a Debian package - see the README. If you're on some other non-Debian system that's still using systemd, look at the systemd service file in debian/dump1090-fa.service and the helper script in debian/start-dump1090-fa as a starting point.

@acasadoalonso
Copy link
Author

Apologies ... I did not realized that after building the Debian package, I need to do
sudo dpkg -i dump1090-fa_4.0_armhf.deb
Now everything works and thanks for your help !!!

executing:
$ sudo service dump1090-fa status
● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-10-07 13:25:50 CEST; 3min 31s ago
Docs: https://flightaware.com/adsb/piaware/
Main PID: 5523 (dump1090-fa)
Tasks: 3 (limit: 2065)
CGroup: /system.slice/dump1090-fa.service
└─5523 /usr/bin/dump1090-fa --device-index 0 --gain -10 --ppm 0 --max-range 360 --fix --net --net-heartbeat 60 --net-ro-size 1300 --net-ro-interval 0.2 --net-ri-port 0 --net-

Oct 07 13:25:50 systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Oct 07 13:25:50 dump1090-fa[5523]: Wed Oct 7 13:25:50 2020 CEST dump1090-fa 4.0 starting up.
Oct 07 13:25:50 dump1090-fa[5523]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Oct 07 13:25:51 dump1090-fa[5523]: Found Rafael Micro R820T tuner
Oct 07 13:25:51 dump1090-fa[5523]: rtlsdr: enabling tuner AGC
Oct 07 13:25:51 dump1090-fa[5523]: Allocating 4 zero-copy buffers

@mutability
Copy link

I'll add a note to the README to make it clearer that you have to install the package after building it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants