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

    Hostname changer

    Scheduled Pinned Locked Moved
    FOG Problems
    8
    26
    11.9k
    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
      GFm
      last edited by

      [SIZE=13px][FONT=Tahoma][COLOR=#141414]After updating to 1.0.1 (from .32), mostly everything works. I ran into an issue with multiple computers using the hostname changer. [/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414] [/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]What I know…[/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414] [/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]-a computer (I’m using windows 7) will change the hostname and join the domain AFTER I go into services.msc to stop/start or restart the service[/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]-I tried rebooting and that doesnt fix it[/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]-the fog log just shows that it doesn’t see a hostname in the system[/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]-I tried using the old version of fog service (from a previous image) and I have uninstalled/reinstalled the updated fog service client - neither of which made a difference[/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414] [/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]Any help would be greatly appreciated![/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414] [/COLOR][/FONT][/SIZE]
      [SIZE=13px][FONT=Tahoma][COLOR=#141414]Thanks![/COLOR][/FONT][/SIZE]

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

        BTW this is my fog log… The MAC address matches to what I have in FOG, but the hostname is not correct.

        5/27/2014 4:19 PM * Starting FOG.SnapinClient
        5/27/2014 4:19 PM FOG::AutoLogOut Starting process…
        5/27/2014 4:19 PM * Starting FOG.DirCleaner
        5/27/2014 4:19 PM * Starting FOG.DisplayManager
        5/27/2014 4:19 PM FOG::ClientUpdater Starting client update process…
        5/27/2014 4:19 PM FOG::ClientUpdater Sleeping for 92 seconds.
        5/27/2014 4:19 PM FOG::DirCleaner Sleeping for 37 seconds.
        5/27/2014 4:19 PM * Starting FOG.GreenFog
        5/27/2014 4:19 PM * Starting FOG.GUIWatcher
        5/27/2014 4:19 PM FOG::DisplayManager Starting display manager process…
        5/27/2014 4:19 PM * Starting FOG.HostNameChanger
        5/27/2014 4:19 PM FOG::GUIWatcher Starting GUI Watcher…
        5/27/2014 4:19 PM * Starting FOG.HostRegister
        5/27/2014 4:19 PM FOG::HostRegister Starting host registration process…
        5/27/2014 4:19 PM * Starting FOG.MODDebug
        5/27/2014 4:19 PM FOG::GreenFog Sleeping for 53 seconds.
        5/27/2014 4:19 PM * Starting FOG.PrinterManager
        5/27/2014 4:19 PM FOG::MODDebug Start Called
        5/27/2014 4:19 PM FOG::MODDebug Sleeping for 100 Seconds
        5/27/2014 4:19 PM * Starting FOG.SnapinClient
        5/27/2014 4:19 PM FOG::HostnameChanger Starting hostname change process…
        5/27/2014 4:19 PM FOG::HostnameChanger Yielding to other subservices for 6 seconds.
        5/27/2014 4:19 PM * Starting FOG.TaskReboot
        5/27/2014 4:19 PM FOG::PrinterManager Starting interprocess communication process…
        5/27/2014 4:19 PM FOG::TaskReboot Taskreboot in lazy mode.
        5/27/2014 4:19 PM FOG::PrinterManager interprocess comm startup: OK
        5/27/2014 4:19 PM * Starting FOG.UserCleanup
        5/27/2014 4:19 PM FOG::TaskReboot Starting Task Reboot…
        5/27/2014 4:19 PM * Starting FOG.UserTracker
        5/27/2014 4:19 PM FOG::UserCleanup Sleeping for 18 seconds.
        5/27/2014 4:19 PM FOG::UserTracker Starting user tracking process…
        5/27/2014 4:19 PM FOG::SnapinClient Starting snapin client process…
        5/27/2014 4:19 PM FOG::PrinterManager Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::HostRegister Exiting because only 1 mac address was found.
        5/27/2014 4:19 PM FOG::DisplayManager Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::SnapinClient Sleeping for 393 seconds.
        5/27/2014 4:19 PM FOG::UserTracker Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::TaskReboot Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::AutoLogOut Module is disabled on this host.
        5/27/2014 4:19 PM FOG::PrinterManager Module is disabled on this host.
        5/27/2014 4:19 PM FOG::TaskReboot Module is disabled on this mac.
        5/27/2014 4:19 PM FOG::TaskReboot No task found for client.
        5/27/2014 4:19 PM FOG::DisplayManager Module is disabled globally on the FOG Server.
        5/27/2014 4:19 PM FOG::HostnameChanger Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::HostnameChanger Module is disabled on this host.
        5/27/2014 4:19 PM FOG::HostnameChanger Host name was not found in the database.
        5/27/2014 4:19 PM FOG::UserCleanup Starting user cleanup process…
        5/27/2014 4:19 PM FOG::UserCleanup Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::UserCleanup Module is disabled globally on the FOG Server, exiting.
        5/27/2014 4:19 PM FOG::DirCleaner Starting directory cleaning process…
        5/27/2014 4:19 PM FOG::DirCleaner Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::DirCleaner Module is disabled on this host.
        5/27/2014 4:19 PM FOG::GreenFog Starting green fog…
        5/27/2014 4:19 PM FOG::GreenFog Attempting to connect to fog server…
        5/27/2014 4:19 PM FOG::GreenFog Module is disabled on this host.
        5/27/2014 4:20 PM FOG::ClientUpdater Attempting to connect to fog server…
        5/27/2014 4:20 PM FOG::ClientUpdater Module is disabled on this mac.
        5/27/2014 4:20 PM FOG::ClientUpdater Client update will be applied during next service startup.
        5/27/2014 4:20 PM FOG::ClientUpdater Client update process complete, exiting…
        5/27/2014 4:20 PM FOG::MODDebug Reading config settings…
        5/27/2014 4:20 PM FOG::MODDebug Reading of config settings passed.
        5/27/2014 4:20 PM FOG::MODDebug Starting Core processing…
        5/27/2014 4:20 PM FOG::MODDebug Operating System ID: 6
        5/27/2014 4:20 PM FOG::MODDebug Operating System Minor: 1
        5/27/2014 4:20 PM FOG::MODDebug MAC ID 0 38:60:77:2E:14:86
        5/27/2014 4:20 PM FOG::MODDebug MAC POST String: 38:60:77:2E:14:86
        5/27/2014 4:20 PM FOG::MODDebug No user is currently logged in
        5/27/2014 4:20 PM FOG::MODDebug Hostname: MBGSDMB-ML1FC07
        5/27/2014 4:20 PM FOG::MODDebug Attempting to open connect to: [url]http://10.1.0.7/fog/service/debug.php[/url]
        5/27/2014 4:20 PM FOG::MODDebug Server responded with: Hello FOG Client
        5/27/2014 4:20 PM FOG::MODDebug Module has finished work and will now exit.

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

          [code]5/27/2014 4:19 PM FOG::HostnameChanger Attempting to connect to fog server…
          5/27/2014 4:19 PM FOG::HostnameChanger Module is disabled on this host.
          5/27/2014 4:19 PM FOG::HostnameChanger Host name was not found in the database.[/code]

          These lines point at the fact the service was not enabled for the host. This means there’s nothing to find as there’s no work to perform.

          While this is what is being reported, I’m also aware of a bug that has since been fixed in svn dealing with the service modules. If you want you can install svn of FOG and see if that helps at all.

          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
          • G
            GFm
            last edited by

            Thanks for the quick response!

            I did verify that it was enabled on the device and this is what made me confused as to why it wasn’t joining. My temporary solution was to delete the host out of FOG and then image it as if it were brand new to the system. I have found so far all brand new devices added to FOG are imaging then joining the domain with no issues.

            I will do some more testing and report more specifics when I get more details. I plan to re-image some machines that are already in FOG and I want to see what happens with that.

            Thanks for the help so far!!

            1 Reply Last reply Reply Quote 0
            • JunkhackerJ
              Junkhacker Developer
              last edited by

              did you verify that the hostnamechanger service is enabled in Host Management->Service Settings ?

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              1 Reply Last reply Reply Quote 0
              • B
                Ben Warfield
                last edited by

                I’d like to echo what GFm has said, and provide another little detail.

                I am also seeing the issue where the hostname changer does not work until the service is restarted. I will image a machine, it’ll come up and just sit there. When I look at the log, I’m seeing the exact same errors:

                5/27/2014 4:19 PM FOG::HostnameChanger Attempting to connect to fog server…
                5/27/2014 4:19 PM FOG::HostnameChanger Module is disabled on this host.
                5/27/2014 4:19 PM FOG::HostnameChanger Host name was not found in the database.

                However, I seem to have narrowed it down to a specific scenario: It only happens to me if the hostname has been changed in FOG. I’m testing on 3 machines and can reproduce this. Let’s say I have the machines named pc-1, pc-2, and pc-3. If I change pc-3’s name to be pc-10, I can re-image all 3 machines and the 3rd one will have the hostname changer problem. It requires me restarting the service to complete. I have verified that the hostnamechanger service is enabled.

                Hope this helps…

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

                  Yes, hostnamechanger is enabled for my devices. I am testing a lot of stuff today and the rest of the week so I will provide more details as I narrow things down.

                  Thanks for all your input!

                  1 Reply Last reply Reply Quote 0
                  • B
                    Ben Warfield
                    last edited by

                    Has anyone else seen this issue or come across an answer? I’m still having to restart the fog service before it will change the hostname.

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

                      Do you have the new FOG service running? I’m still having issues and haven’t pinpointed a solution. You can try that?

                      I’ve noticed sometimes it automatically renames and joins the domain and sometimes I have to manually restart the computer or the service to get it to rename then join domain.

                      1 Reply Last reply Reply Quote 0
                      • JunkhackerJ
                        Junkhacker Developer
                        last edited by

                        try setting the fog service to delayed start

                        signature:
                        Junkhacker
                        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Ben Warfield
                          last edited by

                          GFm - yep, I downloaded the service installer right from the new version of FOG

                          Junkhacker - hmm, good suggestion. I will try that and get back to you.

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

                            Junkhacker - I will try that as well

                            Thanks 🙂

                            1 Reply Last reply Reply Quote 0
                            • B
                              Ben Warfield
                              last edited by

                              Update: Setting the service to delayed start works perfectly. Thanks for the idea!

                              1 Reply Last reply Reply Quote 0
                              • JunkhackerJ
                                Junkhacker Developer
                                last edited by

                                the root of the problem likely has to do with the fact that hostname changer only checks once, on startup. if it does not have a valid network connection at that time, it will not see the server, and won’t change the name, and won’t try again.

                                signature:
                                Junkhacker
                                We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                                  I did a lot of testing today and found the problem… not a solution yet.

                                  To give a brief background… I updated from 0.32 running ubuntu 10.04. I installed 14.04 and installed 1.0.1 -then migrated my fog install (i did this “clean” migration because when I just upgraded on the 10.04, some of my reports werent working -Pending macs, imaging logs, etc)

                                  My devices change the hostname and join the domain perfectly with…
                                  -newly added devices and delayed startup
                                  -devices deleted out of fog and re-added doing the full host registration

                                  It does not work when…
                                  -I have a device registered in fog before the migration

                                  I have tried restarting the service/computer, but that didnt help. I get the same errors as I posted before with…

                                  "
                                  5/27/2014 4:19 PM FOG::HostnameChanger Attempting to connect to fog server…
                                  5/27/2014 4:19 PM FOG::HostnameChanger Module is disabled on this host.
                                  5/27/2014 4:19 PM FOG::HostnameChanger Host name was not found in the database.
                                  "

                                  I have tried running a hardware inventory report on a machine that has been in fog before my migration… that did not help.

                                  Any ideas? Anyone else seeing this with or without an upgrade to the new 1.0.1 from 0.32?

                                  Thanks a lot!

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

                                    Quickfix I would think would be to go to make a group of the hosts that were registered before your migration going into that group going to service settings uncheck everything save recheck everything safe

                                    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
                                    • G
                                      GFm
                                      last edited by

                                      I will try that first thing tomorrow and let you know what happens.

                                      Thanks!

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Alipio Luiz
                                        last edited by

                                        I’m having the same issue after updating fog version from 0.32 to 1.0.1… I’ve already tried the Tom Elliott’s suggestion but unfortunately it didn’t work…

                                        04/06/2014 17:02 FOG::HostnameChanger Module is disabled on this host.
                                        04/06/2014 17:02 FOG::HostnameChanger Host name was not found in the database.

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

                                          Try this,

                                          Place all hosts in your fog system into a single group, (ODD I KNOW)

                                          Open a terminal window and ssh to your fog server.

                                          Run:
                                          [code]mysql -u root fog[/code]

                                          If you set a mysql root password run:
                                          [code]mysql -u root -p fog[/code]

                                          It should ask for your root password.

                                          Run the command:
                                          [code]truncate table moduleStatusByHost;[/code]

                                          You can close the terminal.

                                          Go back to your FOG Web GUI.

                                          Go to Group Management.

                                          List the group, or search for what ever you named the group.

                                          Select your group.

                                          Choose Service Settings.

                                          Select the Services you want enabled.

                                          Apply the changes.

                                          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
                                          • G
                                            GFm
                                            last edited by

                                            That seemed to do the trick! 🙂

                                            Thank you!

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

                                            178

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project