502 bad gateway

    • 502 bad gateway

      Hello,

      I was working for a while with OpenMediaVault.
      I'm working with the image on a Raspberry Pi.

      I reinstalled my system. After installation, everything works fine.
      Then i update my installation and i cannot access it anymore on the webserver.
      I get an error "502 Bad Gateway - nginx"

      I tried to update from the webserver and via the commandline (ssh - connection), but both give the same problem after a reboot...

      Does anybody knows what to do?

      already thanks!
    • Clear your browser cache first or try to use inkognito mode in chrome to access the WebGUI.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Do you have omvextrasorg installed? If so please upload a Logfile.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Do you use a proxy? and do nginx and apache coexist?

      If so disable apache :

      Source Code

      1. service apache2 stop


      Also can you search for those logs? :
      /var/www/nginx/openmediavault-access.log
      /var/www/nginx/openmediavault-error.log
      - ASROCK FM2A88X-ITX+ (SATAIII (6Gb/s) x6 (for the DATA), mSATA x1 (for the OS) ==> maybe the only afordable motherboard with 6xSATAIII ports)
      - AMD A6 7400K 3.5GHz (overpowerful for NAS but the cheapest for this motherboard)
      - Corsair 2Go DDR3 1333MHz C9 (x2)
      - INTEL GIGABIT CT DESKTOP ADAPTER SINGLE PORT RJ45 PCIE (to avoid backports problems with network controller)
      - COOLER MASTER G450M (80+ bronze)
      - WD Red 2To 64Mo 3.5" SATAIII (6Gb/s) (x4 for the DATA, 2 SATA ports left for future use)
      - 32 Go SSD mSATA KingSpec Half-Size Solid State (for the OS which allows 6 SATA HDDs)
      - Fractal Design Node 304 black (HDD 3.5" x6)
      - RAID 5 xfs
      - OMV 1.12 (Kralizec) - 3.16.0-0.bpo.4-amd64
    • Hello,

      I tried the following (logfile)
      root@raspberrypi:~# omv-mkconf omvextrasorg sendsupport
      -bash: omv-mkconf: command not found

      then i checked to stop apache2
      root@raspberrypi:~# service apache2 stop
      apache2: unrecognized service

      then i searched for the log files:
      root@raspberrypi:~# cd /var/www/nginx
      -bash: cd: /var/www/nginx: No such file or directory

      tx for the support!
    • Oh god you have neither apache nor nginx ??? How is this possible with the error "502 bad gateway - nginx" ???

      Try to search the following :

      Source Code

      1. find / -name nginx
      2. find / -name apache


      And try also the following :

      Source Code

      1. ps -ef | grep nginx
      2. ps -ef | grep apache


      Give us the results.
      Cheers
      - ASROCK FM2A88X-ITX+ (SATAIII (6Gb/s) x6 (for the DATA), mSATA x1 (for the OS) ==> maybe the only afordable motherboard with 6xSATAIII ports)
      - AMD A6 7400K 3.5GHz (overpowerful for NAS but the cheapest for this motherboard)
      - Corsair 2Go DDR3 1333MHz C9 (x2)
      - INTEL GIGABIT CT DESKTOP ADAPTER SINGLE PORT RJ45 PCIE (to avoid backports problems with network controller)
      - COOLER MASTER G450M (80+ bronze)
      - WD Red 2To 64Mo 3.5" SATAIII (6Gb/s) (x4 for the DATA, 2 SATA ports left for future use)
      - 32 Go SSD mSATA KingSpec Half-Size Solid State (for the OS which allows 6 SATA HDDs)
      - Fractal Design Node 304 black (HDD 3.5" x6)
      - RAID 5 xfs
      - OMV 1.12 (Kralizec) - 3.16.0-0.bpo.4-amd64
    • Hello,

      As i told before, the webserver was working before i did the updates...
      I neither understand...

      the results of the requested commands:
      root@raspberrypi:~# find / -name nginx
      /etc/logrotate.d/nginx
      /etc/default/nginx
      /etc/ufw/applications.d/nginx
      /etc/nginx
      /etc/init.d/nginx
      /var/log/nginx
      /var/lib/nginx
      /usr/share/doc/nginx
      /usr/share/nginx
      /usr/sbin/nginx
      root@raspberrypi:~# find / -name apache
      root@raspberrypi:~# ps -ef | grep nginx
      root 2239 1 0 Feb01 ? 00:00:00 nginx: master process /usr/sbin/nginx
      www-data 2241 2239 0 Feb01 ? 00:00:11 nginx: worker process
      www-data 2242 2239 0 Feb01 ? 00:00:00 nginx: worker process
      www-data 2245 2239 0 Feb01 ? 00:00:11 nginx: worker process
      www-data 2246 2239 0 Feb01 ? 00:00:11 nginx: worker process
      root 20264 20244 0 13:06 pts/0 00:00:00 grep nginx
      root@raspberrypi:~# ps -ef | grep apache
      root 20268 20244 0 13:07 pts/0 00:00:00 grep apache
      root@raspberrypi:~#


      As i told, i retried to install from scratch, but i always have the same result...

      Already thanks.
    • Installing the php5-pam update is the problem. It only works on true armhf systems.

      Login via ssh as root and try:
      wget http://omv-extras.org/debian/pool/main/p/php5-pam/php5-pam_1.0.3-2_armhf.deb
      dpkg -i php5-pam_1.0.3-2_armhf.deb
      reboot
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It should be solved but don't update the php5-pam package if one shows up in the update list. I will have to look into this.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It is the php5-pam package causing the failure when fpm tries to restart. The fpm package is fine unless you added a non-Raspbian repo.

      Install the package using the instructions above and then apt-get -f install
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • The php5-pam is one of the few core packages that is a binary and in the omv/omv-extras repos. I would reinstall the fpm package.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!