ERROR - 401 Client Error: Unauthorized for url:

Hi all, I have set up a SatNOGS station. I think I have everything set up right, but when I run “systemctl status satnogs-client” I get " satnogsclient.scheduler.tasks - ERROR - 401 Client Error: Unauthorized for url: https://network.satnogs.org/api/jobs/ ?ground_station=2919”
I have checked the ID and API Token many times, but I always get this message. It’s running on a raspberri pi3b. Any idea what else could cause this problem?
Thank you very much.

{
“versions”: {
“satnogs-client”: “1.8.1”,
“satnogs-client-ansible”: “202209101521”,
“satnogs-flowgraphs”: “1.4-1”,
“gr-satnogs”: “2.3.3.0-1”,
“gr-soapy”: “2.1.3.1-1”,
“gnuradio”: “3.8.2.0-14”,
“satnogs-config”: “0.13.2”
},
“state”: {
“is-applied”: true,
“pending-tags”: null
},
“system”: {
“date”: “2022-12-21T19:51:21.547087+00:00”,
“distribution”: {
“DESCRIPTION”: “Raspbian GNU/Linux 11 (bullseye)”,
“RELEASE”: “11”,
“CODENAME”: “bullseye”,
“ID”: “Raspbian”
},
“pending-updates”: true,
“platform”: {
“system”: “Linux”,
“node”: “raspberrypi”,
“release”: “5.15.76-v7+”,
“version”: “#1597 SMP Fri Nov 4 12:13:17 GMT 2022”,
“machine”: “armv7l”
},
“memory”: {
“total”: 966930432,
“available”: 789254144,
“percent”: 18.4,
“used”: 121487360,
“free”: 591863808,
“active”: 168316928,
“inactive”: 136974336,
“buffers”: 28069888,
“cached”: 225509376,
“shared”: 737280,
“slab”: 35549184
},
“disk”: {
“total”: 15336914944,
“used”: 4193087488,
“free”: 10465812480,
“percent”: 28.6
}
},
“configuration”: {
“satnogs_antenna”: “driver=rtlsdr”,
“satnogs_api_token”: “[redacted]”,
“satnogs_rx_samp_rate”: “2.048e6”,
“satnogs_soapy_rx_device”: “RX”,
“satnogs_station_elev”: “30”,
“satnogs_station_id”: “2919”,
“satnogs_station_lat”: “36.714”,
“satnogs_station_lon”: “-4.252”
}
}

Hi @ea7t and welcome!

Looks like you have the antenna and SDR parameters reversed. It should be :

satnogs_antenna: RX
satnogs_soapy_rx_device: driver=rtlsdr

Also add a gain settings for the rtlsdr (which is missing from your config)

satnogs_rf_gain: ‘32.8’

These may ot be the the cause of the unauthorized URL error but start by correcting these and go from there.
Scott (MAUSyagi)

Hey @ea7tb,

This message means that something is wrong with authentication.

I’ve read that you checked your API key but just in case I’m writing some things that may be wrong and not easily noticeable:

  1. Make sure your API key hasn’t any space
  2. If you add manually your API key and not by copy pasting, make sure that you don’t have any O’s in it… all of them should be zeros
  3. Make sure that the station is under your account, some times people log in with different accounts in Network and this results to the wrong API key
  4. Make sure that you got your key from Network site, not the SatNOGS DB site neither the Network dev site.

If you don’t manage to find out what’s going wrong send me a pm here and let’s go forward step by step.

Thanks for your answer,
Changed the values, the error follows.

“versions”: {
“satnogs-client”: “1.8.1”,
“satnogs-client-ansible”: “202209101521”,
“satnogs-flowgraphs”: “1.4-1”,
“gr-satnogs”: “2.3.3.0-1”,
“gr-soapy”: “2.1.3.1-1”,
“gnuradio”: “3.8.2.0-14”,
“satnogs-config”: “0.13.2”
},
“state”: {
“is-applied”: true,
“pending-tags”: null
},
“system”: {
“date”: “2022-12-21T21:35:06.908102+00:00”,
“distribution”: {
“DESCRIPTION”: “Raspbian GNU/Linux 11 (bullseye)”,
“RELEASE”: “11”,
“CODENAME”: “bullseye”,
“ID”: “Raspbian”
},
“pending-updates”: true,
“platform”: {
“system”: “Linux”,
“node”: “raspberrypi”,
“release”: “5.15.76-v7+”,
“version”: “#1597 SMP Fri Nov 4 12:13:17 GMT 2022”,
“machine”: “armv7l”
},
“memory”: {
“total”: 966930432,
“available”: 793624576,
“percent”: 17.9,
“used”: 119169024,
“free”: 636989440,
“active”: 97955840,
“inactive”: 167837696,
“buffers”: 19677184,
“cached”: 191094784,
“shared”: 737280,
“slab”: 30154752
},
“disk”: {
“total”: 15336914944,
“used”: 4218773504,
“free”: 10440126464,
“percent”: 28.8
}
},
“configuration”: {
“satnogs_antenna”: “Rx”,
“satnogs_api_token”: “[redacted]”,
“satnogs_rx_samp_rate”: “2.048e6”,
“satnogs_soapy_rx_device”: “driver=rtlsdr”,
“satnogs_station_elev”: “30”,
“satnogs_station_id”: “2919”,
“satnogs_station_lat”: “36.714”,
“satnogs_station_lon”: “-4.252”
}
}

Hello Fredy.
Fixed the problem.
The error consisted of the following:
I had to do a fresh install to the SD card.
It used the API, which I had at the time I did the first installation.
Today I have closed the Satnogs session and I have entered again, when I looked at the page I saw that a new API had been generated.
I have copied it and it is working
Thanks for your help.
Greetings Manuel EA7TB

1 Like