We are having the same problem, when receive a email to open tickets.
DB Error #1062
[INSERT INTO ost_attachment
SET file_id
= 1, inline
= 1, type
= 'P', object_id
= 13] Duplicate entry '1-13' for key 'ost_attachment.file_object'
---- Backtrace ----
#0 (raiz)/include/mysqli.php(201): osTicket->logDBError()
#1 (raiz)/include/class.orm.php(3466): db_query()
#2 (raiz)/include/class.orm.php(658): MySqlExecutor->execute()
#3 (raiz)/include/class.attachment.php(180): VerySimpleModel->save()
#4 (raiz)/include/class.attachment.php(130): GenericAttachments->upload()
#5 (raiz)/include/class.page.php(285): GenericAttachments->keepOnlyFileIds()
#6 (raiz)/include/ajax.content.php(198): Page->update()
#7 (raiz)/include/class.dispatcher.php(145): ContentAjaxAPI->updateContent()
#8 (raiz)/include/class.dispatcher.php(38): UrlMatcher->dispatch()
#9 (raiz)/include/class.dispatcher.php(120): Dispatcher->resolve()
#10 (raiz)/include/class.dispatcher.php(38): UrlMatcher->dispatch()
#11 (raiz)/scp/ajax.php(316): Dispatcher->resolve()
#12 {main}
Data de registro: quarta-feira, 27 de outubro de 2021 10:13 Endereço IP: XXX.XX.XXX.XX
How can I solve this