AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Error opening listening port  (Read 9438 times)

0 Members and 1 Guest are viewing this topic.

SkyNet60

  • New Member
  • *
  • Posts: 2
Error opening listening port
« on: March 27, 2024, 03:16:09 AM »
Could someone please help me with this error below. How could i fix this?
Error opening the listening port 32458 (Raw TCP output): bind: Address already in use

I also get this below when I execute the command systemctl status rbfeeder

rbfeeder.service - RBFeeder Service
     Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-03-27 14:21:33 AEDT; 1min 36s ago
    Process: 2273 ExecStartPre=/bin/mkdir /var/run/rbfeeder (code=exited, status=1/FAILURE)
    Process: 2274 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/run/rbfeeder (code=exited, st>
    Process: 2275 ExecStartPre=/bin/touch /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
    Process: 2276 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/log/rbfeeder.log (code=exited>
    Process: 2277 ExecStartPre=/bin/chown rbfeeder:rbfeeder /etc/rbfeeder.ini (code=exited, st>
    Process: 2278 ExecStartPre=/bin/setfacl -m u:www-data:rwx /etc/rbfeeder.ini (code=exited, >
   Main PID: 2279 (rbfeeder)
      Tasks: 9 (limit: 414)
        CPU: 3.860s
     CGroup: /system.slice/rbfeeder.service
             └─2279 /usr/bin/rbfeeder

Mar 27 14:22:57 raspberrypi rbfeeder[2380]: Wed Mar 27 14:22:57 2024 AEDT  dump1090-rb 1.0.10 >
Mar 27 14:22:58 raspberrypi rbfeeder[2380]: rtlsdr: error querying device #0: Permission denied
Mar 27 14:23:00 raspberrypi rbfeeder[2383]: Wed Mar 27 14:23:00 2024 AEDT  dump1090-rb 1.0.10 >
Mar 27 14:23:01 raspberrypi rbfeeder[2383]: rtlsdr: error querying device #0: Permission denied
Mar 27 14:23:04 raspberrypi rbfeeder[2386]: Wed Mar 27 14:23:03 2024 AEDT  dump1090-rb 1.0.10 >
Mar 27 14:23:04 raspberrypi rbfeeder[2386]: rtlsdr: error querying device #0: Permission denied
Mar 27 14:23:07 raspberrypi rbfeeder[2389]: Wed Mar 27 14:23:06 2024 AEDT  dump1090-rb 1.0.10 >
Mar 27 14:23:07 raspberrypi rbfeeder[2389]: rtlsdr: error querying device #0: Permission denied
Mar 27 14:23:10 raspberrypi rbfeeder[2392]: Wed Mar 27 14:23:10 2024 AEDT  dump1090-rb 1.0.10 >
Mar 27 14:23:10 raspberrypi rbfeeder[2392]: rtlsdr: error querying device #0: Permission denied
« Last Edit: March 27, 2024, 03:26:11 AM by SkyNet60 »

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34062
Re: Error opening listening port
« Reply #1 on: March 27, 2024, 01:11:28 PM »
What is it you are trying to do, get RB up and running on a Pi?

Alan

SkyNet60

  • New Member
  • *
  • Posts: 2
Re: Error opening listening port
« Reply #2 on: March 27, 2024, 08:28:08 PM »
Hi Alan,
Thanks for reply, yes I was trying to get the RB running on a Raspberry Pi Zero WH, however I got it working by rebooting the system from the command line.

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34062
Re: Error opening listening port
« Reply #3 on: March 27, 2024, 09:52:32 PM »
Good to know

Alan

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Error opening listening port
« Reply #4 on: March 28, 2024, 04:39:49 AM »
This error happens when 2 instances of rbfeeder are running, first one started manually by issuing command "sudo rbfeeder", and it grabs port 32458. The second one is started by systemd by command "sudo systemctl restart rbfeeder" and as the port 32458 is already grabbed by manually started copy of rbfeeder, the systemctl started copy starts complainig "bind address already in use".

There are two ways to solve it

Option-1
sudo systemctl stop rbfeeder

sudo killall rbfeeder
# Above command stops manually started copy of rbfeeder

sudo systemctl restart rbfeeder

Option-2
sudo reboot

The reboot first stops both the manual and systemd started copies and next restarts only one copy by systemctl.
« Last Edit: March 28, 2024, 04:43:39 AM by abcd567 »

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34062
Re: Error opening listening port
« Reply #5 on: March 28, 2024, 04:58:34 PM »
Thanks abcd

Alan