Restarting apache2 for fog vhost...failed! Can't update
-
I’m trying to update two nodes but they fail out towards the end at “Restarting apache2 for fog vhost”
I’m not sure what logs are relevant to this. Let me know and I’ll post them. Both nodes are running ubuntu 15.10, updating using git.
-
@moses In the bin directory where you go to install fog, you will find a folder called “error_logs”.
In there, there will be logs with the revision number appended to them. Find the latest one and look through it. That’s where all the error output is redirected to.
Post a copy here if you need help figuring out what the errors mean.
-
Tom suggested the same thing in the other thread:
@Tom-Elliott said:
@moses in the installer’s bin/error_logs/fog_error_<versionNumberOfInstall>.log what’s at the end of the file?
-
Here’s the whole log:
ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-gd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 GD module for php5 ii php5-cli 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 command-line interpreter for the php5 scripting language ii php5-curl 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 CURL module for php5 ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-client 5.6.28-0ubuntu0.15.10.1 all MySQL database client (metapackage depending on the latest version) ii tftpd-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp server ii tftp-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp client ii nfs-kernel-server 1:1.2.8-9ubuntu10 amd64 support for NFS kernel server ii vsftpd 3.0.2-20ubuntu1 amd64 lightweight, efficient FTP server written for security ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit ii wget 1.16.1-1ubuntu1 amd64 retrieves files from the web ii xinetd 1:2.3.15-4 amd64 replacement for inetd with many enhancements ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal ii tar 1.27.1-2 amd64 GNU version of the tar archiving utility ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages ii cpp 4:5.2.1-3ubuntu1 amd64 GNU C preprocessor (cpp) ii gcc 4:5.2.1-3ubuntu1 amd64 GNU C compiler ii g++ 4:5.2.1-3ubuntu1 amd64 GNU C++ compiler ii m4 1.4.17-4 amd64 macro processing language ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF ii lftp 4.6.3a-1 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs ii openssh-server 1:6.9p1-2ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines ii php5-mcrypt 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MCrypt module for php5 php5-mysqlnd-ms php5-mysqlnd ii php5-mysqlnd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MySQL module for php5 (Native Driver) ii curl 7.43.0-1ubuntu2.1 amd64 command line tool for transferring data with URL syntax ii libc6:amd64 2.21-0ubuntu4.1 amd64 GNU C Library: Shared libraries ii libcurl3:amd64 7.43.0-1ubuntu2.1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime ii php5-fpm 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii libapache2-mod-php5 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Site 001-fog disabled. To activate the new configuration, you need to run: service apache2 reload mysqlnd mcrypt cp: ‘/etc/apache2/mods-available/php5.conf’ and ‘/etc/apache2/mods-enabled/php5.conf’ are the same file cp: ‘/etc/apache2/mods-available/php5.load’ and ‘/etc/apache2/mods-enabled/php5.load’ are the same file apache2.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable apache2 Synchronizing state of php5-fpm.service with SysV init with /lib/systemd/systemd-sysv-install... Executing /lib/systemd/systemd-sysv-install enable php5-fpm insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). Signature ok subject=/CN=192.168.2.66 Getting CA Private Key ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists Module php5 already enabled Module rewrite already enabled Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'. ^C administrator@SVR-MSN-IMAGING:~/fogproject/bin/error_logs$ ls fog_error_6409.log fog_error_6476.log fog_error_6503.log fog_error_6549.log fog_error_6617.log fog_error_6631.log fog_error_6415.log fog_error_6495.log fog_error_6505.log fog_error_6609.log fog_error_6629.log foginstall.log administrator@SVR-MSN-IMAGING:~/fogproject/bin/error_logs$ tail -100f fog_error_6631.log ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-gd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 GD module for php5 ii php5-cli 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 command-line interpreter for the php5 scripting language ii php5-curl 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 CURL module for php5 ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-client 5.6.28-0ubuntu0.15.10.1 all MySQL database client (metapackage depending on the latest version) ii tftpd-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp server ii tftp-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp client ii nfs-kernel-server 1:1.2.8-9ubuntu10 amd64 support for NFS kernel server ii vsftpd 3.0.2-20ubuntu1 amd64 lightweight, efficient FTP server written for security ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit ii wget 1.16.1-1ubuntu1 amd64 retrieves files from the web ii xinetd 1:2.3.15-4 amd64 replacement for inetd with many enhancements ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal ii tar 1.27.1-2 amd64 GNU version of the tar archiving utility ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages ii cpp 4:5.2.1-3ubuntu1 amd64 GNU C preprocessor (cpp) ii gcc 4:5.2.1-3ubuntu1 amd64 GNU C compiler ii g++ 4:5.2.1-3ubuntu1 amd64 GNU C++ compiler ii m4 1.4.17-4 amd64 macro processing language ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF ii lftp 4.6.3a-1 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs ii openssh-server 1:6.9p1-2ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines ii php5-mcrypt 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MCrypt module for php5 php5-mysqlnd-ms php5-mysqlnd ii php5-mysqlnd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MySQL module for php5 (Native Driver) ii curl 7.43.0-1ubuntu2.1 amd64 command line tool for transferring data with URL syntax ii libc6:amd64 2.21-0ubuntu4.1 amd64 GNU C Library: Shared libraries ii libcurl3:amd64 7.43.0-1ubuntu2.1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime ii php5-fpm 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii libapache2-mod-php5 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Site 001-fog disabled. To activate the new configuration, you need to run: service apache2 reload mysqlnd mcrypt cp: ‘/etc/apache2/mods-available/php5.conf’ and ‘/etc/apache2/mods-enabled/php5.conf’ are the same file cp: ‘/etc/apache2/mods-available/php5.load’ and ‘/etc/apache2/mods-enabled/php5.load’ are the same file apache2.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable apache2 Synchronizing state of php5-fpm.service with SysV init with /lib/systemd/systemd-sysv-install... Executing /lib/systemd/systemd-sysv-install enable php5-fpm insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). Signature ok subject=/CN=192.168.2.66 Getting CA Private Key ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists Module php5 already enabled Module rewrite already enabled Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'.
I think this is the relevant portion:
Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'.
If I’m reading things right, apache starts, but the installer doesn’t see it? Not 100% sure.
-
-
@Sebastian-Roth Similarly then, I’d probably be better off moving those nodes to a different distro.
-
@moses can you manually uninstall all php files?
sudo apt-get purge -yq php* lib*php*; sudo rm -rf /etc/php*;
Then rerun the fog installer?
-
@Tom-Elliott That did the trick! Thanks, Tom