502 Bad Gateway after 1.x -> 2.0.10 upgrade

    • OMV 2.x
    • Upgrade 1.x -> 2.x
    • PHP packages in case there's a version conflict:

      Source Code

      1. dpkg -l | grep php
      2. ii php-json-schema 0.2.0 all PHP implementation of JSON schema
      3. ii php-pear 5.4.45-1~dotdeb+7.1 all PEAR - PHP Extension and Application Repository
      4. ii php-xml-parser 1.3.4-6 all PHP PEAR module for parsing XML
      5. ii php5 5.4.45-1~dotdeb+7.1 all server-side, HTML-embedded scripting language (metapackage)
      6. ii php5-cgi 5.4.45-1~dotdeb+7.1 amd64 server-side, HTML-embedded scripting language (CGI binary)
      7. ii php5-cli 5.4.45-1~dotdeb+7.1 amd64 command-line interpreter for the php5 scripting language
      8. ii php5-common 5.4.45-1~dotdeb+7.1 amd64 Common files for packages built from the php5 source
      9. ii php5-curl 5.4.45-1~dotdeb+7.1 amd64 CURL module for php5
      10. ii php5-fpm 5.4.45-1~dotdeb+7.1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
      11. ii php5-gd 5.4.45-1~dotdeb+7.1 amd64 GD module for php5
      12. ii php5-intl 5.4.45-1~dotdeb+7.1 amd64 internationalisation module for php5
      13. ii php5-mcrypt 5.4.45-1~dotdeb+7.1 amd64 MCrypt module for php5
      14. ii php5-mysql 5.4.45-1~dotdeb+7.1 amd64 MySQL module for php5
      15. ii php5-pam 1.0.3-2 amd64 pam module for PHP 5
      16. ii php5-pgsql 5.4.45-1~dotdeb+7.1 amd64 PostgreSQL module for php5
      17. ii php5-proctitle 0.1.2-2 amd64 proctitle module for PHP 5
      18. ii php5-sqlite 5.4.45-1~dotdeb+7.1 amd64 SQLite module for php5
      Display All
    • 502 Bad Gateway after 1.x -> 2.0.10 upgrade

      colbond wrote:

      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

      Source Code

      1. [04-Oct-2015 13:26:46.898971] DEBUG: pid 21995, fpm_got_signal(), line 76: received SIGCHLD
      2. [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
      3. [04-Oct-2015 13:26:46.899119] DEBUG: pid 21995, fpm_event_loop(), line 419: event module triggered 1 events
      4. [04-Oct-2015 13:26:47.613907] DEBUG: pid 21995, fpm_children_make(), line 421: [pool openmediavault-webgui] child 22040 started
      5. [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
      6. [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).
    • 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 :

      Source Code

      1. ​fastcgi_param QUERY_STRING $query_string;
      2. fastcgi_param REQUEST_METHOD $request_method;
      3. fastcgi_param CONTENT_TYPE $content_type;
      4. fastcgi_param CONTENT_LENGTH $content_length;
      5. fastcgi_param SCRIPT_FILENAME $request_filename;
      6. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
      7. fastcgi_param REQUEST_URI $request_uri;
      8. fastcgi_param DOCUMENT_URI $document_uri;
      9. fastcgi_param DOCUMENT_ROOT $document_root;
      10. fastcgi_param SERVER_PROTOCOL $server_protocol;
      11. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
      12. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
      13. fastcgi_param REMOTE_ADDR $remote_addr;
      14. fastcgi_param REMOTE_PORT $remote_port;
      15. fastcgi_param SERVER_ADDR $server_addr;
      16. fastcgi_param SERVER_PORT $server_port;
      17. fastcgi_param SERVER_NAME $server_name;
      18. fastcgi_param HTTPS $https;
      19. # PHP only, required if PHP was built with --enable-force-cgi-redirect
      20. fastcgi_param REDIRECT_STATUS 200;
      Display All


      and restart nginx