docker-openwisp icon indicating copy to clipboard operation
docker-openwisp copied to clipboard

[error] host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf

Open eltionb opened this issue 3 years ago • 10 comments

Hello

I am getting this error on nginx container after a fresh install. Installed using auto-install.sh [emerg] 39#39: host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71

I did inspect docker file but cant find radius specified as a hostname anywhere. Anyone else has any idea?

OS: Ubuntu Server 20.04.4

eltionb avatar Jul 12 '22 19:07 eltionb

@eltionb try again with the edge images here: https://gitlab.com/openwisp/docker-openwisp/container_registry

nemesifier avatar Jul 13 '22 14:07 nemesifier

Would be great to get this into 'latest', ...

systemcrash avatar Dec 13 '22 00:12 systemcrash

same error here, even with edge images

benedikt-bartscher avatar Jan 11 '23 23:01 benedikt-bartscher

This seems to symptom of the init script for nginx requiring the NGINX_SERVER_NAME_HASH_BUCKET=32 to be increased. If you add NGINX_SERVER_NAME_HASH_BUCKET=64 in your .env file it seems to fix this issue.

Think the default value in the .env file should be updated.

jrventer avatar Jan 19 '23 05:01 jrventer

The issue is still present

fuomag9 avatar Jun 16 '23 17:06 fuomag9

I cannot replicate this issue nor find anywhere in the code where radius.https.conf is created, this was an old file.

If anyone finds it in the code please send a patch.

Here's all the occurrences of the word "radius" in the actual codebase: https://github.com/search?q=repo%3Aopenwisp%2Fdocker-openwisp%20radius&type=code

nemesifier avatar Jul 20 '23 16:07 nemesifier

same issue here. I added into .env file line NGINX_SERVER_NAME_HASH_BUCKET=64 but the error did not desappear

nginx: [emerg] host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71 2023/07/20 18:28:02 [emerg] 39#39: host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71

doreks avatar Jul 20 '23 16:07 doreks

hi, !

i have fixed the issue deploying edge docker https://groups.google.com/g/openwisp/c/s4XQ2IOdUTk?pli=1

doreks avatar Jul 20 '23 17:07 doreks

I have deployed using the edge version and still see this error. As the container keeps restarting due to the error, it's not even possible to connect to the container and diagnose the issue. Anyone have ideas?

focher avatar Sep 30 '23 01:09 focher

Just posting back that I did resolve the error by changing the reference in the docker-compose.yml file from "freeradius" to "radius". It looks like that error message is just being unable to resolve "radius" to the running container.

focher avatar Feb 12 '24 18:02 focher