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

Trouble installing SmartClient on MacOS Sierra

Scheduled Pinned Locked Moved Unsolved
Mac Problems
9
53
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.
  • A
    ArtLong @kwetiaw
    last edited by Apr 10, 2019, 4:43 PM

    @kwetiaw I’m getting this same error on HS has this been resolved?

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Apr 11, 2019, 6:26 PM

      @ArtLong As Joe posted long time ago:

      To clarify; this is not an issue with the client, but rather a bug with mono dealing with Apple’s SIP (system integrity protection).

      I don’t have access to a Mac to test so we probably need other people to confirm this is still an issue. There is nothing much we can do about I suppose.

      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
      • D
        Daniel Miller
        last edited by Jun 27, 2019, 1:58 PM

        This is still an issue. Tested with Mono 5.20.1 Stable (5.20.1.19) on macOS 10.11.6, 10.13.6, and 10.14.5 with SmartInstaller.exe distributed with 1.5.5 and 1.5.6.

        SmartInstaller.log

        output from mono --version

        Mono JIT compiler version 5.20.1.19 (2018-10/886c4901747 Tue Apr  9 12:37:29 EDT 2019)
        Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        	TLS:           
        	SIGSEGV:       altstack
        	Notification:  kqueue
        	Architecture:  amd64
        	Disabled:      none
        	Misc:          softdebug 
        	Interpreter:   yes
        	LLVM:          yes(600)
        	Suspend:       hybrid
        	GC:            sgen (concurrent by default)
        

        Issue on the mono GitHub related to this is certmgr System.UnauthorizedAccessException: Access to the path “/usr/share/.mono” is denied. #12005 and it is still in an open status.

        D 1 Reply Last reply Jun 27, 2019, 5:11 PM Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jun 27, 2019, 3:17 PM

          @Daniel-Miller Good you brought this topic up again. We had a very similar thing on Linux where the fog-client wouldn’t be able to read back the certificates from the mono cert store. I can imagine this being the same issue.

          Check out this: https://forums.fogproject.org/topic/13374/fog-client-under-ubuntu-18-04-authentication-error-could-not-authenticate

          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

          D 1 Reply Last reply Jun 27, 2019, 3:52 PM Reply Quote 0
          • D
            Daniel Miller @Sebastian Roth
            last edited by Jun 27, 2019, 3:52 PM

            @Sebastian-Roth
            Well, not the same, but likely related. The mono issue noted the problem was present on both Linux and macOS, but for different reasons. If the changes in that version of zazzles takes over the cert handling from mono, that solution might work, but the installer removes the client when it detects the failed install so I don’t have a means to test if it does. These are all new installations as part of an attempt to solve a large package deployment issue here, so I don’t have a previously working client base to play with unfortunately.

                                 ..#######:.    ..,#,..     .::##::.   
                            .:######          .:;####:......;#;..      
                            ...##...        ...##;,;##::::.##...       
                               ,#          ...##.....##:::##     ..::  
                               ##    .::###,,##.   . ##.::#.:######::. 
                            ...##:::###::....#. ..  .#...#. #...#:::.  
                            ..:####:..    ..##......##::##  ..  #      
                                #  .      ...##:,;##;:::#: ... ##..    
                               .#  .       .:;####;::::.##:::;#:..     
                                #                     ..:;###..        
                                                                       
                            ###########################################
                            #     FOG                                 #
                            #     Free Computer Imaging Solution      #
                            #                                         #
                            #     https://www.fogproject.org/         #
                            #                                         #
                            #     Credits:                            #
                            #     https://fogproject.org/Credits      #
                            #     GNU GPL Version 3                   #
                            ###########################################
                            #           FOG Service Installer         #
            
            ------------------------------------License-----------------------------------
            
            FOG Service Copyright (C) 2014-2017 FOG Project
            This program comes with ABSOLUTELY NO WARRANTY.
            This is free software, and you are welcome to redistribute it under certain
            conditions. See your FOG server under 'FOG Configuration' -> 'License' for
            further information.
            
            ----------------------------------Information---------------------------------
            
            Version................................................................0.11.16
            OS.........................................................................Mac
            Current Path........................................../Users/x/Downloads
            Install Location............................................../opt/fog-service
            
            -----------------------------------Configure----------------------------------
            
            FOG Server address [default: fogserver]: fogserver
            Webroot [default: /fog]:                 
            Enable tray icon? [Y/n]:                 y
            
            ----------------------------------Installing----------------------------------
            
            Getting things ready....................................................[Pass]
            Installing files........................................................[Pass]
            Saving Configuration....................................................[Pass]
            Applying Configuration..................................................[Pass]
            Pinning FOG Project.....................................................[Fail]
            
            Installation failed, cleaning system
            
            -----------------------------------Uninstall----------------------------------
            
            Uninstalling............................................................[Pass]
            
            -----------------------------------Finished-----------------------------------
            
            See /Users/x/Downloads/SmartInstaller.log for more information.
            
            ASEGCB0240-06:opt x$ ls -al /opt
            total 0
            drwxr-xr-x   2 root  wheel    68 Jun 27 10:23 .
            drwxr-xr-x  40 root  wheel  1428 Jun 26 16:37 ..
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Jun 27, 2019, 5:02 PM

              @Daniel-Miller said:

              ...
              FOG Server address [default: fogserver]: fogserver
              ...
              

              Make sure you give the FOG server IP hear or it won’t be able to pin to it!

              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

              D 1 Reply Last reply Jun 27, 2019, 5:03 PM Reply Quote 0
              • D
                Daniel Miller @Sebastian Roth
                last edited by Jun 27, 2019, 5:03 PM

                @Sebastian-Roth names were changed to protect the guilty. 🙂

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Jun 27, 2019, 5:07 PM

                  @Daniel-Miller Ahh, I see. So then what do you get in /Users/x/Downloads/SmartInstaller.log??

                  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
                  • D
                    Daniel Miller @Daniel Miller
                    last edited by Jun 27, 2019, 5:11 PM

                    @Daniel-Miller said in Trouble installing SmartClient on MacOS Sierra:

                    SmartInstaller.log

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Sebastian Roth Jun 27, 2019, 1:31 PM Jun 27, 2019, 7:21 PM

                      @Daniel-Miller Dang… should have expected that.

                      I am not that great a C# coder than Joe is who created the whole new fog-client three years ago. Looking around I came across this: https://www.pinvoke.net/default.aspx/shell32/SHSetKnownFolderPath.html

                      Maybe we can use this on MacOS X to save the cert store in a different place?!

                      As well I am wondering what would happen if we change the fog-client code to not do:

                      var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
                      

                      but

                      var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
                      

                      But I have no idea where it would put the store then and if things would work this way?!

                      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
                      • S
                        Sebastian Roth Moderator
                        last edited by Jun 27, 2019, 8:30 PM

                        @Daniel-Miller I just compiled a new SmartInstaller for you that does use the StoreLocation.CurrentUser. Lets see if that makes a difference on your MacOS X.

                        https://file.io/JDxjcp

                        Cant promise anything. Its just a first try and I am not really sure if it will run properly even if the installer itself is fixed. The whole project building and signing the binaries is a very complex process and I am not sure I got it all right.

                        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

                        D 1 Reply Last reply Jun 28, 2019, 2:24 PM Reply Quote 0
                        • D
                          Daniel Miller @Sebastian Roth
                          last edited by Jun 28, 2019, 2:24 PM

                          @Sebastian-Roth
                          I can give it a go. Will need another link though; that one is returning an http error 404.

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Jun 28, 2019, 2:58 PM

                            @Daniel-Miller Strange, the link worked yesterday. Will upload somewere else 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

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Jun 28, 2019, 3:28 PM

                              @Daniel-Miller I know this doesn’t look very official uploading the installer to some cloud thing but it’s just for testing and the easiest for me right now: https://cloud.mi.hdm-stuttgart.de/index.php/s/LZnrNB9cWrmqsz7

                              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

                              D 1 Reply Last reply Jun 28, 2019, 7:11 PM Reply Quote 0
                              • D
                                Daniel Miller @Sebastian Roth
                                last edited by Jun 28, 2019, 7:11 PM

                                @Sebastian-Roth no worries

                                Good News:
                                The installer finished up without error.
                                After rebooting the machine and logging back into the admin user, the tray icon appeared, the service process appears to be running, and /opt/fog-server/fog.log appears to be initially happy:

                                 6/28/2019 11:29 AM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo
                                &configure&newService&json
                                 6/28/2019 11:29 AM Middleware::Response Success
                                 6/28/2019 11:29 AM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo
                                &mac=00:25:00:F0:83:DF|00:25:00:F0:6F:45|00:25:4B:FF:FE:FB:69:24&newService&json
                                 6/28/2019 11:29 AM Middleware::Response Invalid host
                                 6/28/2019 11:29 AM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newServic
                                e&json
                                 6/28/2019 11:29 AM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json
                                
                                 6/28/2019 11:29 AM Service Creating user agent cache
                                 6/28/2019 11:29 AM Middleware::Response Module is disabled on the host
                                 6/28/2019 11:29 AM Middleware::Response Module is disabled on the host
                                 6/28/2019 11:29 AM Middleware::Response Module is disabled globally on the FOG server
                                

                                Bad News:
                                Certificate store appears to be ~/.config/.mono/certs/Trust with respect to the installing user account and the service doesn’t appear to be reliably pulling from that store after further reboots. From /opt/fog-service/fog.log:

                                ------------------------------------------------------------------------------
                                --------------------------------Authentication--------------------------------
                                ------------------------------------------------------------------------------
                                 6/28/2019 11:44 AM Client-Info Version: 0.11.16
                                 6/28/2019 11:44 AM Client-Info OS:      Mac
                                 6/28/2019 11:44 AM Middleware::Authentication Waiting for authentication timeout to pass
                                 6/28/2019 11:46 AM Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
                                 6/28/2019 11:46 AM Data::RSA ERROR: Unable to retrieve FOG Server CA
                                 6/28/2019 11:46 AM Data::RSA ERROR: FOG Server CA NOT found in keystore
                                 6/28/2019 11:46 AM Middleware::Authentication ERROR: Could not authenticate
                                 6/28/2019 11:46 AM Middleware::Authentication ERROR: Value cannot be null.
                                Parameter name: authority
                                
                                
                                 6/28/2019 11:46 AM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
                                 6/28/2019 11:46 AM Middleware::Response Success
                                 6/28/2019 11:46 AM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=00:25:00:F0:83:DF|00:25:00:F0:6F:45|00:25:4B:FF:FE:FB:69:24&newService&json
                                 6/28/2019 11:46 AM Middleware::Authentication Waiting for authentication timeout to pass
                                 6/28/2019 11:48 AM Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
                                 6/28/2019 11:48 AM Data::RSA ERROR: Unable to retrieve FOG Server CA
                                 6/28/2019 11:48 AM Data::RSA ERROR: FOG Server CA NOT found in keystore
                                 6/28/2019 11:48 AM Middleware::Authentication ERROR: Could not authenticate
                                 6/28/2019 11:48 AM Middleware::Authentication ERROR: Value cannot be null.
                                Parameter name: authority
                                 6/28/2019 11:48 AM Middleware::Response Success
                                 6/28/2019 11:48 AM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json
                                 6/28/2019 11:48 AM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json
                                
                                 6/28/2019 11:48 AM Service Creating user agent cache
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Unable to get subsection
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Object reference not set to an instance of an object
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Unable to get subsection
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Object reference not set to an instance of an object
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Unable to get subsection
                                 6/28/2019 11:48 AM Middleware::Response ERROR: Object reference not set to an instance of an object
                                 6/28/2019 11:48 AM Service Initializing modules
                                

                                Being the service appears to start as root, I’m not entirely certain how it was initially able to access the cert store (I blame unicorns). Unfortunately, the constructor for X509Store appears to be doing exactly what it was told without any pleasant side effects.

                                Additionally, even when the service was checking in, the fog server didn’t appear to be acknowledging the communications; the http requests were showing up in other_vhosts_access.log on the fog server, but no pending registrations appeared in the web interface and, when I manually added the host and scheduled a hardware inventory, no task reboot information appeared to be passed to the client. This may be attributable to the lack of CA (or the aforementioned unicorns).

                                I did try swapping out the Zazzles.dll with the one posted in Client not authenticating, but it is giving the same results.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Jun 28, 2019, 8:02 PM

                                  @Daniel-Miller Well at least looks like we are making a bit of progress here. Not perfect but still seems like we got some space to try things out.

                                  First I might ask you to try and run the installer as root and see if you can make it work that way.

                                   6/28/2019 11:46 AM Data::RSA ERROR: Unable to retrieve FOG Server CA
                                   6/28/2019 11:46 AM Data::RSA ERROR: FOG Server CA NOT found in keystore
                                  

                                  This is most probably due to it not finding the cert store in the right place. No chance to make it work using the Zazzles.dll I patched for Linux.

                                  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

                                  D 1 Reply Last reply Jun 29, 2019, 1:53 AM Reply Quote 0
                                  • D
                                    Daniel Miller @Sebastian Roth
                                    last edited by Jun 29, 2019, 1:53 AM

                                    @Sebastian-Roth Nice call.
                                    Installation, both under the auspices of a sudo su -l in terminal and as root through ARD, appear to be behaving after a manual kick to launchctl. The newest iMacs don’t seem to be triggering a pending host notification, but they are logging the communication on the client and in the apache logs. I suspect there might be too many mac addresses, but I am thinking that is a Monday problem.

                                    1 Reply Last reply Reply Quote 1
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Aug 13, 2019, 9:25 PM

                                      Cross linking a new post on the same issue: https://forums.fogproject.org/topic/13611/unable-to-complete-smartinstaller-exe-on-macos-mojave-10-14-6

                                      Probably something we should try to fix but it’s a tough one, I don’t have Mac OS X to test and very little time. @Daniel-Miller Are you willing and keen to setup a fog-client development environment and help work on this?

                                      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

                                      D 1 Reply Last reply Aug 19, 2019, 11:28 PM Reply Quote 0
                                      • D
                                        Daniel Miller @Sebastian Roth
                                        last edited by Aug 19, 2019, 11:28 PM

                                        @Sebastian-Roth I have a couple units I can probably play with and might be able to find a little time to cobble something together.

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sep 5, 2019, 9:01 PM

                                          @Daniel-Miller Any news on this topic?

                                          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

                                          D 1 Reply Last reply Sep 10, 2019, 9:08 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          • First post
                                            Last post

                                          202

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project