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

    Upgrade to debian 9

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    5
    30
    7.3k
    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.
    • P
      plegrand @ch3i
      last edited by

      @ch3i Unfortunately no 😞

      ch3iC 1 Reply Last reply Reply Quote 0
      • ch3iC
        ch3i Moderator @plegrand
        last edited by

        @plegrand said in Upgrade to debian 9:

        @ch3i Unfortunately no 😞

        Bad news… I’ll test an upgrade on my server at the end of september, I can’t do it before because I’m in deployment.

        P 1 Reply Last reply Reply Quote 0
        • P
          plegrand @ch3i
          last edited by

          @ch3i anyway i think i’m going to upgrade before backup everything.
          I will tell you

          May be i’ve got to update fog before to the latest stable version : 1.4.4 ?
          Then you use mariadb already ?

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @plegrand Just too many variables in this equation. We sure cannot garantee the upgrage will work without hickup. Just make a proper backup of the whole system or at least full database and better images too.

            Then give it a go. We are here to help you fix things if anything goes wrong!!

            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

            P 1 Reply Last reply Reply Quote 0
            • P
              plegrand @Sebastian Roth
              last edited by

              @sebastian-roth Then i try
              i will tell you if everything is OK

              1 Reply Last reply Reply Quote 0
              • P
                plegrand
                last edited by

                Upgrade done.
                No problem during upgrade
                Log seems to be ok
                I continue to test

                1 Reply Last reply Reply Quote 0
                • P
                  plegrand
                  last edited by

                  Argh… after reboot :

                  août 25 11:59:59 Fog FOGPingHosts[1786]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGPingHosts[1786]: Stack trace:
                  août 25 11:59:59 Fog FOGPingHosts[1786]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGPingHosts[1786]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGPingHosts[1786]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGPingHosts[1786]: #3 /opt/fog/service/FOGPingHosts/FOGPingHosts(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGPingHosts[1786]: #4 {main}
                  août 25 11:59:59 Fog FOGPingHosts[1786]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: Stack trace:
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: #3 /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]: #4 {main}
                  août 25 11:59:59 Fog FOGTaskScheduler[1787]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: Stack trace:
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: #3 /opt/fog/service/FOGSnapinHash/FOGSnapinHash(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGSnapinHash[1789]: #4 {main}
                  août 25 11:59:59 Fog FOGSnapinHash[1789]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: Stack trace:
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: #3 /opt/fog/service/FOGMulticastManager/FOGMulticastManager(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGMulticastManager[1790]: #4 {main}
                  août 25 11:59:59 Fog FOGMulticastManager[1790]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGImageSize[1788]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGImageSize[1788]: Stack trace:
                  août 25 11:59:59 Fog FOGImageSize[1788]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGImageSize[1788]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGImageSize[1788]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGImageSize[1788]: #3 /opt/fog/service/FOGImageSize/FOGImageSize(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGImageSize[1788]: #4 {main}
                  août 25 11:59:59 Fog FOGImageSize[1788]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: Stack trace:
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: #3 /opt/fog/service/FOGImageReplicator/FOGImageReplicator(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGImageReplicator[1785]: #4 {main}
                  août 25 11:59:59 Fog FOGImageReplicator[1785]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:394
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: Stack trace:
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: #0 /var/www/fog/commons/init.php(265): Initiator::_extCheck()
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: #1 /var/www/fog/commons/base.inc.php(48): Initiator::startInit()
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/fog/co...')
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: #3 /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator(25): require('/opt/fog/servic...')
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]: #4 {main}
                  août 25 11:59:59 Fog FOGSnapinReplicator[1791]:   thrown in /var/www/fog/commons/init.php on line 394
                  août 25 11:59:59 Fog systemd[1]: FOGPingHosts.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGPingHosts.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGPingHosts.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGScheduler.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGScheduler.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGScheduler.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGImageSize.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGImageSize.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGImageSize.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinHash.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinHash.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinHash.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGMulticastManager.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGMulticastManager.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGMulticastManager.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinReplicator.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinReplicator.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGSnapinReplicator.service: Failed with result 'exit-code'.
                  août 25 11:59:59 Fog systemd[1]: FOGImageReplicator.service: Main process exited, code=exited, status=255/n/a
                  août 25 11:59:59 Fog systemd[1]: FOGImageReplicator.service: Unit entered failed state.
                  août 25 11:59:59 Fog systemd[1]: FOGImageReplicator.service: Failed with result 'exit-code'.
                  
                  1 Reply Last reply Reply Quote 0
                  • P
                    plegrand
                    last edited by plegrand

                    It seems that during upgrade debian remove some php5 packages but doesn’t reinstall them in php7 version.
                    After reinstall them it seems to works

                    aptitude install php7.0-mysql libapache2-mod-php7 php7.0 php7.0-curl php7.0-curl php7.0-fpm php7.0-gd php7.0-mcrypt
                    

                    I have now to test pxe boot capture and deploy

                    ch3iC 1 Reply Last reply Reply Quote 0
                    • ch3iC
                      ch3i Moderator @plegrand
                      last edited by

                      @plegrand Good news !

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        plegrand @ch3i
                        last edited by

                        @ch3i the only problem for the moment is for the upgrade

                        ./installfog.sh
                        
                         * Packages to be installed:
                        
                        	apache2 bc build-essential cpp curl g++ gcc gzip htmldoc lftp libapache2-mod-php5 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php5 php5-cli php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysqlnd php7.0-bcmath php7.0-mbstring 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)
                         * Skipping package:   curl....................................(Already Installed)
                         * Skipping package:   g++.....................................(Already Installed)
                         * Skipping package:   gcc.....................................(Already Installed)
                         * Skipping package:   gzip....................................(Already Installed)
                         * Skipping package:   htmldoc.................................(Already Installed)
                         * Skipping package:   lftp....................................(Already Installed)
                         * Skipping package: libapache2-mod-php5.......................(Does not exist)
                         * Skipping package:   libc6...................................(Already Installed)
                         * Skipping package:   libcurl3................................(Already Installed)
                         * Skipping package:   m4......................................(Already Installed)
                         * Skipping package:   mysql-client............................(Already Installed)
                         * Skipping package:   mysql-server............................(Already Installed)
                         * Skipping package:   net-tools...............................(Already Installed)
                         * Skipping package:   nfs-kernel-server.......................(Already Installed)
                         * Skipping package:   openssh-server..........................(Already Installed)
                         * Installing package: php5....................................Failed! (Will try later)
                         * Skipping package: php5-cli..................................(Does not exist)
                         * Skipping package: php5-curl.................................(Does not exist)
                         * Skipping package: php5-fpm..................................(Does not exist)
                         * Skipping package: php5-gd...................................(Does not exist)
                         * Skipping package: php5-json.................................(Does not exist)
                         * Skipping package: php5-mcrypt...............................(Does not exist)
                         * Skipping package: php5-mysqlnd..............................(Does not exist)
                         * Installing package: php7.0-bcmath...........................OK
                         * Skipping package:   php7.0-mbstring.........................(Already Installed)
                         * Skipping package:   php-gettext.............................(Already Installed)
                         * Skipping package:   sysv-rc-conf............................(Already Installed)
                         * 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........................Failed!
                        

                        As said in https://forums.fogproject.org/topic/6285/php-7-0-0-finally-released/15
                        i add this lines :

                        php_ver="7.0"
                        php_verAdds="-7.0"
                        repo="php-${php_ver}"
                        

                        But it doesn’t change anything
                        Any idea ?

                        Q ch3iC 2 Replies Last reply Reply Quote 0
                        • Q
                          Quazz Moderator @plegrand
                          last edited by

                          @plegrand You have to remove the php5 packages from the packages= line in /opt/fog/.fogsettings file, I believe.

                          1 Reply Last reply Reply Quote 0
                          • ch3iC
                            ch3i Moderator @plegrand
                            last edited by

                            @plegrand said in Upgrade to debian 9:

                            repo=“php-${php_ver}”

                            I use the latest RC, and I’ve not the repo=“php-${php_ver}”

                            Can you check the packages config ? have you ?
                            packages=‘apache2 bc build-essential cpp curl g++ gcc gzip htmldoc lftp libapache2-mod-php5 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php5 php5-cli php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g’

                            In my case I have php5 packages…

                            1 Reply Last reply Reply Quote 0
                            • P
                              plegrand
                              last edited by

                              This is exactly that i wanted to ask :
                              Do i have to modify manually this line then remove php5 packages and replace by php7.0 package .

                              https://wiki.fogproject.org/wiki/index.php?title=.fogsettings#packages

                              i will try on Monday and will report here the result

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman @plegrand
                                last edited by Wayne Workman

                                @plegrand Debian 9 would have to use the php 7 packages. I can assure you that the installer works on a clean installation of Debian 9, but I’ve not tested an upgrade from older Debian 8. If you look in my signature, you’ll see some automated tests centered around the fog installer. All those tests are with 100% clean OSs/installs.

                                In the past, people who have upgraded their OSs on FOG servers have had mixed success. When it goes right, everything is just peachy. When it goes wrong we spend days - sometimes weeks - helping these people figure out the problems. I’d say it’s been about a 60/40 split, 40 being failure.

                                If you want to avoid the risks of upgrading, this is an article outlining step-by-step how to migrate: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  plegrand @Wayne Workman
                                  last edited by

                                  @wayne-workman may be could you give me a copy of the .fogsettings file from a fresh install on Debian 9 ?
                                  Thanks

                                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman @plegrand
                                    last edited by

                                    @plegrand yeah one second.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      plegrand @Wayne Workman
                                      last edited by

                                      @wayne-workman and could you tell me what version of Fog you use ?

                                      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman @plegrand
                                        last edited by

                                        @plegrand said in Upgrade to debian 9:

                                        @wayne-workman and could you tell me what version of Fog you use ?

                                        I use all of them (see my signature).

                                        Here’s a copy of the /opt/fog/.fogsettings file from a Debian9 box that had a clean install of 1.4.4 last night.

                                        ## Start of FOG Settings
                                        ## Created by the FOG Installer
                                        ## Find more information about this file in the FOG Project wiki:
                                        ##     https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
                                        ## Version: 1.4.4
                                        ## Install time: Sat 26 Aug 2017 04:08:09 AM CDT
                                        ipaddress='10.0.0.39'
                                        copybackold='0'
                                        interface='ens3'
                                        submask='255.255.255.0'
                                        routeraddress='10.0.0.1'
                                        plainrouter='10.0.0.1'
                                        dnsaddress='208.67.222.222'
                                        username='fog'
                                        password='qAW1Q5ednQ3LS0ywmMMn9woirwwcMHu/7S9ZbJE7lvY='
                                        osid='2'
                                        osname='Debian'
                                        dodhcp='N'
                                        bldhcp='0'
                                        dhcpd=''
                                        blexports='1'
                                        installtype='N'
                                        snmysqluser='root'
                                        snmysqlpass=''
                                        snmysqlhost='localhost'
                                        installlang='0'
                                        storageLocation='/images'
                                        fogupdateloaded=1
                                        docroot='/var/www/'
                                        webroot='/fog/'
                                        caCreated='yes'
                                        startrange=''
                                        endrange=''
                                        bootfilename='undionly.kpxe'
                                        packages='apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.0 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.0 php7.0-bcmath php7.0-cli php7.0-curl php7.0-fpm php7.0-gd php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-mysql php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g '
                                        noTftpBuild=''
                                        notpxedefaultfile=''
                                        sslpath='/opt/fog/snapins/ssl/'
                                        backupPath='/home/'
                                        php_ver='7.0'
                                        php_verAdds='-7.0'
                                        sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
                                        ## End of FOG Settings
                                        

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          plegrand @Wayne Workman
                                          last edited by

                                          @wayne-workman Hmm strange. Why my file (from 1.4.4 version) keep php5 packages instead of php7
                                          Anyway i will try with this file monday.
                                          Thanks for your help

                                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                          • Wayne WorkmanW
                                            Wayne Workman @plegrand
                                            last edited by

                                            @plegrand said in Upgrade to debian 9:

                                            Why my file (from 1.4.4 version) keep php5 packages instead of php7

                                            You can just change it from 5 to 7 and the installer will install the new stuff I think.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                            Daily Clean Installation Results:
                                            https://fogtesting.fogproject.us/
                                            FOG Reporting:
                                            https://fog-external-reporting-results.fogproject.us/

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

                                            149

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project