Update 1.5.10 Failing @ libapache2-mod-php
-
@jisd
the log file says that it did not find the php-mysql module. to ensure run please the following command to display the installed modulesdpkg --get-selections | grep -i php
and this please to see which php version is activated:
php -v
and display the results again
Best Regards
Youzersef -
@youzersef said in Update 1.5.10 Failing @ libapache2-mod-php:
php -v
Here you go, thanks again for taking the time.
administrator@fogserver:~$ dpkg --get-selections | grep -i php libapache2-mod-php7.4 install php-common install php7.4 install php7.4-bcmath install php7.4-cli install php7.4-common install php7.4-curl install php7.4-fpm install php7.4-gd install php7.4-json install php7.4-ldap install php7.4-mbstring install php7.4-mysql install php7.4-opcache install php7.4-readline install
administrator@fogserver:~$ php -v PHP 7.4.9 (cli) (built: Jul 5 2021 13:33:00) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies
-
i can see that you have only the php7.4 modules. The script tries to check the php modules like “libapache2-mod-php” which is not exist. Am not sure if u really need the php modules. you can try to install the modules manually but please create snapshot before you do this move.
apt-get update apt-get install php php-bcmath php-cli php-common php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql
and try to update again
-
-
Hey I thought that was odd too, but this did not work sadly. I’ll post below the results of running the commands you listed.
Update failed at the same spot.
administrator@fogserver:~$ sudo apt-get update [sudo] password for administrator: Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease Ign:2 http://us.archive.ubuntu.com/ubuntu groovy InRelease Ign:3 http://us.archive.ubuntu.com/ubuntu groovy-security InRelease Ign:4 http://us.archive.ubuntu.com/ubuntu groovy-updates InRelease Ign:5 http://us.archive.ubuntu.com/ubuntu groovy-backports InRelease Err:6 http://us.archive.ubuntu.com/ubuntu groovy Release 404 Not Found [IP: 91.189.91.39 80] Err:7 http://us.archive.ubuntu.com/ubuntu groovy-security Release 404 Not Found [IP: 91.189.91.39 80] Err:8 http://us.archive.ubuntu.com/ubuntu groovy-updates Release 404 Not Found [IP: 91.189.91.39 80] Err:9 http://us.archive.ubuntu.com/ubuntu groovy-backports Release 404 Not Found [IP: 91.189.91.39 80] Reading package lists... Done E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. administrator@fogserver:~$ sudo apt-get install php php-bcmath php-cli php-common php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php7.4' instead of 'php' Note, selecting 'php7.4-bcmath' instead of 'php-bcmath' Note, selecting 'php7.4-cli' instead of 'php-cli' Note, selecting 'php7.4-curl' instead of 'php-curl' Note, selecting 'php7.4-fpm' instead of 'php-fpm' Note, selecting 'php7.4-gd' instead of 'php-gd' Note, selecting 'php7.4-json' instead of 'php-json' Note, selecting 'php7.4-ldap' instead of 'php-ldap' Note, selecting 'php7.4-mbstring' instead of 'php-mbstring' E: Unable to locate package php-mysql administrator@fogserver:~$ sudo apt-get install libapache2-mod-php Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libapache2-mod-php7.4' instead of 'libapache2-mod-php' libapache2-mod-php7.4 is already the newest version (7.4.9-1ubuntu1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-
@jisd Have you thought of trying to update to an LTS release or newer release in general. Ubuntu 20.10 no longer has support so the repositories its trying to access no longer exist. Updating to like 22.04 LTS would help resolve that part which hopefully should help with being able to install the package you failed on.
-
Thank you for the suggestion, I had attempted to update the OS twice today to see if that would help but both times when the update was finished I had lost network manager completely and could not get it back. I tried to reinstall it but it would not take.
I searched for a few hours to see if anyone else had an issue upgrading to 22.04 and losing network manager but had no luck. Saw some older versions do this and it gave a command on how to manually reinstall the network-manager but that command failed also.
-
@jisd Depending on your setup. You might be better off starting from scratch with a new install of ubuntu 22.04. But that all depends on your setup and if you need to keep your images.
-
I know they are wanting to keep thier images. I guess if there is a way to back them up and migrate them i’d be more open to that idea.
I just tried to update it again and was able to get to 22.04 successfully.
The Fog update made it much further past the packages but it’s failing on Web Services now. The 4614/4615 has changed every time i’ve ran the update if that matters.
Can post the full log also if needed. Thanks again for everyone’s input.
* Starting and checking status of web services................Failed! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! The installer was not able to run all the way to the end as !! !! something has caused it to fail. The following few lines are !! !! from the error log file which might help us figure out what's !! !! wrong. Please add this information when reporting an error. !! !! As well you might want to take a look at the full error log !! !! in /home/administrator/Downloads/fogproject-1.5.10/bin/error_logs/fog_error_1.5.10.log !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ├─4614 "php-fpm: pool www" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" └─4615 "php-fpm: pool www" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" Apr 18 15:51:11 fogserver systemd[1]: Starting The PHP 8.1 FastCGI Process Manager... Apr 18 15:51:11 fogserver systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
-
@jisd Please post the full logs for fog and see if there is also a log for the Apache web service.