Fog not loading after ubuntu updates
-
-
@george1421 said in Fog not loading after ubuntu updates:
ps aux | grep apache
-
@george1421 seem that after a couple of hours being left alone it is working again
-
@dejv said in Fog not loading after ubuntu updates:
after a couple of hours being left alone it is working again
<snark>Well then, you can almost expect it to stop working without notice some time in the future too. </snark>
With a bit less snark, if it happens again we’ll dig a bit deeper into why. Its strange that it would start again on its own. I can see the OS update messing it up, because it has happened in the past.
-
@george1421 I guess its better to just stop doing the OS updates.
I am a bit OCD about the updates
-
@dejv said in Fog not loading after ubuntu updates:
I guess its better to just stop doing the OS updates.
Don’t think it’s a good idea. You better learn how to debug an error and fix things instead.
-
@sebastian-roth you have a point there a good way to learn linux
-
Hey, issues again, yesterday I updated my ubuntu version from 20.04.6lts to 22.04.2lts however now fog is not loading :S
I checked and apache seems to be running :S any ideas
-
@dejv That does not mean apache is running.
Look at the right side and you see the “full command”
You returned the grep command where you were looking for apache.
You could do:
ps -ef | grep -P 'apache|http' | grep -v grep
Or
ps aux | grep -P 'apache|http' | grep -v grep
but from what I can apache definitely isn’t running currently.
-
@Tom-Elliott seems to be an apache related issue :s tried starting it manually and am getting the below error
root@fog:~# systemctl status apache2.service
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-08-08 12:40:08 CEST; 15s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 104535 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 120msAww 08 12:40:07 fog systemd[1]: Starting The Apache HTTP Server…
Aww 08 12:40:08 fog apachectl[104538]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp>
Aww 08 12:40:08 fog apachectl[104535]: Action ‘start’ failed.
Aww 08 12:40:08 fog apachectl[104535]: The Apache error log may have more information.
Aww 08 12:40:08 fog systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aww 08 12:40:08 fog systemd[1]: apache2.service: Failed with result ‘exit-code’.
Aww 08 12:40:08 fog systemd[1]: Failed to start The Apache HTTP Server. -
I performed the below commands and now
sudo a2dismod php7.4
sudo a2enmod php8.1
systemctl restart apache2and now on the web I am getting:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.Apache/2.4.52 (Ubuntu) Server at 192.168.0.58 Port 80
-
Also when running
sudo apachectl configtest
I was getting :
fog apachectl[941]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this messageSo had to add the below command
sudo nano /etc/httpd/conf/httpd.conf
and added : ServerName 127.0.0.1root@fog:~# sudo apachectl configtest
Syntax OKNow am getting :
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.Apache/2.4.52 (Ubuntu) Server at 192.168.0.58 Port 80
-
@dejv Please try:
systemctl -l status apache2
send out put then also you can do:
systemctl restart apache2 sleep 5 journalctl -xe
And send output here.
-
I have a server snapshot before the upgrade, I think I will revert back to it and then when it is nearly out of support will backup everything and do a fresh os installation
Aww 08 15:43:13 fog systemd[1]: FOGImageSize.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit FOGImageSize.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 255.
Aww 08 15:43:13 fog systemd[1]: FOGImageSize.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit FOGImageSize.service has entered the ‘failed’ state with result ‘exit-code’.
Aww 08 15:43:13 fog systemd[1]: FOGMulticastManager.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit FOGMulticastManager.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 255.
Aww 08 15:43:13 fog systemd[1]: FOGMulticastManager.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit FOGMulticastManager.service has entered the ‘failed’ state with result ‘exit-code’.
Aww 08 15:43:13 fog systemd[1]: FOGScheduler.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit FOGScheduler.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 255.
Aww 08 15:43:13 fog systemd[1]: FOGScheduler.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit FOGScheduler.service has entered the ‘failed’ state with result ‘exit-code’.
Aww 08 15:43:13 fog systemd[1]: FOGSnapinReplicator.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit FOGSnapinReplicator.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 255.
Aww 08 15:43:13 fog systemd[1]: FOGSnapinReplicator.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit FOGSnapinReplicator.service has entered the ‘failed’ state with result ‘exit-code’.
lines 3405-3460/3460 (END) -
@dejv Have you attempted to reinstall fog after performing software updates?
Often this can fix things.
Before you just push the butotn, if indeed php is 8.1 you may want to edit the file /opt/fog/.fogsettings
look for instances of php where 7.4 is defined and redefine to php 8.1 as appropriate, then rerun the installer.
Things shoudl fix themselves a bit better.
-
@dejv changed php version as you instructed, redownloaded latest version, installed and is working ok thanks a lot