Upgrade Debian 9 to Debian 10 FOG 1.5.7 and FOG 1.5.8
-
Hello,
I was struggling with Debian OS upgrade on FOG server. After distro upgrade FOG have a problems with displaying some stuff on website, like Storage stats, network stats and after adding new task to Host there was HTTP 500 error.
I was running:- Debian 9
- FOG 1.5.7
- php7.0
After upgrade i want to run:
- Debian 10
- FOG 1.5.8
- php7.3
Here is a list what should be done to upgrade to Debian 10 and FOG 1.5.8:
- Update FOG to 1.5.8 by running ./installfog.sh script
- Upgrade Debian 9 to Debian 10
- Modify FOG configuration file:
nano /opt/fog/.fogsettings
and replace lines
php_ver='7.0' php_verAdds='-7.0'
with
php_ver='7.3' php_verAdds='-7.3'
also in
packages
variable please change
libcurl3
to
libcurl4
4- Run
./installfog.sh
once again to install proper packages and proceed with below steps if result of installation will beStarting and checking status of web services................Failed!
4a- Kill php process:
ps aux |grep php root 417 0.0 0.9 216032 14608 ? Ss 13:57 0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
by running “kill -9 process_number”, like
kill -9 417
4b- Run
service php7.3-fpm restart
5- Enjoy, now everything is working fine! -
@mousepl Thanks for bringing this up. We might be able to consider some of those things within the install script. It’s not easy to cover for all situations but we do our best to make the installer work in most situations.
-
For anyone running into this. We’ve just pushed some changes to
dev-branch
andworking-1.6
to make updating from Debian 9 to 10 easier. You should not be able to do this following the steps outlined here:sudo -i apt-get update && apt-get upgrade apt-get dist-upgrade reboot sed -i 's/stretch/buster/g' /etc/apt/sources.list apt-get update && apt-get upgrade apt-get dist-upgrade reboot apt-get --purge autoremove cat /etc/debian_release cd fogproject git checkout dev-branch git pull cd bin ./installfog.sh