-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SetupQuestion] nginxcontainererrors cannot connect to upstream #564
Comments
@warioishere For this question, you may have better luck asking in the Invidious Instance Owners room on Matrix (see #521 (comment)). Also, since your |
key is already regenerated because I realized it when reading through again. If anyone knows about this issue, let me know. |
I think it's probably because nginx is trying to send the traffic in ipv6 to the container, but the container does not listen on ipv6. There is an issue about it here: iv-org/invidious#4705 One temporary way would be to force Invidious to listen on IPv6 by adding this parameter in the invidious config:
|
add this to invidious and invidious-refresh config? |
Only the docker containers that receive traffic from NGINX. |
Okay thanks, will try this evening as soon as I come home. The big question to me is, why does the setup still work if the containers cannot receive traffic from nginx |
It's called happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs If the software can't connect in ipv6, it will try in ipv4 after. |
Okay thanks, understood adding |
what are the invidious logs though? |
the nginx container logs are the same plus:
didnt check the invidious container logs. do you need the invidious container logs? I reverted instantly because running this as a public instance. |
yes try to see if invidious process is starting normally in order to know what's really going on. |
these are the logs from nginx
invidious containers wont start if I add
besides of that, my instance stops working just from time to time showing an internals server error when loading videos. All those problems didnt occur when I was just on ipv4 is there anything I need to redo on the netplan yml? Because there is a fixed ipv6 assigned which always shows in
|
current situation without
|
just realized its a global problem. So ignore this about the internal server error. Logs when activating |
Ok thanks for the investigation. I'll do my own very soon hopefully. |
Hello guys, this is not really a bug, but more a setup problem we have on our instance.
We run a public instance (https://invidious.yourdevice.ch) and with run it as a docker deployed instance with mutlipe containers restarting from time to time as suggested in the docs. We also added http3 proxy, and ipv6 log rotation to the setup.
When I check logs of the container nginx instance, (invidious-nginx-1 container) its full of those entries:
2024/06/03 07:57:55 [error] 29#29: *376409 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: , request: "GET /feed/popular HTTP/1.1", upstream: "http://[2001:db9::5]:3000/feed/popular", host: "invidious.yourdevice.ch", referrer: "https://invidious.yourdevice.ch/"
An I mean really full. We dont have problems on the instance. Videos do load fast, everything plays fast. No problem at all. Still those logs bother me a bit. Seems like the nginx container cant reach the invidious containers? But if it would be so, then the server wouldnt work at all? Can you guys gimme a hint?
@unixfox @bugmaschine @perennialtech ?
This is our setup:
Nginx Reverse Proxy:
This is the nginx setup for the invidious-nginx container:
This is our docker-compose.yml
etc/docker/daemon.json
/opt/http3-ytproxy
to www-data:www-dataThanks for having a look!
Cheers guys
The text was updated successfully, but these errors were encountered: