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

    [Rev 5082] Snapins deploying issues

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    13
    3.6k
    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.
    • robzaR
      robza
      last edited by ch3i

      Hello,
      my config
      fedora 22
      fog svn 5082
      I have problems with deploying snapins.
      Logs from apache access.log

      172.21.48.31 - - [27/Oct/2015:14:54:44 +0100] "GET /fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03%7C%7C00:00:00:00:00:00:00:E0%7C00:00:00:00:00:00:00:E0&newService=1 HTTP/1.1" 200 4 "-" "-"
      

      Logs from apache error log

      [Tue Oct 27 14:50:24.282048 2015] [:error] [pid 28018] [client 172.21.2.8:55450] PHP Warning:  mysqli::close(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 21, referer: http://172.21.100.2/fog/management/index.php?node=about
      

      Client can’t see snapins.

      2015-10-27 14:13 Client-Info Version: 0.9.5
       2015-10-27 14:13 SnapinClient Running...
       2015-10-27 14:13 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
       2015-10-27 14:13 Middleware::Communication Response: Success
       2015-10-27 14:13 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
       2015-10-27 14:13 Middleware::Communication Response: No snapins
      

      When I go to:

      http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
      

      I get #!ok
      I did truncate table snapinJobs; and truncate table snapinTasks;
      but it did not help.

      Regards

      1 Reply Last reply Reply Quote 0
      • davido38D
        davido38
        last edited by

        Hi

        the same for me client can’t see snapin

        Debian jessie
        Fog 5082

        1 Reply Last reply Reply Quote 0
        • robzaR
          robza
          last edited by

          Hello,
          somebody can help? @Senior-Developers
          Regards

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

            @robza What do you see accessing this URL from your Browser: http://fog-server/fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1

            The mysql error does not seam to be related (different time stamp!).

            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

            robzaR 1 Reply Last reply Reply Quote 0
            • robzaR
              robza @Sebastian Roth
              last edited by

              Hi @Uncle-Frank when accessing this URL I got this:
              #!ns
              Regards

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

                Unfortunatelly this answer is being thrown in two places within that code. Could you please do me a favour and edit this PHP file on your server /var/www/html/fog/service/snapins.checkin.php

                Should be line 13 and 27. You see something like throw new Exception('#!ns'); Please change ‘ns’ to ‘nz’ (for example), save the file and open the URL in your browser again. What do you see?? Don’t forget to change back straight after this test.

                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

                robzaR 1 Reply Last reply Reply Quote 0
                • robzaR
                  robza @Sebastian Roth
                  last edited by

                  @Uncle-Frank when editing snapins.checkin.php i see this

                  <?php
                  require_once('../commons/base.inc.php');
                  $FOGCore->getClass(SnapinClient);
                  
                  Regs
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @robza I am really sorry. My fault. The file I meant is /var/www/html/fog/lib/client/SnapinClient.class.php (hope I got this right this time)

                    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
                    • davido38D
                      davido38
                      last edited by

                      I change to nz and it’s still ns in the browser .

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

                        @davido38 Which one did you change to ‘nz’?? As I said there are two places in that PHP file were ‘ns’ is used!

                        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

                          Snapins not deploying appropriately is now fixed. Still looking for this load problem.

                          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
                          • davido38D
                            davido38
                            last edited by

                            I change this one :
                            /var/www/fog/lib/client/SnapinClient.class.php

                            1 Reply Last reply Reply Quote 0
                            • davido38D
                              davido38
                              last edited by

                              No more problems after update.

                              thanks !!!

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

                              206

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project