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

Fog client 0.10.6 error "Object Reference not set to an instance of an object"

Scheduled Pinned Locked Moved
FOG Problems
5
14
5.5k
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.
  • F
    fry_p Moderator
    last edited by May 13, 2016, 11:28 AM

    Hi all,
    I am running Fog Git 7603 with client 0.10.6. I was trying to deploy a snapin and it wasn’t working. I looked at fog.log and saw this under all of the services that were trying to run:

    
    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     5/13/2016 6:08 AM Client-Info Client Version: 0.10.6
     5/13/2016 6:08 AM Client-Info Client OS:      Windows
     5/13/2016 6:08 AM Client-Info Server Version: 7603
     5/13/2016 6:08 AM Middleware::Response ERROR: Unable to get subsection
     5/13/2016 6:08 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
     5/13/2016 6:08 AM Service ERROR: Unable to run module
     5/13/2016 6:08 AM Service ERROR: Object reference not set to an instance of an object.
    ------------------------------------------------------------------------------
    

    Again, this is not just snapin client, but all services. Is there something I’m doing wrong?

    Thanks in advance for the help!
    Paul

    Like open source community computing? Why not do it for a good cause?
    Use your computer/server for humanitarian projects when it is idle!
    https://join.worldcommunitygrid.org?recruiterId=1026912

    A 1 Reply Last reply Oct 25, 2016, 7:07 AM Reply Quote 0
    • T
      Tom Elliott
      last edited by May 13, 2016, 11:32 AM

      I’m not seeing the same error.

      What’s in your 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

      1 Reply Last reply Reply Quote 0
      • F
        fry_p Moderator
        last edited by fry_p May 13, 2016, 5:39 AM May 13, 2016, 11:39 AM

        OK, I’m not an expert but I think this is bad:
        [Fri May 13 07:34:42.917284 2016] [:error] [pid 19523] [client 10.1.36.193:52663] PHP Warning: mysqli::mysqli(): MySQL server has gone away in /var/www/html/fog/lib/db/mysql.class.php on line 25

        It repeats this many times with many different IP’s listed. I believe it is both the legacy clients and the new clients.
        I’m no SQL expert, so forgive me if it is an obvious issue.

        Like open source community computing? Why not do it for a good cause?
        Use your computer/server for humanitarian projects when it is idle!
        https://join.worldcommunitygrid.org?recruiterId=1026912

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by May 13, 2016, 11:47 AM

          Try updating again please.

          I’m trying to figure out how to correct for an issue of query packet sizes. I added a timeout that I think you’re seeing being hit. Most of the time, the connections are handled in a persistent state. 10 seconds forces the DB to di of 10 seconds of inactivity.

          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

          F 3 Replies Last reply May 13, 2016, 11:55 AM Reply Quote 0
          • I
            ITCC
            last edited by May 13, 2016, 11:52 AM

            I’m on 7601 and have the same issue, only just updated from 7561, was fine before. I am pushing a new image.

            1 Reply Last reply Reply Quote 0
            • F
              fry_p Moderator @Tom Elliott
              last edited by fry_p May 13, 2016, 5:57 AM May 13, 2016, 11:55 AM

              @Tom-Elliott I am now on 7605 and it appears to be doing the same thing:

              ------------------------------------------------------------------------------
              ---------------------------------SnapinClient---------------------------------
              ------------------------------------------------------------------------------
               5/13/2016 7:53 AM Client-Info Client Version: 0.10.6
               5/13/2016 7:53 AM Client-Info Client OS:      Windows
               5/13/2016 7:53 AM Client-Info Server Version: 7605
               5/13/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection
               5/13/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
               5/13/2016 7:53 AM Service ERROR: Unable to run module
               5/13/2016 7:53 AM Service ERROR: Object reference not set to an instance of an object.
              

              EDIT: now the Apache logs say line 7 FYI

              Like open source community computing? Why not do it for a good cause?
              Use your computer/server for humanitarian projects when it is idle!
              https://join.worldcommunitygrid.org?recruiterId=1026912

              1 Reply Last reply Reply Quote 0
              • F
                fry_p Moderator @Tom Elliott
                last edited by May 13, 2016, 12:01 PM

                @Tom-Elliott new Apache error in log:

                Fri May 13 08:00:25.107051 2016] [:error] [pid 17793] [client 10.1.106.146:49243] PHP Fatal error:  Function name must be a string in /var/www/html/fog/lib/client/printerclient.class.php on line 7
                

                Like open source community computing? Why not do it for a good cause?
                Use your computer/server for humanitarian projects when it is idle!
                https://join.worldcommunitygrid.org?recruiterId=1026912

                1 Reply Last reply Reply Quote 0
                • I
                  ITCC
                  last edited by May 13, 2016, 12:03 PM

                  just rolled back to 7561, all working again.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fry_p Moderator @Tom Elliott
                    last edited by May 13, 2016, 12:05 PM

                    @Tom-Elliott I’m not helping by posting snippets of the apache log. Want the full one? I’m noticing errors on different lines now.
                    0_1463141143175_error.log

                    Like open source community computing? Why not do it for a good cause?
                    Use your computer/server for humanitarian projects when it is idle!
                    https://join.worldcommunitygrid.org?recruiterId=1026912

                    T 1 Reply Last reply May 13, 2016, 12:09 PM Reply Quote 0
                    • T
                      Tom Elliott @fry_p
                      last edited by May 13, 2016, 12:09 PM

                      @fry_p Printer Client message should be fixed.

                      With any luck the db lost issue should be corrected for again. Please try and thank you for the info so far.

                      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

                      F 1 Reply Last reply May 13, 2016, 12:16 PM Reply Quote 0
                      • F
                        fry_p Moderator @Tom Elliott
                        last edited by May 13, 2016, 12:16 PM

                        @Tom-Elliott On 7609, the client is back to normal. In fact, my snapin fired off too! Thank you my friend!

                        Like open source community computing? Why not do it for a good cause?
                        Use your computer/server for humanitarian projects when it is idle!
                        https://join.worldcommunitygrid.org?recruiterId=1026912

                        1 Reply Last reply Reply Quote 0
                        • x23piracyX
                          x23piracy
                          last edited by May 16, 2016, 10:04 AM

                          Hi,

                          with latest trunk (about 1 hour ago 7645) i also receive: Object Reference not set to an instance of an object
                          for printer section, (client 10.6) i have two printer active for installing but the log only shows:


                          --------------------------------PrinterManager--------------------------------

                          16.05.2016 11:47 Client-Info Client Version: 0.10.6
                          16.05.2016 11:47 Client-Info Client OS: Windows
                          16.05.2016 11:47 Client-Info Server Version: 7645
                          16.05.2016 11:47 Middleware::Response No Printers
                          16.05.2016 11:47 Service ERROR: Unable to run module
                          16.05.2016 11:47 Service ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

                          Regards X23

                          ║▌║█║▌│║▌║▌█

                          1 Reply Last reply Reply Quote 0
                          • x23piracyX
                            x23piracy
                            last edited by May 18, 2016, 9:57 AM

                            Solved for me:
                            https://forums.fogproject.org/topic/7441/fog-7645-and-client-10-6-printers-and-snapins-not-working/7

                            ║▌║█║▌│║▌║▌█

                            1 Reply Last reply Reply Quote 1
                            • A
                              antoniosarco @fry_p
                              last edited by Oct 25, 2016, 7:07 AM

                              The message “Object not set to instance of Object” means that you are trying to use an object which has not been initialized. That is, you either set it to null, or you never set it to anything at all. The runtime throwing a NullReferenceException always means the same thing: you are trying to use a reference. The reference is not initialized (or it was initialized, but is no longer initialized).

                              Antonio

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

                              201

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project