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

    database created problem

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    13
    792
    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.
    • L
      lsdingo
      last edited by Sebastian Roth

      Hello folks,
      I got this message in the installation:

      • You still need to install/update your database schema.
      • This can be done by opening a web browser and going to:
        http://192.168.20.201/fog/management
      • I did what it said
        and right after it gave me error:
      The following errors occurred
      Update ID: 16
      
      Database Error:
      
      Failed to query: Error: SQLSTATE[HY000]: General error: 1558 Column count of mysql.user is wrong. Expected 42, found 39. Created with MySQL 50173, now running 50562. Please use mysql_upgrade to fix this error. Error Message: Error Code: "HY000", Error Message: ["HY000",1558,"Column count of mysql.user is wrong. Expected 42, found 39. Created with MySQL 50173, now running 50562. Please use mysql_upgrade to fix this error."], Debug: SQL: [70] GRANT ALL ON `fog`.* TO 'fogstorage'@'%' IDENTIFIED BY 'fs73755703850'
      Params: 0
      Variable contains:
      
      Array
      ( [0] => ALTER TABLE `tasks` ADD COLUMN `taskBPM` varchar(250) NOT NULL AFTER `taskPCT`, ADD COLUMN `taskTimeElapsed` varchar(250) NOT NULL AFTER `taskBPM`, ADD COLUMN `taskTimeRemaining` varchar(250) NOT NULL AFTER `taskTimeElapsed`, ADD COLUMN `taskDataCopied` varchar(250) NOT NULL AFTER `taskTimeRemaining`, ADD COLUMN `taskPercentText` varchar(250) NOT NULL AFTER `taskDataCopied`, ADD COLUMN `taskDataTotal` VARCHAR(250) NOT NULL AFTER `taskPercentText` [1] => CREATE TABLE `nfsGroups` (`ngID` integer NOT NULL AUTO_INCREMENT,`ngName` varchar(250) NOT NULL,`ngDesc` longtext NOT NULL,PRIMARY KEY (`ngID`)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [2] => CREATE TABLE `nfsGroupMembers` (`ngmID` integer NOT NULL AUTO_INCREMENT,`ngmMemberName` varchar(250) NOT NULL,`ngmMemberDescription` longtext NOT NULL,`ngmIsMasterNode` char NOT NULL,`ngmGroupID` integer NOT NULL,`ngmRootPath` longtext NOT NULL,`ngmIsEnabled` char NOT NULL,`ngmHostname` varchar(250) NOT NULL,`ngmMaxClients` integer NOT NULL,`ngmUser` varchar(250) NOT NULL,`ngmPass` varchar(250) NOT NULL,`ngmKey` varchar(250) NOT NULL, PRIMARY KEY (`ngmID`),INDEX `new_index`(`ngmMemberName`),INDEX `new_index2`(`ngmIsMasterNode`),INDEX `new_index3`(`ngmGroupID`),INDEX `new_index4`(`ngmIsEnabled`)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [3] => ALTER TABLE `images` ADD COLUMN `imageNFSGroupID` integer NOT NULL AFTER `imageDD`,ADD INDEX `new_index3`(`imageNFSGroupID`) [4] => ALTER TABLE `tasks` ADD COLUMN `taskNFSGroupID` integer NOT NULL AFTER `taskDataTotal`,ADD COLUMN `taskNFSMemberID` integer NOT NULL AFTER `taskNFSGroupID`,ADD COLUMN `taskNFSFailures` char NOT NULL AFTER `taskNFSMemberID`,ADD COLUMN `taskLastMemberID` integer NOT NULL AFTER `taskNFSFailures`,ADD INDEX `new_index5`(`taskNFSGroupID`),ADD INDEX `new_index6`(`taskNFSMemberID`),ADD INDEX `new_index7`(`taskNFSFailures`),ADD INDEX `new_index8`(`taskLastMemberID`) [5] => CREATE TABLE `nfsFailures` (`nfID` integer NOT NULL AUTO_INCREMENT,`nfNodeID` integer NOT NULL,`nfTaskID` integer NOT NULL,`nfHostID` integer NOT NULL,`nfGroupID` integer NOT NULL,`nfDateTime` integer NOT NULL,PRIMARY KEY (`nfID`),INDEX `new_index`(`nfNodeID`),INDEX `new_index1`(`nfTaskID`),INDEX `new_index2`(`nfHostID`),INDEX `new_index3`(`nfGroupID`)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [6] => ALTER TABLE `nfsFailures` MODIFY COLUMN `nfDateTime` datetime NOT NULL,ADD INDEX `new_index4`(`nfDateTime`) [7] => ALTER TABLE `multicastSessions` CHANGE `msAnon2` `msNFSGroupID` integer NOT NULL, ADD INDEX `new_index`(`msNFSGroupID`) [8] => INSERT IGNORE INTO `nfsGroups` (`ngName`,`ngDesc`) VALUES ('default','Auto generated fog nfs group') [9] => INSERT IGNORE INTO `nfsGroupMembers` (`ngmMemberName`,`ngmMemberDescription`,`ngmIsMasterNode`,`ngmGroupID`,`ngmRootPath`,`ngmIsEnabled`,`ngmHostname`,`ngmMaxClients`,`ngmUser`,`ngmPass`) VALUES ('DefaultMember','Auto generated fog nfs group member','1','1','/images/','1','192.168.20.201','10','fog','WrsSWg+LnzloyFzRCluWZz5Eh+VZ/YEvxrnTAFZH5Qo=') [10] => UPDATE `images` set imageNFSGroupID = '1' [11] => DELETE FROM `globalSettings` WHERE `settingKey` IN ('FOG_NFS_HOST','FOG_NFS_FTP_USERNAME','FOG_NFS_FTP_PASSWORD','FOG_NFS_DATADIR','FOG_NFS_DATADIR_CAPTURE') [12] => INSERT IGNORE INTO `globalSettings` (`settingKey`,`settingDesc`,`settingValue`,`settingCategory`) VALUES ('FOG_STORAGENODE_MYSQLUSER','This setting defines the username the storage nodes should use to connect to the fog server.','fogstorage','FOG Storage Nodes'),('FOG_STORAGENODE_MYSQLPASS','This setting defines the password the storage nodes should use to connect to the fog server.','fs73755703850','FOG Storage Nodes') [13] => GRANT ALL ON `fog`.* TO 'fogstorage'@'%' IDENTIFIED BY 'fs73755703850' [14] => UPDATE `schemaVersion` set `vValue`='16'
      )
      Database SQL:
      
      GRANT ALL ON `fog`.* TO 'fogstorage'@'%' IDENTIFIED BY 'fs73755703850'
      

      any help ? I’m confused

      Fond regards,

      lsdingo

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Can we get a bit more background on this install?

        1. Is this a fresh FOG install or an upgrade from a previous release?
        2. What version of FOG were you installing?
        3. What is the FOG server’s OS and version?
        4. What version of mysql/mariadb is installed?

        Once we know this info then we can perform the next steps.

        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!

        1 Reply Last reply Reply Quote 0
        • L
          lsdingo
          last edited by

          rhel 6.10 server I just got it from the git repo
          I think I will use centos 6.10 instead

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @lsdingo
            last edited by george1421

            @lsdingo said in database created problem:

            centos 6.10

            Are you SURE its 6.10? If so that’s not supported by FOG as well as Red Hat. One might hope that you are using 7.x over 6.x.

            Please run this command cat /etc/redhat-release and post the results.

            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!

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

              @lsdingo While George is absolutely right about the version information you might want to try to fix your database. Seems like it got somehow corrupted when doing an upgrade. Run mysql_upgrade -uroot -p and if that doesn’t help try mysql_upgrade --force -uroot -p (ref)

              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
              • L
                lsdingo
                last edited by

                Hey I actually tried installing it on a different machine (Ubuntu 16.04) this time
                which obviously works better but I’m still having what I believe issues that related to the database (not really sure though)

                I get: db cant open /etc/target
                and also could not find partitions /bin/fog.upload

                fogproject1.PNG fogproject2.PNG

                also some /var/log/syslog from the fog server:
                fogproject3.PNG

                I’ve checked in google and saw that just changing the path in the configuration files should maybe do it but none said which conf file I should edit.
                could you please advise ?
                fond regards,
                Tal

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

                  @lsdingo said in database created problem:

                  I get: db cant open /etc/target

                  This is just a warning, not an error!

                  and also could not find partitions /bin/fog.upload

                  From my point of view this is not pointing to a database error. It means that FOG cannot find your disk in the client machine. Create a new upload task but check the box for debug. Boot the client and when you get to the shell type lsblk -> take a picture and post here.

                  Which version of FOG did you install???

                  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

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lsdingo @Sebastian Roth
                    last edited by

                    @Sebastian-Roth Hey,
                    how would I check which version I have? I installed the latest stable version.
                    also I don’t have the option for debugging

                    shrugs

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

                      @lsdingo Log into the web UI and you’ll see the version number in the bottom right corner. On the other hand, if you see a light blue colored cloud on the FOG web UI login screen that would mean you have FOG 1.2.0 which is very very old.

                      Anyhow, all the version had the debug option. See here:
                      Untitled.png

                      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

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        lsdingo @Sebastian Roth
                        last edited by

                        @Sebastian-Roth
                        its Version 1.5.5
                        and I don’t have these options. I went to fog settings and expended all.
                        I ticked ‘TASKING ADV DEBUG ENABLED’ but I think this is not it.
                        e3da2a63-fb3f-4ab0-8cf1-7dd39d2b52ae-image.png

                        please advise mate
                        regards

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

                          @lsdingo The setting is when you create a new task!

                          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

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            lsdingo @Sebastian Roth
                            last edited by

                            @Sebastian-Roth Okay, managed to find it
                            e6400a07-57dd-439c-9027-6e1ed3db23a0-image.png

                            1ce7e1fa-4813-4431-a6a9-e67404364707-image.png

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

                              @lsdingo Well, there is your answer. There are no partitions on this disk. There is nothing FOG can upload/capture.

                              Should an OS be installed on this (VM) disk? From my point of view it’s not!

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

                              207

                              Online

                              12.1k

                              Users

                              17.3k

                              Topics

                              155.3k

                              Posts
                              Copyright © 2012-2024 FOG Project