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

    SVN 3168 Invalid host

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    10
    2.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.
    • J
      jamesb
      last edited by

      I’m having an odd issue with some of my machines. I have all my machines syspreped and imaged with the FOG service on them so they will rename after the sysprep. The renaming did initially work but now when I look at the log file after I rebooted the machine I get an Invalid Host error for every single module that I have turned on. Here is the apache error that is referencing the machine.

      [SIZE=13px][COLOR=#555555]PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 478
      [Fri Mar 27 15:24:11.393732 2015] [:error] [pid 30448] [client 172.52.8.83:49216] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 497[/COLOR][/SIZE]

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

        The foreach messages that you’re seeing are not really anything causing the issues you’re seeing. I am about to push a fix so these errors no longer present, however it’s not going fix the issue you’re seeing. We need some more info if you can be willing enough to help.

        I don’t know where to start figuring it out though, could you provide the actual Client’s C:\fog.log file?

        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
        • J
          jamesb
          last edited by

          Here is the log file from the machine.

          [url=“/_imported_xf_attachments/1/1828_fog.log.txt?:”]fog.log.txt[/url]

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

            Can you go to the link:

            [url]http://172.28.2.21/fog/service/servicemodule-active.php?moduleid=usertracker&mac=D8:FC:93:75:57:55|DA:FC:93:75:57:52|DA:FC:93:75:57:51|D8:FC:93:75:57:51|34:E6:D7:49:02:79||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1[/url]

            What do you see on the page? My guess is you’ll see #!ih.

            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
            • J
              jamesb
              last edited by

              Yep, I do see a #!ih.

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

                Can you see this particular host on the GUI?

                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
                • J
                  jamesb
                  last edited by

                  No, and I think I’m starting to figure out why. This host is a laptop and it has a bunch of wireless MAC’s and a Bluetooth MAC along side of the normal LAN MAC. Upon testing some settings instead of rebooting the whole machine I just kill the FOG service and restart it. However it seems when I do that It tries to register all of those wireless MAC’s and makes a mess of my database. I manually created this host so it had a proper hostID number but after restarting the service on the laptop it now has a hostID of 0. This pushes the laptop to pending status but it never shows up in my pending list as it remains blank. Here are screenshots of my database.[ATTACH=full]1830[/ATTACH][ATTACH=full]1831[/ATTACH]

                  [url=“/_imported_xf_attachments/1/1830_ScreenHunter_68 Mar. 30 07.57.jpg?:”]ScreenHunter_68 Mar. 30 07.57.jpg[/url][url=“/_imported_xf_attachments/1/1831_ScreenHunter_69 Mar. 30 07.58.jpg?:”]ScreenHunter_69 Mar. 30 07.58.jpg[/url]

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

                    I’d say:

                    Delete all the hostMACs that have a hmHostID = 0

                    Delete all hosts that have hostID = 0.

                    Just my recommendation. You will likely have to reregister the system (or let the new client put it in pending)

                    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
                    • J
                      jamesb
                      last edited by

                      I’ve did that many times. Even when rebooting it wants to add in all of those MAC addresses. I’ve turned off the host registration which seems to have solved the problem for now. I’ve never seen the host registration service want to grab every single MAC address before.

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

                        It’s always wanted to grab all the MAC Addresses. That’s exactly what its purpose is.

                        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
                        • 1 / 1
                        • First post
                          Last post

                        158

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project