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

Private key not found

Scheduled Pinned Locked Moved Solved
FOG Problems
3
14
2.5k
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.
  • R
    raumin
    last edited by Mar 31, 2016, 9:50 AM

    Hi,

    I am using last version of trunk (7009) on a Debian 8.

    On my Windows 10 PC, the FOG client is v0.9.12 and i get this error message in fog.log:

    ------------------------------------------------------------------------------
    --------------------------------Authentication--------------------------------
    ------------------------------------------------------------------------------
     31/03/2016 11:36 Client-Info Version: 0.9.12
     31/03/2016 11:36 Middleware::Communication URL: http://fog-server/fog/management/other/ssl/srvpublic.crt
     31/03/2016 11:36 Data::RSA FOG Server CA cert found
     31/03/2016 11:36 Middleware::Authentication Cert OK
     31/03/2016 11:36 Middleware::Communication POST URL: http://fog-server/fog/management/index.php?sub=authorize
     31/03/2016 11:36 Middleware::Communication Unknown Response: Private key not found
     31/03/2016 11:36 Service Sleeping for 120 seconds
    

    On another PC with windows 10, there was version 0.9.11 installed and the same error occurs.

    The /opt/fog/snapins/ssl is well present:

    # cd /opt/fog/snapins/ssl
    # ls -la
    total 9
    drwxrwxr-x 3 fog www-data 1024 Mar  2 12:58 .
    drwxrwxr-x 3 fog www-data 1024 Mar  2 12:58 ..
    drwxrwxr-x 2 fog www-data 1024 Mar  2 12:58 CA
    -rwxrwxr-x 1 fog www-data 1590 Mar  2 12:58 fog.csr
    -rwxrwxr-x 1 fog www-data 3243 Mar  2 12:58 .srvprivate.key
    

    CA is well present too:

    /opt/fog/snapins/ssl# ls -la ./CA
    total 9
    drwxrwxr-x 2 fog www-data 1024 Mar  2 12:58 .
    drwxrwxr-x 3 fog www-data 1024 Mar  2 12:58 ..
    -rwxrwxr-x 1 fog www-data 3243 Mar  2 12:58 .fogCA.key
    -rwxrwxr-x 1 fog www-data 1797 Mar  2 12:58 .fogCA.pem
    -rwxrwxr-x 1 fog www-data   17 Mar 31 10:14 .srl
    

    I reseted all hosts PubKey with this and the error is still here:

    UPDATE hosts SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00";
    

    Thank you for your help.

    FOG trunk

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Mar 31, 2016, 10:23 AM

      Please update and try again.

      I think this is relating to a bad link.

      You may need to run:

      rm -rf /var/www/{,html/}fog as well.

      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
      • R
        raumin
        last edited by Mar 31, 2016, 10:39 AM

        i updated, deleted /var/www/html/fog then ran installfog.sh but i get the same error on hosts.

        FOG trunk

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Mar 31, 2016, 12:22 PM

          What happens if you go to the url?

          http://fog-server/fog/management/other/ca.cert.der

          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
          • R
            raumin
            last edited by Mar 31, 2016, 12:42 PM

            i can download the file.

            FOG trunk

            T 1 Reply Last reply Mar 31, 2016, 12:43 PM Reply Quote 0
            • T
              Tom Elliott @raumin
              last edited by Mar 31, 2016, 12:43 PM

              @raumin What’s the setting for the storage node referring to “fog-server” under sslpath?

              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
              • R
                raumin
                last edited by Mar 31, 2016, 12:50 PM

                I get this:

                sslpath='/opt/fog/snapins/ssl/'
                

                FOG trunk

                T 1 Reply Last reply Mar 31, 2016, 12:51 PM Reply Quote 0
                • T
                  Tom Elliott @raumin
                  last edited by Mar 31, 2016, 12:51 PM

                  @raumin FOG GUI -> Storage Management Page -> List all/Search -> Click on the storage node known as fog-server.

                  In general you should have a field called SSL Path. What’s the value in there?

                  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
                  • R
                    raumin
                    last edited by Mar 31, 2016, 12:53 PM

                    It’s the same value:

                    /opt/fog/snapins/ssl
                    

                    FOG trunk

                    1 Reply Last reply Reply Quote 0
                    • J
                      jmeyer
                      last edited by Mar 31, 2016, 1:12 PM

                      I have the same problem on my side (under Win 10 too).

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Mar 31, 2016, 1:14 PM

                        Can people PLEASE, for the love all things trunk, post the EXACT version they see in their fog with the info?

                        I ask a lot for the info, then get vested into trying to narrow things down. If it were that big a problem I’d be definitely made fully aware of it by many sources.

                        It never helps when we don’t know what version people are running though.

                        For all I know, the updates aren’t actually updating. For example, running svn up from the trunk/bin folder vs. the trunk folder.

                        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

                        J 1 Reply Last reply Mar 31, 2016, 1:15 PM Reply Quote 2
                        • J
                          jmeyer @Tom Elliott
                          last edited by Mar 31, 2016, 1:15 PM

                          @Tom-Elliott Sorry Thomas. I am running 7001.

                          1 Reply Last reply Reply Quote 0
                          • R
                            raumin
                            last edited by Mar 31, 2016, 1:50 PM

                            Tom solved the problem, thank you.

                            FOG trunk

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Mar 31, 2016, 1:56 PM

                              The issue, for others who may stumble across.

                              If you’re getting Private key not found but all the data seems to point that you do have a Private key file. Make sure the node (ip address or whatever) is actually a node within the system.

                              In @raumin’s case fog-server was not the node he was working with. The node he had defined was a NAS. NAS’s suck (plain and short) but have their own uses. (No offense to anybody using one, just they’re a bit of a pain to play with to get working with fog).

                              So the clients were looking at the thing @raumin is using as the GUI access point for private key. This was not a defined node (and I will try to come up with a better approach).

                              The fix, for now, is to always have a node for the GUI as well. You do not need to have the node enabled for things to work, and I would highly recommend against using in such a setup (NAS->Central GUI) trying to make the GUI node a “master” of the group it’s working with, unless you want it setup in such a way.

                              For our fix. We created a definition for the node and gave it the proper ip address. All started working immediately.

                              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 3
                              • 1 / 1
                              1 / 1
                              • First post
                                11/14
                                Last post

                              159

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project