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

    join active directory using fog on ubuntu /linux

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    22
    6.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
      Joe Schmitt Senior Developer
      last edited by Joe Schmitt

      @justeverything If you install the FOG client on your linux image, you can use snapins to run a bash script that joins a machine to your domain (snapins automatically get deployed when a host is imaged).

      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 1
      • justeverythingJ
        justeverything
        last edited by justeverything

        I will try that and write back if I have any issues. Thanks! 🙂

        edit: I have configured a snapin pack (joindomain.sh and my keytab file) and specified the path to the executable. so far it looks quite good, but now I have another problem - my fog client on the client system (ubuntu 16.04) always starts as active (exited). restarting the service does not help changing this. because of that my snapins won’t work porperly. any ideas on this? 😞

        this is my log file of the client installation:

         3/7/2017 1:38 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ca.cert.der
         3/7/2017 1:39 PM Data::RSA Injecting root CA: 
        

        here is the output of service FOGService status:

        ● FOGService.service - FOGService
           Loaded: loaded (/lib/systemd/system/FOGService.service; enabled; vendor prese
           Active: active (exited) since Die 2017-03-07 13:42:15 CET; 39s ago
          Process: 933 ExecStart=/opt/fog-service/control.sh start (code=exited, status=
         Main PID: 933 (code=exited, status=0/SUCCESS)
           CGroup: /system.slice/FOGService.service
        
        Mär 07 13:42:15 foguser systemd[1]: Starting FOGService...
        Mär 07 13:42:15 foguser control.sh[933]: fog-service is running....Now Stopping
        Mär 07 13:42:15 foguser control.sh[933]: /opt/fog-service/control.sh: line 19: k
        Mär 07 13:42:15 foguser systemd[1]: Started FOGService.
        
        

        these are my fog client logs:

        
         3/7/2017 1:39 PM Main Overriding exception handling
         3/7/2017 1:39 PM Main Bootstrapping Zazzles
         3/7/2017 1:39 PM Controller Initialize
         3/7/2017 1:39 PM Zazzles Creating main thread
         3/7/2017 1:39 PM Zazzles Service construction complete
         3/7/2017 1:39 PM Controller Start
        
         3/7/2017 1:39 PM Service Starting service
         3/7/2017 1:39 PM Bus Became bus server
         3/7/2017 1:39 PM Bus {
          "self": true,
          "channel": "Status",
          "data": "{\n  \"action\": \"load\"\n}"
        }
         3/7/2017 1:39 PM Bus Emmiting message on channel: Status
         3/7/2017 1:39 PM Service Invoking early JIT compilation on needed binaries
        
        ------------------------------------------------------------------------------
        --------------------------------Authentication--------------------------------
        ------------------------------------------------------------------------------
         3/7/2017 1:39 PM Client-Info Version: 0.11.9
         3/7/2017 1:39 PM Client-Info OS:      Linux
         3/7/2017 1:39 PM Middleware::Authentication Waiting for authentication timeout to pass
         3/7/2017 1:39 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
         3/7/2017 1:39 PM Middleware::Authentication ERROR: Could not authenticate
         3/7/2017 1:39 PM Middleware::Authentication ERROR: Value cannot be null.
        Parameter name: authority
        
        ------------------------------------------------------------------------------
        --------------------------------Authentication--------------------------------
        ------------------------------------------------------------------------------
         3/7/2017 1:39 PM Client-Info Version: 0.11.9
         3/7/2017 1:39 PM Client-Info OS:      Linux
         3/7/2017 1:39 PM Middleware::Authentication Waiting for authentication timeout to pass
        
        

        I installed the client according to the manual for “Debian 8+, Ubuntu 13.10+, and derivatives” from https://wiki.fogproject.org/wiki/index.php?title=FOG_Client without noticing any error.

        any ideas?

        1 Reply Last reply Reply Quote 0
        • J
          Joe Schmitt Senior Developer
          last edited by Joe Schmitt

          @justeverything it seems you have a foguser on the machine? The client must be installed and run as root, and root only.

          The issue according to the logs is that the installer was unable to pin the needed certificates (these are used for the security model). It would also be helpful to know what version of mono you are running.

          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.

          justeverythingJ 1 Reply Last reply Reply Quote 0
          • justeverythingJ
            justeverything @Joe Schmitt
            last edited by justeverything

            I used the following commands:

            sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
            echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
            sudo apt-get update
            sudo apt-get install mono-complete
            sudo apt-get install xprintidle
            sudo mono SmartInstaller.exe
            

            So you said I should try installing the client not using sudo … but changing to root before using the commands? So at least do the mono thing as root?

            1 Reply Last reply Reply Quote 0
            • J
              Joe Schmitt Senior Developer
              last edited by

              @justeverything it should be fine the way you did it. What’s the mono version installed? Run mono --version.

              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
              • justeverythingJ
                justeverything
                last edited by justeverything

                @Joe-Schmitt I’m running mono version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Web Feb 22 18:30:58 UTC 2017) so my version is better than the required version of 4.2.x.

                1 Reply Last reply Reply Quote 0
                • J
                  Joe Schmitt Senior Developer
                  last edited by

                  @justeverything so this is definitely a dependency issue here. Either there’s a bug in the recent builds of mono with Ubuntu 16, or some service is blocking the certificate pinning on this machine.

                  Could you try: removing the service, setting SELinux to permissive, and re-installing?

                  If that doesn’t work, goahead and re-enable SELinux, and try an older mono build (perhaps using the stock mono build provided in ubuntu repositories).

                  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.

                  justeverythingJ 1 Reply Last reply Reply Quote 0
                  • justeverythingJ
                    justeverything @Joe Schmitt
                    last edited by justeverything

                    @Joe-Schmitt I could need a little help on that. How do I set SELinux to permissive?

                    I removing the FOGService and installing it again doesn’t help.

                    edit: I checked an my selinux is set to diabled?

                    1 Reply Last reply Reply Quote 0
                    • J
                      Joe Schmitt Senior Developer
                      last edited by

                      @justeverything you can run this command: sudo setenforce 0 to temporarily set SELinux to permissive. After done testing with it, run sudo setenforce 1 to set to back to enforcing.

                      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.

                      justeverythingJ 1 Reply Last reply Reply Quote 0
                      • justeverythingJ
                        justeverything @Joe Schmitt
                        last edited by

                        @Joe-Schmitt if I try those commands it always says SELinux is disabled.

                        1 Reply Last reply Reply Quote 0
                        • J
                          Joe Schmitt Senior Developer
                          last edited by Joe Schmitt

                          @justeverything alright, can you test the older mono build then? So `

                          • sudo apt-get remove --purge mono-complete
                          • sudo rm /etc/apt/sources.list.d/mono-xamarin.list
                          • sudo apt-get update
                          • sudo apt-get install mono-complete

                          And then re-test installation. (Also re-run the version command and report which one is now installed)

                          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.

                          justeverythingJ 1 Reply Last reply Reply Quote 1
                          • justeverythingJ
                            justeverything @Joe Schmitt
                            last edited by

                            @Joe-Schmitt I also had to run a sudo apt-get autoremove because of some error codes related to different mono versions. Now it is installing mono version 4.2.1.

                            mono --version output: Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)

                            after rerunning the SmartInstaller.exe with mono I still have FOGService active (exited) 😞

                            1 Reply Last reply Reply Quote 0
                            • J
                              Joe Schmitt Senior Developer
                              last edited by

                              @justeverything active (exited) is fine, that’s just how the client wraps itself around the various linux service controllers. Whats; more important now is the 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.

                              justeverythingJ 1 Reply Last reply Reply Quote 0
                              • justeverythingJ
                                justeverything @Joe Schmitt
                                last edited by justeverything

                                @Joe-Schmitt the installation logfile “SmartInstaller.log” says:

                                3/7/2017 5:17 PM Process ERROR: Unable to run process
                                3/7/2017 5:17 PM Process ERROR: ApplicationName='sysv-rc-conf', CommandLine='FOGService off', CurrentDirectory='', Native error= Cannot find the specified file
                                3/7/2017 5:17 PM Process ERROR: Unable to run process
                                3/7/2017 5:17 PM Process ERROR: ApplicationName='chkconfig', CommandLine='FOGService off', CurrentDirectory='', Native error= Cannot find the specified file
                                3/7/2017 5:17 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ca.cert.der
                                3/7/2017 5:17 PM Data::RSA Injecting root CA:
                                

                                the fog.log is here:

                                3/7/2017 5:17 PM Main Overriding exception handling
                                3/7/2017 5:17 PM Main Bootstrapping Zazzles
                                3/7/2017 5:17 PM Controller Initialize
                                3/7/2017 5:17 PM Zazzles Creating main thread
                                3/7/2017 5:17 PM Zazzles Service construction complete
                                3/7/2017 5:17 PM Controller Start
                                
                                3/7/2017 5:17 PM Service Starting service
                                3/7/2017 5:17 PM Bus Became bus server
                                3/7/2017 5:17 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"load\"\n}"
                                }
                                3/7/2017 5:17 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:17 PM Service Invoking early JIT compilation on needed binaries
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info OS:      Linux
                                3/7/2017 5:17 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:17 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:17 PM Data::RSA FOG Server CA cert found
                                3/7/2017 5:17 PM Middleware::Authentication Cert OK
                                3/7/2017 5:17 PM Middleware::Authentication ERROR: Could not get security token
                                3/7/2017 5:17 PM Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat".
                                3/7/2017 5:17 PM Middleware::Communication POST URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM Middleware::Authentication Authenticated
                                
                                
                                3/7/2017 5:17 PM Bus Registering ParseBus in channel Power
                                3/7/2017 5:17 PM Middleware::Communication URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&configure&newService&json
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM Middleware::Communication URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&mac=44:37:E6:56:46:19&newService&json
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM Middleware::Communication URL: http://10.83.167.14/fog/service/getversion.php?clientver&newService&json
                                3/7/2017 5:17 PM Middleware::Communication URL: http://10.83.167.14/fog/service/getversion.php?newService&json
                                
                                3/7/2017 5:17 PM Service Creating user agent cache
                                3/7/2017 5:17 PM Middleware::Response Invalid time
                                3/7/2017 5:17 PM Middleware::Response No Printers
                                3/7/2017 5:17 PM Middleware::Response Module is disabled globally on the FOG server
                                3/7/2017 5:17 PM Service Initializing modules
                                
                                ------------------------------------------------------------------------------
                                ---------------------------------ClientUpdater--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                ----------------------------------TaskReboot----------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                --------------------------------HostnameChanger-------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM HostnameChanger Checking Hostname
                                3/7/2017 5:17 PM HostnameChanger Removing host from domain
                                3/7/2017 5:17 PM HostnameChanger ERROR: Required domain information is missing
                                3/7/2017 5:17 PM HostnameChanger Renaming host to fog-desktop-173
                                3/7/2017 5:17 PM HostnameChanger Brute forcing hostname change...
                                3/7/2017 5:17 PM HostnameChanger --> Success /etc/hostname
                                3/7/2017 5:17 PM HostnameChanger ERROR: --> Did not find /etc/HOSTNAME
                                3/7/2017 5:17 PM HostnameChanger --> Success /etc/hosts
                                3/7/2017 5:17 PM HostnameChanger ERROR: --> Did not find /etc/sysconfig/network
                                3/7/2017 5:17 PM Power Creating shutdown command in 60 seconds
                                3/7/2017 5:17 PM Bus {
                                 "self": true,
                                 "channel": "Power",
                                 "data": "{\n  \"action\": \"request\",\n  \"period\": 60,\n  \"options\": 2,\n  \"command\": \"-r +0 \\\"FOG needs to rename your computer\\\"\",\n  \"aggregatedDelayTime\": 0,\n  \"message\": \"\"\n}"
                                }
                                3/7/2017 5:17 PM Bus Emmiting message on channel: Power
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                ---------------------------------SnapinClient---------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM SnapinClient A power operation is pending, aborting module
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                --------------------------------PrinterManager--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response No Printers
                                3/7/2017 5:17 PM PrinterManager Module is not compatible with Linux
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                --------------------------------PowerManagement-------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM PowerManagement Calculating tasks to unschedule
                                3/7/2017 5:17 PM PowerManagement Calculating tasks to schedule
                                ------------------------------------------------------------------------------
                                
                                
                                ------------------------------------------------------------------------------
                                ----------------------------------UserTracker---------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Client Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info Client OS:      Linux
                                3/7/2017 5:17 PM Client-Info Server Version: 1.3.4
                                3/7/2017 5:17 PM Middleware::Response Success
                                3/7/2017 5:17 PM Middleware::Communication URL: http://10.83.167.14/fog/service/usertracking.report.php?action=login&user=foguser\ukpadmin&mac=44:37:E6:56:46:19&newService&json
                                ------------------------------------------------------------------------------
                                
                                3/7/2017 5:17 PM Service Sleeping for 112 seconds
                                3/7/2017 5:17 PM Controller Stop
                                3/7/2017 5:17 PM Service Stop requested
                                3/7/2017 5:17 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"unload\"\n}"
                                }
                                3/7/2017 5:17 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:17 PM Main Overriding exception handling
                                3/7/2017 5:17 PM Main Bootstrapping Zazzles
                                3/7/2017 5:17 PM Controller Initialize
                                3/7/2017 5:17 PM Zazzles Creating main thread
                                3/7/2017 5:17 PM Zazzles Service construction complete
                                3/7/2017 5:17 PM Controller Start
                                
                                3/7/2017 5:17 PM Service Starting service
                                3/7/2017 5:17 PM Bus Became bus server
                                3/7/2017 5:17 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"load\"\n}"
                                }
                                3/7/2017 5:17 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:17 PM Service Invoking early JIT compilation on needed binaries
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:17 PM Client-Info Version: 0.11.9
                                3/7/2017 5:17 PM Client-Info OS:      Linux
                                3/7/2017 5:17 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:17 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:18 PM Controller Stop
                                3/7/2017 5:18 PM Service Stop requested
                                3/7/2017 5:18 PM Middleware::Communication ERROR: Could not download file
                                3/7/2017 5:18 PM Middleware::Communication ERROR: 
                                3/7/2017 5:18 PM Middleware::Authentication ERROR: Could not authenticate
                                3/7/2017 5:18 PM Middleware::Authentication ERROR: 
                                3/7/2017 5:18 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"unload\"\n}"
                                }
                                3/7/2017 5:18 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:20 PM Main Overriding exception handling
                                3/7/2017 5:20 PM Main Bootstrapping Zazzles
                                3/7/2017 5:20 PM Controller Initialize
                                3/7/2017 5:20 PM Zazzles Creating main thread
                                3/7/2017 5:20 PM Zazzles Service construction complete
                                3/7/2017 5:20 PM Controller Start
                                
                                3/7/2017 5:20 PM Service Starting service
                                3/7/2017 5:20 PM Bus Became bus server
                                3/7/2017 5:20 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"load\"\n}"
                                }
                                3/7/2017 5:20 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:20 PM Service Invoking early JIT compilation on needed binaries
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:20 PM Client-Info Version: 0.11.9
                                3/7/2017 5:20 PM Client-Info OS:      Linux
                                3/7/2017 5:20 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:20 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:20 PM Data::RSA FOG Server CA cert found
                                3/7/2017 5:20 PM Middleware::Authentication Cert OK
                                3/7/2017 5:20 PM Middleware::Authentication ERROR: Could not get security token
                                3/7/2017 5:20 PM Middleware::Authentication ERROR: Data unprotection failed.
                                3/7/2017 5:20 PM Middleware::Communication POST URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                3/7/2017 5:20 PM Middleware::Response Invalid security token
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:20 PM Client-Info Version: 0.11.9
                                3/7/2017 5:20 PM Client-Info OS:      Linux
                                3/7/2017 5:20 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:22 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:22 PM Data::RSA FOG Server CA cert found
                                3/7/2017 5:22 PM Middleware::Authentication Cert OK
                                3/7/2017 5:22 PM Middleware::Authentication ERROR: Could not get security token
                                3/7/2017 5:22 PM Middleware::Authentication ERROR: Data unprotection failed.
                                3/7/2017 5:22 PM Middleware::Communication POST URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                3/7/2017 5:22 PM Middleware::Response Invalid security token
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:22 PM Client-Info Version: 0.11.9
                                3/7/2017 5:22 PM Client-Info OS:      Linux
                                3/7/2017 5:22 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:22 PM Controller Stop
                                3/7/2017 5:22 PM Service Stop requested
                                3/7/2017 5:22 PM Middleware::Authentication ERROR: Could not authenticate
                                3/7/2017 5:22 PM Middleware::Authentication ERROR: 
                                3/7/2017 5:22 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"unload\"\n}"
                                }
                                3/7/2017 5:22 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:23 PM Main Overriding exception handling
                                3/7/2017 5:23 PM Main Bootstrapping Zazzles
                                3/7/2017 5:23 PM Controller Initialize
                                3/7/2017 5:23 PM Zazzles Creating main thread
                                3/7/2017 5:23 PM Zazzles Service construction complete
                                3/7/2017 5:23 PM Controller Start
                                
                                3/7/2017 5:23 PM Service Starting service
                                3/7/2017 5:23 PM Bus Became bus server
                                3/7/2017 5:23 PM Bus {
                                 "self": true,
                                 "channel": "Status",
                                 "data": "{\n  \"action\": \"load\"\n}"
                                }
                                3/7/2017 5:23 PM Bus Emmiting message on channel: Status
                                3/7/2017 5:23 PM Service Invoking early JIT compilation on needed binaries
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:23 PM Client-Info Version: 0.11.9
                                3/7/2017 5:23 PM Client-Info OS:      Linux
                                3/7/2017 5:23 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:23 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:24 PM Middleware::Communication ERROR: Could not download file
                                3/7/2017 5:24 PM Middleware::Communication ERROR: The request timed out
                                3/7/2017 5:24 PM Middleware::Authentication ERROR: Could not authenticate
                                3/7/2017 5:24 PM Middleware::Authentication ERROR: Could not find file "/opt/fog-service/tmp/public.cer".
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:24 PM Client-Info Version: 0.11.9
                                3/7/2017 5:24 PM Client-Info OS:      Linux
                                3/7/2017 5:24 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:25 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:25 PM Data::RSA FOG Server CA cert found
                                3/7/2017 5:25 PM Middleware::Authentication Cert OK
                                3/7/2017 5:25 PM Middleware::Authentication ERROR: Could not get security token
                                3/7/2017 5:25 PM Middleware::Authentication ERROR: Data unprotection failed.
                                3/7/2017 5:25 PM Middleware::Communication POST URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                3/7/2017 5:25 PM Middleware::Response Invalid security token
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:25 PM Client-Info Version: 0.11.9
                                3/7/2017 5:25 PM Client-Info OS:      Linux
                                3/7/2017 5:25 PM Middleware::Authentication Waiting for authentication timeout to pass
                                3/7/2017 5:27 PM Middleware::Communication Download: http://10.83.167.14/fog/management/other/ssl/srvpublic.crt
                                3/7/2017 5:27 PM Data::RSA FOG Server CA cert found
                                3/7/2017 5:27 PM Middleware::Authentication Cert OK
                                3/7/2017 5:27 PM Middleware::Authentication ERROR: Could not get security token
                                3/7/2017 5:27 PM Middleware::Authentication ERROR: Data unprotection failed.
                                3/7/2017 5:27 PM Middleware::Communication POST URL: http://10.83.167.14/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                3/7/2017 5:27 PM Middleware::Response Invalid security token
                                
                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                3/7/2017 5:27 PM Client-Info Version: 0.11.9
                                3/7/2017 5:27 PM Client-Info OS:      Linux
                                3/7/2017 5:27 PM Middleware::Authentication Waiting for authentication timeout to pass
                                
                                1 Reply Last reply Reply Quote 0
                                • J
                                  Joe Schmitt Senior Developer
                                  last edited by Joe Schmitt

                                  @justeverything thats good. That means certificate pinning worked. Simply go to the host in the web portal and hit “Reset Encryption Data” and it should work fine now.

                                  It would seem your issue was with recent builds of mono.

                                  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.

                                  justeverythingJ 2 Replies Last reply Reply Quote 0
                                  • justeverythingJ
                                    justeverything @Joe Schmitt
                                    last edited by

                                    @Joe-Schmitt I will try it. If it works now you are my new personal god! 🙂

                                    I will also post my solution to joining ubuntu to the active directory with the snapin / bash file / keytab if it works all properly in the next days. I hope this will help other users until there is a solution directly via fog for linux.

                                    1 Reply Last reply Reply Quote 0
                                    • justeverythingJ
                                      justeverything @Joe Schmitt
                                      last edited by

                                      @Joe-Schmitt snapins now work perfectly! thanks a lot!

                                      Now i just have to do some settings on my custom snapin - but I will do this tomorrow, its already late here in germany. Thanks again for your help, I really appreciate it!

                                      1 Reply Last reply Reply Quote 0
                                      • justeverythingJ
                                        justeverything
                                        last edited by justeverything

                                        well, I have to ask another question - My Snapin does not work correctly. If I start it manually on the host pc, everything works fine. but If i run it with the fog client, it does not work. the snapin history of the client says:

                                        joindomain	2017-03-15 10:22:44	Complete	30 seconds	0
                                        

                                        so no error code. that’s fine I guess. I read in your wiki, that the script is run by the user root or SYSTEM and that there may be some issues with the security, but I really can’t find out where or what the issues could be.

                                        here are my snapin settings:
                                        Name joindomain
                                        Type Snapin Pack
                                        Pack Template - please select an option -
                                        Pack File /bin/bash
                                        Pack Arguments “[FOG_SNAPIN_PATH]/joindomain.sh”
                                        Reboot after install checked
                                        Snapin enabled checked
                                        Replicate? checked
                                        Timeout after 600 seconds
                                        Snapin Command /bin/bash “[FOG_SNAPIN_PATH]/joindomain.sh”

                                        the fog client log says the following -
                                        so also everything seems to be fine. what else can I consider?

                                        ------------------------------------------------------------------------------
                                        ---------------------------------SnapinClient---------------------------------
                                        ------------------------------------------------------------------------------
                                         3/15/2017 11:22 AM Client-Info Client Version: 0.11.9
                                         3/15/2017 11:22 AM Client-Info Client OS:      Linux
                                         3/15/2017 11:22 AM Client-Info Server Version: 1.3.4
                                         3/15/2017 11:22 AM Middleware::Response Success
                                         3/15/2017 11:22 AM SnapinClient Snapin Found:
                                         3/15/2017 11:22 AM SnapinClient     ID: 25
                                         3/15/2017 11:22 AM SnapinClient     Name: joindomain
                                         3/15/2017 11:22 AM SnapinClient     Created: 2017-03-15 10:22:42
                                         3/15/2017 11:22 AM SnapinClient     Action: reboot
                                         3/15/2017 11:22 AM SnapinClient     Pack: True
                                         3/15/2017 11:22 AM SnapinClient     Hide: False
                                         3/15/2017 11:22 AM SnapinClient     Server: 
                                         3/15/2017 11:22 AM SnapinClient     TimeOut: 600
                                         3/15/2017 11:22 AM SnapinClient     SnapinPack File: /bin/bash
                                         3/15/2017 11:22 AM SnapinClient     SnapinPack Args: "[FOG_SNAPIN_PATH]/joindomain.sh"
                                         3/15/2017 11:22 AM SnapinClient     File: joindomain.zip
                                         3/15/2017 11:22 AM Middleware::Communication Download: http://10.83.167.14/fog/service/snapins.file.php?mac=44:37:E6:56:46:19&taskid=25
                                         3/15/2017 11:22 AM SnapinClient /opt/fog-service/tmp/joindomain.zip
                                         3/15/2017 11:22 AM SnapinClient Processing SnapinPack joindomain.zip
                                         3/15/2017 11:22 AM SnapinClient Extracting SnapinPack
                                         3/15/2017 11:22 AM SnapinClient Processing SnapinPack settings
                                         3/15/2017 11:22 AM SnapinClient New SnapinPack File: /bin/bash
                                         3/15/2017 11:22 AM SnapinClient New SnapinPack Args: "/opt/fog-service/tmp/joindomain/joindomain.sh"
                                         3/15/2017 11:22 AM Bus {
                                          "self": true,
                                          "channel": "Notification",
                                          "data": "{\n  \"title\": \"Installing joindomain\",\n  \"message\": \"Please do not shutdown until this is completed\"\n}"
                                        }
                                         3/15/2017 11:22 AM Bus Emmiting message on channel: Notification
                                         3/15/2017 11:22 AM SnapinClient Starting snapin...
                                         3/15/2017 11:23 AM SnapinClient Snapin finished
                                         3/15/2017 11:23 AM SnapinClient Return Code: 0
                                         3/15/2017 11:23 AM Bus {
                                          "self": true,
                                          "channel": "Notification",
                                          "data": "{\n  \"title\": \"joindomain installed\",\n  \"message\": \"Installation has finished and is now ready for use\"\n}"
                                        }
                                         3/15/2017 11:23 AM Bus Emmiting message on channel: Notification
                                         3/15/2017 11:23 AM Middleware::Communication URL: http://10.83.167.14/fog/service/snapins.checkin.php?taskid=25&exitcode=0&mac=44:37:E6:56:46:19&newService&json
                                         3/15/2017 11:23 AM Power Creating shutdown command in 60 seconds
                                         3/15/2017 11:23 AM Bus {
                                          "self": true,
                                          "channel": "Power",
                                          "data": "{\n  \"action\": \"request\",\n  \"period\": 60,\n  \"options\": 2,\n  \"command\": \"-r +0 \\\"Snapin requested restart\\\"\",\n  \"aggregatedDelayTime\": 0,\n  \"message\": \"This computer needs to reboot to apply new software.\"\n}"
                                        }
                                         3/15/2017 11:23 AM Bus Emmiting message on channel: Power
                                        ------------------------------------------------------------------------------
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          Joe Schmitt Senior Developer
                                          last edited by Joe Schmitt

                                          @justeverything at this point it’s a matter of debugging the script. Personally I’d have it use a log file somewhere (keep in mind it runs as root, so you can place it anywhere outside of the client tmp dir). Start with basic stuff like logging on script start, just to make sure it’s actually getting run.

                                          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.

                                          justeverythingJ 1 Reply Last reply Reply Quote 0
                                          • justeverythingJ
                                            justeverything @Joe Schmitt
                                            last edited by

                                            @Joe-Schmitt thank you 🙂 I finally found a little mistake that crashed everything, so now it runs perfectly. this can be marked as solved. thanks again for all your help! 🙂

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

                                            199

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project