2017-10-21-Raspbian-SatNOGS-lite

I have loaded everything i could when done i ran journalctl -u satnogs-client.service and the results is below. I also got in using the 192.168.1.105:500000 and the results are below. I also added the config info on the from the client device. It will not run and i cant see myself in testing. Please some one help me in getting my software to work. I am still working on my rotor hardware. My other problem is how to connect the Pi3 to my board using the UART pins on the pi pin 8 and 10.
Apr 07 22:15:50 KA5TTZ systemd[1]: Started SatNOGS client.
Apr 07 22:15:52 KA5TTZ systemd[1]: Stopping SatNOGS client…
Apr 07 22:15:52 KA5TTZ systemd[1]: Stopped SatNOGS client.
Apr 07 22:15:52 KA5TTZ systemd[1]: Started SatNOGS client.
Apr 07 22:16:11 KA5TTZ satnogs-client[18005]: linux; GNU C++ version 6.2.0 20161
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,844 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,846 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,848 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,849 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,850 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,850 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,851 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,852 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,852 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,853 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,853 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,854 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:17,861 - satnogsc
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: WebSocket transport not available.
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: * Running on http://0.0.0.0:5000/
Apr 07 22:16:17 KA5TTZ satnogs-client[18005]: linux; GNU C++ version 6.2.0 20161
Apr 07 22:16:18 KA5TTZ satnogs-client[18005]: 2018-04-07 22:16:18,035 - satnogsults

192.168.1.104:5000
18:27:07[INFO]: Status view initiated
18:27:07[INFO]: Received mode change: {“custom_cmd”:{“mode”:“network”}}
18:27:07[INFO]: Received mode change: {“custom_cmd”:{“mode”:“network”}}
18:27:47[INFO]: Get jobs started
18:27:47[DEBUG]: URL: https://network.satnogs.org/api/jobs/
18:27:47[DEBUG]: Params: {‘ground_station’: 249}
18:27:47[DEBUG]: Headers: {‘Authorization’: ‘Token fe14a7b00d911d6a95fdc7e97a0ae513c876f1b1’}
18:27:47[INFO]: Trying to GET observation jobs from the network
18:28:47[INFO]: Get jobs started
18:28:47[DEBUG]: URL: https://network.satnogs.org/api/jobs/
18:28:47[DEBUG]: Params: {‘ground_station’: 249}
18:28:47[DEBUG]: Headers: {‘Authorization’: ‘Token fe14a7b00d911d6a95fdc7e97a0ae513c876f1b1’}
18:28:47[INFO]: Post data started
18:28:47[INFO]: Trying to GET observation jobs from the network

Configuration
Key
Value
BACKEND_FEEDER_PORT
5023
BACKEND_LISTENER_PORT
5022
CLIENT_LISTENER_UDP_PORT
5015
CURRENT_PASS_TCP_PORT
5005
DEFAULT_LOGGING
{‘loggers’: {‘apscheduler.executors.default’: {‘level’: ‘INFO’, ‘handlers’: [‘console’]}, ‘satnogsclient’: {‘level’: ‘INFO’, ‘handlers’: [‘console’]}}, ‘version’: 1, ‘formatters’: {‘clientFormatter’: {‘format’: ‘%(asctime)s - %(name)s - %(levelname)s - %(message)s’}}, ‘handlers’: {‘console’: {‘formatter’: ‘clientFormatter’, ‘class’: ‘logging.StreamHandler’}}}
DEFAULT_SQLITE_PATH
/tmp/.satnogs/jobs.sqlite
DISABLE_DECODED_DATA
False
ECSS_FEEDER_UDP_PORT
5031
ENABLE_IQ_DUMP
False
GNURADIO_AMSAT_DUV_SCRIPT_FILENAME
satnogs_amsat_fox_duv_decoder.py
GNURADIO_APT_SCRIPT_FILENAME
satnogs_noaa_apt_decoder.py
GNURADIO_BPSK_SCRIPT_FILENAME
satnogs_bpsk_demod.py
GNURADIO_CW_SCRIPT_FILENAME
satnogs_cw_decoder.py
GNURADIO_FM_SCRIPT_FILENAME
satnogs_fm_demod.py
GNURADIO_FSK1K2_SCRIPT_FILENAME
satnogs_afsk1200_ax25.py
GNURADIO_FSK9K6_SCRIPT_FILENAME
satnogs_fsk9600_g3ruh_ax25.py
GNURADIO_IP
127.0.0.1
GNURADIO_SCRIPT_FILENAME
satnogs_fm_demod.py
GNURADIO_SCRIPT_PATH
[’/usr/bin’, ‘/usr/local/bin’]
GNURADIO_UDP_PORT
16886
IQ_DUMP_FILENAME
None
LD_DOWNLINK_LISTEN_PORT
5033
LD_DOWNLINK_RETRIES_LIM
5
LD_DOWNLINK_SMALL_TIMEOUT
2
LD_DOWNLINK_TIMEOUT
5
LD_UPLINK_LISTEN_PORT
5021
LD_UPLINK_TIMEOUT
2.5
RF_SW_CMD_OFF_CHAR_SEQ
None
RF_SW_CMD_OFF_INT
None
RF_SW_CMD_ON_CHAR_SEQ
None
RF_SW_CMD_ON_INT
None
RIG_FILE

