502 Bad Gateway after 1.x -> 2.0.10 upgrade

  • Yep they were incorrect. Reset to match your example and restarted php5-fpm service. Now at least I get this error (both owncloud and openmediavault webgui):


    2015/09/12 13:19:50 [crit] 30006#30006: *12010 connect() to unix:/var/run/php5-fpm-openmediavault-webgui.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.150, server: openmediavault, request: "GET /status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-openmediavault-webgui.sock:", host: "openmediavault:8443"




    ls -lA /var/run:

    Code
    srw------- 1 www-data      www-data      0 Sep 12 13:18 php5-fpm-openmediavault-owncloud.sock
    srw------- 1 www-data      www-data      0 Sep 12 13:18 php5-fpm-openmediavault-webgui.sock


    I definitely did plenty of troubleshooting before posting here so I'm sure I did modify it at some point. Thanks for posting what the correct config should be so I can rule that out. Definitely appreciate the help as this has been bugging me for a while now!

  • This error can also happen if you have an error in your nginx / webgui config file. Check the reference to the .sock file.


    Please post /etc/nginx/sites-enabled/openmediavault-webgui

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Good to know.



  • Also you could change


    listen.mode = 0600


    to


    listen.mode = 0660


    in /etc/php5/fpm/pool.d/openmediavault-webgui.conf


    and restart the php5-fpm service

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • The nginx config files looks fine.

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Please post


    /etc/nginx/sites-enabled/openmediavault-owncloud


    as well.


    I notice your error


    2015/09/12 13:19:50 [crit] 30006#30006: *12010 connect() to unix:/var/run/php5-fpm-openmediavault-webgui.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.150, server: openmediavault, request: "GET /status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-openmediavault-webgui.sock:", host: "openmediavault:8443"


    says port 8443, but your webgui runs on port 8080. Each virtual host must have its own php5-fpm.sock file.

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • owncloud is running on 8443 so that's interesting. Here's the owncloud config:



    Definitely appreciate the help!

  • yes exactly :)


    it should be fastcgi_pass unix:/var/run/php5-fpm-openmediavault-owncloud.sock;

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Ok made that edit, restarted nginx and php5-fpm, same result. Owncloud loads fine, omv-webgui is a blank page. NOTHING in any of the nginx error logs, and just this in the access log:


    Code
    ::ffff:192.168.1.150 - - [15/Sep/2015:11:58:10 -0600] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"


    nothing in the php5-fpm log except the service restart.

  • hmm


    Do you mean completely blank / white page or do you see the "Gateway error" ?

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Now it's basically always a blank white page where even yesterday morning it would load a gateway error then sometimes a refresh would give me a white page. Wish I could be more consistent than that but it's been really hard to predict what I'll see.

  • Did you try this?


    change


    listen.mode = 0600
    to


    listen.mode = 0660


    in /etc/php5/fpm/pool.d/openmediavault-webgui.conf


    and restart the php5-fpm service

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)


  • Yep sure did.

  • Hmm.. We need an error in a log file now. I have no more ideas.

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Have you tried to run


    omv-firstaid


    and then choose option 2: Configure Webgui ?

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Agreed I wish I had more to go on. After all that these are the only errors I get:


    Code
    2015/09/15 12:56:42 [error] 11977#11977: *1 open() "/var/www/openmediavault404" failed (2: No such file or directory), client: ::ffff:192.168.1.150, server: openmediavault-webgui, request: "GET /status.php HTTP/1.1", host: "cloud.<domain>.com"
    2015/09/15 12:56:42 [error] 11977#11977: *1 open() "/var/www/openmediavault404" failed (2: No such file or directory), client: ::ffff:192.168.1.150, server: openmediavault-webgui, request: "GET /owncloud/status.php HTTP/1.1", host: "cloud.<domain>.com"


    So not sure why owncloud errors are being logged in the openmediavault-webgui_error.log

  • Okay now i see what you are missing in /etc/nginx/sites-available/openmediavault-owncloud


    error_log /var/log/nginx/openmediavault-owncloud_error.log error;
    access_log /var/log/nginx/openmediavault-owncloud_access.log combined;


    and


    root must be defined as well


    root /var/www/owncloud;


    or something like this.

    ----------------------------------------------------------------------------------------------
    Software:
    Openmediavault 4.1.x.x (Arrakis) | omvextrasorg 3.3.16 | Nginx 1.12.2 | Nextcloud 13.x


    Hardware:
    Chassis: Fractal Design Node 304
    Board: ASROCK Z87E-ITX
    CPU: Intel Core i5-4670T
    CPU Cooler Noctua NH-U12S
    System storage: 30GB - Kingston SMS200S3/30G
    Data storage: 4 x 4TB - WD Red WD40EFRX 4TB
    RAM: 16GB
    Ethernet Adapter TP-Link TG-3468 (PCIe)

  • Ok there are actually no owncloud files in /etc/nginx/sites-available (just default, openmediavault-webgui, and openmediavault-webgui.save). Kind of new to nginx so I'm not sure what to expect there.

Jetzt mitmachen!

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