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

Fog server image move to another server Client problem

Scheduled Pinned Locked Moved Solved
General Problems
4
8
1.1k
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.
  • P
    Pikmin
    last edited by Jan 25, 2019, 5:20 AM

    Hi guys,
    I have fog1 server sysprepped image which has been deployed to a number of machines. Active Directory binding is working using the FOG Client and everything is working fine.

    I have setup fog2 server at another location, copied the image from fog1 and imported the record into the images table.
    I can see it in fog2 and I am able to deploy it, however the AD join is now not working.

    Are there any extra steps I should take, like a install certificate?

    Will go back to troubleshoot on Monday but just need some input if possible

    Thanks in advance

    Ubuntu 16.04 and fog 1.5.5

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Jan 25, 2019, 8:42 AM

      @Pikmin said:

      Are there any extra steps I should take, like a install certificate?

      Yeah you probably hit the nail on the head with that. When you install the fog-client (guess you have that in your sysprepped image, right?) it pulls the certificate from the FOG server (we call that process pinning). Now when you setup a new FOG server it has a new/different certificate and the client will need to be pinned to that.

      I am not an expert on the Windows side of things but I think that most people deploy the fog-client (silent install) via GPO or sysprep scripts. @george1421 and others can tell you I am sure.

      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 1
      • G
        george1421 Moderator
        last edited by Jan 25, 2019, 1:29 PM

        TBH, probably the easiest solution here would be to copy the FOG certificate from fog server #1 and replace the certificate on fog server #2 with that of server #1, then reboot fog server #2. This will of course break any fog clients that initially connected to fog server 2 for its certificate but will make all hosts that connected to fog server #1 be happy connecting to fog server #2.

        I don’t see this as a security risk if both fog server 1 and 2 are in the same organization. If they were at difference companies with different security domains I might take a different approach.

        The other way to go about it is to use a tool like PDQ Deploy to uninstall the current fog client, clean up what ever was needed and then reinstall the fog client pointing the client to the fog server #2

        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!

        1 Reply Last reply Reply Quote 1
        • P
          Pikmin
          last edited by Jan 25, 2019, 11:46 PM

          Thanks for your help guys, appreciate it.
          Yeah it’s one school, two campuses so shouldn’t be an issue.
          As for the location of the certificate, is it under :/var/www/html/fog/management/other/ssl
          or /opt/fog/snapins/ssl or the ca.cert.pem in other

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Jan 26, 2019, 1:21 AM

            @Pikmin Here is a list of files you’d need to copy over (don’t just overwrite but backup or move the ones on FOG server #2 before, just in case):

            /opt/fog/snapins/ssl/CA/.fogCA.key
            /opt/fog/snapins/ssl/CA/.fogCA.pem
            /opt/fog/snapins/ssl/.srvprivate.key
            /var/www/html/fog/management/other/ssl/srvpublic.crt
            /var/www/html/fog/management/other/ca.cert.pem
            /var/www/html/fog/management/other/ca.cert.der
            

            Hint: The later two are copies of the first file - CA cert - available to the clients in two different formats, you definitely need those in place if you add new fog-clients later on.

            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

            P 1 Reply Last reply Jan 27, 2019, 11:26 PM Reply Quote 2
            • W
              Wayne Workman
              last edited by Jan 27, 2019, 3:26 PM

              Related article for future readers: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

              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
              • P
                Pikmin @Sebastian Roth
                last edited by Jan 27, 2019, 11:26 PM

                @Sebastian-Roth Thank you kindly,
                I googled but couldn’t find the article that Wayne linked, I’m just bad.

                I will report back when I try it, forgot Monday is Australia Day, so no work 🙂

                1 Reply Last reply Reply Quote 0
                • P
                  Pikmin
                  last edited by Jan 28, 2019, 9:22 PM

                  SOLVED
                  Thanks guys, once the certificates were copied to the fog2 server, AD join started working

                  Yay 🙂

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

                  160

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project