502 Bad Gateway Web gui

  • Hi i just upgraded from omv 3 to 4, when i try to connect to the web gui i get 502 bad gateway :( ?
    I can go on putty and connect to my server and my shared folders with LAN works too.
    Please help. ?(

  • Try omv-firstaid from the command line as root.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • I have that open now, im a noob at linux so i might need some more guidance.


    Can i screw anything up in there or can i just go ham and try clear stuff? :)

  • Other than the network settings, it is pretty safe. Even the network settings would just change where you find it.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • I cant even find the right port when i type in "netstat -a" :(
    root@openmediavault:~# ERROR: [Errno 111] Connection refused


    So i cant use the "configure web control panel"..


    I have tryed to clear all in omv-firstaid with no luck.


    Anything else i can try or is my server just Rip? :(

  • I don't understand. What port are you looking for?

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • When i type omv-firstaid and select nr2 (Configure web control panel) - it says "Please enter the port to access the control panel via HTTP"


    So i guess im looking for the port my server is current useing?

  • So i guess im looking for the port my server is current useing?

    Port 80 is what it defaults to. The fact that netstat isn't finding that port in use makes sense since your web server config is in a bad state.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • So what do you suggest i try to do?

    Use omv-firstaid and use 80 when it asks what port.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • Try this then:
    omv-mkconf nginx
    omv-mkconf php-fpm
    systemctl restart nginx
    systemctl restart php7.0-fpm

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • Dont seem to work it says this:


    Code
    root@openmediavault:~# omv-mkconf nginx
    root@openmediavault:~# omv-mkconf php-fpm
    ERROR: The script '/usr/share/openmediavault/mkconf/php-fpm' does not exist
    root@openmediavault:~# systemctl restart nginx
    Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
    root@openmediavault:~# systemctl restart php7.0-fpm
    Failed to restart php7.0-fpm.service: Unit php7.0-fpm.service failed to load: No such file or directory.
    root@openmediavault:~#
  • Just a note... When a command fails, don't run the next one.


    You must still be on OMV 3.x. I'm guessing your upgrade didn't finish. What is the output of: dpkg -l | grep openm

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • Okey, thanks for letting me know .



    Code
    root@openmediavault:~# dpkg -l | grep openm
    iF openmediavault 3.0.99 all Open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    iU openmediavault-omvextrasorg 3.4.32 all OMV-Extras.org Package Repositories for OpenMediaVault
    iU openmediavault-plexmediaserver 3.8.2 all OpenMediaVault Plex Media Server plugin
    root@openmediavault:~#

    I guess is says im still on 3 ?

  • I guess is says im still on 3 ?

    Yep. What is the output of: cat /etc/apt/sources.list /etc/apt/sources.list.d/openmediavault.list

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

  • Is says this :)


  • How did you upgrade from 3 -> 4? Did you use omv-release-upgrade? Nothing is upgraded.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!