erreur lors de la mise à jour...

Un conseil pour l'installation? Un problème technique pour installer OpenConcerto?
Ragus
Messages : 59
Enregistré le : sam. mars 28, 2015 11:48 am

mer. janv. 13, 2016 5:14 pm

Bonsoir,

Cela donne ça : copie d'écran jointe
Gestion des droits.png
Gestion des droits.png (163.66 Kio) Vu 3523 fois
J'ai sélectionné mon utilisateur , la liste de droits est vide et quand je fais Ajout la fenêtre est vide.
A noter que l'administrateur a bien sa liste des droits mais quand je fais ajout c'est pareil.
Quand je me connecte avec mon utilisateur cela fonctionne mais j'ai les droits par défaut (normal)

La suppression des lignes dans la table USER_RIGHT n'est donc pas une solution, cela "casse" une relation quelque part.

Merci de votre aide,
Utilisateur OC 1.5 multiposte Postgresql Linux
Avatar du membre
guillaume
Messages : 2457
Enregistré le : ven. févr. 11, 2011 7:15 pm

mer. janv. 13, 2016 5:31 pm

Bonjour,

"Ici ça marche".
Version de Java? Version de linux?

Cordialement,
Directeur technique d'OpenConcerto qui dans son temps libre s'occupe du forum.
Pour une assistance pro, nous sommes joignables à ILM Informatique contre quelques jetons.
Pensez aussi à lire le manuel !
Ragus
Messages : 59
Enregistré le : sam. mars 28, 2015 11:48 am

mer. janv. 13, 2016 6:06 pm

java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)

OS Ubuntu 14.04 64bits

J'aimerais bien que ce soit un pb lié au contexte, je vais essayer avec une VM ubuntu 15.10 et java 8
Utilisateur OC 1.5 multiposte Postgresql Linux
Ragus
Messages : 59
Enregistré le : sam. mars 28, 2015 11:48 am

mer. janv. 13, 2016 6:52 pm

Bonsoir,

Je me suis rappelé que avec la 1.4B3 cela avait fonctionné (voir mon message de septembre) , j'ai refais le test :
Même environnement , même base de données :
1.4B2 OK
1.4B3 OK
1.4B4 KO
1.4B5 KO
1.4 KO

J'en conclus que ... c'est pas chez moi ;-)
Sérieusement il y a obligatoirement un changement dans le code entre la 1.4B3 et 1.4B4 qui ne marche pas dans ma configuration.
Si besoin je peux bien sûr vous fournir ma base en dump Postgresql.
Utilisateur OC 1.5 multiposte Postgresql Linux
Avatar du membre
guillaume
Messages : 2457
Enregistré le : ven. févr. 11, 2011 7:15 pm

mer. janv. 13, 2016 8:35 pm

Aucune erreur? Rien dans les logs?
Je suis assez dubitatif vu que vous êtes le seul à remonter ce problème et qu'il y a déjà plusieurs centaines d'utilisateurs en 1.4.
On va regarder ce qui pourrait provoquer cela...
Directeur technique d'OpenConcerto qui dans son temps libre s'occupe du forum.
Pour une assistance pro, nous sommes joignables à ILM Informatique contre quelques jetons.
Pensez aussi à lire le manuel !
Ragus
Messages : 59
Enregistré le : sam. mars 28, 2015 11:48 am

jeu. janv. 14, 2016 9:28 am

Bonjour Guillaume,

Je ne comprends pas non plus pourquoi je serai dans un cas spécial mais force est de reconnaître que en 1.4B3 la mise à jour de la base passe bien et qu'en 1.4B4 et suivantes cela se plante avec l'erreur :

Logger logs: /home/bruno/OpenConcerto/logs/bruno-VirtualBox-bruno/OpenConcerto-%u-age%g.log
SystemRoot:DBSystemRoot OpenConcerto
Root:DBRoot SQLSchema Common
janv. 14, 2016 10:21:39 AM org.openconcerto.utils.ExceptionHandler display
INFOS: null
org.openconcerto.utils.ExceptionHandler: Echec de mise à jour
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:112)
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:116)
at org.openconcerto.erp.config.InstallationPanel$1$1.run(InstallationPanel.java:351)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: unable to insert SQLRowValues on /USER_RIGHT/ : {ID_RIGHT=20(class java.lang.Integer), HAVE_RIGHT=true(class java.lang.Boolean)} using {ID_RIGHT=20, HAVE_RIGHT=true}
at org.openconcerto.sql.model.SQLRowValues.insertJustThis(SQLRowValues.java:1758)
at org.openconcerto.sql.model.SQLRowValues.commitJustThis(SQLRowValues.java:1837)
at org.openconcerto.sql.model.SQLRowValuesCluster$Commit.execOn(SQLRowValuesCluster.java:1468)
at org.openconcerto.sql.model.SQLRowValuesCluster$Node.store(SQLRowValuesCluster.java:1373)
at org.openconcerto.sql.model.SQLRowValuesCluster$Node.access$3(SQLRowValuesCluster.java:1371)
at org.openconcerto.sql.model.SQLRowValuesCluster$2.handle(SQLRowValuesCluster.java:450)
at org.openconcerto.sql.model.SQLRowValuesCluster$2.handle(SQLRowValuesCluster.java:1)
at org.openconcerto.sql.utils.SQLUtils$2.handle(SQLUtils.java:147)
at org.openconcerto.sql.model.ConnectionHandler.compute(ConnectionHandler.java:55)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:844)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:812)
at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:125)
at org.openconcerto.sql.model.SQLRowValuesCluster.store(SQLRowValuesCluster.java:417)
at org.openconcerto.sql.model.SQLRowValuesCluster.store(SQLRowValuesCluster.java:367)
at org.openconcerto.sql.model.SQLRowValues.commit(SQLRowValues.java:1832)
at org.openconcerto.erp.config.InstallationPanel.checkRights(InstallationPanel.java:3409)
at org.openconcerto.erp.config.InstallationPanel.access$4(InstallationPanel.java:3364)
at org.openconcerto.erp.config.InstallationPanel$1$1.run(InstallationPanel.java:190)
... 1 more
Caused by: java.sql.SQLException: Unable to insert INSERT INTO "OpenConcerto"."Common"."USER_RIGHT" ("ID_RIGHT", "HAVE_RIGHT", "ORDRE") select 20, '1', COALESCE(MAX("ORDRE"), 0) + 1 FROM "OpenConcerto"."Common"."USER_RIGHT" RETURNING "ID"
at org.openconcerto.sql.model.SQLRowValues$6.handle(SQLRowValues.java:1746)
at org.openconcerto.sql.model.SQLRowValues$6.handle(SQLRowValues.java:1)
at org.openconcerto.sql.model.ConnectionHandler.compute(ConnectionHandler.java:55)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:844)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:812)
at org.openconcerto.sql.model.SQLRowValues.insertJustThis(SQLRowValues.java:1736)
... 18 more
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "USER_RIGHT_pkey"
Detail: Key ("ID")=(20) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1886)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:555)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:410)
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
at org.openconcerto.sql.model.SQLRowValues.insert(SQLRowValues.java:2191)
at org.openconcerto.sql.model.SQLRowValues$6.handle(SQLRowValues.java:1741)
... 23 more

A disposition pour donner tous éléments nécessaires.
Utilisateur OC 1.5 multiposte Postgresql Linux
Répondre