Error 502 Bad Gateway on updating OMV Stoneburner

  • Hi there,


    I had to reflash a SD card running OMV after a power outage, preventing it to boot the Raspberry Pi that runs it. So I installed the latest Stoneburner on it, started it, and updated it through the Web interface, but it now shows an error 502 "Bad Gateway" page.


    Why it happens, and how to get rid of this problem?

  • The problem is related to the php5-pam update. It is a known issue. While I haven't tested this on my Rpi B+, you should be able to remove the current php5-pam pacakge then download the php5-pam package from here http://omv-extras.org/debian/p…hp5-pam_1.0.3-2_armhf.deb and resintall it. This does not affect Rpi2 models. Otherwise, reflash your SD card again and don't select the php5-pam update.

  • hi,


    I do have the problem since month, and it is really anoying to roll back the version after every update.
    Is there a way to freeze the pam module? or get this working somehow in the near future?

  • The problem is related to the php5-pam update. It is a known issue. While I haven't tested this on my Rpi B+, you should be able to remove the current php5-pam pacakge then download the php5-pam package from here http://omv-extras.org/debian/p…hp5-pam_1.0.3-2_armhf.deb and resintall it. This does not affect Rpi2 models. Otherwise, reflash your SD card again and don't select the php5-pam update.

    I have carefully avoided this package, and exclusively used the Web interface to update it. I also took care of not selecting this package, but nevertheless it locked itself out again.


    The only solution I found was to manually upload the file linked by shadowzero, refresh available updates, then install them. php5-pam shouldn't be in that list, and thus OMV won't crash.

  • I have found a workaround to this issue. If you have updated the php5-pam package, follow these steps below:

    Code
    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 your RPi then run the following command:

    Code
    apt-mark hold php5-pam


    This will prevent the pam package from being updated when you check for updates. I have tested this on my RPi B+ and I did not loose the webGUI after running an update. If you are doing a clean install then just do the last step before checking for updates. Be sure to run the commands as root or using sudo.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!