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

Login with username, password and session length
 


Author Topic: [solved] Can't connect to external source (127.0.0.1:30005)  (Read 3576 times)

0 Members and 1 Guest are viewing this topic.

digidax

  • New Member
  • *
  • Posts: 2
[solved] Can't connect to external source (127.0.0.1:30005)
« on: August 13, 2020, 06:06:55 AM »
Hi, have installed latest FR24 image (pi24-2.2.0.img) on Raspberry and then the Radarbox feeder. Feeding to FR24 is working, to radarbox not. Here are the important outputs:

Code: [Select]
pi@raspberrypi:~ $ cat /etc/fr24feed.ini
bs=no
raw=no
mlat="yes"
mlat-without-gps="yes"
logmode="2"
receiver="dvbt"
procargs="--gain -10"
fr24key=hidden
receiver=dvbt

Code: [Select]
pi@raspberrypi:~ $ cat /etc/rbfeeder.ini
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=hidden
sn=EXTRPI007458
[network]
mode=beast
external_port=30005
external_host=127.0.0.1
[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.5 /usr/bin/mlat-client
[dump978]
#dump978_enabled=true

Code: [Select]
pi@raspberrypi:~ $ sudo rbfeeder --status
[2020-08-13 07:06:42]  Starting RBFeeder Version 0.3.5 (build 20200727132301)
[2020-08-13 07:06:42]  Using configuration file: /etc/rbfeeder.ini
[2020-08-13 07:06:42]  Network-mode enabled.
[2020-08-13 07:06:42]           Remote host to fetch data: 127.0.0.1
[2020-08-13 07:06:42]           Remote port: 30005
[2020-08-13 07:06:42]           Remote protocol: BEAST
Error opening the listening port 32458 (Raw TCP output): bind: Address already in use
[2020-08-13 07:06:42]  Error opening the listening port 32458 (Raw TCP output): bind: Address already in use
Error opening the listening port 32457 (Beast TCP output): bind: Address already in use
[2020-08-13 07:06:42]  Error opening the listening port 32457 (Beast TCP output): bind: Address already in use
Error opening the listening port 32459 (Basestation TCP output): bind: Address already in use
[2020-08-13 07:06:42]  Error opening the listening port 32459 (Basestation TCP output): bind: Address already in use
Error opening the listening port 32008 (Raw TCP input): bind: Address already in use
[2020-08-13 07:06:42]  Error opening the listening port 32008 (Raw TCP input): bind: Address already in use
Error opening the listening port 32004 (Beast TCP input): bind: Address already in use
[2020-08-13 07:06:42]  Error opening the listening port 32004 (Beast TCP input): bind: Address already in use
[2020-08-13 07:06:42]  System: raspberry
[2020-08-13 07:06:42]  Start date/time: 2020-08-13 07:06:42
[2020-08-13 07:06:42]  Bind failed on ANRB channel. Port: 32088
[2020-08-13 07:06:43]  Connection established.
[2020-08-13 07:06:45]  Can't connect to external source (127.0.0.1:30005). Waiting 5 second...
[2020-08-13 07:06:50]  Can't connect to external source (127.0.0.1:30005). Waiting 5 second...
[2020-08-13 07:06:53]  Could not start connection. Timeout.

Any ideas why port 30005 is not available?
Thanks and all the best, Frank
« Last Edit: August 13, 2020, 08:30:42 AM by digidax »

digidax

  • New Member
  • *
  • Posts: 2
Re: Can't connect to external source (127.0.0.1:30005)
« Reply #1 on: August 13, 2020, 08:30:11 AM »
solved, I had to add "--net" in /etc/fr24feed.ini:
Code: [Select]
procargs="--gain -10" --net

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 33200
Re: [solved] Can't connect to external source (127.0.0.1:30005)
« Reply #2 on: August 13, 2020, 10:53:03 AM »
Well worked out!!

Alan

rettungshasi

  • New Member
  • *
  • Posts: 1
Re: [solved] Can't connect to external source (127.0.0.1:30005)
« Reply #3 on: September 14, 2023, 06:19:34 PM »
Hello, I have the same problem. Even if I run RBfeeder alone I don't get any data. I have installed FR24. I have now made the following settings. FR24 data OK. No data arrives at RBFeeder.

can someone help



pi@raspberrypi:~ $ sudo cat /etc/fr24feed.ini
receiver="dvbt"
fr24key="hidden"
bs="no"
raw="no"
logmode="2"
logpath="/var/log/fr24feed"
mlat="no"
mlat-without-gps="no"
procargs="--gain -10" --net



pi@raspberrypi:~ $ sudo cat /etc/rbfeeder.ini
[client]
network_mode=true
log_file=/var/log/rbfeeder.log

key=hidden

sn=hidden

lat=48.687441999999997

lon=12.199349

alt=435

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.9 /usr/bin/mlat-client

[dump978]
#dump978_enabled=true

abcd567

  • Hero Member
  • *****
  • Posts: 783
  • CYYZ - Toronto
Re: [solved] Can't connect to external source (127.0.0.1:30005)
« Reply #4 on: September 15, 2023, 12:38:05 AM »

@rettungshasi
Mistake is in file /etc/fr24feed.ini

In following line, the location of 2nd " is wrong. It excludes --net from procargs, hence makes it ineffective. As a result no data is available at port 30005 for use by rbfeeder.

procargs="--gain -10" --net

The location of 2nd " should be at the end of line, like below:

procargs="--gain -10 --net"

Please correct the mistake in file /etc/fr24feed.ini, and save the file.

After saving file, restart fr24feed by following command

sudo systemctl restart fr24feed 

Now data at port 30005 will be available for rbfeeder to use. Check its status by following command:

sudo systemctl status rbfeeder   

.
« Last Edit: September 15, 2023, 12:41:22 AM by abcd567 »