Can't reach admin panel

Hi,

After some trial and error I seem have the CODE server up and running. However, I cannot reach the admin panel. I get the following error:

Also in the logs there is an error message saying JWT Auth failed.

Does anyone have any tips or similar issues? Thanks!

The error in the browser console says it can’t establish a websocket connection to the admin console. The question is, why. Do you have direct connection to CODE, or a reverse proxy? If the latter, I’d suggest checking the configuration for that.

It’s a proxy (through Apache2). I can reach the /hosting/discovery just fine though and copied the websocket connection settings from the docs:

Admin Console websocket

ProxyPass /cool/adminws ws://127.0.0.1:9980/cool/adminws

Hm, is your reverse proxy setup terminating? If not, that line should start with wss.
If neither, works, I have no idea I’m afraid.

Hi,

had the same issue here.
After adding the proxy confs (in my case nginx) from the intructions, things worked fine.
In my case:

 # Admin Console websocket
 location ^~ /cool/adminws {
   proxy_pass http://<ip>:<port>;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $http_host;
   proxy_read_timeout 36000s;
 }

The only thing I had to modify (and to be honest where I do not exactly understand the impact - therefore comments welcome!) was the first proxy_pass which I had to modify from https to http.

HTH + kind regards

1 Like