Upgrade to 1.6 Problem

Hi,

I upgraded my Pi to the latest version, but hit an issue. I followed the docs here:

With the update complete, I’m getting this error:

pi@cruftpi3:~ $ systemctl status satnogs-client
● satnogs-client.service - SatNOGS client
   Loaded: loaded (/etc/systemd/system/satnogs-client.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-09-03 11:04:39 MDT; 5min ago
 Main PID: 368 (satnogs-client)
    Tasks: 9 (limit: 4915)
   CGroup: /system.slice/satnogs-client.service
           └─368 /var/lib/satnogs/bin/python3 /var/lib/satnogs/bin/satnogs-client

Sep 03 11:04:45 cruftpi3 satnogs-client[368]:   File "/var/lib/satnogs/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
Sep 03 11:04:45 cruftpi3 satnogs-client[368]:     raise ConnectionError(e, request=request)
Sep 03 11:04:45 cruftpi3 satnogs-client[368]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='network.satnogs.org', port=443): Max retries exceeded with url: /api/jobs
Sep 03 11:04:45 cruftpi3 satnogs-client[368]: apscheduler.executors.default - ERROR - Job "get_jobs (trigger: interval[0:01:00], next run at: 2021-09-03 17:05:45 UTC)" raised an exce
Sep 03 11:04:45 cruftpi3 satnogs-client[368]: Traceback (most recent call last):
Sep 03 11:04:45 cruftpi3 satnogs-client[368]:   File "/var/lib/satnogs/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
Sep 03 11:04:45 cruftpi3 satnogs-client[368]:     retval = job.func(*job.args, **job.kwargs)
Sep 03 11:04:45 cruftpi3 satnogs-client[368]:   File "/var/lib/satnogs/lib/python3.7/site-packages/satnogsclient/scheduler/tasks.py", line 177, in get_jobs
Sep 03 11:04:45 cruftpi3 satnogs-client[368]:     response.raise_for_status()
Sep 03 11:04:45 cruftpi3 satnogs-client[368]: UnboundLocalError: local variable 'response' referenced before assignment

I am able to connect to network.satnogs.org:443 with a browser ok.

Note, the systems are still on Debian Buster (10/oldstable). Should I upgrade that to Bullseye (11/stable) too?

Thanks!

1 Like

Hi,

Thank you for reporting this! It seems to be a bug with error handling, I added details in satnogs-client#427.

By default jobs (future observations) are fetched every 60 seconds, configurable with SATNOGS_NETWORK_API_QUERY_INTERVAL. If fetching jobs from network fails due to some intermittent problem, it will be retried and eventually succeed. This is not affected by the bug.

Not yet. There will be an announcement when updating to Bullseye becomes possible. At the moment the update would break (e.g. there are no packages for Debian 11 in the Repositories for home:librespace:satnogs - openSUSE Build Service yet).

Best wishes,
kerel / Fabian

1 Like