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

    Windows7 restarts at bootup when it reaches classpnp.sys after being imaged with FOG

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    46
    22.8k
    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.
    • M
      MrsPotter
      last edited by MrsPotter

      See the error log below:
      /var/log/apache2/error.log.1

      Below is the output of “dpkg -l | grep php5”

      root@backup:~# dpkg -l | grep php5
      ii  libapache2-mod-php5                     5.6.14-1~dotdeb+7.1            amd64        server-side, HTML-embedded scripting language (Apache 2 module)
      ii  php5                                    5.4.41-0+deb7u1                all          server-side, HTML-embedded scripting language (metapackage)
      ii  php5-cli                                5.6.14-1~dotdeb+7.1            amd64        command-line interpreter for the php5 scripting language
      ii  php5-common                             5.6.14-1~dotdeb+7.1            amd64        Common files for packages built from the php5 source
      ii  php5-curl                               5.6.14-1~dotdeb+7.1            amd64        CURL module for php5
      ii  php5-fpm                                5.6.14-1~dotdeb+7.1            amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
      ii  php5-gd                                 5.6.14-1~dotdeb+7.1            amd64        GD module for php5
      ii  php5-mcrypt                             5.6.14-1~dotdeb+7.1            amd64        MCrypt module for php5
      rc  php5-mysql                              5.6.14-1~dotdeb+7.1            amd64        MySQL module for php5
      ii  php5-mysqlnd                            5.6.14-1~dotdeb+7.1            amd64        MySQL module for php5 (Native Driver)
      root@backup:~#
      
      1 Reply Last reply Reply Quote 0
      • M
        MrsPotter
        last edited by MrsPotter

        Ok I’ve upgraded to the latest version:

        apt-get update
        apt-get upgrade
        

        The Debian version is now:

        root@backup:~/fog_trunk/bin# cat /proc/version
        Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.68-1+deb7u5
        

        And the PHP versions are:

        root@backup:~/fog_trunk/bin# dpkg -l | grep php5
        ii  libapache2-mod-php5                 5.6.14-1~dotdeb+7.1           amd64        server-side, HTML-embedded scripting language (Apache 2 module)
        ii  php5                                5.6.7+dfsg-1                  all          server-side, HTML-embedded scripting language (metapackage)
        ii  php5-cli                            5.6.14-1~dotdeb+7.1           amd64        command-line interpreter for the php5 scripting language
        ii  php5-common                         5.6.14-1~dotdeb+7.1           amd64        Common files for packages built from the php5 source
        ii  php5-curl                           5.6.14-1~dotdeb+7.1           amd64        CURL module for php5
        ii  php5-fpm                            5.6.14-1~dotdeb+7.1           amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
        ii  php5-gd                             5.6.14-1~dotdeb+7.1           amd64        GD module for php5
        ii  php5-mcrypt                         5.6.14-1~dotdeb+7.1           amd64        MCrypt module for php5
        rc  php5-mysql                          5.6.14-1~dotdeb+7.1           amd64        MySQL module for php5
        ii  php5-mysqlnd                        5.6.14-1~dotdeb+7.1           amd64        MySQL module for php5 (Native Driver)
        

        But now if I try to install fog_trunk:

        root@backup:~/fog_trunk/bin# ./installfog.sh
        

        I then get this error:

         * Installing package: php5-json...............................Failed!
        

        I then try to install php5-json:

        root@backup:~/fog_trunk/bin# apt-get install php5-json
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        Some packages could not be installed. This may mean that you have
        requested an impossible situation or if you are using the unstable
        distribution that some required packages have not yet been created
        or been moved out of Incoming.
        The following information may help to resolve the situation:
        
        The following packages have unmet dependencies:
         php5-json : Depends: phpapi-20131226
        E: Unable to correct problems, you have held broken packages.
        root@backup:~/fog_trunk/bin# apt-get install phpapi-20131226
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        Note, selecting 'php5-common' instead of 'phpapi-20131226'
        php5-common is already the newest version.
        0 upgraded, 0 newly installed, 0 to remove and 191 not upgraded.
        
        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          ii  php5                                5.6.7+dfsg-1
          

          The php5 package itself is a different version than all the other packages. This does not seam right to me. Maybe try apt-get install php5. This might get the package into sync with the version of all the other packages.

          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
          • M
            MrsPotter
            last edited by MrsPotter

            Hi,

            Tried ‘apt-get -f install php5’ but no success.

            Also if I now try and install FOG 1.2.0 I get a fail:

             Configuring services.
              * Setting up and starting MySql...OK
              * Backing up user reports...OK
              * Setting up and starting Apache Web Server...Failed!
             Script done, file is /var/log/foginstall.log
            root@backup:~/fog_1.2.0/bin#
            

            I also tried rebooting. Previously I managed to install without issues.

            PS: Which inline identifier do you use to get the text with the red foreground and light red background - as in your previous post: apt-get install php5 ?

            1 Reply Last reply Reply Quote 0
            • M
              MrsPotter
              last edited by

              OK, I changed my sources.list to point to the UK.

              I then removed php using ‘apt-get --purge remove xxx’. And, then when it re-installed all were the same version. This also allowed apache2 to start up correctly. So I can now install FOG 1.2.0 as before. However, I’m still having trouble to install fog_trunk.

              The prior php5 error is now solved, and I manage to progress to here:

              * Stopping FOGMulticastManager.service Service................OK
              * Stopping FOGImageReplicator.service Service.................OK
              * Stopping FOGSnapinReplicator.service Service................OK
              * Stopping FOGScheduler.service Service.......................OK
              * Stopping FOGPingHosts.service Service.......................OK
              * Setting up and starting MySQL...............................Failed!
              root@backup:~/fog_trunk/bin#
              

              However, if I try see what the error is I get no error:

              root@backup:~/fog_trunk/bin# /etc/init.d/mysql restart
              [ ok ] Stopping MySQL database server: mysqld.
              [ ok ] Starting MySQL database server: mysqld ..
              [info] Checking for tables which need an upgrade, are corrupt or were
              not closed cleanly..
              root@backup:~/fog_trunk/bin#
              
              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                Make sure packages chkconfig and sysv-rc-conf are installed.

                PS: Use single backticks for inline commands in red.

                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
                • M
                  MrsPotter
                  last edited by

                  OK, the chkconfig package was missing.

                  But, nope still getting:

                   * Stopping FOGMulticastManager.service Service................OK
                   * Stopping FOGImageReplicator.service Service.................OK
                   * Stopping FOGSnapinReplicator.service Service................OK
                   * Stopping FOGScheduler.service Service.......................OK
                   * Stopping FOGPingHosts.service Service.......................OK
                   * Setting up and starting MySQL...............................Failed!
                  
                  1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator
                    last edited by

                    I guess I have to just throw this out since you are starting with a new deployment.

                    Is there any thought of changing your OS from Ubuntu to Centos? In my test environment I’ve spun up about 10 - Centos 6.7 systems with FOG in the last 2 weeks and deployed all of the trunk images without any deployment issues. In monitoring this forum for the last few weeks the majority of the install issues appear to be with the Debian based systems. I’m not saying that one OS is better than the other, but if the goal is to test FOG, then switch OS for the test and work out the kinks with the specific OS deployment later.

                    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!

                    1 Reply Last reply Reply Quote 1
                    • M
                      MrsPotter
                      last edited by

                      Well I guess it is possible for me to test it with CENTOS. But, getting back to my original issue I’m trying to solve: I cannot get a machine cloned using FOG to boot even when in the exact same machine. I’ve also tried three different/independent machines all non-booting afterwards.

                      I’ve tried all the obvious configurations using FOG 1.2.0. I’m now attempting to try it with fog_trunk to see if that would work. However, since we don’t quite know why the cloned image won’t boot we aren’t entirely sure if fog_trunk would work either. However, in order to get fog_trunk to work I’m likely going to need to install CENTOS.

                      I guess I now need to go and weigh up on the pros/cons and decide if I’d like to go ahead. I’m a little pressed for time on other projects at present otherwise I’d definitely would’ve tested it out.

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

                        @MrsPotter I definitely understand your situation. It’s kind of sad that you had to go through all this and still don’t have a proper solution yet. We are trying to help as good as we can but we are not perfect… 😉

                        You can change the installers behavior of exiting straight after a failed item in trunk/lib/common/functions.sh (somewhere around line 515) you see this:

                        errorStat() {
                            if [ "$1" != "0" -a -z "$2" ]; then
                                echo "Failed!"
                                exit 1
                            fi
                            echo "OK"
                        }
                        

                        Just remove or comment the exit 1 line to make it go ahead even though mysql might fail.

                        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

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          MrsPotter @Sebastian Roth
                          last edited by MrsPotter

                          @Sebastian-Roth No absolutely, and many thanks for all the help from all of you. I still think FOG is an awesome project.

                          I’ll try change the installer as recommended and revert back with the result.

                          One thing though: Judging by the amount of views this thread has got, I’m wondering if my Win7 bootup problem is an isolated case?

                          1 Reply Last reply Reply Quote 0
                          • M
                            MrsPotter
                            last edited by

                            Hi, I’m not expecting you to solve this or anything. I’m just posting FYI.

                            I have commented out exit 1 and rerun the install. I got this output:

                             * Stopping FOGMulticastManager.service Service................OK
                             * Stopping FOGImageReplicator.service Service.................OK
                             * Stopping FOGSnapinReplicator.service Service................OK
                             * Stopping FOGScheduler.service Service.......................OK
                             * Stopping FOGPingHosts.service Service.......................OK
                             * Setting up and starting MySQL...............................Failed!
                            OK
                             * Backing up user reports.....................................OK
                             * Stopping web service........................................Failed!
                            OK
                             * Removing vhost file.........................................OK
                             * Setting up Apache and PHP files.............................OK
                             * Backing up old data.........................................Failed!
                            OK
                             * Copying back old web folder as is...........................cp: failed to access â/var/www/html/fog//â: Too many levels of symbolic links
                            Failed!
                            OK
                             * Copying new files to web folder.............................cp: failed to access â/var/www/html/fog//â: Too many levels of symbolic links
                            Failed!
                            OK
                             * Creating config file........................................../lib/common/functions.sh: line 1128: /var/www/html/fog//lib/fog/Config.class.php: Too many levels of symbolic links
                            Failed!
                            OK
                             * Downloading inits and kernels...............................Backgrounded
                             * Downloading New FOG Client file.............................Backgrounded
                             * Enabling apache and fpm services on boot....................Failed!
                            OK
                             * Creating SSL CA.............................................OK
                             * Creating SSL Private Key....................................OK
                             * Creating SSL Certificate....................................Failed!
                            OK
                             * Creating auth pub key and cert..............................Failed!
                            OK
                             * Resetting SSL Permissions...................................Failed!
                            OK
                             * Setting up SSL FOG Server...................................OK
                             * Restarting Apache2 for fog vhost............................Failed!
                            OK
                             * Changing permissions on apache log files....................chown: cannot access â/var/www/html/fog/â: Too many levels of symbolic links
                            Failed!
                            OK
                            ln: failed to create symbolic link â/var/www/html/fog//mobile/css/font-awesome.cssâ: Too many levels of symbolic links
                            ln: target â/var/www/html/fog//mobile/â is not a directory: Too many levels of symbolic links
                            ln: target â/var/www/html/fog//mobile/â is not a directory: Too many levels of symbolic links
                            ln: target â/var/www/html/fog//mobile/â is not a directory: Too many levels of symbolic links
                            chown: cannot access â/var/www/html/fog/â: Too many levels of symbolic links
                            
                              You still need to install/update your database schema.
                              This can be done by opening a web browser and going to:
                            
                                  http://192.168.0.2/fog/management
                            
                              Press [Enter] key when database is updated/installed.
                            

                            Maybe this is of some help to you.

                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @MrsPotter
                              last edited by

                              @MrsPotter can you run:

                              rm /var/www/fog
                              rm /var/www/html/fog
                              

                              Then rerun the installer?

                              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              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

                              Tom ElliottT 1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @Tom Elliott
                                last edited by

                                @Tom-Elliott mind you do not add a trailing /

                                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                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
                                • M
                                  MrsPotter
                                  last edited by MrsPotter

                                  Ok yes makes sense: I need to remove the remnants of the other install first. I followed instructions in:

                                  https://wiki.fogproject.org/wiki/index.php/Uninstall_FOG

                                  Installing I got this:

                                   * Stopping FOGMulticastManager.service Service................OK
                                   * Stopping FOGImageReplicator.service Service.................OK
                                   * Stopping FOGSnapinReplicator.service Service................OK
                                   * Stopping FOGScheduler.service Service.......................OK
                                   * Stopping FOGPingHosts.service Service.......................OK
                                   * Setting up and starting MySQL...............................Failed!
                                  OK
                                   * Backing up user reports.....................................OK
                                   * Stopping web service........................................Failed!
                                  OK
                                   * Removing vhost file.........................................OK
                                   * Is the MySQL password blank? (Y/n)
                                   * Setting up Apache and PHP files.............................OK
                                   * Backing up old data.........................................OK
                                   * Copying back old web folder as is...........................OK
                                   * Copying new files to web folder.............................OK
                                   * Creating config file........................................OK
                                   * Downloading inits and kernels...............................Backgrounded
                                   * Downloading New FOG Client file.............................Backgrounded
                                   * Enabling apache and fpm services on boot....................Failed!
                                  OK
                                   * Creating SSL CA.............................................OK
                                   * Creating SSL Private Key....................................OK
                                   * Creating SSL Certificate....................................OK
                                   * Creating auth pub key and cert..............................OK
                                   * Resetting SSL Permissions...................................OK
                                   * Setting up SSL FOG Server...................................OK
                                   * Restarting Apache2 for fog vhost............................Failed!
                                  OK
                                   * Changing permissions on apache log files....................OK
                                  
                                    You still need to install/update your database schema.
                                    This can be done by opening a web browser and going to:
                                  
                                        http://192.168.0.2/fog/management
                                  
                                    Press [Enter] key when database is updated/installed.
                                  
                                   * Setting up storage..........................................OK
                                   * Setting up and starting DHCP Server.........................Skipped
                                   * Setting up and starting TFTP and PXE Servers................Failed!
                                  OK
                                   * Setting up and starting VSFTP Server........................Failed!
                                  OK
                                   * Setting up FOG Snapins......................................OK
                                   * Setting up UDPCast..........................................OK
                                   * Configuring UDPCast.........................................OK
                                   * Building UDPCast............................................OK
                                   * Installing UDPCast..........................................OK
                                   * Installing FOG System Scripts...............................OK
                                  
                                  
                                    * Configuring FOG System Services
                                  
                                  
                                   * Setting FOGMulticastManager.service script executable.......OK
                                   * Enabling FOGMulticastManager.service Service................OK
                                   * Setting FOGImageReplicator.service script executable........OK
                                   * Enabling FOGImageReplicator.service Service.................OK
                                   * Setting FOGSnapinReplicator.service script executable.......OK
                                   * Enabling FOGSnapinReplicator.service Service................OK
                                   * Setting FOGScheduler.service script executable..............OK
                                   * Enabling FOGScheduler.service Service.......................OK
                                   * Setting FOGPingHosts.service script executable..............OK
                                   * Enabling FOGPingHosts.service Service.......................OK
                                   * Setting up FOG Services.....................................OK
                                   * Setting up FOG Utils........................................OK
                                   * Starting FOGMulticastManager.service Service................Failed!
                                  OK
                                   * Starting FOGImageReplicator.service Service.................Failed!
                                  OK
                                   * Starting FOGSnapinReplicator.service Service................Failed!
                                  OK
                                   * Starting FOGScheduler.service Service.......................Failed!
                                  OK
                                   * Starting FOGPingHosts.service Service.......................Failed!
                                  OK
                                   * Setting up exports file.....................................OK
                                   * Setting up and starting RPCBind.............................Failed!
                                  OK
                                   * Setting up and starting NFS Server..........................OK
                                  
                                    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:
                                  
                                        http://192.168.0.2/fog/management
                                  
                                        Default User:
                                               Username: fog
                                               Password: password
                                  
                                  root@backup:~/fog_trunk/bin# service mysql restart
                                  [ ok ] Stopping MySQL database server: mysqld.
                                  [ ok ] Starting MySQL database server: mysqld ..
                                  [info] Checking for tables which need an upgrade, are corrupt or were
                                  not closed cleanly..
                                  root@backup:~/fog_trunk/bin#
                                  

                                  But, now I’m stuck again at theDatabase Schema Installer.

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

                                    Interesting that you see so many failed services…

                                    Please see what you have in your apache error log which loading the schema updater. Post the errors 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

                                    1 Reply Last reply Reply Quote 0
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by

                                      I remoted in this morning and we were able to figure out the issue.

                                      All of the failures were related to systemctl. Debian 8 uses systemd, but apparently (somehow?) this particular install did not have systemd. I was able at some code to test for the presence of the systemctl so things were able to operate as expected.

                                      I’m solving this thread as this is now fixed.

                                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                      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

                                      M 1 Reply Last reply Reply Quote 2
                                      • M
                                        MrsPotter @Tom Elliott
                                        last edited by

                                        @Tom-Elliott Many thanks for going through the effort of remoting into my system and getting FOG_trunk installed. Really - my best gratitude.

                                        I have now thoroughly tested the FOG_trunk version. And, most unfortunately, I can confirm that I still have the original issue of the Win7 image just booting to classpnp.sys. I basically went through all the steps listed below again.

                                        Nonetheless, I’ll keep my eye on this project and give it a few tries in the future as more versions become available.

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

                                        159

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project