• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Update 1.5.10 Failing @ libapache2-mod-php

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    13
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jisd
      last edited by

      New user for fog. Taking over an existing system, sorry if this is an easy one but haven’t used Unbuntu since College.

      Trying to run the update and failing at this spot on the screen.
      Server is running Kubuntu 20.10 (I see there is an update for this as well, not sure if that has to do with it)

      Thanks for any help, and if this has already been posted/solved sorry for the double post but I could not find it.

      7e1f6e36-182e-4eed-b059-7593c9d28ced-image.png

      1 Reply Last reply Reply Quote 0
      • Y
        youzersef
        last edited by

        Hi,

        can you display the log file?

        Best Regards

        Youzersef

        J 1 Reply Last reply Reply Quote 0
        • J
          jisd @youzersef
          last edited by Sebastian Roth

          @youzersef Here you go!

          /usr/bin/lsb_release
          /usr/bin/systemctl
          systemd
          ln: failed to create symbolic link '/lib/systemd/system/mysql.service': File exists
          ln: failed to create symbolic link '/lib/systemd/system/mysqld.service': File exists
          ln: failed to create symbolic link '/etc/systemd/system/mysql.service': File exists
          ln: failed to create symbolic link '/etc/systemd/system/mysqld.service': File exists
          /usr/sbin/iptables
          /opt/fog/.fogsettings
          Reading package lists...
          Building dependency tree...
          Reading state information...
          curl is already the newest version (7.68.0-1ubuntu4.3).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Testing DNS name resolution (neverssl.com)... OK
          Testing HTTP connection (http://neverssl.com)... OK
          Testing HTTPS connection (https://github.com)... OK
          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...
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-security Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-updates Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-backports Release' does not have a Release file.
          Adding component(s) 'universe' to all repositories.
          Added component universe
          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...
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-security Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-updates Release' does not have a Release file.
          E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-backports Release' does not have a Release file.
          ii  apache2        2.4.46-1ubuntu1.2 amd64        Apache HTTP Server
          ii  bc             1.07.1-2build2 amd64        GNU bc arbitrary precision calculator language
          ii  build-essential 12.8ubuntu3  amd64        Informational list of build-essential packages
          ii  cpp            4:10.2.0-1ubuntu1 amd64        GNU C preprocessor (cpp)
          ii  curl           7.68.0-1ubuntu4.3 amd64        command line tool for transferring data with URL syntax
          ii  g++            4:10.2.0-1ubuntu1 amd64        GNU C++ compiler
          ii  gawk           1:5.0.1+dfsg-1 amd64        GNU awk, a pattern scanning and processing language
          ii  gcc            4:10.2.0-1ubuntu1 amd64        GNU C compiler
          ii  genisoimage    9:1.1.11-3.1ubuntu2 amd64        Creates ISO-9660 CD-ROM filesystem images
          ii  git            1:2.27.0-1ubuntu1.1 amd64        fast, scalable, distributed revision control system
          ii  gzip           1.10-2ubuntu1.1 amd64        GNU compression utilities
          ii  htmldoc        1.9.8-2      amd64        HTML processor that generates indexed HTML, PS, and PDF
          ii  isolinux       3:6.04~git20190206.bf6db5b4+dfsg1-3 all          collection of bootloaders (ISO 9660 bootloader)
          ii  lftp           4.8.4-2build3 amd64        Sophisticated command-line FTP/HTTP/BitTorrent client programs
          libapache2-mod-php7.4
          Reading package lists...
          Building dependency tree...
          Reading state information...
          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.
          ii  libc6:amd64    2.32-0ubuntu3 amd64        GNU C Library: Shared libraries
          ii  libcurl4:amd64 7.68.0-1ubuntu4.3 amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
          ii  liblzma-dev:amd64 5.2.4-1ubuntu1 amd64        XZ-format compression library - development files
          ii  m4             1.4.18-4     amd64        macro processing language
          mariadb-client-10.3
          mariadb-client-core-10.3
          mariadb-client
          ii  mariadb-client 1:10.3.29-0ubuntu0.20.10.1 all          MariaDB database client (metapackage depending on the latest version)
          ii  mariadb-client 1:10.3.29-0ubuntu0.20.10.1 all          MariaDB database client (metapackage depending on the latest version)
          mariadb-server-core-10.3
          mariadb-server-10.3
          mariadb-server
          ii  mariadb-server 1:10.3.29-0ubuntu0.20.10.1 all          MariaDB database server (metapackage depending on the latest version)
          ii  mariadb-server 1:10.3.29-0ubuntu0.20.10.1 all          MariaDB database server (metapackage depending on the latest version)
          ii  net-tools      1.60+git20180626.aebd88e-1ubuntu2 amd64        NET-3 networking toolkit
          ii  nfs-kernel-server 1:1.3.4-2.5ubuntu6.1 amd64        support for NFS kernel server
          ii  openssh-server 1:8.3p1-1ubuntu0.1 amd64        secure shell (SSH) server, for secure access from remote machines
          php7.4-gd
          php7.4-cli
          php7.4-fpm
          php-common
          php7.4-json
          php7.4-curl
          php7.4
          php7.4-ldap
          php7.4-opcache
          php7.4-mysql
          php7.4-mbstring
          php7.4-readline
          php7.4-common
          php7.4-bcmath
          libapache2-mod-php7.4
          Reading package lists...
          Building dependency tree...
          Reading state information...
          php7.4 is already the newest version (7.4.9-1ubuntu1.2).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          php-common
          ii  php-common     2:76         all          Common files for PHP packages
          dpkg-query: no packages found matching php-mysql
          ii  tar            1.30+dfsg-7ubuntu0.20.10.1 amd64        GNU version of the tar archiving utility
          ii  tftpd-hpa      5.2+20150808-1.1ubuntu1 amd64        HPA's tftp server
          ii  tftp-hpa       5.2+20150808-1.1ubuntu1 amd64        HPA's tftp client
          ii  unzip          6.0-25ubuntu1 amd64        De-archiver for .zip files
          ii  vsftpd         3.0.3-12     amd64        lightweight, efficient FTP server written for security
          ii  wget           1.20.3-1ubuntu1 amd64        retrieves files from the web
          ii  zlib1g:amd64   1:1.2.11.dfsg-2ubuntu4 amd64        compression library - runtime
          Reading package lists...
          Building dependency tree...
          Reading state information...
          apache2 is already the newest version (2.4.46-1ubuntu1.2).
          bc is already the newest version (1.07.1-2build2).
          build-essential is already the newest version (12.8ubuntu3).
          cpp is already the newest version (4:10.2.0-1ubuntu1).
          curl is already the newest version (7.68.0-1ubuntu4.3).
          g++ is already the newest version (4:10.2.0-1ubuntu1).
          gawk is already the newest version (1:5.0.1+dfsg-1).
          gcc is already the newest version (4:10.2.0-1ubuntu1).
          genisoimage is already the newest version (9:1.1.11-3.1ubuntu2).
          git is already the newest version (1:2.27.0-1ubuntu1.1).
          gzip is already the newest version (1.10-2ubuntu1.1).
          htmldoc is already the newest version (1.9.8-2).
          isolinux is already the newest version (3:6.04~git20190206.bf6db5b4+dfsg1-3).
          lftp is already the newest version (4.8.4-2build3).
          libapache2-mod-php7.4 is already the newest version (7.4.9-1ubuntu1.2).
          libc6 is already the newest version (2.32-0ubuntu3).
          libcurl4 is already the newest version (7.68.0-1ubuntu4.3).
          liblzma-dev is already the newest version (5.2.4-1ubuntu1).
          m4 is already the newest version (1.4.18-4).
          mariadb-client is already the newest version (1:10.3.29-0ubuntu0.20.10.1).
          mariadb-server is already the newest version (1:10.3.29-0ubuntu0.20.10.1).
          net-tools is already the newest version (1.60+git20180626.aebd88e-1ubuntu2).
          nfs-kernel-server is already the newest version (1:1.3.4-2.5ubuntu6.1).
          openssh-server is already the newest version (1:8.3p1-1ubuntu0.1).
          php-common is already the newest version (2:76).
          php7.4 is already the newest version (7.4.9-1ubuntu1.2).
          tar is already the newest version (1.30+dfsg-7ubuntu0.20.10.1).
          tftp-hpa is already the newest version (5.2+20150808-1.1ubuntu1).
          tftpd-hpa is already the newest version (5.2+20150808-1.1ubuntu1).
          unzip is already the newest version (6.0-25ubuntu1).
          vsftpd is already the newest version (3.0.3-12).
          wget is already the newest version (1.20.3-1ubuntu1).
          zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu4).
          Calculating upgrade...
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          ii  apache2        2.4.46-1ubuntu1.2 amd64        Apache HTTP Server
          ii  bc             1.07.1-2build2 amd64        GNU bc arbitrary precision calculator language
          ii  build-essential 12.8ubuntu3  amd64        Informational list of build-essential packages
          ii  cpp            4:10.2.0-1ubuntu1 amd64        GNU C preprocessor (cpp)
          ii  curl           7.68.0-1ubuntu4.3 amd64        command line tool for transferring data with URL syntax
          ii  g++            4:10.2.0-1ubuntu1 amd64        GNU C++ compiler
          ii  gawk           1:5.0.1+dfsg-1 amd64        GNU awk, a pattern scanning and processing language
          ii  gcc            4:10.2.0-1ubuntu1 amd64        GNU C compiler
          ii  genisoimage    9:1.1.11-3.1ubuntu2 amd64        Creates ISO-9660 CD-ROM filesystem images
          ii  git            1:2.27.0-1ubuntu1.1 amd64        fast, scalable, distributed revision control system
          ii  gzip           1.10-2ubuntu1.1 amd64        GNU compression utilities
          ii  htmldoc        1.9.8-2      amd64        HTML processor that generates indexed HTML, PS, and PDF
          ii  isolinux       3:6.04~git20190206.bf6db5b4+dfsg1-3 all          collection of bootloaders (ISO 9660 bootloader)
          ii  lftp           4.8.4-2build3 amd64        Sophisticated command-line FTP/HTTP/BitTorrent client programs
          
          Y H 2 Replies Last reply Reply Quote 0
          • Y
            youzersef @jisd
            last edited by youzersef

            @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 modules

            dpkg --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

            J 1 Reply Last reply Reply Quote 0
            • J
              jisd @youzersef
              last edited by Sebastian Roth

              @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
              
              Y 2 Replies Last reply Reply Quote 0
              • Y
                youzersef @jisd
                last edited by youzersef

                @jisd

                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

                J 1 Reply Last reply Reply Quote 1
                • Y
                  youzersef @jisd
                  last edited by

                  @jisd

                  sorry i forgot also the

                  
                  apt-get install libapache2-mod-php
                  
                  1 Reply Last reply Reply Quote 0
                  • J
                    jisd @youzersef
                    last edited by Sebastian Roth

                    @youzersef

                    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.
                    
                    1 Reply Last reply Reply Quote 0
                    • H
                      hammerc807 @jisd
                      last edited by

                      @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.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jisd @hammerc807
                        last edited by

                        @hammerc807

                        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.

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hammerc807 @jisd
                          last edited by

                          @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.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jisd @hammerc807
                            last edited by Sebastian Roth

                            @hammerc807

                            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.
                            
                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hammerc807 @jisd
                              last edited by

                              @jisd Please post the full logs for fog and see if there is also a log for the Apache web service.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post

                              218

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project