Failed upgrade to latest 1.5.7.xxx



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



  • @Sebastian-Roth

    fogadmin@fogimaging:~$ ls -al /var/www && ls -al /var/www/html
    total 16
    drwxr-xr-x  4 root     root     4096 Feb 13 10:53 .
    drwxr-xr-x 14 root     root     4096 Sep 11  2017 ..
    drwxr-xr-x 10 www-data www-data 4096 Feb 13 11:04 fog
    drwxr-xr-x  2 root     root     4096 Sep 11  2017 html
    total 20
    drwxr-xr-x 2 root root  4096 Sep 11  2017 .
    drwxr-xr-x 4 root root  4096 Feb 13 10:53 ..
    lrwxrwxrwx 1 root root    13 Sep 11  2017 fog -> /var/www/fog/
    -rw-r--r-- 1 root root 10701 Sep 11  2017 index.html
    

  • Developer

    @astrugatch Sorry for digging this up over und over. But it’s a great chance you have this available to test. Thanks.



  • @Sebastian-Roth

    I haven’t rolled back. I migrated out of this instance and am just keeping it around in case there is an issue I haven’t seen with my migrated system and to help with this. I will run these tomorrow and share the output


  • Developer

    @astrugatch Thanks again for testing. Good we got the initial issue solved.

    I am really wondering why it would print that HTML code. I know this will happen if the maintenance PHP scripts are not in place but they really should be if everything goes right. Ahhhh, just had one idea. Did you roll back? If not, can you run ls -al /var/www && ls -al /var/www/html and post output here?



  • @Sebastian-Roth

    Installation looks good until the very end.

    End of the log is:

    * Setting up and starting NFS Server..........................OK
    * Ensuring node username and passwords match..................<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Login</title><link href="../management/css/animate.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/font-awesome.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/jquery-ui.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/jquery-ui.theme.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/jquery-ui.structure.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/jquery-ui-timepicker-addon.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/select2.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/bootstrap.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/bootstrap-theme.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/theme.bootstrap_3.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/theme.blue.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/bootstrap-dialog.min.css?ver=134" rel="stylesheet" type="text/css"/><link href="../management/css/default/fog.css?ver=134" rel="stylesheet" type="text/css"/><link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/></head><body><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"><span class="sr-only">Toggle Navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button></div><div class="collapse navbar-collapse"><ul class="nav navbar-nav"><a class="navbar-brand" href="../management/index.php?node=home"><b>FOG</b> Project</a></ul></div></div></nav><div class="container-fluid dashboard"><div class="form-signin"><form class="form-horizontal" method="post" action="?node=home"><h3 class="form-signin-heading text-center"><span class="col-xs-1"><img src="../favicon.ico" class="logoimg" alt="Open Source Computer Cloning Solution"/></span>FOG Project</h3><hr/><div class="form-group"><label class="control-label col-md-2" for="uname">Username</label><div class="col-md-10"><input type="text" class="form-control" name="uname" required="" autofocus="" id="uname"/></div></div><div class="form-group"><label class="control-label col-md-2" for="upass">Password</label><div class="col-md-10"><input type="password" class="form-control" name="upass" required="" id="upass"/></div></div><div class="form-group"><label class="control-label col-md-2" for="ulang">Language</label><div class="col-md-10"><select class="form-control" name="ulang" id="ulang"><option value="中国的">中国的</option><option value="English" selected>English</option><option value="Español">Español</option><option value="Français">Français</option><option value="Deutsch">Deutsch</option><option value="Italiano">Italiano</option><option value="Português">Português</option></select></div></div><div class="form-group"><div class="col-md-offset-2 col-md-10"><button class="btn btn-default btn-block" type="submit" name="login">Login</button></div></div></form><hr/><div class="row"><div class="form-group"><div id="login-form-info"><p>Estimated FOG Sites: <b><i class="icon fa fa-circle-o-notch fa-spin fa-fw"></i></b></p><p>Latest Version: <b><i class="icon fa fa-circle-o-notch fa-spin fa-fw"></i></b></p><p>Latest Development Version: <b><i class="icon fa fa-circle-o-notch fa-spin fa-fw"></i></b></p></div></div></div></div></div><div class="collapse navbar-collapse"><footer class="footer"><nav class="navbar navbar-inverse navbar-fixed-bottom"><div class="container-fluid"><ul class="nav navbar-nav"><li><a href="https://wiki.fogproject.org/wiki/index.php?title=Credits">Credits</a></li><li><a href="?node=client">FOG Client</a></li><li><a href="https://www.paypal.com/cgi-bin/webscr?item_name=Donation+to+FOG+-+A+Free+Cloning+Solution&cmd=_donations&business=fogproject.org@gmail.com" target="_blank">Donate to FOG</a></li></ul></div></nav></footer></div><script src="js/jquery-latest.min.js?ver=134" type="text/javascript"></script><script src="js/jquery.validate.min.js?ver=134" type="text/javascript"></script><script src="js/additional-methods.min.js?ver=134" type="text/javascript"></script><script src="js/jquery.tablesorter.combined.js?ver=134" type="text/javascript"></script><script src="js/select2.min.js?ver=134" type="text/javascript"></script><script src="js/jquery-migrate-latest.min.js?ver=134" type="text/javascript"></script><script src="js/jquery.progressbar.js?ver=134" type="text/javascript"></script><script src="js/jquery.tmpl.js?ver=134" type="text/javascript"></script><script src="js/jquery.placeholder.js?ver=134" type="text/javascript"></script><script src="js/jquery-ui.min.js?ver=134" type="text/javascript"></script><script src="js/flot/jquery.flot.js?ver=134" type="text/javascript"></script><script src="js/flot/jquery.flot.time.js?ver=134" type="text/javascript"></script><script src="js/flot/jquery.flot.pie.js?ver=134" type="text/javascript"></script><script src="js/flot/jquery.flot.JUMlib.js?ver=134" type="text/javascript"></script><script src="js/flot/jquery.flot.gantt.js?ver=134" type="text/javascript"></script><script src="js/jquery-ui-timepicker-addon.js?ver=134" type="text/javascript"></script><script src="js/bootstrap.min.js?ver=134" type="text/javascript"></script><script src="js/bootstrap-dialog.min.js?ver=134" type="text/javascript"></script><script src="js/fog/fog.js?ver=134" type="text/javascript"></script><script src="js/jscolor.min.js?ver=134" type="text/javascript"></script><script src="js/fog/fog.login.js?ver=134" type="text/javascript"></script><!-- Memory Usage: 2.00 MiB--><!-- Memory Peak: 1.54 MiB--></body></html>Done
    
    * Setup complete
    
      You can now login to the FOG Management Portal using
      the information listed below.  The login information
      is only if this is the first install.
    
      This can be done by opening a web browser and going to:
    
      https://x.x.x.x/fog/management
    
      Default User Information
      Username: fog
      Password: password
    

  • Developer

    Ok, turned out I had missed an important thing. So latest version in dev-branch (1.5.7.110 as of now) should fix this.


  • Developer

    @astrugatch Thanks heaps! While it’s not that simple to test I would hope that I’ve got it fixed after all.

    Give it a try if you like or wait a few more days for 1.5.8 to be released.



  • @Sebastian-Roth

    Link sent in PM


  • Developer

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



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


  • Developer

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



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


  • Developer

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



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



  • @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)



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


  • Developer

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



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

  • Developer

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


Log in to reply
 

261
Online

6.8k
Users

14.1k
Topics

133.3k
Posts