Hi there,
i have a problem when upgrading suitecrm ( Version 7.10.11 - installed on a debian 9 virtual machine, running on a qnap-nas).
When trying the upgrade wizard i get:
The output from the .log is
Tue Apr 30 09:14:49 2019 [926][1][FATAL] Mysqli_query failed.
Tue Apr 30 09:14:49 2019 [926][1][FATAL] Error creating table: sampl_samples: Query Failed: /* Table : sampl_samples */
/* MISSING TABLE: sampl_samples */
CREATE TABLE sampl_samples (id char(36) NOT NULL ,name varchar(255) NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,sampl_samples_number int(11) DEFAULT '000001' NOT NULL auto_increment,type varchar(100) NULL ,status varchar(100) NULL ,priority varchar(100) NULL ,resolution varchar(100) NULL ,work_log text NULL ,account_id_c char(36) NULL ,aos_products_id_c char(36) NULL ,project_id_c char(36) NULL ,trackingid text NULL ,trackingurl varchar(255) NULL ,batch_lotid varchar(255) NULL ,sampleqty varchar(255) NULL ,account_id1_c char(36) NULL ,user_id_c char(36) NULL , PRIMARY KEY (id), UNIQUE sampl_samplesnumk (sampl_samples_number)) CHARACTER SET utf8 COLLATE utf8_general_ci
: MySQL error 1067: Invalid default value for 'sampl_samples_number'
Tue Apr 30 09:14:49 2019 [926][1][FATAL] Exception handling in /var/www/html/include/MVC/Controller/SugarController.php:400
Tue Apr 30 09:14:49 2019 [926][1][FATAL] Exception in Controller: Database failure. Please refer to suitecrm.log for details.
Tue Apr 30 09:14:49 2019 [926][1][FATAL] backtrace:
#0 /var/www/html/include/database/DBManager.php(353): sugar_die('Database failur...')
#1 /var/www/html/include/database/DBManager.php(328): DBManager->registerError('Error creating ...', 'Error creating ...', true)
#2 /var/www/html/include/database/MysqliManager.php(179): DBManager->checkError('Error creating ...', true)
#3 /var/www/html/include/database/MysqlManager.php(593): MysqliManager->query('/* Table : samp...', true, 'Error creating ...')
#4 /var/www/html/include/database/DBManager.php(764): MysqlManager->repairTableParams('sampl_samples', Array, Array, true, NULL)
#5 /var/www/html/modules/UpgradeWizard/end.php(86): DBManager->repairTable(Object(sampl_Samples), true)
#6 /var/www/html/modules/UpgradeWizard/index.php(296): require('/var/www/html/m...')
#7 /var/www/html/include/MVC/View/SugarView.php(818): include_once('/var/www/html/m...')
#8 /var/www/html/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile('modules/sampl_S...')
#9 /var/www/html/include/MVC/View/SugarView.php(211): ViewClassic->display()
#10 /var/www/html/include/MVC/Controller/SugarController.php(435): SugarView->process()
#11 /var/www/html/include/MVC/Controller/SugarController.php(375): SugarController->processView()
#12 /var/www/html/include/MVC/SugarApplication.php(113): SugarController->execute()
#13 /var/www/html/index.php(52): SugarApplication->execute()
#14 {main}
As a possible solution i found in another forum thread to do a quick repair
But when trying Repair->Quick Repair and Rebuild i get:
[quote]Differences found between database and vardefs
The following script will sync the database structure with the structure defined in the vardefs. You have the option of exporting this script and then running it against your database using external database management tools, or to allow the administration module to run the script.
NOTE: any changes you make to the script in the textbox will be reflected in the exported or executed code.[/quote]
/* Table : sampl_samples */
/* MISSING TABLE: sampl_samples */
CREATE TABLE sampl_samples (id char(36) NOT NULL ,name varchar(255) NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,sampl_samples_number int(11) DEFAULT '000001' NOT NULL auto_increment,type varchar(100) NULL ,status varchar(100) NULL ,priority varchar(100) NULL ,resolution varchar(100) NULL ,work_log text NULL ,account_id_c char(36) NULL ,aos_products_id_c char(36) NULL ,project_id_c char(36) NULL ,trackingid text NULL ,trackingurl varchar(255) NULL ,batch_lotid varchar(255) NULL ,sampleqty varchar(255) NULL ,account_id1_c char(36) NULL ,user_id_c char(36) NULL , PRIMARY KEY (id), UNIQUE sampl_samplesnumk (sampl_samples_number)) CHARACTER SET utf8 COLLATE utf8_general_ci;
But while in the other thread hitting the execute button unter the code solved it - for me it results again in:
and the log showing:
Tue Apr 30 09:20:24 2019 [928][1][FATAL] Mysqli_query failed.
Tue Apr 30 09:20:24 2019 [928][1][FATAL] Executing repair query: Query Failed: CREATE TABLE sampl_samples (id char(36) NOT NULL ,name varchar(255) NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,sampl_samples_number int(11) DEFAULT '000001' NOT NULL auto_increment,type varchar(100) NULL ,status varchar(100) NULL ,priority varchar(100) NULL ,resolution varchar(100) NULL ,work_log text NULL ,account_id_c char(36) NULL ,aos_products_id_c char(36) NULL ,project_id_c char(36) NULL ,trackingid text NULL ,trackingurl varchar(255) NULL ,batch_lotid varchar(255) NULL ,sampleqty varchar(255) NULL ,account_id1_c char(36) NULL ,user_id_c char(36) NULL , PRIMARY KEY (id), UNIQUE sampl_samplesnumk (sampl_samples_number)) CHARACTER SET utf8 COLLATE utf8_general_ci: MySQL error 1067: Invalid default value for 'sampl_samples_number'
Tue Apr 30 09:20:24 2019 [928][1][FATAL] Exception handling in /var/www/html/include/MVC/Controller/SugarController.php:400
Tue Apr 30 09:20:24 2019 [928][1][FATAL] Exception in Controller: Database failure. Please refer to suitecrm.log for details.
Tue Apr 30 09:20:24 2019 [928][1][FATAL] backtrace:
#0 /var/www/html/include/database/DBManager.php(353): sugar_die('Database failur...')
#1 /var/www/html/include/database/DBManager.php(328): DBManager->registerError('Executing repai...', 'Executing repai...', true)
#2 /var/www/html/include/database/MysqliManager.php(179): DBManager->checkError('Executing repai...', true)
#3 /var/www/html/modules/Administration/repairDatabase.php(93): MysqliManager->query('CREATE TABLE sa...', true, 'Executing repai...')
#4 /var/www/html/include/MVC/View/SugarView.php(818): include_once('/var/www/html/m...')
#5 /var/www/html/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile('modules/Adminis...')
#6 /var/www/html/include/MVC/View/SugarView.php(211): ViewClassic->display()
#7 /var/www/html/include/MVC/Controller/SugarController.php(435): SugarView->process()
#8 /var/www/html/include/MVC/Controller/SugarController.php(375): SugarController->processView()
#9 /var/www/html/include/MVC/SugarApplication.php(113): SugarController->execute()
#10 /var/www/html/index.php(52): SugarApplication->execute()
#11 {main}
any hint or tip how to solve this would be great.
Also off-topic: is there a rss-feed or similar to get short infos, when a new security or lts release is available? I couldnāt find something like that.