RIG_MODEL

RIG_PTT_FILE

RIG_PTT_TYPE

RIG_SERIAL_SPEED

SATNOGS_ANTENNA
None
SATNOGS_API_TOKEN
fe14a7b00d911d6a95fdc7e97a0ae513c876f1b1
SATNOGS_APP_PATH
/tmp/.satnogs
SATNOGS_BB_GAIN
None
SATNOGS_COMPLETE_OUTPUT_PATH

SATNOGS_DEV_ARGS
None
SATNOGS_DOPPLER_CORR_PER_SEC
None
SATNOGS_IF_GAIN
None
SATNOGS_INCOMPLETE_OUTPUT_PATH
/tmp/.satnogs/data/incomplete
SATNOGS_LO_OFFSET
None
SATNOGS_NETWORK_API_POST_INTERVAL
2
SATNOGS_NETWORK_API_QUERY_INTERVAL
1
SATNOGS_NETWORK_API_URL
https://network.satnogs.org/api/
SATNOGS_OUTPUT_PATH
/tmp/.satnogs/data
SATNOGS_POST_OBSERVATION_SCRIPT
None
SATNOGS_PPM_ERROR
None
SATNOGS_PRE_OBSERVATION_SCRIPT
None
SATNOGS_REMOVE_RAW_FILES
True
SATNOGS_RF_GAIN
0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
SATNOGS_RIG_IP
127.0.0.1
SATNOGS_RIG_PORT
4532
SATNOGS_ROT_IP
127.0.0.1
SATNOGS_ROT_PORT
4533
SATNOGS_ROT_THRESHOLD
4
SATNOGS_RX_DEVICE
rtlsdr
SATNOGS_SERIAL_PORT
None
SATNOGS_SQLITE_URL
sqlite:////tmp/.satnogs/jobs.sqlite
SATNOGS_STATION_ELEV
64.0
SATNOGS_STATION_ID
249
SATNOGS_STATION_LAT
30.585
SATNOGS_STATION_LON
-90.498
SATNOGS_VERIFY_SSL
True
STATUS_LISTENER_PORT
5032
TASK_FEEDER_TCP_PORT
5011
WOD_UDP_PORT
5023

Hello @dpechon !

Checking your configuration I can see at least one thing off. While you have your SATNOGS_NETWORK_API_URL set as https://network.satnogs.org/api/ (which is correct), your SATNOGS_STATION_ID is set to 249 which is wrong. It should be 52 which is your ID on the production network. Also, make sure to check your API key (and please don’t post them publicly here) on network.satnogs.org and verify that SATNOGS_API_TOKEN is set correctly.

I assume you are using sudo satnogs-setup for setting up the station, so changing those values and applying should be easy.

Let us know how this goes!

I will also create a ticket so that we change the default API URL from ‘dev’ to ‘production’ network both for client and Ansible.


Thanks for the help. I got it in testing mode. thanks again for all the support

I am showing up in test mode and i can get a replay when i use the ip:5000. After I run sudo satnogs-setup and updated my information then I click on apply and it start running and at the end I get the following


Can some one explain what this is and how i can fix it.

It is trying to pull an old version of gr-satnogs package. You have probably forgot to upgrade the configuration tool itself. See https://wiki.satnogs.org/SatNOGS_Client_Ansible#Updating_SatNOGS_Client_software .

I have run both update and apply. Here is my results. I see it kept failing. what should my localhost name. I am new to raspberry pi programing.
login as: pi
pi@192.168.1.104’s password:
Linux localhost 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 11 20:24:01 2018 from 192.168.1.167
pi@localhost:~ $ sudo satnogs-setup
dpkg-query: no packages found matching gr-satnogs
Starting Ansible Pull at 2018-04-11 20:32:34
/usr/bin/ansible-pull -d /root/.satnogs/ansible -U https://gitlab.com/librespace foundation/satnogs/satnogs-client-ansible.git satnogs-setups.yml
localhost | SUCCESS => {
“after”: “”,
“before”: “”,
“changed”: false,
“remote_url_changed”: false
}

PLAY [satnogs-setups] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [common : Check Ansible version] ******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare instead use result is version_compare. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [localhost]

TASK [common : Install packages] ***********************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [localhost]

TASK [common : Disable swap file] **********************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *******************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository keys] *************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository] ******************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible package] *********************************
ok: [localhost]

TASK [satnogs-setup : Configure satnogs-setup] *********************************
ok: [localhost]

TASK [satnogs-setup : Set up inventory] ****************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables directory] *************************
ok: [localhost]

TASK [satnogs-setup : Create host variables file] ******************************
changed: [localhost]

