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

    Impossible to deploy snapins

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    7
    1.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.
    • G
      glefebvr
      last edited by

      Server
      • Version: 1.3.0 RC 10
      • OS: Debian Wheezy
      Client
      • Version: 11.5
      • OS: Windows 7 64
      Description

      I have the following error in the fog.log concerniing the snapin module.

      I tried the following things to solve the issue without success :

      • Reset encryption data
      • Reinstall the certificate
      • Reinstall the client
      • Install older version of the client (up to 0.10.6)
      • Add commit n° 16ce36b and bad33be
      • Update OS packages
       15.09.2016 19:36 Middleware::Communication URL: http://server.domain.com/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       15.09.2016 19:36 Middleware::Response Success
       15.09.2016 19:36 Service Sleeping for 82 seconds
       15.09.2016 19:38 Middleware::Communication URL: http://server.domain.com/fog/management/index.php?sub=requestClientInfo&mac=8C:89:A5:B6:97:07&newService&json
       15.09.2016 19:38 Middleware::Response Success
       15.09.2016 19:38 Middleware::Communication URL: http://server.domain.com/fog/service/getversion.php?clientver&newService&json
       15.09.2016 19:38 Middleware::Communication URL: http://server.domain.com/fog/service/getversion.php?newService&json
      
       15.09.2016 19:38 Service Creating user agent cache
       15.09.2016 19:38 Middleware::Response Invalid time
       15.09.2016 19:38 Middleware::Response No Printers
       15.09.2016 19:38 Middleware::Response Success
      
      
      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       15.09.2016 19:38 Client-Info Client Version: 0.11.5
       15.09.2016 19:38 Client-Info Client OS:      Windows
       15.09.2016 19:38 Client-Info Server Version: 1.3.0-RC-10
       15.09.2016 19:38 Middleware::Response Success
       15.09.2016 19:38 HostnameChanger Users still logged in and enforce is disabled, delaying any further actions
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       15.09.2016 19:38 Client-Info Client Version: 0.11.5
       15.09.2016 19:38 Client-Info Client OS:      Windows
       15.09.2016 19:38 Client-Info Server Version: 1.3.0-RC-10
       15.09.2016 19:38 Middleware::Response ERROR: Unable to get subsection
       15.09.2016 19:38 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      ThiagoT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        The message your log is showing doesn’t help much but I did fix a rather annoying issue with snapins today.

        The message your log is showing seems to show that an error was thrown possibly on the fog server. Can you get a copy of the Apache error logs?

        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

        G 1 Reply Last reply Reply Quote 0
        • ThiagoT
          Thiago @glefebvr
          last edited by

          @glefebvr
          i had the same error using snapin yesterday…
          i will tell you what worked for me:
          uninstall client, delete all entries in regedit related to fog (i did a search for “fog” word and i dont know if this is necessary, but worked for me), reboot, then install again using smartinstaller, then reset encryption data for these host, reboot and you will be in bussiness again…(i hope…lol)

          1 Reply Last reply Reply Quote 0
          • G
            glefebvr
            last edited by

            Thanks Thiago. I just tried your solution and it doesn’t work for me 😞

            I also tried to install the fog client on another Windows 7 x64 computer, which is not related to the image I try to deploy and I have the same issue.

            Could it be a bug, or a misconfiguration ?

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

              The message your log is showing doesn’t help much but I did fix a rather annoying issue with snapins today.

              The message your log is showing seems to show that an error was thrown possibly on the fog server. Can you get a copy of the Apache error logs?

              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

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

                @Tom-Elliott I just updated FOG to version 39 from github and applied a snapin with success. Thank you very much, problem solved !

                If you’re still interested, here is my apache error log file for yesterday and today. I tried to deploy some snapin yesterday without success and I updated FOG today around 12:00.

                [Fri Sep 16 09:28:38 2016] [error] [client 10.0.238.179] PHP Strict Standards:  Only variables should be passed by reference in /var/www/fog/lib/fog/group.class.php on line 313, referer: http://fog.domain.com/fog/management/index.php?node=group&sub=edit&id=47
                [Fri Sep 16 09:50:57 2016] [error] [client 10.0.238.179] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Fri Sep 16 09:58:26 2016] [error] [client 10.0.238.179] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Fri Sep 16 10:08:45 2016] [error] [client 10.0.238.179] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Fri Sep 16 10:19:56 2016] [error] [client 10.0.238.179] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Fri Sep 16 10:24:52 2016] [error] [client 10.0.238.179] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Fri Sep 16 10:55:45 2016] [error] [client 10.0.238.179] PHP Strict Standards:  Only variables should be passed by reference in /var/www/fog/lib/fog/group.class.php on line 313, referer: http://fog.domain.com/fog/management/index.php?node=group&sub=edit&id=47
                [Fri Sep 16 11:21:38 2016] [error] [client 10.0.16.40] File does not exist: /var/www/favicon.ico, referer: http://fog/
                [Fri Sep 16 11:21:43 2016] [error] [client 10.0.16.40] File does not exist: /var/www/admin
                [Fri Sep 16 14:08:41 2016] [error] [client 10.0.0.10] PHP Warning:  array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/pages/snapinmanagementpage.class.php on line 212, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:08:41 2016] [error] [client 10.0.0.10] PHP Fatal error:  Uncaught exception 'Exception' with message 'Type: 8, File: /var/www/fog/lib/fog/fogbase.class.php, Line: 791, Message: Undefined index: value, Host: 10.0.107.11, Username: fog' in /var/www/fog/lib/fog/fogftp.class.php:74\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(92): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(831): StorageNode->loadSnapinfiles()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(212): FOGController->loadItem('snapinfiles')\n#3 /var/www/fog/lib/fog/storagenode.class.php(45): FOGController->get('snapinfiles')\n#4 /var/www/fog/lib/pages/snapinmanagementpage.class.php(210): StorageNode->get('snapinfiles')\n#5 [internal function]: SnapinManagementPage->{closure}(Object(StorageNode))\n#6 /var/www/fog/lib/pages/snapinmanagementpage.class.php(212): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(100): SnapinManagementPage->add()\n#8 /var/www/fog/management/index.php(25): FOGPageManager->render()\n#9 {main}\n  thrown in /var/www/fog/lib/fog/fogftp.class.php on line 74, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:09:59 2016] [error] [client 10.0.0.10] PHP Warning:  array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/pages/snapinmanagementpage.class.php on line 212, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:09:59 2016] [error] [client 10.0.0.10] PHP Fatal error:  Uncaught exception 'Exception' with message 'Type: 8, File: /var/www/fog/lib/fog/fogbase.class.php, Line: 791, Message: Undefined index: value, Host: 10.0.107.11, Username: fog' in /var/www/fog/lib/fog/fogftp.class.php:74\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(92): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(831): StorageNode->loadSnapinfiles()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(212): FOGController->loadItem('snapinfiles')\n#3 /var/www/fog/lib/fog/storagenode.class.php(45): FOGController->get('snapinfiles')\n#4 /var/www/fog/lib/pages/snapinmanagementpage.class.php(210): StorageNode->get('snapinfiles')\n#5 [internal function]: SnapinManagementPage->{closure}(Object(StorageNode))\n#6 /var/www/fog/lib/pages/snapinmanagementpage.class.php(212): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(100): SnapinManagementPage->add()\n#8 /var/www/fog/management/index.php(25): FOGPageManager->render()\n#9 {main}\n  thrown in /var/www/fog/lib/fog/fogftp.class.php on line 74, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:12:48 2016] [error] [client 10.0.0.10] PHP Warning:  array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/pages/snapinmanagementpage.class.php on line 378, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:12:48 2016] [error] [client 10.0.0.10] PHP Fatal error:  Uncaught exception 'Exception' with message 'Type: 8, File: /var/www/fog/lib/fog/fogbase.class.php, Line: 791, Message: Undefined index: value, Host: 10.0.107.11, Username: fog' in /var/www/fog/lib/fog/fogftp.class.php:74\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(92): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(831): StorageNode->loadSnapinfiles()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(212): FOGController->loadItem('snapinfiles')\n#3 /var/www/fog/lib/fog/storagenode.class.php(45): FOGController->get('snapinfiles')\n#4 /var/www/fog/lib/pages/snapinmanagementpage.class.php(376): StorageNode->get('snapinfiles')\n#5 [internal function]: SnapinManagementPage->{closure}(Object(StorageNode))\n#6 /var/www/fog/lib/pages/snapinmanagementpage.class.php(378): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(100): SnapinManagementPage->edit()\n#8 /var/www/fog/management/index.php(25): FOGPageManager->render()\n#9 {main}\n  thrown in /var/www/fog/lib/fog/fogftp.class.php on line 74, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:14:07 2016] [error] [client 10.0.0.10] PHP Warning:  array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/pages/snapinmanagementpage.class.php on line 378, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 14:14:07 2016] [error] [client 10.0.0.10] PHP Fatal error:  Uncaught exception 'Exception' with message 'Type: 8, File: /var/www/fog/lib/fog/fogbase.class.php, Line: 791, Message: Undefined index: value, Host: 10.0.107.11, Username: fog' in /var/www/fog/lib/fog/fogftp.class.php:74\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(92): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(831): StorageNode->loadSnapinfiles()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(212): FOGController->loadItem('snapinfiles')\n#3 /var/www/fog/lib/fog/storagenode.class.php(45): FOGController->get('snapinfiles')\n#4 /var/www/fog/lib/pages/snapinmanagementpage.class.php(376): StorageNode->get('snapinfiles')\n#5 [internal function]: SnapinManagementPage->{closure}(Object(StorageNode))\n#6 /var/www/fog/lib/pages/snapinmanagementpage.class.php(378): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(100): SnapinManagementPage->edit()\n#8 /var/www/fog/management/index.php(25): FOGPageManager->render()\n#9 {main}\n  thrown in /var/www/fog/lib/fog/fogftp.class.php on line 74, referer: http://fog.domain.com/fog/management/index.php?node=snapin&sub=list
                [Fri Sep 16 18:38:04 2016] [error] [client 10.0.0.10] PHP Strict Standards:  Only variables should be passed by reference in /var/www/fog/lib/fog/group.class.php on line 313, referer: http://fog.domain.com/fog/management/index.php?node=group&sub=edit&id=49
                [Fri Sep 16 19:17:29 2016] [error] [client 10.0.0.10] PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogbase.class.php on line 1227, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active-multicast
                [Sat Sep 17 11:47:34 2016] [error] [client 10.0.2.33] PHP Strict Standards:  Only variables should be passed by reference in /var/www/fog/lib/fog/group.class.php on line 313, referer: http://fog.domain.com/fog/management/index.php?node=group&sub=edit&id=51
                [Sat Sep 17 11:52:36 2016] [error] [client 10.0.2.33] PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/fog/lib/pages/reportmanagementpage.class.php on line 1053, referer: http://fog.domain.com/fog/management/index.php?node=report&sub=snapin-log
                [Sat Sep 17 11:52:36 2016] [error] [client 10.0.2.33] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/fog/lib/pages/reportmanagementpage.class.php on line 1053, referer: http://fog.domain.com/fog/management/index.php?node=report&sub=snapin-log
                [Sat Sep 17 11:59:13 2016] [error] [client 10.0.2.33] PHP Warning:  PDO::__construct(): MySQL server has gone away in /var/www/fog/lib/db/pdodb.class.php on line 152, referer: http://fog.domain.com/fog/management/index.php?node=task&sub=active
                [Sat Sep 17 11:59:36 2016] [error] [client 10.0.0.10] PHP Warning:  PDO::__construct(): MySQL server has gone away in /var/www/fog/lib/db/pdodb.class.php on line 152
                [Sat Sep 17 11:59:43 2016] [error] [client 10.0.71.89] PHP Warning:  PDO::__construct(): MySQL server has gone away in /var/www/fog/lib/db/pdodb.class.php on line 152, referer: http://fog.domain.com/fog/management/index.php?node=host&sub=deploy&id=233&type=13
                [Sat Sep 17 11:59:54 2016] [notice] caught SIGTERM, shutting down
                [Sat Sep 17 12:00:30 2016] [notice] Apache/2.2.22 (Debian) mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
                [Sat Sep 17 12:00:36 2016] [error] [client 10.0.0.5] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/fog/lib/db/mysqldump.class.php on line 383
                [Sat Sep 17 12:00:37 2016] [error] [client 10.0.0.5] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/fog/lib/db/mysqldump.class.php on line 400
                
                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @glefebvr
                  last edited by

                  @glefebvr the errors are fixed in latest and this was just more informative? Just confirming my sanity was Shakey for a while.

                  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

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

                    @Tom-Elliott Yes, this log is just informative, in case you wanted to have a look.

                    I confirm that snapins now work (1.3.0 working-RC-11, version 39)

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post

                    283

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project