502 Bad Gateway /nginx

  • Hi, my problem.. no webgui (after update?). Googling in the forum maybe The problem seems to be in php5-fpm, but I'm a noob, and don't see what is my probem...
    PAste my error,
    -------------------------------------------------------------------------
    root@raspberrypi:~# systemctl start php5-fpm.service
    Job for php5-fpm.service failed. See 'systemctl status php5-fpm.service' and 'journalctl -xn' for details.
    root@raspberrypi:~# systemctl status php5-fpm.service
    ● php5-fpm.service - The PHP FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
    Active: failed (Result: exit-code) since Thu 2016-12-01 20:15:28 CET; 21s ago
    Process: 26746 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=78)
    Process: 26739 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
    Main PID: 26746 (code=exited, status=78)



    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: [01-Dec-2016 20:15:28] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic...n line 0
    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: [01-Dec-2016 20:15:28] ERROR: [/etc/php5/fpm/pool.d/e7b86901-8242-4714-94b4-f9d15822e881.conf...ER_ENTRY
    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: PHP: syntax error, unexpected '"' in Unknown on line 1
    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: [01-Dec-2016 20:15:28] ERROR: Unable to include /etc/php5/fpm/pool.d/e7b86901-8242-4714-94b4-... line 27
    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: [01-Dec-2016 20:15:28] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
    Dec 01 20:15:28 raspberrypi php5-fpm[26746]: [01-Dec-2016 20:15:28] ERROR: FPM initialization failed
    Dec 01 20:15:28 raspberrypi systemd[1]: php5-fpm.service: main process exited, code=exited, status=78/n/a
    Dec 01 20:15:28 raspberrypi systemd[1]: Failed to start The PHP FastCGI Process Manager.
    Dec 01 20:15:28 raspberrypi systemd[1]: Unit php5-fpm.service entered failed state.
    Hint: Some lines were ellipsized, use -l to show in full.
    --------------------------------------------
    And the journalctl -xn:
    root@raspberrypi:~# journalctl -xn
    -- Logs begin at Thu 2016-12-01 13:43:47 CET, end at Thu 2016-12-01 20:21:26 CET. --
    Dec 01 20:21:26 raspberrypi systemd[1]: Starting The PHP FastCGI Process Manager...
    -- Subject: Unit php5-fpm.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php5-fpm.service has begun starting up.
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: [01-Dec-2016 20:21:26] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: [01-Dec-2016 20:21:26] ERROR: [/etc/php5/fpm/pool.d/e7b86901-8242-4714-94b4-f9d15822e881.conf:27] value
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: PHP: syntax error, unexpected '"' in Unknown on line 1
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: [01-Dec-2016 20:21:26] ERROR: Unable to include /etc/php5/fpm/pool.d/e7b86901-8242-4714-94b4-f9d15822e88
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: [01-Dec-2016 20:21:26] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
    Dec 01 20:21:26 raspberrypi php5-fpm[26955]: [01-Dec-2016 20:21:26] ERROR: FPM initialization failed
    Dec 01 20:21:26 raspberrypi systemd[1]: php5-fpm.service: main process exited, code=exited, status=78/n/a
    Dec 01 20:21:26 raspberrypi systemd[1]: Failed to start The PHP FastCGI Process Manager.
    -- Subject: Unit php5-fpm.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php5-fpm.service has failed.
    --
    -- The result is failed.
    Dec 01 20:21:26 raspberrypi systemd[1]: Unit php5-fpm.service entered failed state.
    lines 1-23/23 (END)
    -----------------------------
    Any ideas?
    Sorry for my english :(

    • Offizieller Beitrag

    Try:


    omv-mkconf php5fpm


    and then try starting it. If it doesn't work, post the output of:


    dpkg -l | grep -E "php|openm"

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Hi all,


    I just updated and rebooted my RPi and i have the 502 bad gateway error when I try to run the GUI.


    I have followed the instructions above - omv-mkconf php5fpm but this doesn't fix the problem and php5-fpm.service does not start.


    Is this error related to a segmentation fault? php5-fpm-checkconf[1872]: Segmentation fault


    root@pi-omv:~# systemctl status php5-fpm.service
    php5-fpm.service - The PHP FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
    Active: failed (Result: signal) since Thu 2017-07-06 08:53:32 BST; 15s ago
    Process: 1878 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=killed, signal=SEGV)
    Process: 1872 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
    Main PID: 1878 (code=killed, signal=SEGV)


    Jul 06 08:53:32 pi-omv php5-fpm-checkconf[1872]: Segmentation fault
    Jul 06 08:53:32 pi-omv systemd[1]: php5-fpm.service: main process exited, code=killed, status=11/SEGV
    Jul 06 08:53:32 pi-omv systemd[1]: Failed to start The PHP FastCGI Process Manager.
    Jul 06 08:53:32 pi-omv systemd[1]: Unit php5-fpm.service entered failed state.

    as per help/suggestion above - output of dpkg -l | grep -E "php|openm" is...


    ii openmediavault 3.0.81 all Open network attached storage solution
    ii openmediavault-flashmemory 3.4.3 all folder2ram plugin for OpenMediaVault
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ii openmediavault-omvextrasorg 3.4.25 all OMV-Extras.org Package Repositories for OpenMediaVault
    ii openmediavault-openvpn 3.0.6 all OpenVPN plugin for OpenMediaVault.
    ii openmediavault-resetperms 3.3 all Reset Permissions
    ii openmediavault-transmissionbt 3.0.9 all OpenMediaVault Transmission (BitTorrent client) plugin.
    ii php-symfony-class-loader 2.3.21+dfsg-4+deb8u3 all load PHP classes automatically
    ii php5-cgi 5.6.30+dfsg-0+deb8u1 armhf server-side, HTML-embedded scripting language (CGI binary)
    ii php5-cli 5.6.30+dfsg-0+deb8u1 armhf command-line interpreter for the php5 scripting language
    ii php5-common 5.6.30+dfsg-0+deb8u1 armhf Common files for packages built from the php5 source
    ii php5-fpm 5.6.30+dfsg-0+deb8u1 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
    ii php5-json 1.3.6-1 armhf JSON module for php5
    ii php5-pam 1.0.3-4 armhf pam module for PHP 5

  • hi all, i have had good look for a solution (forum and google search) to this issue but i just can't find a fix.


    for whatever reason php5-fpm.service fails to start.


    i haven't changed any config on my system apart for applying updates every week or so. Rebooted the RPi yesterday and no GUI after reboot.


    I can't find much info on php5-fpm-checkconf: Segmentation fault.


    Can anyone help?

Jetzt mitmachen!

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