Another "502 Bad Gateway" error after upgrading to OMV7 on Raspberry Pi

  • Hi, I got the same "502 Bad Gateway" error after upgrading to OMV7 on my Raspberry Pi when trying to login using the web page. But I'm also unable to log in using SSH. It will not accept the password.


    What option do I have to fix this?


    Thanks in advance.

  • mbourd25

    Added the Label resolved
  • Hi, just to let everyone know I ran the fix6to7upgrade script from web site https://github.com/OpenMediaVa…-Developers/installScript and ran the wget script command directly on the Raspberry Pi, sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash and everything is fixed now.


    Thanks to everyone who created this script.

    Hi, I am sorry, but how exactly did you execute this command? Connected your Rpi to a monitor + keyboard?

  • Hi, I am sorry, but how exactly did you execute this command? Connected your Rpi to a monitor + keyboard?

    Answering my own question here.


    1. Yes, need to connect Rpi to a monitor+keyboard.

    2. Run this command as root:


    wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/fix6to7upgrade | bash


    This fixed the WebGUI 502 -Bad Gateway Error.


    3. To fix SSH login faliure, follow instructions in below forum post.


    Code
    https://forum.openmediavault.org/index.php?thread/51682-upgrade-to-omv-6-7-failed/&postID=383872#post383872
  • To fix SSH login faliure, follow instructions in below forum post.

    The problem with SSH should now be fixed by running the fix6to7upgrade script as ryecoaaron has said that they added recreation of the SSH config into it (see here).


    In my case, I fixed SSH by running omv-salt deploy run ssh (as recommended to me by votdev here). The fix6to7upgrade now does this.


    The main issue seems to be that /etc/ssh/sshd_config has the line AllowGroups root ssh where it should say AllowGroups root _ssh (note the underscore). The aforementioned command fixes this.

  • Hi, just to let everyone know I ran the fix6to7upgrade script from web site https://github.com/OpenMediaVa…-Developers/installScript and ran the wget script command directly on the Raspberry Pi, sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash and everything is fixed now.


    Thanks to everyone who created this script.

    Thanks for pointing this out. I had the same issue and the script fixed it for me too.

Participate now!

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