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

client server token issues.

Scheduled Pinned Locked Moved Solved
Bug Reports
3
10
2.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Greg Plamondon Testers
    last edited by Oct 17, 2017, 5:51 PM

    I am having issues with the latest working branch rev 64
    for some reason the client will no longer communicate with the server, I get the following in the fog.log

    ------------------------------------------------------------------------------
    --------------------------------Authentication--------------------------------
    ------------------------------------------------------------------------------
     10/17/2017 1:17 PM Client-Info Version: 0.11.12
     10/17/2017 1:17 PM Client-Info OS:      Windows
     10/17/2017 1:17 PM Middleware::Authentication Waiting for authentication timeout to pass
     10/17/2017 1:17 PM Middleware::Communication Download: http://10fogserver/fog/management/other/ssl/srvpublic.crt
     10/17/2017 1:17 PM Data::RSA FOG Server CA cert found
     10/17/2017 1:17 PM Middleware::Authentication Cert OK
     10/17/2017 1:17 PM Middleware::Authentication ERROR: Could not get security token
     10/17/2017 1:17 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'.
     10/17/2017 1:17 PM Middleware::Communication POST URL: http://10fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
     10/17/2017 1:17 PM Middleware::Response Failed to decrypt data
    
    
    1 Reply Last reply Reply Quote 0
    • G
      Greg Plamondon Testers @Sebastian Roth
      last edited by Greg Plamondon Oct 18, 2017, 8:30 AM Oct 18, 2017, 1:51 PM

      @sebastian-roth I don’t know how that happened but I copied the srvpublic.crt from a backup and it is fixed.

      Thanks for all the help

      1 Reply Last reply Reply Quote 1
      • S
        Sebastian Roth Moderator
        last edited by Oct 17, 2017, 5:59 PM

        Moved to bug reports as it looks like an issue on the server side from what I see so far. Thanks for reporting. We’ll look into this soon.

        @Tom-Elliott Something that changed in the PHP code that could cause 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

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Oct 17, 2017, 6:00 PM

          Nope. Nothing. I’ve been working with Greg most of the day on this. His last working version was 57 (67cd9e). However, this issue still occurs on this version as well, now.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Oct 17, 2017, 6:03 PM

            @Tom-Elliott Could we possibly can get a tcpdump of the traffic when this happens? Just run sudo tcpdump -w /tmp/client-foo.pcap host x.x.x.x…

            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 Sebastian Roth Oct 17, 2017, 2:48 PM Oct 17, 2017, 8:47 PM

              @Tom-Elliott Ok, just had a look at the PCAP (thanks for that!). Looks like the client does send “proper looking” data but the server is not able to handle it.

              @Greg-Plamondon Possibly that’s because client and server time differ too much? Please check to see if those match up (at the most ten seconds difference).

              Is this a fairly new install (certs created when?) or an old one?

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              G 1 Reply Last reply Oct 17, 2017, 8:58 PM Reply Quote 0
              • G
                Greg Plamondon Testers @Sebastian Roth
                last edited by Oct 17, 2017, 8:58 PM

                @sebastian-roth The times are synced with 0.pool.ntp.org and are spot on.
                This installation is atleast 2-3 years old

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Oct 17, 2017, 9:06 PM

                  @Greg-Plamondon Ok, just wanted to make sure time is not an issue. Please run the following commands on the FOG server terminal and post output here:

                  openssl x509 -dates -noout -in /var/www/fog/management/other/ssl/srvpublic.crt
                  openssl x509 -dates -noout -in /var/www/fog/management/other/ca.cert.pem
                  

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  G 1 Reply Last reply Oct 18, 2017, 12:16 PM Reply Quote 0
                  • G
                    Greg Plamondon Testers @Sebastian Roth
                    last edited by Oct 18, 2017, 12:16 PM

                    @sebastian-roth said in client server token issues.:

                    openssl x509 -dates -noout -in /var/www/fog/management/other/ssl/srvpublic.crt
                    openssl x509 -dates -noout -in /var/www/fog/management/other/ca.cert.pem

                    root@10fogserver:~ $ openssl x509 -dates -noout -in /var/www/fog/management/other/ssl/srvpublic.crt
                    notBefore=Oct 17 16:56:23 2017 GMT
                    notAfter=Oct 15 16:56:23 2027 GMT
                    root@10fogserver:~ $ openssl x509 -dates -noout -in /var/www/fog/management/other/ca.cert.pem
                    notBefore=Jul 19 22:30:11 2016 GMT
                    notAfter=Jul 17 22:30:11 2026 GMT
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Oct 18, 2017, 1:25 PM

                      @Greg-Plamondon said:

                      ... srvpublic.crt
                      notBefore=Oct 17 16:56:23 2017 GMT
                      ...
                      

                      Fairly recently?!?

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      G 1 Reply Last reply Oct 18, 2017, 1:51 PM Reply Quote 0
                      • G
                        Greg Plamondon Testers @Sebastian Roth
                        last edited by Greg Plamondon Oct 18, 2017, 8:30 AM Oct 18, 2017, 1:51 PM

                        @sebastian-roth I don’t know how that happened but I copied the srvpublic.crt from a backup and it is fixed.

                        Thanks for all the help

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        1 / 1
                        • First post
                          5/10
                          Last post

                        142

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project