Reverse Proxy for Plex causing Nginx to restart every 30 seconds

  • Hi,
    I recently installed OMV 4.x (after running 2.x for a few years) on my NAS-box from scratch. I installed the Docker plugin and pulled several images (SabNZBd, Transmission, Sonarr, Radarr and Plex).


    For each Docker container I created a reverse proxy, using e.g. [url='https://nas.mydomain.com/sonarr`']https://nas.mydomain.com/sonarr[/url]. This is working fine.


    The only way I managed to reach Plex through a reverse proxy was by using a subdomain, e.g. [url]https://plex.mydomain.com[/url]. This seemed to work fine (it worked fine on OMV 2.x), but today I noticed that my openmediavault logs are stuffed with nginx reboots. Every 30 seconds, like clockwork.


    After a bit of research (digging through docker container logs, turning each of them on and off, etc.) I found out, that when I disable the Reverse Proxy for Plex, Nginx runs fine.


    In short, I hope anyone here can help me out.


    This is my /etc/nginx/sites-enabled/openmediavault-plex (which is a symlink to /etc/nginx/sites-available/openmediavault-plex:(


    Most of this comes from tutorials found on the web, and I just played around with it till I got it to work. So I'm not much a Nginx wizz. :)


    Thanks in advance!


    Edit: Just found this recurring error in the logs: monit[19065]: 'nginx' failed protocol test [HTTP] at [127.0.0.1]:443 [TCP/IP SSL] -- HTTP error: Server returned status 401. So I checked /etc/monit/conf.d/openmediavault-nginx.conf:

    Code: /etc/monit/conf.d/openmediavault-nginx.conf
    if failed host 127.0.0.1 port 443 type tcpssl protocol http timeout 15 seconds for 2 times within 3 cycles then restart

    15 seconds for 2 times = 30 seconds. So I guess it's monit which restarts nginx continuously, because Monit isn't authorized (the 401 status) or something? If someone could explain the meaning of the error generated by monit, I'd probably be able to solve it.

  • For now I just commented out the rule for restarting Nginx. This doesn't solve the problem, but it does prevent Nginx from continuously restarting. If anyone has any suggestions, I'd love to hear them.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!