Error 503 with http after migration

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Nov 22, 2020.

  1. Tom John

    Tom John Member HowtoForge Supporter

    Hi guys,
    i installed a new server with ubuntu 20.04 and ISPConfig.
    after doing the migration i get an error when i want to visit the website in the browser:
    error 503 service not available
    when i access ISPConfig there is no problem with it.
    anyone has an idea where i can start ?
    thanks a lot for your kind help
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Take a look at the error.log for that website, you can find it in the log folder of that site.
     
  3. Tom John

    Tom John Member HowtoForge Supporter

    Hi,
    thanks for your answer.
    the problem is on all websites of the server only the website of ISPConfig works.
    this is the logfile
    Code:
    [Sun Nov 22 18:15:05.815296 2020] [proxy:error] [pid 259340] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web34.sock (*) failed
    [Sun Nov 22 18:15:05.815384 2020] [proxy_fcgi:error] [pid 259340] [client 51.79.100.13:60952] AH01079: failed to make connection to backend: httpd-UDS
    [Sun Nov 22 18:15:06.258062 2020] [proxy:error] [pid 259076] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web34.sock (*) failed
    [Sun Nov 22 18:15:06.258116 2020] [proxy_fcgi:error] [pid 259076] [client 51.79.100.13:32818] AH01079: failed to make connection to backend: httpd-UDS
    [Sun Nov 22 18:24:02.233019 2020] [proxy:error] [pid 259373] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web34.sock (*) failed
    [Sun Nov 22 18:24:02.233170 2020] [proxy_fcgi:error] [pid 259373] [client 165.22.121.12:54612] AH01079: failed to make connection to backend: httpd-UDS
    [Sun Nov 22 18:24:02.365108 2020] [proxy:error] [pid 259076] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web34.sock (*) failed
    [Sun Nov 22 18:24:02.365179 2020] [proxy_fcgi:error] [pid 259076] [client 165.22.121.12:54662] AH01079: failed to make connection to backend: httpd-UDS
    [Sun Nov 22 18:24:07.490125 2020] [proxy:error] [pid 259340] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web34.sock (*) failed
    [Sun Nov 22 18:24:07.490279 2020] [proxy_fcgi:error] [pid 259340] [client 165.22.121.12:55468] AH01079: failed to make connection to backend: httpd-UDS
    
    
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Have you followed the perfect server tutorial and installed all dependencies?
     
  5. Tom John

    Tom John Member HowtoForge Supporter

    yes i have, maybe i made an error do you recommend to install again?
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Does the folder /var/lib/php7.4-fpm exist?
     
  7. Tom John

    Tom John Member HowtoForge Supporter

    yes it exists
    Code:
    [email protected]:/var/www/1-2host.com/log# ls /var/lib/php7.4-fpm/
    web10.sock  web12.sock  web4.sock  web6.sock  web8.sock
    web11.sock  web3.sock   web5.sock  web7.sock  web9.sock
    
    But not for all website
    for one i tested web34.sock does not exist
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    And those sites don't work either? What's the error you see in the log of web6 for example?

    Which PHP versions are set for those webs and are the paths configured correctly for those in ISPConfig?
     
  9. Tom John

    Tom John Member HowtoForge Supporter

    this is the error log from web 6
    Code:
    [Sun Nov 22 19:40:29.375636 2020] [proxy_fcgi:error] [pid 269585] [client 31.14.63.70:59862] AH01079: failed to make connection to backend: httpd-UDS
    [Sun Nov 22 19:40:29.376606 2020] [proxy:error] [pid 269585] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.4-fpm/web6.sock (*) failed
    [Sun Nov 22 19:40:29.376637 2020] [proxy_fcgi:error] [pid 269585] [client 31.14.63.70:59862] AH01079: failed to make connection to backend: httpd-UDS
    
    
    none of these sites are working
    How can i check the php version for these sides and the path?
     
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Under System -> Server Settings you should find the settings for the default PHP version. And you might want to check if all services are up:
    Code:
    systemctl list-units --failed
     
  11. Tom John

    Tom John Member HowtoForge Supporter

    Code:
    [email protected]:/var/www/mexico.teneriffa-akupunktur.com/log# systemctl list-units --failed
      UNIT                                 LOAD   ACTIVE SUB    DESCRIPTION                      
    ● certbot.service                      loaded failed failed Certbot                          
    ● php7.4-fpm.service                   loaded failed failed The PHP 7.4 FastCGI Process Manager
    ● systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured
    
    
    it seems that the installation was not ok.
    does it make sense to reinstall the server?
     
    Last edited: Nov 22, 2020
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Probably not. It would be more work than fixing the installation now.
    Find out why those services are not starting. Start from command line like this to see error messages:
    Code:
    systemctl start php7.4-fpm.service
    Then
    Code:
    systemctl status php7.4-fpm.service
     
  13. Tom John

    Tom John Member HowtoForge Supporter

    Code:
    [email protected]:~# systemctl status php7.4-fpm.service
    ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
         Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
         Active: active (running) since Sun 2020-11-22 22:00:23 CET; 9s ago
           Docs: man:php-fpm7.4(8)
        Process: 276954 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc>
       Main PID: 276907 (php-fpm7.4)
         Status: "Ready to handle connections"
          Tasks: 39 (limit: 9487)
         Memory: 45.8M
         CGroup: /system.slice/php7.4-fpm.service
                 ├─276907 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
                 ├─276915 php-fpm: pool web10
                 ├─276916 php-fpm: pool web10
                 ├─276917 php-fpm: pool web11
                 ├─276918 php-fpm: pool web11
                 ├─276919 php-fpm: pool web12
                 ├─276920 php-fpm: pool web12
                 ├─276921 php-fpm: pool web15
                 ├─276922 php-fpm: pool web15
                 ├─276923 php-fpm: pool web19
                 ├─276924 php-fpm: pool web19
                 ├─276925 php-fpm: pool web21
                 ├─276926 php-fpm: pool web21
    lines 1-23
    
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Alright, check to see if your sites work now.
     
  15. Tom John

    Tom John Member HowtoForge Supporter

    yes the website works now
    whats about the other errors?
    thanks a lot for help me really ;)
     
  16. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Try to start those other 2 services aswell.

    No problem :)
     
  17. Tom John

    Tom John Member HowtoForge Supporter

    php-fpm is running
    certbot i not get another problem
    the only system thats not working is systemd-networkd
    Code:
    [email protected]:~# systemctl list-units --failed
      UNIT                                 LOAD   ACTIVE SUB    DESCRIPTION                     
    ● systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured
    
    
     
  18. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What's the output of
    Code:
    systemctl status systemd-networkd-wait-online
     
  19. Tom John

    Tom John Member HowtoForge Supporter

    Code:
    [email protected]:~# systemctl status systemd-networkd-wait-online
    ● systemd-networkd-wait-online.service - Wait for Network to be Configured
         Loaded: loaded (/lib/systemd/system/systemd-networkd-wait-online.service; enabled-runtime; vendor >
         Active: failed (Result: exit-code) since Sun 2020-11-22 11:08:38 CET; 11h ago
           Docs: man:systemd-networkd-wait-online.service(8)
       Main PID: 2139 (code=exited, status=1/FAILURE)
    
    Nov 22 11:06:38 server4.cl-i.net systemd[1]: Starting Wait for Network to be Configured...
    Nov 22 11:08:38 server4.cl-i.net systemd-networkd-wait-online[2139]: Event loop failed: Connection time>
    Nov 22 11:08:38 server4.cl-i.net systemd[1]: systemd-networkd-wait-online.service: Main process exited,>
    Nov 22 11:08:38 server4.cl-i.net systemd[1]: systemd-networkd-wait-online.service: Failed with result '>
    Nov 22 11:08:38 server4.cl-i.net systemd[1]: Failed to start Wait for Network to be Configured.
    lines 1-11/11 (END)
    
    
     
  20. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You did not say what migration? And how?
    Seems your host can not start networking. Again, see why that is failing by trying to start from command line to see error messages.
    Code:
    systemctl start systemd-networkd-wait-online
    If that does not allow you to start, try commanding with stop it first with systemctl.
    Have you tried rebooting? What kind of hardware is this, are you using it from console? How was network configured? What are the settings now, are they what you expect?
    Code:
    ip a
    ip r
     
    Th0m likes this.

Share This Page