• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • T
    Tom Elliott @fishfox
    last edited by Apr 25, 2018, 4:25 AM

    @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 Apr 25, 2018, 4:32 AM Reply Quote 0
    • F
      fishfox @Tom Elliott
      last edited by Apr 25, 2018, 4:32 AM

      @tom-elliott Thanks 🙂

      1 Reply Last reply Reply Quote 0
      • E
        EricZ @george1421
        last edited by Nov 21, 2019, 7:21 PM

        @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!

        G 1 Reply Last reply Nov 21, 2019, 7:24 PM Reply Quote 0
        • G
          george1421 Moderator @EricZ
          last edited by george1421 Nov 21, 2019, 1:25 PM Nov 21, 2019, 7:24 PM

          @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 Nov 21, 2019, 8:30 PM Reply Quote 0
          • E
            EricZ @george1421
            last edited by Nov 21, 2019, 8:30 PM

            @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.

            G 1 Reply Last reply Nov 21, 2019, 8:53 PM Reply Quote 0
            • G
              george1421 Moderator @EricZ
              last edited by Nov 21, 2019, 8:53 PM

              @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 Nov 21, 2019, 9:14 PM Reply Quote 0
              • E
                EricZ @george1421
                last edited by Nov 21, 2019, 9:14 PM

                @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.

                G 2 Replies Last reply Nov 21, 2019, 9:25 PM Reply Quote 0
                • G
                  george1421 Moderator @EricZ
                  last edited by george1421 Nov 21, 2019, 3:26 PM Nov 21, 2019, 9:25 PM

                  @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 Nov 21, 2019, 9:44 PM Reply Quote 0
                  • G
                    george1421 Moderator @EricZ
                    last edited by Nov 21, 2019, 9:32 PM

                    @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 Nov 21, 2019, 9:44 PM

                      @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.

                      G 1 Reply Last reply Nov 21, 2019, 9:54 PM Reply Quote 0
                      • G
                        george1421 Moderator @EricZ
                        last edited by Nov 21, 2019, 9:54 PM

                        @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 Nov 21, 2019, 10:16 PM Reply Quote 0
                        • E
                          EricZ @george1421
                          last edited by Nov 21, 2019, 10:16 PM

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

                          G 1 Reply Last reply Nov 21, 2019, 10:39 PM Reply Quote 1
                          • G
                            george1421 Moderator @EricZ
                            last edited by george1421 Nov 21, 2019, 4:40 PM Nov 21, 2019, 10:39 PM

                            @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 Nov 22, 2019, 5:46 AM

                              @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

                              216

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project