Here is my OsTicket info:
osTicket Version v1.12 (a076918) — Up to date
Web Server Software Apache
MySQL Version 10.2.25
PHP Version 7.3.7
Issue:
We are getting DB Error #1062 almost daily. We believe the error is related to attachments in the tickets, but we are not exactly sure of the root cause. Here is the actual error code.
[INSERT INTO ost_attachment
SET file_id
= 42769, type
= 'D', object_id
= 277425]
Duplicate entry '277425-42769-D' for key 'file-type'<br /> <br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(199): osTicket->logDBError('DB Error #1062', '[INSERT INTO o...')<br />
os...', true, true)<br />
#1 (root)/include/class.orm.php(3455): db_query('INSERT INTO
#2 (root)/include/class.orm.php(658): MySqlExecutor->execute()<br />
#3 (root)/include/class.attachment.php(172): VerySimpleModel->save()<br />
#4 (root)/include/ajax.draft.php(101): GenericAttachments->upload(Array)<br />
#5 (root)/include/ajax.draft.php(230): DraftAjaxAPI->_uploadInlineImage(Object(Draft))<br />
#6 (root)/include/class.dispatcher.php(145): DraftAjaxAPI->uploadInlineImageClient('277425')<br />
#7 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('277425/attach', Array)<br />
#8 (root)/include/class.dispatcher.php(120): Dispatcher->resolve('277425/attach', Array)<br />
#9 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('/draft/277425/a...', NULL)<br />
#10 (root)/ajax.php(50): Dispatcher->resolve('/draft/277425/a...')<br />
#11 {main}
Is anyone getting similar errors? I'm not sure if we can ignore these or if it indicates a more serious issue. Any input from the community would be appreciated.