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

    "Database connection unavailable"

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    18
    15.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.
    • F
      fishfox
      last edited by

      Fog server was working fine yesterday but today I’m getting “Database connection unavailable”.

      mysql systemd unit is running fine on Ubuntu 16.04.

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • F
        fishfox
        last edited by

        Fixed for now: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy
        Had to reblank the root password

        Is there a way to put a password in FOG so the password doesn’t have to be blank?

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @fishfox
          last edited by

          @fishfox Yes, if before you install FOG you configure the mysql database root’s password to something other than blank, then install FOG. DUring the fog installation it will ask if root’s password has been changed from the default value. Answer yes here and then give the installer roots password for mysql.

          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!

          E 1 Reply Last reply Reply Quote 0
          • F
            fishfox
            last edited by fishfox

            @george1421 Excellent…uhh…how do I mark this as solved?

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @fishfox
              last edited by

              @fishfox just ask!

              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

              F 1 Reply Last reply Reply Quote 0
              • F
                fishfox @Tom Elliott
                last edited by

                @tom-elliott Thanks 🙂

                1 Reply Last reply Reply Quote 0
                • E
                  EricZ @george1421
                  last edited by

                  @george1421 I’m getting the same error during installation. I previously left the password blank for SQL and the webpage wouldn’t even work. When I have it the same password as Root, I get the “database connection unavailable” message and I can’t continue with FOG install. Help!

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @EricZ
                    last edited by george1421

                    @EricZ Is this a ubuntu box? What fog working one day and then the next with no changes it stopped?

                    If so take a look at this article: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy

                    In an upcoming release of FOG the developers are going to address this issue by moving away from the root user for schema updates. But for now we’ll have to manage with that article.

                    Edit: Ah I see I linked that article in already. For now the password for root in mysql needs to be blank to get things working again.

                    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!

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      EricZ @george1421
                      last edited by

                      @george1421 This is a new installation using CentOS 8. I followed the WIKI for CentOS 7 as there is no guide for 8. At the point where I need to configure the database in the FOG installation process I get the error “Database connection unavailable”. I don’t know a lot about Linux. My only experience was with MacOS X and a training class I took about 12 years ago.

                      george1421G 1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @EricZ
                        last edited by

                        @EricZ said in "Database connection unavailable":

                        new installation using CentOS 8

                        Oh, no you didn’t…

                        FOG 1.5.7 does not support Centos 8 just yet. You can get to a point where you can install FOG as long as you use the git method.

                        If you are using the git method change into the base of the fogproject directory and issue the following command git checkout dev-branch
                        Then issue a git pull and finally change to the bin directory and reinstall fog by keying in ./installfog.sh This will install fog 1.5.7.49.<something> Which is compatible with Centos 8

                        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!

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          EricZ @george1421
                          last edited by

                          @george1421 I navigated to /Home/fogproject and ran the “git checkout dev-branch” and got “not a git repository” error message. This is all so over my head. Maybe I’ll just see if I can download CentOS 7 and try to get it to work. A friend told me this was easy to setup but it seems you really have to know a lot about linux. I’m from the Windows and Mac world where you just install it and it goes.

                          george1421G 2 Replies Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @EricZ
                            last edited by george1421

                            @EricZ said in "Database connection unavailable":

                            “git checkout dev-branch”

                            Hmm. Maybe I’m having a senior moment here… Lets try git checkout working . Its not that hard to do if someone gives you good directions. 😉

                            Interesting, I’m not totally crazy: https://forums.fogproject.org/topic/13895/install-fog-1-5-7-on-centos-8/2

                            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!

                            E 1 Reply Last reply Reply Quote 0
                            • george1421G
                              george1421 Moderator @EricZ
                              last edited by

                              @EricZ said in "Database connection unavailable":

                              “git checkout dev-branch” and got “not a git repository”

                              The dev-branch is the right branch to be on. I just looked back at my chat session with the developers. So, how did you initially install fog? Did you use the git method or did you download the .gz (tarball) file and extract it?

                              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!

                              1 Reply Last reply Reply Quote 0
                              • E
                                EricZ @george1421
                                last edited by

                                @george1421 So “git checkout working” gives me the same error. I tried running the commands from the link below and got this:
                                mysql -u root -p
                                Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

                                mysql> drop database fog
                                -> exit
                                -> exit
                                ->
                                It won’t exit.

                                george1421G 1 Reply Last reply Reply Quote 0
                                • george1421G
                                  george1421 Moderator @EricZ
                                  last edited by

                                  @EricZ exit;

                                  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!

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    EricZ @george1421
                                    last edited by

                                    @george1421 I’m in the management console! Thank You!!!

                                    george1421G 1 Reply Last reply Reply Quote 1
                                    • george1421G
                                      george1421 Moderator @EricZ
                                      last edited by george1421

                                      @EricZ said in "Database connection unavailable":

                                      I’m in the management console! Thank You!!!

                                      Sometimes when you do bleeding edge things, you happen to get bloody every once and a while. I’m glad you have it going 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!

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

                                        @EricZ said in "Database connection unavailable":

                                        I navigated to /Home/fogproject and ran the “git checkout dev-branch” and got “not a git repository” error message.

                                        Then you are not using git source code but downloaded tar.gz/ZIP I suppose. While this isn’t wrong it’s just that you cannot switch between development and master branch as mentioned.

                                        As well I am wondering if you are using the fogproject user to login? Don’t do that! It’s intended to be a service account and should not be used!

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

                                        227

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project