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

Image capturing: Updating Database...Failed

Scheduled Pinned Locked Moved Solved
FOG Problems
4
23
2.5k
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.
  • S
    Sebastian Roth Moderator
    last edited by Dec 2, 2019, 4:12 PM

    @EStegenburgs I do use the FOG DHCP and there should be no need to manually adjust vsftpd.conf.

    All installer questions I answered as the are by default except for DHCP where no is default but I said yes.

    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
    • G
      Greg Plamondon Testers
      last edited by Dec 5, 2019, 1:25 PM

      I had a similar problem but I found that it was my max connections.

      mysql -e"show status like '%used_connections%'"
      +----------------------+-------+
      | Variable_name        | Value |
      +----------------------+-------+
      | Max_used_connections | 224   |
      +----------------------+-------+
      
      
      mysql -e"SHOW VARIABLES LIKE '%max_connections%'"
      +-----------------------+-------+
      | Variable_name         | Value |
      +-----------------------+-------+
      | extra_max_connections | 1     |
      | max_connections       | 1000  |
      +-----------------------+-------+
      

      Mariadb max_connections default Value: 151
      I increased mine to 1000 and my DB connection issues seem to have gone away.

      1 Reply Last reply Reply Quote 0
      • E
        EStegenburgs @Sebastian Roth
        last edited by Dec 19, 2019, 10:47 AM

        @Sebastian-Roth So, in the end, I have entirely switched to a bridged network solution, and everything is working fine now. It seems that the problem was, in fact, as you mentioned, about the issue in the installer script with network adapter enumeration. But that also means it is some type of bug - all captures of an image were successful, only failed at the very end trying to update the database.

        The difference that I noticed between bridged and internal NAT configuration is that in the latter one, the FOG installer script at the very beginning complains that net-tools is not installed. When it asked about the network adapters, it couldn’t get an IP at first because it tried to use a network adapter enp0s3 enp0s8 (NAT adapter for internet connection and internal NAT adapter), at which point I had to specify to use enp0s8 adapter manually.

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

        194

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project