After latest update web login doesn't work (error 502 on login screen)

  • This is caused by php7.4-fp failing.


    After update "systemctl status php7.4-fpm.service" indicates that following is missing:


    /run/php/php7.4-fpm-openmediavault-webgui.sock


    It is possible to add by hand and then everything started to work but after reboot I needed to do this again. Most probably php7.4-fpm service should do this by itself. Can this be fixed?


    There were 3 packages installed:

    - openmediavault (6.8.0-1) over (6.7.1-2)

    - salt-common (3006.0+ds-1+191.1) over (3006.0+ds-1+187.1)

    - salt-minion (3006.0+ds-1+191.1) over (3006.0+ds-1+187.1)


    Should I submit a bug report for this on GitHub?


    BR,

    XY

  • xyitest2

    Added the Label OMV 6.x
  • OK, problem still persists and no answer for year, so I dig by myself. Here is the solution (for OMV7; for OMV6 you need to replace php8.2 with php7.4):


    1. in /usr/local/bin/ create your own script and name it like custom_nginx_startup.sh. Put the following content:


    #!/bin/sh


    mkdir -p /run/php

    touch /run/php/php8.2-fpm-openmediavault-webgui.sock


    2. now you need to let know nginx service that there is new action to perfom when starting up. To do this create dir+file:

    /etc/systemd/system/nginx.service.d/<your_name>.conf

    with following content:


    [Service]

    ExecStartPre=/usr/local/bin/custom_nginx_startup.sh


    3. load the changes:


    systemctl daemon-reload


    And you are done, no more "502 bad gateway" at login screen. To test you can delete /run/php/php8.2-fpm-openmediavault-webgui.sock and restart nginx service.


    Source: https://docs.redhat.com/en/doc…g-with-systemd-unit-files

Participate now!

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