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

Storage nodes failing at creating ssl certificate SVN 6505 and 6507

Scheduled Pinned Locked Moved Solved
FOG Problems
3
16
4.0k
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.
  • H
    Hanz
    last edited by Hanz Feb 29, 2016, 5:44 PM Feb 29, 2016, 11:29 PM

    My storage nodes are randomly failing at creating ssl certificate during install.

    /bin/errorlogs/6505 & 6507 show this line at the end.

    /opt/fog/snapins/ssl//fog.csr: No such file or directory
    

    on 6505 only 1 failed, now with 6507 two more are failing.

     * Updating packages as needed.................................OK
    
     * Confirming package installation
    
    
     * Configuring services
    
     * Stopping web service........................................OK
     * Setting up Apache and PHP files.............................OK
     * Testing and removing symbolic links if found................OK
     * Backing up old data.........................................OK
     * Copying back old web folder as is...........................OK
     * Ensuring all classes are lowercased.........................OK
     * Copying new files to web folder.............................OK
     * Creating config file........................................OK
     * Getting checksum files for kernels and inits................OK
     * Downloading inits, kernels, and the fog client..............OK
     * Comparing checksums of kernels and inits....................Failed init_32.xz
     * Attempting to redownload init_32.xz.........................OK
    Done
     * Enabling apache and fpm services on boot....................OK
     * Creating SSL Certificate....................................Failed!
    [bcs@ramage bin]$ 
    

    sometimes the checksum fails and sometimes passes but now, Creating SSL Certificate always fails.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Mar 1, 2016, 12:19 AM

      Are you running as root?

      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

      H 1 Reply Last reply Mar 1, 2016, 12:43 AM Reply Quote 0
      • H
        Hanz @Tom Elliott
        last edited by Mar 1, 2016, 12:43 AM

        @Tom-Elliott yes

        T 1 Reply Last reply Mar 1, 2016, 12:46 AM Reply Quote 0
        • T
          Tom Elliott @Hanz
          last edited by Mar 1, 2016, 12:46 AM

          @Hanz I only ask because I see bcs on the screen.

          I do try to ensure sudo is running during install, however sudo does not mean you can automatically run all commands.

          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

          H 1 Reply Last reply Mar 1, 2016, 12:53 AM Reply Quote 0
          • T
            Tom Elliott
            last edited by Mar 1, 2016, 12:51 AM

            Can you get say the last 10-15 lines of the current error file for install?

            The create ssl certificate function hasn’t changed so if it worked before it should work now.

            Is it also possible the disk space is full and simply can’t create the csr?

            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

            H 2 Replies Last reply Mar 1, 2016, 1:00 AM Reply Quote 0
            • H
              Hanz @Tom Elliott
              last edited by Hanz Feb 29, 2016, 6:54 PM Mar 1, 2016, 12:53 AM

              @Tom-Elliott it’s a scripted install with sudo ./installfog.sh -y so I can know every node is done the same, and with all fedora updates first

              1 Reply Last reply Reply Quote 0
              • H
                Hanz @Tom Elliott
                last edited by Hanz Feb 29, 2016, 7:08 PM Mar 1, 2016, 1:00 AM

                @Tom-Elliott

                /bin/lsb_release
                /bin/systemctl
                /bin/dnf
                ln: failed to create symbolic link ‘/usr/lib/systemd/system/mysql.service’: File exists
                ln: failed to create symbolic link ‘/usr/lib/systemd/system/mysqld.service’: File exists
                ln: failed to create symbolic link ‘/etc/systemd/system/mysql.service’: File exists
                ln: failed to create symbolic link ‘/etc/systemd/system/mysqld.service’: File exists
                /opt/fog/.fogsettings
                Last metadata expiration check performed 0:08:35 ago on Mon Feb 29 18:33:09 2016.
                No package epel-release available.
                Error: Unable to find a match.
                package http://rpms.remirepo.net/fedora/remi-release-22.rpm is not installed
                Last metadata expiration check performed 0:08:36 ago on Mon Feb 29 18:33:09 2016.
                Package remi-release-22-3.fc22.remi.noarch is already installed, skipping.
                Dependencies resolved.
                Nothing to do.
                Complete!
                Last metadata expiration check performed 0:08:37 ago on Mon Feb 29 18:33:09 2016.
                Last metadata expiration check performed 0:08:38 ago on Mon Feb 29 18:33:09 2016.
                Dependencies resolved.
                Nothing to do.
                Complete!
                /opt/fog/snapins/ssl//fog.csr: No such file or directory
                

                This is actually from 6509 now, but same as 6505 & 6507

                H 1 Reply Last reply Mar 1, 2016, 1:12 PM Reply Quote 0
                • H
                  Hanz @Tom Elliott
                  last edited by Mar 1, 2016, 1:06 AM

                  @Tom-Elliott space is plenty

                  1 Reply Last reply Reply Quote 0
                  • W
                    Wayne Workman
                    last edited by Wayne Workman Feb 29, 2016, 7:37 PM Mar 1, 2016, 1:36 AM

                    Double forward slashes?

                    /opt/fog/snapins/ssl//fog.csr: No such file or directory
                    

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    H 1 Reply Last reply Mar 1, 2016, 1:39 AM Reply Quote 0
                    • H
                      Hanz @Wayne Workman
                      last edited by Mar 1, 2016, 1:39 AM

                      @Wayne-Workman lol I’ve tried removing that ssl path line from .fogsettings too @Wayne-Workman

                      1 Reply Last reply Reply Quote 0
                      • H
                        Hanz @Hanz
                        last edited by Mar 1, 2016, 1:12 PM

                        @Hanz This can be closed…I removed /var/www/fog, and /opt/fog, and userdel fog…Re-ran installer and it went through on 6511.

                        T 1 Reply Last reply Mar 1, 2016, 1:16 PM Reply Quote 0
                        • T
                          Tom Elliott @Hanz
                          last edited by Mar 1, 2016, 1:16 PM

                          @Hanz If possible, can you try to re-replicate the issue so we may maybe make a more proper fix for the issue?

                          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

                          H 1 Reply Last reply Mar 1, 2016, 1:28 PM Reply Quote 0
                          • H
                            Hanz @Tom Elliott
                            last edited by Mar 1, 2016, 1:28 PM

                            @Tom-Elliott apart from doing the update to 6505 I’m not sure what could’ve happened. I did the exact same procedure to other nodes that failed, and they created the CA just fine. I honestly wouldn’t really know how to re-create this, but if you give me some suggestions I will try them.

                            H 1 Reply Last reply Mar 1, 2016, 2:28 PM Reply Quote 0
                            • H
                              Hanz @Hanz
                              last edited by Mar 1, 2016, 2:28 PM

                              @Tom-Elliott After looking at my .fogsettings file I’ve noticed that all the " have been replaced with ’ and without any “;” at the end of the lines.

                              ## Start of FOG Settings
                              ## Created by the FOG Installer
                              ## Version: 6513
                              ## Install time: Tue 01 Mar 2016 08:12:13 AM EST
                              ipaddress='10.72.216.50'
                              interface='enp0s25'
                              submask='255.255.252.0'
                              routeraddress=''
                              plainrouter=''
                              dnsaddress=''
                              dnsbootimage=''
                              password='5N9FeRCq5ySs'
                              osid='1'
                              osname='Redhat'
                              dodhcp=''
                              bldhcp=''
                              blexports='1'
                              installtype='S'
                              snmysqluser='fogstorage'
                              snmysqlpass='fs9694191133'
                              snmysqlhost='10.72.3.50'
                              installlang=''
                              donate=''
                              storageLocation='/images'
                              fogupdateloaded=1
                              storageftpuser='fog'
                              storageftppass='5N9FeRCq5ySs'
                              docroot='/var/www/html/'
                              webroot='fog/'
                              caCreated='yes'
                              startrange=''
                              endrange=''
                              
                              T 1 Reply Last reply Mar 1, 2016, 2:33 PM Reply Quote 0
                              • T
                                Tom Elliott @Hanz
                                last edited by Mar 1, 2016, 2:33 PM

                                @Hanz The ; has nothing to do with it. I had it there from old times only because it was familiarity between switching different languages. Bash scripts (as this is kind of related) don’t require a ; to end the line.

                                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

                                H 1 Reply Last reply Mar 1, 2016, 2:47 PM Reply Quote 0
                                • H
                                  Hanz @Tom Elliott
                                  last edited by Hanz Mar 1, 2016, 8:51 AM Mar 1, 2016, 2:47 PM

                                  @Tom-Elliott Installation worked, but I’m getting

                                  Type: 2, File:/var/www/html/fog/lib/fog/fogftp.class.php, Line:104, Message: ftp_login():Login incorrect.
                                  

                                  This is what I see for both nodes when going into log viewer.

                                  I checked the .fogsettings file and password in GUI under storage mgmt with no luck.

                                  UPDATE– Nevermind I forgot to change the password for the fog user as well.

                                  1 Reply Last reply Reply Quote 1
                                  • 1 / 1
                                  1 / 1
                                  • First post
                                    8/16
                                    Last post

                                  188

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project