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

    Database connection appears invalid on install

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    4
    9
    3.1k
    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.
    • D
      dylan123
      last edited by

      Server
      • FOG Version: 1.3.4
      • OS: Ubuntu 14.04.5 LTS
      Client
      • Service Version:
      • OS:
      Description

      I’ve been having a number of issues getting FOG to install, previously I wasn’t even able to get to the database schema installer / updater page on my client when I was using the latest LTS version of Ubuntu (16.04.1). I’ve since installed 14.04 LTS today to see if I could get any further which I suppose I have by one step but I’m still unable to get it to work.

      During the install I get prompted to access the fog management database to update it however when I get to that section it says my connection appears to be invalid and I’m unsure what might be causing the issue.

      On the first part of the install I’ve noticed the below which I’m not sure is out of place or normal?
      0_1485912121925_fog1.png

      Mainly with stopping the web services and the potential need to reinstall apache and php files.

      The rest of the install appears to work fine, the web service starts up correctly at the end of the install and it doesn’t report any further errors until I get to the below part when I load the database management site -
      0_1485912354498_fog2.png

      • I’ve gone to the config.class.php file and it has the correct MYSQL database password that I set on install so that appears right.
      • I’ve followed this thread https://forums.fogproject.org/topic/9344/your-database-connection-appears-to-be-invalid/11 and removed the packages line (no ver or veradds lines) and re-run the installer with no success.
      • I’ve tried running this command ‘sudo netstat -tap | grep mysql’ to see if my database was running and the return I got was basically as suggested I should if it is running as per this link - https://help.ubuntu.com/lts/serverguide/mysql.html

      Any suggestions on what I should try or anything I can provide on my side to help identify where it’s going wrong? I have next to no experience with Ubuntu so I don’t really know what to try.

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        craigcoulson
        last edited by

        I have the same issue - 1.3.4 svn6064 on Debian 8
        Db was not created during install

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

          Can you please both upload your install logs?

          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

          D 1 Reply Last reply Reply Quote 0
          • D
            dylan123 @Sebastian Roth
            last edited by

            @Sebastian-Roth said in Database connection appears invalid on install:

            Can you please both upload your install logs?

            Where would I find my fog install logs? Since I’m running Ubuntu Server I’ve only got command line, I’ve poked around a little but I don’t think I’m really finding what you’re after.

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

              @dylan123 Trying to hit you on chat.

              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
              • C
                craigcoulson
                last edited by

                as requested

                1_1486021926618_foginstall.log [0_1486021926618_fog_error_1.3.4.log]

                (/uploads/files/1486021948219-fog_error_1.3.4.log)

                C 1 Reply Last reply Reply Quote 0
                • C
                  craigcoulson @craigcoulson
                  last edited by

                  @craigcoulson 0_1486021959995_fog_error_1.3.4.log

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

                    @craigcoulson I am pretty sure you have a different issue as your logs don’t have that same message posted by Dylan. Do you have the exact same database error message on the webinterface?

                    @dylan123 To me this sounds a bit like you did set a mysql password at some point and just forgot about it. Are you able to login to the database using the mysql command line tool?

                    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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      craigcoulson @Sebastian Roth
                      last edited by

                      @Sebastian-Roth - it is - ill start a different thread tho as it doesnt look the same to you
                      0_1486081090166_fog_error.JPG

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post

                      155

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project