Radarbox24 - RBFeeder error during install on raspberry pi [SOLVED!]

Started by beeyev, May 24, 2019, 04:07:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

beeyev

User abcd567 solved the problem
Need to install netbase package.

sudo apt update
sudo apt install netbase
sudo systemctl restart rbfeeder


Post with solution


------------------------------------

I am using DietPi distro for Raspberry Pi 3, it's based on raspbian stretch, i like this distro and have no issues with feeding FR24 or FA.
I need your help to solve the problem, why RBFeeder does not work.

Service crashes with this error:
May 24 18:38:56 DietPi systemd[1]: rbfeeder.service: Service RestartSec=100ms expired, scheduling restart.
May 24 18:38:56 DietPi systemd[1]: rbfeeder.service: Scheduled restart job, restart counter is at 5.
May 24 18:38:56 DietPi systemd[1]: Stopped RBFeeder Service.
May 24 18:38:56 DietPi systemd[1]: rbfeeder.service: Start request repeated too quickly.
May 24 18:38:56 DietPi systemd[1]: rbfeeder.service: Failed with result 'exit-code'.
May 24 18:38:56 DietPi systemd[1]: Failed to start RBFeeder Service.


if i try to start it with key: rbfeeder --setkey fffffff322323323
i got this error:
getaddrinfo: Servname not supported for ai_socktype
[2019-05-24 19:03:02]  Could not resolve host name specified in 'external_host'.


Logs are empty.

How can i fix this? Have you got any ideas?


abcd567

Please post output of this command

cat /etc/rbfeeder.ini


Note: Replace your actual key by xxxxxxx when posting the output

For your guidance, output of above command on my RPi is given below.
Note: I have replaced actual key by xxxxxxxxxx and station number sn by nnnn


[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=xxxxxxxxxx
sn=EXTRPI00nnnn


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

[mlat]


beeyev

it's ok, i have already checked

[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=xxxxxxxxxx

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


abcd567

Let us try this and see if it solves the problem:

In file rbfeeder.ini, change
external_host=127.0.0.1
To
external_host=localhost


Save file, then restart rbfeeder

sudo systemctl restart rbfeeder

beeyev


wiedehopf

For testing, start it on the console:

sudo systemctl stop rbfeeder
sudo rbfeeder

Please post the output.

Also show the output of:
ping 127.0.0.1 -c2

beeyev

same
root@DietPi:~# sudo rbfeeder
[2019-05-25 20:14:04]  Compiled with arch=raspberry
getaddrinfo: Servname not supported for ai_socktype
[2019-05-25 20:14:04]  Could not resolve host name specified in 'external_host'.

wiedehopf

How did you create /etc/rbfeeder.ini?

Show the output of:

ls -l /etc/rbfeeder.ini


Also show the output of:

cat -v /etc/rbfeeder.ini

ping 127.0.0.1

wiedehopf

Just as a test use localhost instead of 127.0.0.1

Best delete the old line and past this one:

external_host=localhost

beeyev

it did not help, unfortunately.

here is an strace
https://pastebin.com/wz67d9tZ

or in attch, could you please look at it, maybe you will find smth.

abcd567

What is the output of following command:


cat /etc/hosts

beeyev

127.0.0.1    localhost
127.0.1.1 DietPi
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters


enabling ipv6 does not change anything

wiedehopf

Either you overlooked one of my posts or one of yours got moderated:

I'll just ask again :)

Show the output of:

ls -l /etc/rbfeeder.ini


Also show the output of:

cat -v /etc/rbfeeder.ini

ping 127.0.0.1 -c1

rbfeeder -v

Maybe there is some library version issue in regards to internet protocols.
But not sure what the exact problem is.

abcd567

May be some files got corrupted during install of rbfeeder.
Purge and reistall rbfeeder.
NOTE: You must copy and save your key in a text file on your desktop/Laptop before purging.


sudo apt-get purge rbfeeder
sudo reboot
sudo apt-get install rbfeeder


After the apt-get install command, you may get "certificate not authenticated" warning. Ignore it by pressing y key then Enter key

When installation of rbfeeder is completed, do this:

# Restart and check status
sudo systemctl restart rbfeeder
sudo systemctl status rbfeeder

# Is it working OK now?

#Replace the new key in this file by the key you have saved
sudo nano /etc/rbfeeder.ini

# Restart rbfeeder and check status
sudo systemctl restart rbfeeder
sudo systemctl status rbfeeder




beeyev

wiedehopf sorry.

ls -l /etc/rbfeeder.ini
-rw-r--r-- 1 root root 124 May 25 20:29 /etc/rbfeeder.ini


cat -v /etc/rbfeeder.ini
[client]
network_mode=true
log_file=/var/log/rbfeeder.log

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



ping 127.0.0.1 -c1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.125 ms

--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.125/0.125/0.125/0.000 ms




rbfeeder -v
[2019-05-25 23:51:19]  Compiled with arch=raspberry
RBFeeder v0.2.19 (build 20190226175114)


nc -zv 127.0.0.1 30005
localhost [127.0.0.1] 30005 (?) open



abcd567, reinstalling does not help at all, i tried several times different ways.