Service unavailable

  • Hi,


    Today suddenly my apache service unavailable.
    Service running, but all my domains have Error 503, Service unavailable.
    imscp panel unavailable too, but service running.


    So I try to restart services, not helped.
    After it, run the following command:

    Code
    1. perl /var/www/imscp/engine/setup/imscp-reconfigure -danv


    All went well, but after only i-mscp panel worked.
    I try to change a user PHP version from 7.0.13 to 5.6.32 and now that site working, but noone else...


    What is a problem? I'm not modified my server at last 3 weeks.


    Apache error log:


    Code
    1. [Thu May 10 16:38:22.689357 2018] [ssl:warn] [pid 16533:tid 140620096935808] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
    2. [Thu May 10 16:38:22.689841 2018] [suexec:notice] [pid 16533:tid 140620096935808] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    3. [Thu May 10 16:38:22 2018] [notice] vlogger: DBI usage tracker dump interval set to 30 seconds
    4. [Thu May 10 16:38:22 2018] [notice] vlogger: started CustomLog Handler -- resuming normal operations
    5. [Thu May 10 16:38:22 2018] [notice] vlogger: caught TERM, shutting down
    6. [Thu May 10 16:38:22.867186 2018] [ssl:warn] [pid 16535:tid 140620096935808] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
    7. [Thu May 10 16:38:22.871302 2018] [mpm_event:notice] [pid 16535:tid 140620096935808] AH00489: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
    8. [Thu May 10 16:38:22.871394 2018] [core:notice] [pid 16535:tid 140620096935808] AH00094: Command line: '/usr/sbin/apache2'
    9. [Thu May 10 16:38:22 2018] [notice] vlogger: DBI usage tracker dump interval set to 30 seconds
    10. [Thu May 10 16:38:22 2018] [notice] vlogger: started CustomLog Handler -- resuming normal operations


    OS: Debian Jessie 8.10
    i-MSCP: 1.5.x-konzeptplus


    PHP Switcher plugin used 4.0.3
    PHP versions:
    7.1.16 (Default)
    7.0.13
    5.4.45
    5.6.32


    All status are OK in i-MSCP panel.

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • We cannot help here as the log are irrelevant. You should avoid reconfiguring i-MSCP before investigate the problem source. Nothing is magic. The services don't stop working for nothing. Somehow, you have surely done something.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thank you for tried to help.


    Now, all domain on this server works. ?(
    I don't understand it, because what I only do is reconfiggure and switched one domain PHP version from 7.0.16 to 5.6.32


    Next time I'll investigate when I have time, but today I did not have more than 15 minutes.

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • Ok, I think I found the problem.


    In /var/log/phpswitcher/psw7.0-fpm.log

    Code
    1. [10-May-2018 22:06:21] NOTICE: configuration file /opt/phpswitcher/php7.0/etc/php-fpm.conf test is successful
    2. [10-May-2018 22:08:20] ERROR: unable to bind listening socket for address '127.0.0.1:10023': Address already in use (98)
    3. [10-May-2018 22:08:20] ERROR: FPM initialization failed
    4. [10-May-2018 22:57:57] ERROR: unable to bind listening socket for address '127.0.0.1:10023': Address already in use (98)
    5. [10-May-2018 22:57:57] ERROR: FPM initialization failed

    This is, when I try to change PHP version from 5.6.23 to 7.0.16

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • Well, you should use UDS instead of TCP...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks.
    And how can I do that?

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • One more info:


    Code
    1. root@server1:/var/log/phpswitcher# service php7.1-fpm status● php7.1-fpm.service - The PHP 7.1 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.1-fpm.service; enabled) Active: failed (Result: exit-code) since Fri 2018-05-11 09:17:54 CEST; 3h 23min ago Docs: man:php-fpm7.1(8) Process: 6373 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS) Process: 27195 ExecStart=/usr/sbin/php-fpm7.1 --nodaemonize --fpm-config /etc/php/7.1/fpm/php-fpm.conf (code=exited, status=78) Main PID: 27195 (code=exited, status=78)May 11 09:17:54 server1 php-fpm7.1[27195]: [11-May-2018 09:17:54] ERROR: unable to bind listening socket for address '127.0.0.1:10023': Address already in use (98)May 11 09:17:54 server1 php-fpm7.1[27195]: [11-May-2018 09:17:54] ERROR: FPM initialization failedMay 11 09:17:54 server1 systemd[1]: php7.1-fpm.service: main process exited, code=exited, status=78/n/aMay 11 09:17:54 server1 systemd[1]: Failed to start The PHP 7.1 FastCGI Process Manager.May 11 09:17:54 server1 systemd[1]: Unit php7.1-fpm.service entered failed state.


    @Nuxwin
    Can you help me in this?
    Now, all my customer's domain stoped again, imscp_panel not worked, and apache2 dead....




    Code
    1. root@server1:/var/log/phpswitcher# service apache2 status● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Drop-In: /lib/systemd/system/apache2.service.d └─forking.conf Active: inactive (dead) since Fri 2018-05-11 09:20:59 CEST; 3h 22min ago Process: 28414 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 25794 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)May 10 23:00:35 server1 systemd[1]: Reloading LSB: Apache2 web server.May 10 23:00:36 server1 apache2[6001]: Reloading web server: apache2.May 10 23:00:36 server1 systemd[1]: Reloaded LSB: Apache2 web server.May 10 23:02:05 server1 systemd[1]: Reloading LSB: Apache2 web server.May 10 23:02:06 server1 apache2[6377]: Reloading web server: apache2.May 10 23:02:06 server1 systemd[1]: Reloaded LSB: Apache2 web server.May 11 06:25:10 server1 systemd[1]: Reloading LSB: Apache2 web server.May 11 06:25:11 server1 apache2[25794]: Reloading web server: apache2.May 11 06:25:11 server1 systemd[1]: Reloaded LSB: Apache2 web server.May 11 09:20:59 server1 apache2[28414]: Stopping web server: apache2.

    On 10023 port there are postgrey running.


    Code
    1. root@server1:/var/log/phpswitcher# netstat -tulnp | grep ":10023"
    2. tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 4675/postgrey.pid -
    3. tcp6 0 0 ::1:10023 :::* LISTEN 4675/postgrey.pid -

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

    Edited once, last by Dylan ().

  • Ok, I found the command:



    Code
    1. /var/www/imscp/engine/setup/imscp-reconfigure php

    Switch PHP to UDS
    All went well, after it, imscp panel not worked, but service running.
    apache2 dead
    php7.1-fpm running


    So I start apache2 manually and now all works.
    I hope it solved the problem... :|

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS