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

    FOG installation errors

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    54
    10.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.
    • T
      TaTa
      last edited by

      Hello All,

      I’m getting some issues with installation FOG on RHEL7.7 (I have a working box with Debian but we have to migrate it to RHEL due to some policy reason). The installation stop at Installing now everything is updated ........Failed…Upon inspecting fog_error_1.5.7.50.log, I saw a bunch of errors like this:

      Update notice FEDORA-EPEL-2014-4398 (from epel) is broken, or a bad duplicate, skipping.
      Update notice FEDORA-EPEL-2019-4e237c3a93 (from epel) is broken, or a bad duplicate, skipping.
      Update notice FEDORA-EPEL-2016-b072b4c9c7 (from epel) is broken, or a bad duplicate, skipping.
      

      and

      Package mariadb-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.7.26-1.el7.x86_64 instead
      Resolving Dependencies
      --> Running transaction check
      ---> Package mysql-community-server.x86_64 0:5.7.26-1.el7 will be installed
      --> Processing Conflict: 1:mariadb101u-config-10.1.35-1.ius.el7.x86_64 conflicts mysql-community-server
      --> Finished Dependency Resolution
      Error: mariadb101u-config conflicts with mysql-community-server-5.7.26-1.el7.x86_64
       You could try using --skip-broken to work around the problem
       You could try running: rpm -Va --nofiles --nodigest
      

      Does anyone have any experience or has anyone encountered this similar issues?

      Thanks in advance for any assistance.

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

        @TaTa Seems like the EPEL repos you use are causing the problem because the force a different mysql/mariadb version. Is there a good reason you are using these repos? I am just asking because to me it looks a bit like you are trying to install FOG on a server that is not dedicated for FOG only. While this can be done we usually don’t recommend people to do that as the FOG installer adjusts quite a few configs and might cause problems with other services you have running on the same system.

        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

        T 1 Reply Last reply Reply Quote 0
        • T
          TaTa @Sebastian Roth
          last edited by

          @Sebastian-Roth You are absolutely correct. This server was built and is managing by another team outside of our institution. We don’t have direct control over it.

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

            @TaTa I don’t think it’s a good idea to install FOG on such a server!

            That said we can still help you do this. Edit the file fogproject/lib/redhat/config.sh and jump to line 40. Change mysql mysql-server in that line to mariadb mariadb-server .

            This is on your own risk!

            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

            T 1 Reply Last reply Reply Quote 0
            • T
              TaTa @Sebastian Roth
              last edited by

              @Sebastian-Roth Thank you. What are the risks?

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

                @TaTa If you have NFS shares, FTP, Apache, TFTP services running on that server the FOG installer might mess up those configs.

                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
                  TaTa
                  last edited by

                  I’m getting Installing package: mariadb-server..........................Failed! (Will try later)

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

                    @TaTa Please upload the latest install error log here so we can have a look.

                    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

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      TaTa @Sebastian Roth
                      last edited by

                      Last few lines in error log:

                      Package(s) mariadb available, but not installed.
                      Package(s) mariadb-server available, but not installed.
                      No packages marked for update
                      Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-
                                    : manager
                      Package mariadb-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.7.26-1.el7.x86_64 instead
                      Resolving Dependencies
                      --> Running transaction check
                      ---> Package mysql-community-server.x86_64 0:5.7.26-1.el7 will be installed
                      --> Processing Conflict: 1:mariadb101u-config-10.1.35-1.ius.el7.x86_64 conflicts mysql-community-server
                      --> Finished Dependency Resolution
                      Error: mariadb101u-config conflicts with mysql-community-server-5.7.26-1.el7.x86_64
                       You could try using --skip-broken to work around the problem
                       You could try running: rpm -Va --nofiles --nodigest
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth

                        @TaTa Ok, let’s see what you have installed already: rpm -qa | grep -i -e "mysql" -e "mariadb"

                        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
                          TaTa
                          last edited by

                          
                          mysql-community-libs-5.7.26-1.el7.x86_64
                          php-mysqlnd-7.2.24-1.el7.remi.x86_64
                          mysql-community-libs-compat-5.7.26-1.el7.x86_64
                          mariadb101u-config-10.1.35-1.ius.el7.x86_64
                          mysql-community-devel-5.7.26-1.el7.x86_64
                          nagios-plugins-mysql-2.2.2-2.20190926git1b8ad57.el7.x86_64
                          mysql-community-client-5.7.26-1.el7.x86_64
                          mysql-community-common-5.7.26-1.el7.x86_64
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @TaTa Wow, that seems like a little mess. There is mariadb101u-config which comes from the IUS repo and then you have mysql-community-... packages installed as well. No ...-server as far as I can see. Do you know if there is meant to be a database server running on this machine? Maybe run ls -al /var/lib/mysql* to see if there are some DB files left. Just to get the full picture.

                            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

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              TaTa @Sebastian Roth
                              last edited by

                              @Sebastian-Roth I get ls: cannot access /var/lib/mysql*: No such file or directory.

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

                                @TaTa Ok, so seems like there never was a DB server installed. To resolve this issue I’d consider removing the package mariadb101u-config manually. As you can see here it should hold the “config file my.cnf and my.cnf.d directory”. Probably best to take backup copies of those files before remove the package. Use find /etc -iname "*my*" to get a list of files to backup.

                                Then run yum remove mariadb101u-config and change fogproject/lib/redhat/config.sh again. Put in mysql-community-client mysql-community-server instead of mariadb mariadb-server and re-run the installer.

                                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

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  TaTa @Sebastian Roth
                                  last edited by

                                  @Sebastian-Roth Thank you! I’m getting a bit further. The installer can’t set a password for fogproject account due New password: BAD PASSWORD: The password is shorter than 14 characters. Is there a way I can set it manually or change password length in the script so will be 14 characters or more?

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

                                    @TaTa Take a look at fogproject/lib/common/functions.sh line 1261. At the end of the line where it says .../dev/urandom | fold -w12 | head -n1) change the figure 12 to a higher value.

                                    By the way. If you want to install with a proper root password set for the database you will run into an issue with the current version. I hope to get this fixed soon!

                                    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

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      TaTa @Sebastian Roth
                                      last edited by

                                      @Sebastian-Roth I changed it to 14 and 16 but is getting this error. Looks like password is not complex enough

                                      Changing shell for fogproject.
                                      New password: BAD PASSWORD: The password contains less than 1 digits
                                      Retype new password: BAD PASSWORD: is too simple
                                      Retype new password: Password change aborted.
                                      New password: Password change aborted.
                                      New password: Password change aborted.
                                      passwd: Have exhausted maximum number of retries for service
                                      Changing password for user fogproject.
                                      New password: Retype new password: Retype new password: Password change aborted.
                                      New password: Password change aborted.
                                      New password: Password change aborted.
                                      passwd: Have exhausted maximum number of retries for service
                                      New password: BAD PASSWORD: The password contains less than 1 uppercase letters
                                      Retype new password: BAD PASSWORD: is too simple
                                      Retype new password: Password change aborted.
                                      New password: Password change aborted.
                                      New password: Password change aborted.
                                      passwd: Have exhausted maximum number of retries for service
                                      Changing password for user fogproject.
                                      New password: Retype new password: Retype new password: Password change aborted.
                                      New password: Password change aborted.
                                      New password: Password change aborted.
                                      passwd: Have exhausted maximum number of retries for service
                                      Changing password for user fogproject.
                                      New password: Retype new password: Retype new password: Password change aborted.
                                      New password: Password change aborted.
                                      New password: Password change aborted.
                                      passwd: Have exhausted maximum number of retries for service
                                      Changing password for user fogproject.
                                      
                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Daniel Miller @TaTa
                                        last edited by Daniel Miller

                                        @TaTa The data being pulled in for the password is out of urandom, so it is not implausible that, as the log indicates, a given line may not include a digit or upper case letter. You may be able to run the installer a few more times and get a random password that conforms to the system’s password requirements. You may also be able to create a partial /opt/fog/.fogsettings with strong passwords compliant with your systems password policies. Format and settings are available in the Wiki. I haven’t tested this, but my understanding is that anything not set in .fogsettings is requested by the installer.

                                        Edit: the setting you are likely interested in is password=.

                                        T 1 Reply Last reply Reply Quote 1
                                        • T
                                          TaTa @Daniel Miller
                                          last edited by

                                          @Daniel-Miller I created the files but it’s still not working. This is a new installation. I don’t think it looks into .fogsettings before creating this new account.

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            TaTa
                                            last edited by TaTa

                                            I no longer getting password too simple. It looks like it’s not accepting the password. I can set password for fogproject manually but the installation does not like this account created beforehand.

                                            Changing password for user fogproject.
                                            New password: Retype new password: Retype new password: Password change aborted.
                                            New password: Password change aborted.
                                            New password: Password change aborted.
                                            passwd: Have exhausted maximum number of retries for service
                                            Changing password for user fogproject.
                                            New password: Retype new password: Retype new password: Password change aborted.
                                            New password: Password change aborted.
                                            New password: Password change aborted.
                                            passwd: Have exhausted maximum number of retries for service
                                            Changing password for user fogproject.
                                            
                                            D 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            150

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project