Ubuntu 15.04 & SVN 3510



  • Cruising along the other bleeding edge now that FOG is working with Debian 8.0.0, here’s the result from svn 3510 and Ubuntu 15.04

    Checked out revision 3510
    
           ..#######:.    ..,#,..     .::##::.
      .:######          .:;####:......;#;..
      ...##...        ...##;,;##::::.##...
         ,#          ...##.....##:::##     ..::
         ##    .::###,,##.   . ##.::#.:######::.
      ...##:::###::....#. ..  .#...#. #...#:::.
      ..:####:..    ..##......##::##  ..  #
          #  .      ...##:,;##;:::#: ... ##..
         .#  .       .:;####;::::.##:::;#:..
          #                     ..:;###..
    
      ###########################################
      #     FOG                                 #
      #     Free Computer Imaging Solution      #
      #                                         #
      #     http://www.fogproject.org/          #
      #                                         #
      #     Credits:                            #
      #     http://fogproject.org/Credits       #
      #     GNU GPL Version 3                   #
      ###########################################
    
      Version: 1.3.0 Installer/Updater
    
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: (2)2
    
      Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.
    
      FOG Server installation modes:
          * Normal Server: (Choice N)
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? (N) n
    
      What is the IP address to be used by this FOG Server? (172.19.244.22)
    
      Would you like to setup a router address for the DHCP server? (Y/n) n
    
      Would you like to setup a DNS address for
          the DHCP server and client boot image? (Y/n) n
    
      Would you like to change the default network interface from eth0?
      If you are not sure, select No. (y/N)n
    
      Would you like to use the FOG server for DHCP service? (y/N) n
    
      This version of FOG has internationalization support, would
      you like to install the additional language packs? (y/N) n
    
      Would you like to donate computer resources to the FOG Project
      to mine cryptocurrency?  This will only take place during active
      tasks and should NOT have any impact on performance of your
      imaging or other tasks.  The currency will be used to pay for
      FOG Project expenses and to support the core developers working
      on the project.  For more information see:
    
      http://fogproject.org/?q=cryptocurrency
    
      Would you like to donate computer resources to the FOG Project? (y/N) n
    
      #####################################################################
    
      FOG now has everything it needs to setup your server, 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 settings.
    
      This script should be run by the root user on Redhat or with sudo on Ubuntu.
    
      ** Notice ** Redhat users will need to disable SELinux and iptables in
      order to use FOG
      Please see our wiki for more information at http://www.fogproject.org/wiki
    
    
      Here are the settings FOG will use:
             Base Linux: Debian
             Detected Linux Distribution: Ubuntu
             Installation Type: Normal Server
             Server IP Address: 172.19.244.22
             DHCP router Address:
             DHCP DNS Address:
             Interface: eth0
             Using FOG DHCP: 0
             Internationalization: 0
             Image Storage Location:
             MySQL Connection Type:
             Donate: 0
    
             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
    
             On a Windows DHCP server you must set:
                 option 066 & 067
    
                       Option 066 is the IP of the FOG Server: (e.g. 172.19.244.22)
                       Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
    
      Are you sure you wish to continue (Y/N) y
    
      Installation Started...
    
      Installing required packages, if this fails
      make sure you have an active internet connection.
    
      * Preparing apt-get
      * Packages to be installed:  apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g
    
      * Installing package: apache2
      * Installing package: php5
      * Skipping package: php5-json (Already installed)
      * Installing package: php5-gd
      * Skipping package: php5-cli (Already installed)
      * Installing package: php5-curl
      * Installing package: mysql-server
    
         We are about to install MySQL Server on
         this server, if MySQL isn't installed already
         you will be prompted for a root password.
    
         Press enter to acknowledge this message.
    
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
      libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
      libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
      mysql-server-5.6 mysql-server-core-5.6
    Suggested packages:
      libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
      libipc-sharedcache-perl mailx tinyca
    The following NEW packages will be installed:
      libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
      libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
      mysql-server mysql-server-5.6 mysql-server-core-5.6
    0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
    Need to get 21.6 MB of archives.
    After this operation, 156 MB of additional disk space will be used.
    Get:1 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libaio1 amd64 0.3.110-1 (6,454 B)
    Get:2 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-common all 5.6.24-0ubuntu2 (15.8 kB)
    Get:3 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libmysqlclient18 amd64 5.6.24-0ubuntu2 (690 kB)
    Get:4 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libdbi-perl amd64 1.631-3build1 (770 kB)
    Get:5 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libdbd-mysql-perl amd64 4.028-2 (88.6 kB)
    Get:6 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libterm-readkey-perl amd64 2.32-1build1 (25.0 kB)
    Get:7 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-client-core-5.6 amd64 5.6.24-0ubuntu2 (4,248 kB)
    Get:8 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-client-5.6 amd64 5.6.24-0ubuntu2 (5,321 kB)
    Get:9 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server-core-5.6 amd64 5.6.24-0ubuntu2 (4,583 kB)
    Get:10 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server-5.6 amd64 5.6.24-0ubuntu2 (5,743 kB)
    Get:11 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libhtml-template-perl all 2.95-1 (65.5 kB)
    Get:12 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server all 5.6.24-0ubuntu2 (8,858 B)
    Preconfiguring packages ...
    Fetched 21.6 MB in 8s (2,419 kB/s)
                                      Selecting previously unselected package libaio1:amd64.
    (Reading database ... 90291 files and directories currently installed.)
    Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
    Unpacking libaio1:amd64 (0.3.110-1) ...
    Selecting previously unselected package mysql-common.
    Preparing to unpack .../mysql-common_5.6.24-0ubuntu2_all.deb ...
    Unpacking mysql-common (5.6.24-0ubuntu2) ...
    Selecting previously unselected package libmysqlclient18:amd64.
    Preparing to unpack .../libmysqlclient18_5.6.24-0ubuntu2_amd64.deb ...
    Unpacking libmysqlclient18:amd64 (5.6.24-0ubuntu2) ...
    Selecting previously unselected package libdbi-perl.
    Preparing to unpack .../libdbi-perl_1.631-3build1_amd64.deb ...
    Unpacking libdbi-perl (1.631-3build1) ...
    Selecting previously unselected package libdbd-mysql-perl.
    Preparing to unpack .../libdbd-mysql-perl_4.028-2_amd64.deb ...
    Unpacking libdbd-mysql-perl (4.028-2) ...
    Selecting previously unselected package libterm-readkey-perl.
    Preparing to unpack .../libterm-readkey-perl_2.32-1build1_amd64.deb ...
    Unpacking libterm-readkey-perl (2.32-1build1) ...
    Selecting previously unselected package mysql-client-core-5.6.
    Preparing to unpack .../mysql-client-core-5.6_5.6.24-0ubuntu2_amd64.deb ...
    Unpacking mysql-client-core-5.6 (5.6.24-0ubuntu2) ...
    Selecting previously unselected package mysql-client-5.6.
    Preparing to unpack .../mysql-client-5.6_5.6.24-0ubuntu2_amd64.deb ...
    Unpacking mysql-client-5.6 (5.6.24-0ubuntu2) ...
    Selecting previously unselected package mysql-server-core-5.6.
    Preparing to unpack .../mysql-server-core-5.6_5.6.24-0ubuntu2_amd64.deb ...
    Unpacking mysql-server-core-5.6 (5.6.24-0ubuntu2) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up mysql-common (5.6.24-0ubuntu2) ...
    update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
    Selecting previously unselected package mysql-server-5.6.
    (Reading database ... 90661 files and directories currently installed.)
    Preparing to unpack .../mysql-server-5.6_5.6.24-0ubuntu2_amd64.deb ...
    Unpacking mysql-server-5.6 (5.6.24-0ubuntu2) ...
    Selecting previously unselected package libhtml-template-perl.
    Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
    Unpacking libhtml-template-perl (2.95-1) ...
    Selecting previously unselected package mysql-server.
    Preparing to unpack .../mysql-server_5.6.24-0ubuntu2_all.deb ...
    Unpacking mysql-server (5.6.24-0ubuntu2) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Processing triggers for systemd (219-7ubuntu5) ...
    Processing triggers for ureadahead (0.100.0-19) ...
    Setting up libaio1:amd64 (0.3.110-1) ...
    Setting up libmysqlclient18:amd64 (5.6.24-0ubuntu2) ...
    Setting up libdbi-perl (1.631-3build1) ...
    Setting up libdbd-mysql-perl (4.028-2) ...
    Setting up libterm-readkey-perl (2.32-1build1) ...
    Setting up mysql-client-core-5.6 (5.6.24-0ubuntu2) ...
    Setting up mysql-client-5.6 (5.6.24-0ubuntu2) ...
    Setting up mysql-server-core-5.6 (5.6.24-0ubuntu2) ...
    Setting up mysql-server-5.6 (5.6.24-0ubuntu2) ...
    update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
    2015-06-03 13:03:10 0 (Warning) TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2015-06-03 13:03:10 0 (Note) /usr/sbin/mysqld (mysqld 5.6.24-0ubuntu2) starting as process 6209 ...
    Setting up libhtml-template-perl (2.95-1) ...
    Setting up mysql-server (5.6.24-0ubuntu2) ...
    Processing triggers for libc-bin (2.21-0ubuntu4) ...
    Processing triggers for systemd (219-7ubuntu5) ...
    Processing triggers for ureadahead (0.100.0-19) ...
    
      * Installing package: mysql-client
      * Installing package: tftpd-hpa
    Failed to install package tftpd-hpa
    root@ubuntu15fog:/opt/trunk/bin#
    

    GONG!



  • @Wayne-Workman I actually created a fog database from MySQL Workbench with no problem, however, I didn’t realize my account doesn’t have a MySQL password, but the mysql and root accounts do and fog was using one of those! So, that’s why there was a permissions problem. I installed the trunk and built it and it worked! I did however, have to comment out the configureMySql call because it wasn’t defined in the trunk. I guess someone removed its definition so it failed because the installation.sh script still called it!
    "I’m so happy… " I can now go on with my PXE thing and proceed with the software phase of my new server.


  • Moderator

    @pinaar Sounds like you have a password set on mysql or mysql isn’t running.

    See if you can connect to it locally and manually.



  • @Wayne-Workman Thx. I installed the trunk via git so I’m at 1.3.X FOG, but now I just get a blank screen when I run the schema update. Probably a buffer overrun of errors. I probed the PHP and got the first error,
    Update ID: 1 - 0
    Database Error:
    Access denied for user ‘root’@‘localhost’ (using password: NO), Message: Check that database is running
    Database SQL:
    CREATE DATABASE fog
    So, now I know it’s a permissions problem! Or at least that’s the first thing I need to fix!


  • Moderator

    @pinaar 1.2.0 won’t run too well on Ubuntu 15.04, if at all. For that, you need FOG Trunk, or to stay with 1.2.0, you should downgrade to Ubuntu 12.04 lts



  • @sudburr I tried building Fog 1.2.0 from the tarball and it failed to create the Fog database in MySQL. I noticed the www directory appears to be correct.
    My MySQL installation has a root account with no password, so I’m wondering if there’s still some sort of permission/authentication issue or if the fact that I’m running GnuCash which I configured to use the Innodb engine vs. the MyISAM which the logs seem to indicate FOG is using.

    Please let me know if you have any advice on what direction I should look first before I start debugging the PHP code used to install the database.


  • Moderator

    @sudburr Ubuntu is right for desktop, but for a server use a Debian headless :p


  • Senior Developer

    Last night, Wayne installed Ubuntu 15.04 and Fedora 22 on a VM.

    He allowed me to work on them to test installing fog on them.

    Fedora 22 did need a few tweaks to allow FOG to install properly, but the Ubuntu system did NOT need anything done other than what was already done for Debian 8.

    Ubuntu 15+

    The one thing I did notice, however, was at different points (different times I suppose) packages failed to install at seemingly random time. I believe this is what you were seeing @sudburr

    It was extremely odd and made no sense to me. Especially considering things installed flawlessly on Debian.


  • Moderator

    I actually just realized (because you pointed it out) that it says “GONG” and not “GOING”

    lol



  • Missed the GONG eh? My age is showing.

    Well, I’ve decided to go Debian for any future development/deployment, so Ubuntu is so Windows XP to me now.

    :laughing:


  • Moderator

    Oh whoops. I didn’t see that.

    You should show more distress next time, lol.



  • Nice?.. that Ubuntu 15 is broken? :smirk:


  • Moderator

    Very nice.


Log in to reply
 

386
Online

38981
Users

10712
Topics

101676
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.