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

Updating database... failed!

Scheduled Pinned Locked Moved Solved
FOG Problems
3
5
440
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.
  • Z
    Zaairo
    last edited by Feb 7, 2020, 9:10 AM

    Hi everyone,

    I’m not very familiar with Debian so I’m asking for help.
    I installed a FOG server. Everything was fine on the first installation.
    text alternatif
    text alternatif
    text alternatif

    But when I turned the fog server off and back on I couldn’t access it anymore.
    So I tried to re-run the installation and it stops when the message “Updating database … failed!” appears
    text alternatif

    I don’t use any proxy and i got the same error with and without password on the root account for mysql
    Anything I can do here? Thanks !

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Feb 7, 2020, 11:41 AM Feb 7, 2020, 5:41 PM

      @Zaairo said in Updating database... failed!:

      But when I turned the fog server off and back on I couldn’t access it anymore.

      You mean the web interface I suppose? Please run systemctl status apache2 php7.3-fpm and post output here. As well you want to check the apache and php-fpm logs (see my signature). The backup is done via a call to the webserver and surely fails if that is down.

      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
      • Z
        Zaairo
        last edited by Feb 11, 2020, 8:28 AM

        Sorry i was not present due to my work.

        I looked at the logs as suggested and noticed that the fog ip could not be accessed.
        I think it’s because of the local DHCP to which I wanted to attach the FOG. I have a second FOG in a closed network with a fixed IP and this one has no problem when restarting.

        So I think that the local DHCP to which I do not have access gives it a dynamic IP and this makes access to the database inaccessible after a reboot.
        I have followed this tutorial (https://wiki.fogproject.org/wiki/index.php/Integrating_FOG_into_an_Existing_Network) but should I do something more?

        G 1 Reply Last reply Feb 11, 2020, 1:25 PM Reply Quote 0
        • G
          george1421 Moderator @Zaairo
          last edited by Feb 11, 2020, 1:25 PM

          @Zaairo Can you give FOG a static IP address? If not can you request a dhcp reservation so that the fog server doesn’t change IP addresses after FOG is installed? There are static entries in the FOG configuration that get entered when the FOG installer script runs, if the FOG server changes IP addresses after FOG is installed you will run into problems.

          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!

          Z 1 Reply Last reply Feb 13, 2020, 8:11 AM Reply Quote 0
          • Z
            Zaairo @george1421
            last edited by Feb 13, 2020, 8:11 AM

            @george1421 I received my fixed IP from the sysadmin and I redid the installation. Everything is working perfectly now. I really thought the error was coming from mysql

            I really appreciate the help you have given me. Thanks!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              4/5
              Last post

            217

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project