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

Failed upgrade to latest 1.5.7.xxx

Scheduled Pinned Locked Moved Solved
FOG Problems
2
27
1.2k
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.
  • A
    astrugatch
    last edited by Sebastian Roth Feb 6, 2020, 2:46 PM Feb 3, 2020, 4:10 PM

    Tried to upgrade my system (1.5.7 on Ubuntu 18.04) to latest 1.5.7.xxx

    Git pull master and run the installer and this is what I get:

    Installing LSB_Release as needed
     * Attempting to get release information.......................Done
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 1.5.8 Installer/Updater
    
    
     * Found FOG Settings from previous install at: /opt/fog/.fogsettings
    
     * Performing upgrade using these settings
    
    
      Starting Debian based Installation
    
    
    
       ######################################################################
       #     FOG now has everything it needs for this setup, but please     #
       #   understand that this script will overwrite any setting you may   #
       #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
       ######################################################################
       # It is not recommended that you install this on a production system #
       #        as this script modifies many of your system                 #
    ######################################################################
       #             This script should be run by the root user.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Interface: eth0
     * Server IP Address: REDACTED
     * Server Subnet Mask: 255.255.255.0
     * Server Hostname: REDACTED
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: No
     * DHCP will NOT be setup but you must setup your
     | current DHCP server to use FOG for PXE services.
    
     * On a Linux DHCP server you must set: next-server and filename
    
     * On a Windows DHCP server you must set options 066 and 067
    
     * Option 066/next-server is the IP of the FOG Server: (e.g. 10.10.70.4)
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
    
     * Are you sure you wish to continue (Y/N) y
    
     * Installation Started
    
     * Testing internet connection.................................Done
     * Adding repository if needed.................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
    	apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip htmldoc isolinux lftp libapache2-mod-php7.2 libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php7.2 php7.2-bcmath php7.2-cli php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g 
    
    
     * Skipping package:   apache2.................................(Already Installed)
     * Skipping package:   bc......................................(Already Installed)
     * Skipping package:   build-essential.........................(Already Installed)
     * Skipping package:   cpp.....................................(Already Installed)
     * Installing package: curl....................................Failed! (Will try later)
     * Skipping package:   g++.....................................(Already Installed)
     * Skipping package:   gawk....................................(Already Installed)
     * Skipping package:   gcc.....................................(Already Installed)
     * Skipping package:   genisoimage.............................(Already Installed)
     * Skipping package:   git.....................................(Already Installed)
     * Skipping package:   gzip....................................(Already Installed)
     * Skipping package:   htmldoc.................................(Already Installed)
     * Skipping package:   isolinux................................(Already Installed)
     * Skipping package:   lftp....................................(Already Installed)
     * Installing package: libapache2-mod-php7.2...................OK
     * Skipping package:   libc6...................................(Already Installed)
     * Installing package: libcurl4................................OK
     * Skipping package:   liblzma-dev.............................(Already Installed)
     * Skipping package:   m4......................................(Already Installed)
     * Installing package: mariadb-client..........................Failed! (Will try later)
     * Installing package: mariadb-server..........................Failed! (Will try later)
     * Skipping package:   net-tools...............................(Already Installed)
     * Skipping package:   nfs-kernel-server.......................(Already Installed)
     * Skipping package:   openssh-server..........................(Already Installed)
     * Installing package: php7.2..................................OK
     * Installing package: php7.2-bcmath...........................OK
     * Skipping package:   php7.2-cli..............................(Already Installed)
     * Installing package: php7.2-curl.............................OK
     * Installing package: php7.2-fpm..............................OK
     * Installing package: php7.2-gd...............................OK
     * Skipping package:   php7.2-json.............................(Already Installed)
     * Installing package: php7.2-ldap.............................OK
     * Installing package: php7.2-mbstring.........................OK
     * Installing package: php7.2-mysql............................OK
     * Skipping package:   php7.2-mysql............................(Already Installed)
     * Skipping package:   php-gettext.............................(Already Installed)
     * Skipping package: sysv-rc-conf..............................(Does not exist)
     * Skipping package:   tar.....................................(Already Installed)
     * Skipping package:   tftpd-hpa...............................(Already Installed)
     * Skipping package:   tftp-hpa................................(Already Installed)
     * Skipping package:   unzip...................................(Already Installed)
     * Skipping package:   vsftpd..................................(Already Installed)
     * Skipping package:   wget....................................(Already Installed)
     * Skipping package:   xinetd..................................(Already Installed)
     * Skipping package:   zlib1g..................................(Already Installed)
     * Updating packages as needed.................................OK
     * Installing now everything is updated........................OK
    
     * Confirming package installation
    
     * Checking package: apache2...................................Failed!
    ]0;root@fogimaging: ~/trunk/binroot@fogimaging:~/trunk/bin# reboot
    
    

    After this completes I cannot access the web console at all (not a failed database connection, its as if apache isn’t running at all) this persists even if I restart apache manually.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Feb 3, 2020, 5:41 PM

      @astrugatch Can you please post the last 20 lines of the log files you find in fogproject/bin/error_logs/!

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • A
        astrugatch
        last edited by Feb 3, 2020, 6:23 PM

        Sorry I needed the server and rolled back to a snapshot so I don’t have the log. Ill take another snapshot in a little while and run the install again.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Feb 3, 2020, 6:25 PM

          @astrugatch The master branch being on 1.5.8 was kind of an issue which we have pulled back now. Sorry for that. For upgrading to the next release you need to wait a little more.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • A
            astrugatch
            last edited by Feb 3, 2020, 6:54 PM

            @Sebastian-Roth

            No worries. Let me know if you need someone to test. I can clone / snapshot my setup pretty quickly.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth Feb 3, 2020, 1:40 PM Feb 3, 2020, 7:34 PM

              @astrugatch I just did a test installing 1.5.7 on Ubuntu 18.04 and then trying to pre-1.5.8 (pretty much exactly what you had before). I don’t seem to get the same issue than what you posted.

               * Installing package: curl....................................Failed! (Will try later)
              ...
               * Installing package: mariadb-client..........................Failed! (Will try later)
               * Installing package: mariadb-server..........................Failed! (Will try later)
              

              I have a feeling that there is something really awkward with your install. Please run the following commands and post output here (take a snapshot before you run these):

              dpkg -l | grep -e mariadb -e mysql -e curl
              dpkg -l apache2 | grep '^ii'
              dpkg --configure -a
              apt-get install -f
              

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • A
                astrugatch
                last edited by Feb 4, 2020, 1:24 AM

                @Sebastian-Roth

                I’ll check this tomorrow. There may be idiosyncrasies with my system. I’ve been upgrading in place from 1.5.0RC2 and 16.04 to the present.

                1 Reply Last reply Reply Quote 0
                • A
                  astrugatch
                  last edited by Feb 4, 2020, 2:57 PM

                  @Sebastian-Roth

                  fogadmin@fogimaging:~$ sudo dpkg -l | grep -e mariadb -e mysql -e curl
                  [sudo] password for fogadmin:
                  ii  libcurl3:amd64                        7.58.0-2ubuntu2                                          amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
                  ii  libcurl3-gnutls:amd64                 7.58.0-2ubuntu3.8                                        amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
                  ii  mysql-client                          5.7.29-0ubuntu0.18.04.1                                  all          MySQL database client (metapackage depending on the latest version)
                  ii  mysql-client-5.7                      5.7.29-0ubuntu0.18.04.1                                  amd64        MySQL database client binaries
                  ii  mysql-client-core-5.7                 5.7.29-0ubuntu0.18.04.1                                  amd64        MySQL database core client binaries
                  ii  mysql-common                          5.8+1.0.4                                                all          MySQL database common files, e.g. /etc/mysql/my.cnf
                  ii  mysql-server                          5.7.29-0ubuntu0.18.04.1                                  all          MySQL database server (metapackage depending on the latest version)
                  ii  mysql-server-5.7                      5.7.29-0ubuntu0.18.04.1                                  amd64        MySQL database server binaries and system database setup
                  ii  mysql-server-core-5.7                 5.7.29-0ubuntu0.18.04.1                                  amd64        MySQL database server binaries
                  ii  php7.1-curl                           7.1.30-1+ubuntu16.04.1+deb.sury.org+1                    amd64        CURL module for PHP
                  ii  php7.1-mysql                          7.1.30-1+ubuntu16.04.1+deb.sury.org+1                    amd64        MySQL module for PHP
                  ii  python-pycurl                         7.43.0.1-0.2                                             amd64        Python bindings to libcurl
                  ii  python3-pycurl                        7.43.0.1-0.2                                             amd64        Python bindings to libcurl (Python 3)
                  fogadmin@fogimaging:~$ sudo dpkg -l apache2 | grep '^ii'
                  ii  apache2        2.4.39-1+ubuntu16.04.1+deb.sury.org+1 amd64        Apache HTTP Server
                  fogadmin@fogimaging:~$ sudo dpkg --configure -a
                  fogadmin@fogimaging:~$ sudo apt-get install -f
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                  fogadmin@fogimaging:~$
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Feb 4, 2020, 4:54 PM

                    @astrugatch Ok, thanks for the details. I need to do more testing as your initial post definitely caught my attention. We did have some ugly issue with the 1.5.7 installer on Ubuntu and I want to make sure this is not happening again. Please be patient.

                    Can you please run apt-cache policy | grep http | awk '{print $2 $3}' | sort -u and post result here as well?

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    A 1 Reply Last reply Feb 4, 2020, 6:15 PM Reply Quote 0
                    • A
                      astrugatch @Sebastian Roth
                      last edited by Feb 4, 2020, 6:15 PM

                      @Sebastian-Roth
                      No worries. I’m not in a rush to have a newer version and our windows footprint is fairly small so even if our fog install crashes and burns its not the end of the world.

                      Here you go.

                      fogadmin@fogimaging:~$ apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
                      http://security.ubuntu.com/ubuntubionic-security/main
                      http://security.ubuntu.com/ubuntubionic-security/multiverse
                      http://security.ubuntu.com/ubuntubionic-security/restricted
                      http://security.ubuntu.com/ubuntubionic-security/universe
                      http://us.archive.ubuntu.com/ubuntubionic-backports/main
                      http://us.archive.ubuntu.com/ubuntubionic-backports/universe
                      http://us.archive.ubuntu.com/ubuntubionic/main
                      http://us.archive.ubuntu.com/ubuntubionic/multiverse
                      http://us.archive.ubuntu.com/ubuntubionic/restricted
                      http://us.archive.ubuntu.com/ubuntubionic/universe
                      http://us.archive.ubuntu.com/ubuntubionic-updates/main
                      http://us.archive.ubuntu.com/ubuntubionic-updates/multiverse
                      http://us.archive.ubuntu.com/ubuntubionic-updates/restricted
                      http://us.archive.ubuntu.com/ubuntubionic-updates/universe
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Feb 4, 2020, 8:20 PM

                        @astrugatch Thanks again for the details and helping us on this. I think I’ve figured it out and pushed changes to dev-branch. This should prevent from the issue as I see it.

                        Would be great if you could invest 30 minutes time and do a quick upgrade test with the latest from dev-branch in your setup. Just to make sure there isn’t something else I have missed.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        A 2 Replies Last reply Feb 5, 2020, 1:37 PM Reply Quote 0
                        • A
                          astrugatch @Sebastian Roth
                          last edited by Feb 5, 2020, 1:37 PM

                          @Sebastian-Roth

                          Tried dev-branch but still no dice. I think the issue is related to my current system. I’m going to spin up a new instance and migrate to that with a clean install of 18.04 and 1.5.7 and see how it behaves after that.

                          1 Reply Last reply Reply Quote 0
                          • A
                            astrugatch @Sebastian Roth
                            last edited by Feb 5, 2020, 1:50 PM

                            @Sebastian-Roth

                            I am looking at the migration instructions in the wiki and see a mention of SSL at the top by don’t see it mentioned in the instructions (except for migrating from 1.3)

                            1 Reply Last reply Reply Quote 0
                            • A
                              astrugatch
                              last edited by Feb 5, 2020, 4:58 PM

                              @Sebastian-Roth

                              deb-branch works when i migrated to a clean 18.04 install. I have a feeling my upgrade from 16.04 to 18.04 left something behind that I’m not finding.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Feb 5, 2020, 9:11 PM

                                @astrugatch said in Failed upgrade to 1.5.8:

                                Tried dev-branch but still no dice.

                                Can you post more details like the last error logs? It might be help us to help other.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                A 1 Reply Last reply Feb 6, 2020, 2:39 AM Reply Quote 0
                                • A
                                  astrugatch @Sebastian Roth
                                  last edited by Feb 6, 2020, 2:39 AM

                                  @Sebastian-Roth

                                  I still have that VM in my backups so I can take a look. Hopefully I didn’t revert it before I migrated. Do you have a particular log you would want to see? I can pull any file out of the backups.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Feb 6, 2020, 8:01 AM

                                    @astrugatch In the directory where you run the fog installer script you have the error_logs subdir. Please grab the files from there and post here. There might be quite a few. Grab the two with the latest time stamps. One should have a FOG version number in it’s name (that’s the one with the debug background output) and one does not have any version in the filename (plain installer output that you see on screen as well.

                                    Best if you can upload those to a fileshare and post links here.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    A 1 Reply Last reply Feb 6, 2020, 1:28 PM Reply Quote 0
                                    • A
                                      astrugatch @Sebastian Roth
                                      last edited by Feb 6, 2020, 1:28 PM

                                      @Sebastian-Roth

                                      I just checked and unfortunately I don’t have a snapshot post install. I had rolled back to have a working version for when I did the migration to the clean install on 18.04. If i can capture the machine and put it in a sandbox at some point I can start it back up and run the installer again. That might be a while though.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by Feb 6, 2020, 1:56 PM

                                        @astrugatch Thanks for checking. Unfortunately we are on the doorstep for a new release and it would help us immensely if we can figure this out. It might be just your install but it could also be dozens more. Though I can understand if you cannot afford the time to do this now.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        A 1 Reply Last reply Feb 6, 2020, 7:17 PM Reply Quote 0
                                        • A
                                          astrugatch @Sebastian Roth
                                          last edited by Feb 6, 2020, 7:17 PM

                                          @Sebastian-Roth

                                          Link sent in PM

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            7/27
                                            Last post

                                          145

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project