AirNav Systems Forum

AirNav Radar => AirNav Radar Discussion => Topic started by: hartsell on July 28, 2020, 12:06:42 AM

Title: Sharing Key Is Not Set
Post by: hartsell on July 28, 2020, 12:06:42 AM
I am having an issue trying to get my sharing key from a new install on a raspberry pi. Software seemed to install fine but when I run the cmd to get the key, I do not get any key. When I run:
sudo rbfeeder --showkey --no-start
I get:
Your sharing key is not set or is not valid. If is not set, a new sharing key will be create on first connection.
Configuration file: /etc/rbfeeder.ini

What does it mean "First Connection" ? Below is my rbfeeder.ini. I am using the RadarBox dongle. Any tips, would be great.

[client]
network_mode=false
log_file=/var/log/rbfeeder.log

[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
Title: Re: Sharing Key Is Not Set
Post by: Runway 31 on July 28, 2020, 01:04:47 PM
Suggest you contact [email protected] for advice

Alan
Title: Re: Sharing Key Is Not Set
Post by: Jonis Maurin Ceara on July 28, 2020, 09:15:10 PM
Quote from: hartsell on July 28, 2020, 12:06:42 AM
I am having an issue trying to get my sharing key from a new install on a raspberry pi. Software seemed to install fine but when I run the cmd to get the key, I do not get any key. When I run:
sudo rbfeeder --showkey --no-start
I get:
Your sharing key is not set or is not valid. If is not set, a new sharing key will be create on first connection.
Configuration file: /etc/rbfeeder.ini

What does it mean "First Connection" ? Below is my rbfeeder.ini. I am using the RadarBox dongle. Any tips, would be great.

[client]
network_mode=false
log_file=/var/log/rbfeeder.log

[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

You MUST run rbfeeder (without option to show sharing key) at least once before trying to display.
RBFeeder server will generate a key for your client and store in your rbfeeder.ini, then you can use --showkey option.

If your service is stopped (check using systemctl status rbfeeder.service), just run
sudo rbfeeder
Then wait for connection and sharing key creation (you will se information in your screen).
Title: Re: Sharing Key Is Not Set
Post by: hartsell on July 29, 2020, 12:58:04 AM
Jonis,

Thanks for the reply. I tried "sudo rbfeeder" but I still am unable to generate a key.
I may just reinstall the OS and software. I also tried "sudo systemctl restart rbfeeder" from support with no luck. It must be the "Segmentation fault" causing the problem?
Here is what I get:

pi@RadarBox:~ $ sudo rbfeeder
[2020-07-28 17:45:16]  Starting RBFeeder Version 0.3.5 (build 20200722181401)
[2020-07-28 17:45:16]  Using configuration file: /etc/rbfeeder.ini
[2020-07-28 17:45:16]  Network-mode disabled. Using local dongle.
Segmentation fault
pi@RadarBox:~ $ sudo rbfeeder --showkey

Your sharing key is not set or is not valid. If is not set, a new sharing key will be create on first connection.
Configuration file: /etc/rbfeeder.ini
Title: Re: Sharing Key Is Not Set
Post by: hartsell on July 29, 2020, 01:17:57 AM
All,
I got it working by just re-installing the software.
Title: Re: Sharing Key Is Not Set
Post by: Runway 31 on July 29, 2020, 08:07:21 AM
A new version of the RB feeder was posted to fix the seg fault, see https://forum.radarbox24.com/index.php?topic=103601.0

Alan