502 Bad Gateway after 1.x -> 2.0.10 upgrade

  • Okay. Could you please post a fresh copy of the two configuration files /etc/nginx/sites-enabled/openmediavault-webgui and /etc/php5/fpm/pool.d/openmediavault-webgui.conf so we can see current status.

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



  • Wrong conf files. It is not the owncloud files i want to check ☺

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

  • Ah yes. The top one above is the nginx config. Here's php5/fpm/pool.d:

  • Ok. What does these files contain? You include them so they are a part of nginx configuration


    include /etc/nginx/openmediavault-webgui.d/*.conf;

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

  • just a security.conf


  • Ok. Thats not the problem....


    Hmmm. Im out of 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)

  • In line 63 in the owncloud nginx file you have an error. (webgui)


    fastcgi_pass unix:/var/run/php5-fpm-openmediavault-webgui.sock;


    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)

  • I need to sleep now. Tomorrow i can postmy files, then you can see if you can tell the difference.


    Did you restart both nginx and php5-fpm services?

    ----------------------------------------------------------------------------------------------
    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 assumeyou mean the gateway error and not totally blank/white?

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

  • @tekkb


    Maybe tekkb is right that we are looking in a wrong direction and it is something else. If phpinfo.php works for boths sites now.nginx and php should work.

    ----------------------------------------------------------------------------------------------
    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 don't understand how you got all these weird alterations. Every site should have it's own sock. How was owncloud using the web gui's? Where are all these changes coming from?


    Clear your browser cache and restart services:
    service php5-fpm restart
    service nginx restart

  • Why is the server_name on this config openemediavault???? Should be owncloud, yes?


  • You should only have one sock line in your server config too. I see you have 2 sock lines in the file above for owncloud.


    I would delete this and just have line 63 using owncloud's sock and not the web gui sock as mentioned by roco.


    Code
    upstream php-handler {
           server unix:/var/run/php5-fpm-openmediavault-owncloud.sock;
           }
  • You should try cleaning up your files. You can compare your files with mine a find the differences. You must look at your configuration as if it was two different server and separate them completely.


    This is my openemedia-webgui


    This is openmediavault-owncloud


    This is my openmediavault-webgui.conf


    This is my openmediavault-owncloud.conf

    ----------------------------------------------------------------------------------------------
    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. Disabled the vhost for owncloud completely. Copied your configs and only modified enough that it should work on my host (basically the ssl cert info). The redirect happens properly, then on 6443 I get a blank page. This has to be a php issue at this point, right?

Jetzt mitmachen!

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