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

    Fog Client Ignoring --webroot=

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    2
    5
    1.3k
    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
      physk
      last edited by

      Server
      OS: Ubuntu Server 17.04
      FOG Version: 1.4.4

      Client
      OS: Ubuntu Server 16.04

      chris@UBUSVR1604TPL:~$ sudo mono smartinstaller.exe --server=10.10.75.23 --webroot=/fog
      [Pass]
      Installing files........................................................[Pass]
      Saving Configuration....................................................[Pass]
      Applying Configuration..................................................[Pass]
      Pinning FOG Project.....................................................[Pass]
      Pinning Server..........................................................[Pass]
      
      chris@UBUSVR1604TPL:~$ sudo systemctl start FOGService
      chris@UBUSVR1604TPL:~$ cat /opt/fog-service/fog.log 
       18/10/2017 05:50 Middleware::Communication URL: http://10.10.75.23/management/index.php?sub=requestClientInfo&configure&newService&json
       18/10/2017 05:50 Middleware::Response ERROR: Could not parse data
       18/10/2017 05:50 Middleware::Response ERROR: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
       18/10/2017 05:50 Service ERROR: Unable to get config data
       18/10/2017 05:50 Service ERROR: Object reference not set to an instance of an object
       18/10/2017 05:50 Middleware::Communication URL: http://10.10.75.23/management/index.php?sub=requestClientInfo&mac=00:50:56:A6:8A:FB&newService&json
       18/10/2017 05:50 Middleware::Response ERROR: Could not parse data
       18/10/2017 05:50 Middleware::Response ERROR: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
       18/10/2017 05:50 Middleware::Communication URL: http://10.10.75.23/service/getversion.php?clientver&newService&json
       18/10/2017 05:50 Middleware::Communication URL: http://10.10.75.23/service/getversion.php?newService&json
       18/10/2017 05:50 Service ERROR: Unable to get cycle data
       18/10/2017 05:50 Service ERROR: Object reference not set to an instance of an object
       18/10/2017 05:50 Middleware::Response Success
      
      **snipped**
      chris@UBUSVR1604TPL:~$
      

      As you can see the installer successfully installs the certificate. but the client ignores the --webroot= when running the client, and therefore can’t do anything because it can’t access the webui without the missing /fog

      I have also tried --webroot="/fog" Same issue.

      Contents of /opt/fog-service/settings.json:

      chris@UBUSVR1604TPL:/opt/fog-service$ cat settings.json 
      {
        "HTTPS": "0",
        "Tray": "0",
        "Server": "10.10.75.23",
        "WebRoot": "/fog",
        "Version": "0.11.12",
        "Company": "FOG",
        "RootLog": "0"
      }
      

      Any Advice would be much appreciated

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @physk Though I see the issue if you only supply the --server=... parameter webroot defaults be empty. We shall fix this in the next release!

        So when you run the installer like this:

        mono SmartInstaller.exe --server=x.x.x.x
        [Pass]
        Installing files........................................................[Pass]
        Saving Configuration....................................................[Pass]
        Applying Configuration..................................................[Pass]
        Pinning FOG Project.....................................................[Pass]
        Pinning Server..........................................................[Fail]
        

        The installer fails when trying to pin your local FOG server (because webroot is empty). Now when you start the FOGService either by hand or rebooting the client it will keep on failing. Even if you re-run the installer including the --webroot= parameter because the service is already running with the wrong settings.

        But if you stop the FOGService (or don’t start it in the first place when you see it fails on pinning) then you can re-run the installer with added webroot parameter and it all comes up nicely. So re-running the installer and rebooting the machine was clearly fixing it for you.

        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
        • S
          Sebastian Roth Moderator
          last edited by

          @physk This is interesting. The client defaults to /fog as webroot and you shouldn’t have to add the parameter when running the smartinstaller - see here.

          Possibly found a bug here? Which version of the fog-client is this? Should be 0.11.12 as you are on FOG 1.4.4, right?

          Please post the full log here in the forums. Possibly there is something else pointing to what is wrong.

          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 Reply Quote 0
          • P
            physk @Sebastian Roth
            last edited by

            @sebastian-roth I’m aware you don’t have to use the --webroot= but i was having the same issue without, That’s why i tried it to see if it would make a difference.

            According to my Client page on the WebUI it is 0.11.12. and I downloaded to my client machine directly from there.

            After a reboot it seems to be working. No idea why 😉

            “If it doesn’t work. Turn it off and on again.”

            18/10/2017 07:02 Service Starting service
             18/10/2017 07:02 Bus Became bus server
             18/10/2017 07:02 Bus Emmiting message on channel: Status
             18/10/2017 07:02 Service Invoking early JIT compilation on needed binaries
            
            ------------------------------------------------------------------------------
            --------------------------------Authentication--------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:02 Client-Info Version: 0.11.12
             18/10/2017 07:02 Client-Info OS:      Linux
             18/10/2017 07:02 Middleware::Authentication Waiting for authentication timeout to pass
             18/10/2017 07:02 Middleware::Communication Download: http://10.10.75.23/fog/management/other/ssl/srvpublic.crt
             18/10/2017 07:02 Middleware::Communication ERROR: Could not download file
             18/10/2017 07:02 Middleware::Communication ERROR: Error: ConnectFailure (Network is unreachable)
             18/10/2017 07:02 Middleware::Authentication ERROR: Could not authenticate
             18/10/2017 07:02 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/tmp/public.cer".
            
            ------------------------------------------------------------------------------
            --------------------------------Authentication--------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:02 Client-Info Version: 0.11.12
             18/10/2017 07:02 Client-Info OS:      Linux
             18/10/2017 07:02 Middleware::Authentication Waiting for authentication timeout to pass
             18/10/2017 07:03 Controller Stop
             18/10/2017 07:03 Service Stop requested
             18/10/2017 07:03 Middleware::Authentication ERROR: Could not authenticate
             18/10/2017 07:03 Middleware::Authentication ERROR: 
             18/10/2017 07:03 Bus Emmiting message on channel: Status
             18/10/2017 07:05 Main Overriding exception handling
             18/10/2017 07:05 Main Bootstrapping Zazzles
             18/10/2017 07:05 Controller Initialize
             18/10/2017 07:05 Controller Start
            
             18/10/2017 07:05 Service Starting service
             18/10/2017 07:05 Bus Became bus server
             18/10/2017 07:05 Bus Emmiting message on channel: Status
             18/10/2017 07:05 Service Invoking early JIT compilation on needed binaries
            
            ------------------------------------------------------------------------------
            --------------------------------Authentication--------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:05 Client-Info Version: 0.11.12
             18/10/2017 07:05 Client-Info OS:      Linux
             18/10/2017 07:05 Middleware::Authentication Waiting for authentication timeout to pass
             18/10/2017 07:05 Middleware::Communication Download: http://10.10.75.23/fog/management/other/ssl/srvpublic.crt
             18/10/2017 07:05 Data::RSA FOG Server CA cert found
             18/10/2017 07:05 Middleware::Authentication Cert OK
             18/10/2017 07:05 Middleware::Authentication ERROR: Could not get security token
             18/10/2017 07:05 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat".
             18/10/2017 07:05 Middleware::Communication POST URL: http://10.10.75.23/fog/management/index.php?sub=requestClientInfo&authorize&newService
             18/10/2017 07:05 Middleware::Response Success
             18/10/2017 07:05 Middleware::Authentication Authenticated
            
            
             18/10/2017 07:05 Middleware::Communication URL: http://10.10.75.23/fog/management/index.php?sub=requestClientInfo&configure&newService&json
             18/10/2017 07:05 Middleware::Response Success
             18/10/2017 07:05 Middleware::Communication URL: http://10.10.75.23/fog/management/index.php?sub=requestClientInfo&mac=00:50:56:A6:8A:FB&newService&json
             18/10/2017 07:05 Middleware::Response Success
             18/10/2017 07:05 Middleware::Communication URL: http://10.10.75.23/fog/service/getversion.php?clientver&newService&json
             18/10/2017 07:05 Middleware::Communication URL: http://10.10.75.23/fog/service/getversion.php?newService&json
            
             18/10/2017 07:05 Service Creating user agent cache
             18/10/2017 07:05 Middleware::Response Invalid time
             18/10/2017 07:05 Middleware::Response No Printers
             18/10/2017 07:05 Middleware::Response Module is disabled globally on the FOG server
             18/10/2017 07:06 Service Initializing modules
            
            ------------------------------------------------------------------------------
            ---------------------------------ClientUpdater--------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response Success
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            ----------------------------------TaskReboot----------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response Success
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            --------------------------------HostnameChanger-------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response Success
             18/10/2017 07:06 HostnameChanger Checking Hostname
             18/10/2017 07:06 HostnameChanger Hostname is correct
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            ---------------------------------SnapinClient---------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response No snapins
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            --------------------------------PrinterManager--------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response No Printers
             18/10/2017 07:06 PrinterManager Module is not compatible with Linux
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            --------------------------------PowerManagement-------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response Success
             18/10/2017 07:06 PowerManagement Calculating tasks to unschedule
             18/10/2017 07:06 PowerManagement Calculating tasks to schedule
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            ----------------------------------UserTracker---------------------------------
            ------------------------------------------------------------------------------
             18/10/2017 07:06 Client-Info Client Version: 0.11.12
             18/10/2017 07:06 Client-Info Client OS:      Linux
             18/10/2017 07:06 Client-Info Server Version: 1.4.4
             18/10/2017 07:06 Middleware::Response Success
            ------------------------------------------------------------------------------
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @physk Though I see the issue if you only supply the --server=... parameter webroot defaults be empty. We shall fix this in the next release!

              So when you run the installer like this:

              mono SmartInstaller.exe --server=x.x.x.x
              [Pass]
              Installing files........................................................[Pass]
              Saving Configuration....................................................[Pass]
              Applying Configuration..................................................[Pass]
              Pinning FOG Project.....................................................[Pass]
              Pinning Server..........................................................[Fail]
              

              The installer fails when trying to pin your local FOG server (because webroot is empty). Now when you start the FOGService either by hand or rebooting the client it will keep on failing. Even if you re-run the installer including the --webroot= parameter because the service is already running with the wrong settings.

              But if you stop the FOGService (or don’t start it in the first place when you see it fails on pinning) then you can re-run the installer with added webroot parameter and it all comes up nicely. So re-running the installer and rebooting the machine was clearly fixing it for you.

              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
              • P
                physk
                last edited by

                @Sebastian-Roth I’d like to point out that i was using sudo mono smartinstaller.exe --uninstall between running the next install. (Which should stop the service) I don’t know if that would make a difference?

                I have also found a little niggle with the deploy system. I will be making a new thread in a couple mins

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

                200

                Online

                12.1k

                Users

                17.3k

                Topics

                155.4k

                Posts
                Copyright © 2012-2024 FOG Project