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. ?(

    • Official Post

    Try omv-firstaid from the command line as root.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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? :)

    • Official Post

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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? :(

    • Official Post

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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?

    • Official Post

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    So what do you suggest i try to do?

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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:~#
    • Official Post

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 ?

    • Official Post

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Is says this :)


    • Official Post

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Want me to try type it again?

    Yes.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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!