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

there can be only one TIMESTAMP column with CURRENT_TIMESTAMP

Scheduled Pinned Locked Moved Solved
FOG Problems
3
4
1.7k
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.
  • R
    raice
    last edited by May 4, 2016, 3:05 PM

    searched a lot in the forums, but couldn’t find the answer.
    Try to set up a new FOG image server. Installed Debian (later also tried CENTOS and Ubuntu) and get the latest developer release. I need this release because of the Broadcom chipset in the workstations.
    When I install it, everything works fine. But at some point in the Install script one needs to go to the url
    http://xxx.xxx.xxx.xxx/fog/management
    to create the database and create the tables.
    After pressing the button, the following message appears:

    Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

    ALTER TABLE fog.hosts ADD COLUMN hostSecTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP

    The login works, but there is no possibility creating hosts. Every registration fails.
    What needs to be done to get it running?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by May 4, 2016, 3:27 PM

      Can you update and try 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! 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
      • S
        Sebastian Roth Moderator
        last edited by May 4, 2016, 3:30 PM

        @raice Thanks a lot for reporting this. We recently made some major changes in the MySQL schema scripts to make it run on MySQL version 5.7 (ubuntu 16.04 default mysql version). Seems like we overdid things. Will be fixed soon!

        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
        • R
          raice
          last edited by May 4, 2016, 3:42 PM

          Yes, you fixed it 🙂

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

          248

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project