TASK [satnogs-setup : Create satnogs-setup share directory] ********************
ok: [localhost]

TASK [satnogs-setup : Install satnogs-setup scripts] ***************************
ok: [localhost] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satno gs-setup’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/ local/share/satnogs-setup/bootstrap.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/loca l/share/satnogs-setup/setup.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/loc al/share/satnogs-setup/config.sh’])

PLAY RECAP *********************************************************************
localhost : ok=17 changed=1 unreachable=0 failed=0

dpkg-query: no packages found matching gr-satnogs
Updating software and applying configuration. This may take a while…

PLAY [satnogs-setups] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [common : Check Ansible version] ******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare instead use result is version_compare. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [localhost]

TASK [common : Install packages] ***********************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [localhost]

TASK [common : Disable swap file] **********************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *******************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository keys] *************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository] ******************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible package] *********************************
ok: [localhost]

TASK [satnogs-setup : Configure satnogs-setup] *********************************
ok: [localhost]

TASK [satnogs-setup : Set up inventory] ****************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables directory] *************************
ok: [localhost]

TASK [satnogs-setup : Create host variables file] ******************************
changed: [localhost]

TASK [satnogs-setup : Create satnogs-setup share directory] ********************
ok: [localhost]

TASK [satnogs-setup : Install satnogs-setup scripts] ***************************
ok: [localhost] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satno gs-setup’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/ local/share/satnogs-setup/bootstrap.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/loca l/share/satnogs-setup/setup.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/loc al/share/satnogs-setup/config.sh’])

PLAY [satnogs-clients] *********************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [common : Check Ansible version] ******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare instead use result is version_compare. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [localhost]

TASK [common : Install packages] ***********************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [localhost]

TASK [common : Disable swap file] **********************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *******************************************
ok: [localhost]

TASK [satnogs-client : Add satnogs-client service user] ************************
ok: [localhost]

TASK [satnogs-client : Install dependencies] ***********************************
ok: [localhost] => (item=virtualenv)
ok: [localhost] => (item=python-dev)
ok: [localhost] => (item=redis-server)
ok: [localhost] => (item=libffi-dev)
ok: [localhost] => (item=libssl-dev)
ok: [localhost] => (item=git)
ok: [localhost] => (item=gnuplot)

TASK [satnogs-client : Uninstall satnogs-client] *******************************
changed: [localhost]

TASK [satnogs-client : Install satnogs-client] *********************************
changed: [localhost]

TASK [satnogs-client : Install satnogs-client configuration] *******************
ok: [localhost]

TASK [satnogs-client : Add satnogs-client systemd service] *********************
ok: [localhost]

TASK [satnogs-client : Use tmpfs for state directory] **************************
ok: [localhost]

TASK [satnogs-client : Start satnogs-client service] ***************************
ok: [localhost]

RUNNING HANDLER [satnogs-client : Restart satnogs-client service] **************
changed: [localhost]

PLAY [satnogs-radios] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [common : Check Ansible version] ******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare instead use result is version_compare. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [localhost]

TASK [common : Install packages] ***********************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [localhost]

TASK [common : Disable swap file] **********************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *******************************************
ok: [localhost]

TASK [satnogs-radio : Add archive repositories keys] ***************************
ok: [localhost] => (item=8B48AD6246925553)
ok: [localhost] => (item=7638D0442B90D010)

TASK [satnogs-radio : Remove jessie backports repository] **********************
ok: [localhost]

TASK [satnogs-radio : Install dependencies] ************************************
ok: [localhost] => (item=[u’gnuradio’, u’gr-osmosdr’, u’gr-fcdproplus’])

TASK [satnogs-radio : Uninstall gr-satnogs] ************************************
ok: [localhost]

TASK [satnogs-radio : Install gr-satnogs] **************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Failed to download htt ps://gitlab.com/librespacefoundation/satnogs/gr-satnogs-package/-/jobs/artifacts /master/raw/build/debian/output/armhf/gr-satnogs_armhf.deb?job=nightly, HTTP Err or 404: Not Found”}
to retry, use: --limit @/root/.satnogs/ansible/local.retry

PLAY RECAP *********************************************************************
localhost : ok=46 changed=4 unreachable=0 failed=1

dpkg-query: no packages found matching gr-satnogs
pi@localhost:~ $

It should pull version 1.2-1 of gr-satnogs and not master. Can you paste your satnogs-setup configuration (after removing the API key)?

Here is the show SatNogs client configuration from satnogs-setup.

  1. Remove satnogs_antenna. It is for radios with multiple antenna ports; not for specifying a description
  2. Remove satnogs_client_url. Unless you want to experiment with unstable features, you should not override this setting
  3. Remove satnogs_radio_gr_satnogs_package. Unless you want to experiment with unstable features, you should not override this setting (this is the root cause of your original issue)

Thanks for the help. It working now. got the update and apply to work great. Thanks again.
David

If all these values are entered into “satnogs_rf_gain”: reduce them to one single value. Start with something in the range between 30 and 40.