502 Bad Gateway after 1.x -> 2.0.10 upgrade

  • And here are the two .sock files just in case:


    srw------- 1 www-data www-data 0 Sep 19 09:05 php5-fpm-openmediavault-owncloud.sock
    srw-rw---- 1 www-data www-data 0 Sep 19 09:05 php5-fpm-openmediavault-webgui.sock

  • PHP packages in case there's a version conflict:

  • Definitely appreciate the help you guys have provided. Unless anyone has more ideas I'm going to need to reinstall this box.


    You need to find an error in one of the log files, we cant really help if we dont know what the error is. Check all logs in /var/log/*

    ----------------------------------------------------------------------------------------------
    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)

  • I put php5-fpm in debug. This is the only thing I've sen so far


    Code
    [04-Oct-2015 13:26:46.898971] DEBUG: pid 21995, fpm_got_signal(), line 76: received SIGCHLD
    [04-Oct-2015 13:26:46.899069] DEBUG: pid 21995, fpm_children_bury(), line 254: [pool openmediavault-webgui] child 22022 has been killed by the process management after 11.262087 seconds from start
    [04-Oct-2015 13:26:46.899119] DEBUG: pid 21995, fpm_event_loop(), line 419: event module triggered 1 events
    [04-Oct-2015 13:26:47.613907] DEBUG: pid 21995, fpm_children_make(), line 421: [pool openmediavault-webgui] child 22040 started
    [04-Oct-2015 13:26:47.614102] DEBUG: pid 21995, fpm_pctl_on_socket_accept(), line 536: [pool openmediavault-webgui] got accept without idle child available .... I forked
    [04-Oct-2015 13:26:47.614159] DEBUG: pid 21995, fpm_event_loop(), line 419: event module triggered 1 events


    That pattern seems to show up every 10-15 seconds. Can't tell if it's something normal or not.

  • Have you cleaned your configuration files nginx and php-fpm so they are completely separated like tek babe suggested?


    How does they look like now?

    ----------------------------------------------------------------------------------------------
    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)

  • I've been doing some troubleshooting as far as the configs go:
    When owncloud and openmediavault are each configured to use their own php5 sock, neither page loads.
    When owncloud is configured to use openmediavault's php5 sock, it works fine, but obviously openmediavault does not.
    I have found no configuration where the openmediavault webgui loads.

  • The command:
    omv-firstaid
    Should always fix the webgui. Have you tried to run omv-firstaid when yout owncloud works?

    ----------------------------------------------------------------------------------------------
    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 suggestion, but it doesn't seem to help. Even with owncloud disabled and accessing via http, just a blank page. I still get the same results with the phpinfo pages, so I still think this is some kind of php issue (phpinfo page in the openmediavault-webgui directly does NOT load. same page in the owncloud directory displays fine).

  • I would reinstall. It makes it very difficult to help you when there are all these unknown variables (i.e. alterations to normal settings). If you have an issue and don't know what to do ask for help before you make changes.

  • So try


    sudo apt-get --reinstall openmediavault


    And see if that works...

    ----------------------------------------------------------------------------------------------
    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 try replacing the content of the following file /etc/nginx/fastcgi_params with that :



    and restart nginx

Jetzt mitmachen!

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