You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-03-17 15:03:14

Ra0h
Member
Registered: 2017-01-09
Posts: 18

[RÉSOLU]MySQL query error: Duplicate entry

Bonjour,

Mon fichier de log sql-errors.log est rempli de l'erreur suivante, pour un grand nombre de ticket et je n'arrive pas à en identifier la cause ni les retombées

*** MySQL query error:
  SQL: INSERT
                   INTO `glpi_groups_tickets` (`tickets_id`,`type`,`groups_id`) VALUES (\'1703170017\',\'2\',\'2\')
  Error: Duplicate entry '1703170017-2-2' for key 'unicity'
  Backtrace :
  inc\commondbtm.class.php:436                       
  inc\commondbtm.class.php:852                       CommonDBTM->addToDB()
  inc\commonitilobject.class.php:1519                CommonDBTM->add()
  inc\commonitilobject.class.php:1446                CommonITILObject->addAdditionalActors()
  inc\ticket.class.php:1762                          CommonITILObject->post_addItem()
  inc\commondbtm.class.php:853                       Ticket->post_addItem()
  inc\mailcollector.class.php:564                    CommonDBTM->add()
  inc\mailcollector.class.php:1614                   MailCollector->collect()
  inc\crontask.class.php:834                         MailCollector::cronMailgate()
  front\cron.php:66                                  CronTask::launch()

Version GLPI v9.1.1
plugins :

behaviors            Name: Comportements                  Version: 1.2        State: Enabled
    mydashboard          Name: Dashboard                      Version: 1.3.2      State: Enabled
    escalade             Name: Escalades                      Version: 2.1.0      State: Enabled
    fusioninventory      Name: FusionInventory                Version: 9.1+1.1    State: Enabled
    datainjection        Name: Injection de fichiers          Version: 2.4.2      State: Enabled
    dashboard            Name: Tableau de bord                Version: 0.7.9      State: Enabled

Serveur: Windows Server 2012 R2 Datacenter Edition

Merci d'avance pour toute aide.

Cdt

Last edited by Ra0h (2017-06-02 10:55:31)

Offline

#2 2017-03-22 00:11:05

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: [RÉSOLU]MySQL query error: Duplicate entry

Pouvez-vous refaire un test avec vos plugins désactivés (mydashboard et dashboard)


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-05-24 16:02:33

Ra0h
Member
Registered: 2017-01-09
Posts: 18

Re: [RÉSOLU]MySQL query error: Duplicate entry

Bonjour,

Le problème venait de regles metier qui tentait d attribuer des ticket a des groupes auxquels ils étaient déjà rattaché.

On peut clôturer

Offline

Board footer

Powered by FluxBB