- Edited
Hi,
This is our osTicket Server Info:
osTicket Version v1.17 (1d8b790) — Up to date
Web Server Software Apache/2.4.37 () OpenSSL/1.1.1g Phusion_Passenger/6.0.6
MySQL Version 5.7.34
PHP Version 8.0.11
I just upgraded yesterday from v1.16.3 to 1.17.
Yesterday, while everything seemed to work fine, This morning I realised that osTicket logs tag shows severa time the same DB Error #1062.
I also get Cron Fatal Error too by e-mail. As I don't know if both are related, I will open another thread for the Cron error.
Does anyone know what I can do to fix this?
This the log message: (I replaced part of the path by ----)
DB Error #1062
[INSERTINTO
hgjv_configSET
key= 'last-run',
value= 1666088103,
updated= NOW()] Duplicate entry 'last-run' for key 'namespace'<br /> <br />
h...')<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(203): osTicket->logDBError('DB Error #1062', '[INSERT INTO
#1 (root)/include/class.orm.php(3482): db_query('INSERT INTO `hg...', true, true)<br />
#2 (root)/include/class.orm.php(658): MySqlExecutor->execute()<br />
#3 (root)/include/class.config.php(176): VerySimpleModel->save(true)<br />
#4 (root)/include/class.config.php(109): ConfigItem->save()<br />
#5 (root)/include/class.config.php(119): Config->create('last-run', 1666088103)<br />
#6 (root)/include/class.config.php(84): Config->update('last-run', 1666088103)<br />
#7 (root)/include/plugins/autocloser/class.CloserPlugin.php(203): Config->set('last-run', 1666088103)<br />
#8 (root)/include/plugins/autocloser/class.CloserPlugin.php(85): CloserPlugin->is_time_to_run(Object(CloserPluginConfig))<br />
#9 (root)/include/plugins/autocloser/class.CloserPlugin.php(68): CloserPlugin->logans_run_mode()<br />
#10 (root)/include/class.signal.php(98): CloserPlugin->{closure}(NULL, Array)<br />
#11 (root)/include/class.cron.php(123): Signal::send('cron', NULL, Array)<br />
#12 (root)/include/api.cron.php(19): Cron::run()<br />
#13 (root)/include/api.cron.php(40): CronApiController->run()<br />
#14 (root)/api/cron.php(23): LocalCronApiController::call()<br />
#15 {main}