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

Hostname changer not working

Scheduled Pinned Locked Moved Solved
FOG Problems
8
25
11.7k
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.
  • N
    nengelhardt
    last edited by Sep 15, 2015, 11:44 PM

    I’m running the lastest git build as of today maybe a half hour ago. I uninstalled the old client service from the client, removed the FOG certificate, downloaded the latest one from the server, and installed it, but I’m still having an issue with the hostname changer, as you can see in the fog.log

    1 Reply Last reply Reply Quote 0
    • J
      Joe Schmitt Senior Developer
      last edited by Sep 15, 2015, 11:55 PM

      Can you press “Reset encryption data” for the host on the fog server?

      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.

      1 Reply Last reply Reply Quote 0
      • N
        nengelhardt
        last edited by Sep 16, 2015, 1:28 AM

        Didn’t know that button existed. Thanks. That did it, but now the clients are trying to update to 0.9.5 automatically, and all they succeed in doing is uninstall the old version. I’ll probably have to push out 0.9.5 in an image, but I thought I’d let you know

        W 1 Reply Last reply Sep 16, 2015, 2:04 AM Reply Quote 0
        • W
          Wayne Workman @nengelhardt
          last edited by Sep 16, 2015, 2:04 AM

          @nengelhardt said:

          Didn’t know that button existed. Thanks. That did it, but now the clients are trying to update to 0.9.5 automatically, and all they succeed in doing is uninstall the old version. I’ll probably have to push out 0.9.5 in an image, but I thought I’d let you know

          Why did they fail? Can you provide the logs, or an explanation or suspicion?

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • J
            Joe Schmitt Senior Developer
            last edited by Sep 16, 2015, 2:07 AM

            @nengelhardt I need to see a fog.log file from one of the clients that failed to update.

            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.

            1 Reply Last reply Reply Quote 0
            • K
              Kiweegie
              last edited by Sep 17, 2015, 11:26 AM

              Hi all

              I’m seeing this on FOG version 4582 and client version 0.94.

              C:\fog.log on client shows

              ------------------------------------------------------------------------------
              --------------------------------HostnameChanger-------------------------------
              ------------------------------------------------------------------------------
               15/09/2015 16:37 Client-Info Version: 0.9.4
               15/09/2015 16:37 HostnameChanger Running...
               15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=FC:AA:14:10:4D:7C||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
               15/09/2015 16:37 Middleware::Communication Response: Success
               15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/service/hostname.php?moduleid=hostnamechanger&mac=FC:AA:14:10:4D:7C||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
               15/09/2015 16:37 Middleware::Communication Response: Invalid host certificate
               15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/management/other/ssl/srvpublic.crt
               15/09/2015 16:37 Middleware::Authentication ERROR: Could not get security token
               15/09/2015 16:37 Middleware::Authentication ERROR: Could not find file 'C:\Windows\system32\token.dat'.
               15/09/2015 16:37 Data::RSA CA cert found
               15/09/2015 16:37 Data::RSA ERROR: Certificate validation failed
               15/09/2015 16:37 Data::RSA ERROR: Trust chain did not complete to the known authority anchor. Errors: The signature of the certificate cannot be verified. (NotSignatureValid)
               15/09/2015 16:37 Middleware::Authentication ERROR: Could not authenticate
               15/09/2015 16:37 Middleware::Authentication ERROR: Certificate is not from FOG CA
              ------------------------------------------------------------------------------
              

              But I cannot see a Reset encryption data button anywhere. Does this exist on my version of FOG? If so could someone give me a pointer on where I can find it?

              regards, Kiweegie

              C 1 Reply Last reply Sep 17, 2015, 1:19 PM Reply Quote 0
              • C
                ch3i Moderator @Kiweegie
                last edited by Sep 17, 2015, 1:19 PM

                @Kiweegie Same problem here !

                1 Reply Last reply Reply Quote 0
                • J
                  Joe Schmitt Senior Developer
                  last edited by Sep 17, 2015, 1:22 PM

                  @Kiweegie @ch3i The “Reset encryption” button will only fix “Invalid security token” errors. What you have is an untrusted server. Did you reset the CA keys or swap out FOG servers recently?

                  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.

                  C K 2 Replies Last reply Sep 18, 2015, 7:07 AM Reply Quote 0
                  • G
                    giejo63
                    last edited by giejo63 Sep 17, 2015, 9:22 AM Sep 17, 2015, 3:21 PM

                    same problem for me but i have no error about a certificate or authenticate
                    client are using new fog client 0.9.5 but hostname changer didnt work
                    I see no error in fog.log

                    1 Reply Last reply Reply Quote 0
                    • J
                      Joe Schmitt Senior Developer
                      last edited by Sep 17, 2015, 3:25 PM

                      @giejo63 Can you upload the fog.log anyways? I can’t help unless I know exactly what is or isn’t happening.

                      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.

                      G 1 Reply Last reply Sep 22, 2015, 1:29 PM Reply Quote 0
                      • C
                        ch3i Moderator @Joe Schmitt
                        last edited by ch3i Sep 24, 2015, 12:53 AM Sep 18, 2015, 7:07 AM

                        @Jbob said:

                        @Kiweegie @ch3i The “Reset encryption” button will only fix “Invalid security token” errors. What you have is an untrusted server. Did you reset the CA keys or swap out FOG servers recently?

                        I think it’s a problem in my installation. @Tom-Elliott tried to help me via Teamviewer, but as he said : It’s weird ! lol

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kiweegie @Joe Schmitt
                          last edited by Sep 18, 2015, 1:34 PM

                          @Jbob Hi Jbob, yes this was indeed my issue and resolved by Tom Elliot. I had rebuilt my FOG server and so had a different CA key on the client which was imaged from the “old” FOG server before I rebuilt it.

                          Tom advised issue as:

                          The crt file that the client is using to send its authentication data is not signed by the server’s ca, or rather what your client thinks is the server’s certificate authority

                          Fix was to download new crt file from http://your_FOG_server/fog/management/other/ca.cert.der and install that on the affected client.

                          1 Reply Last reply Reply Quote 0
                          • G
                            giejo63 @Joe Schmitt
                            last edited by giejo63 Sep 22, 2015, 7:30 AM Sep 22, 2015, 1:29 PM

                            @Jbob said:

                            @giejo63 Can you upload the fog.log anyways? I can’t help unless I know exactly what is or isn’t happening.

                            Hi,
                            Here is my fog.log. I dont know why there is a communication error only for Hostname changer ??

                            ------------------------------------------------------------------------------
                            --------------------------------HostnameChanger-------------------------------
                            ------------------------------------------------------------------------------
                             22/09/2015 15:18 Client-Info Version: 0.9.5
                             22/09/2015 15:18 HostnameChanger Running...
                             22/09/2015 15:18 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=D4:3D:7E:D2:52:B4|&newService=1
                             22/09/2015 15:18 Middleware::Communication Response: Success
                             22/09/2015 15:18 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/hostname.php?moduleid=hostnamechanger&mac=D4:3D:7E:D2:52:B4|&newService=1
                             22/09/2015 15:20 Middleware::Communication ERROR: Could not contact FOG server
                             22/09/2015 15:20 Middleware::Communication ERROR: Le délai d'attente de l'opération a expiré.
                            ------------------------------------------------------------------------------
                            
                            
                            ------------------------------------------------------------------------------
                            ---------------------------------SnapinClient---------------------------------
                            ------------------------------------------------------------------------------
                             22/09/2015 21:02 Client-Info Version: 0.9.5
                             22/09/2015 21:02 SnapinClient Running...
                             22/09/2015 21:02 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=D4:3D:7E:D2:51:69||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
                             22/09/2015 21:02 Middleware::Communication Response: Success
                             22/09/2015 21:02 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/snapins.checkin.php?mac=D4:3D:7E:D2:51:69||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
                             22/09/2015 21:02 Middleware::Communication Response: No snapins
                            ------------------------------------------------------------------------------
                            
                            
                            ------------------------------------------------------------------------------
                            --------------------------------PrinterManager--------------------------------
                            ------------------------------------------------------------------------------
                             22/09/2015 21:02 Client-Info Version: 0.9.5
                             22/09/2015 21:02 PrinterManager Running...
                             22/09/2015 21:02 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/servicemodule-active.php?moduleid=printermanager&mac=D4:3D:7E:D2:51:69||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
                             22/09/2015 21:02 Middleware::Communication Response: Success
                             22/09/2015 21:02 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/Printers.php?mac=D4:3D:7E:D2:51:69||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
                             22/09/2015 21:02 Middleware::Communication Response: No Printers
                             22/09/2015 21:02 Middleware::Communication URL: http://xxx.xxx.xxx.xxx/fog/service/printerlisting.php?newService=1
                             22/09/2015 21:02 Middleware::Communication Response: No Printers
                            ------------------------------------------------------------------------------
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Sep 22, 2015, 2:40 PM

                              Pretty weird! Is xxx.xxx.xxx.xxx always the exact same IP address? Please make sure!

                              Why would one HTTP GET request work and another one the same minute not? Maybe just try this link in your webbrowser and see what response you get. Usually it should be like: ‘#!ok=<hostname> #AD=…’

                              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 Sep 23, 2015, 7:49 AM Reply Quote 0
                              • G
                                giejo63 @Sebastian Roth
                                last edited by giejo63 Sep 23, 2015, 1:50 AM Sep 23, 2015, 7:49 AM

                                @Uncle-Frank said:

                                Pretty weird! Is xxx.xxx.xxx.xxx always the exact same IP address? Please make sure!

                                Why would one HTTP GET request work and another one the same minute not? Maybe just try this link in your webbrowser and see what response you get. Usually it should be like: ‘#!ok=<hostname> #AD=…’

                                Hi,
                                xxx.xxx.xxx.xxx is always the same IP address. I’m sure.
                                I have never seen ‘#!ok=<hostname> #AD=…’
                                I dont know why…

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth Sep 23, 2015, 3:18 AM Sep 23, 2015, 9:17 AM

                                  I meant that you could try to access this link http://xxx.xxx.xxx.xxx/fog/service/hostname.php?moduleid=hostnamechanger&mac=D4:3D:7E:D2:52:B4|&newService=1 (exchange xxx.xxx.xxx.xxx with the IP of your FOG server) in a normal browser from any host in your network which has access to the FOG server via HTTP (probably most if not all hosts will have access I guess). Then you should see something like ‘#!ok=<hostname> #AD=…’ in that browser window… or possibly an error. Give it a try!

                                  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 Sep 23, 2015, 9:46 AM Reply Quote 0
                                  • G
                                    giejo63 @Sebastian Roth
                                    last edited by Sep 23, 2015, 9:46 AM

                                    @Uncle-Frank

                                    when i try in a browser, i see “#!ih”

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Sep 23, 2015, 9:59 AM

                                      I am sorry but I don’t know the code of the new client much yet. So I am not sure how the client would handle this response. Usually ‘#!ih’ means ‘invalid host’. What about if you access the other URLs you see in the log, e.g. http://xxx.xxx.xxx.xxx/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=D4:3D:7E:D2:52:B4|&newService=1

                                      By the way. Which version of FOG du you use (see in the blue cloud in the webinterface).

                                      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

                                      Tom ElliottT G 2 Replies Last reply Sep 23, 2015, 10:27 AM Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @Sebastian Roth
                                        last edited by Sep 23, 2015, 10:27 AM

                                        @Uncle-Frank my guess as to why he is seeing ih which is invalid host, is the MAC address being sent is the wifi while the Mac registered to the host is wired. This is just a guess.

                                        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 Sep 23, 2015, 11:11 AM Reply Quote 0
                                        • G
                                          giejo63 @Sebastian Roth
                                          last edited by Sep 23, 2015, 11:01 AM

                                          @Uncle-Frank

                                          when i try the other URL i have : “#!nh”

                                          I’m in version 4682

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

                                          147

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project