Service wont start after power failure

Discussion in 'ISPConfig 3 Priority Support' started by mphayesuk, Mar 31, 2018.

  1. mphayesuk

    mphayesuk Member HowtoForge Supporter

    Hi all, one of my hosts had a slight issue and all the VM's were powered off and I manually restarted them.

    Now I have this when apache tries to start.
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local httpd[1106]: AH00112: Warning: DocumentRoot [/var/www/apps] does not exist
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local httpd[1106]: AH00112: Warning: DocumentRoot [/var/www/apps] does not exist
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local httpd[1106]: AH00526: Syntax error on line 41 of /etc/httpd/conf/sites-enabled/000-apps.vhost:
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local httpd[1106]: Wrapper /var/www/php-fcgi-scripts/apps/.php-fcgi-starter cannot be accessed: (2)No such file or directory
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local kill[1706]: kill: cannot find process ""
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local systemd[1]: httpd.service: control process exited, code=exited status=1
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local systemd[1]: Failed to start The Apache HTTP Server.
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local systemd[1]: Unit httpd.service entered failed state.
    Mar 31 23:58:22 T1S-MGS-ISP03.t1sisp.local systemd[1]: httpd.service failed.

    Any suggestions???? The bad point is that I replicated this issue to the standby server (using isp_copy) and now that is down as well, issue with standby server is (as well as the apache error above).
    [[email protected] ~]# mysql -u root -p
    Enter password:
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

    Any help would be great.
    Just for reference this is a pre-built CentOS image downloaded from the howtoforge library, with one modification of adding a second drive which mirrors /var using the instructions (edit fstab) found on howtoforge.

    Thanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What filesystem is used on that host? Did it somehow skip running file system check at boot after poweroff?
    Journaling filesystem should be able to recover from forced offs.
    Try running file system check now. If that does not help, restore files from backup. Or maybe you have an image backup you can restore.
     
  3. mphayesuk

    mphayesuk Member HowtoForge Supporter

    Hi, sorry for my delay in responding (easter holidays). I have checked the filesystem and it all looks to be ok. Looks like I am restoring from my backup servers. I had only migrated a couple of days before this event so the original server was still in service. I will rebuild and try again on a new server and see how things go.

    Thanks for the response.
     
    till likes this.

Share This Page