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

SQL Error when upgrading database schema

Scheduled Pinned Locked Moved Solved
Bug Reports
3
4
1.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.
  • K
    keegean
    last edited by Jun 21, 2016, 6:22 PM

    Running Version: 8197
    SVN Revision: 5726

    During the install I get the following error when I try to upgrade the database schema:

    SQLSTATE[4200]: Syntax error or access violation: 1061 Duplicate key name ‘gmhostID’
    SQL: [83] ALTER TABLE ‘fog’.‘groupMembers’ ADD UNIQUE KEY ‘gmhostID’ (‘gmHostID’,‘gmGroupID’) Params: 0

    I pulled down the lastest from the trunk and performed an install.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 22, 2016, 5:29 PM

      Updated the code base so this particular alter statement is no longer available. This should allow your system to work past this point as I recreate the table shortly afterword, twice even.

      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
      • W
        Wayne Workman
        last edited by Wayne Workman Jun 22, 2016, 1:51 PM Jun 22, 2016, 7:36 PM

        Cross linking similar threads:

        https://forums.fogproject.org/topic/7855/sql-error-when-upgrading-database-schema

        https://forums.fogproject.org/topic/7876/installation-error-fresh-install-with-current-git-trunk-version

        https://forums.fogproject.org/topic/7873/sql-error-after-updating-to-trunk-at-login

        https://forums.fogproject.org/topic/7870/chromium-os-woes/9

        https://forums.fogproject.org/topic/7862/nfs-mount-fails-network-unreachable/16

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jun 22, 2016, 7:52 PM

          This should now be fixed.

          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
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post

          212

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project