Auth Type : DEVELOPMENT_BECOME_ANY_ACCOUNT
Create administrator user
Exception in thread "main" com.google.gwtorm.server.OrmDuplicateKeyException: account_external_ids
at com.google.gwtorm.schema.sql.DialectH2.convertError(DialectH2.java:42)
at com.google.gwtorm.jdbc.JdbcAccess.convertError(JdbcAccess.java:459)
at com.google.gwtorm.jdbc.JdbcAccess.insert(JdbcAccess.java:170)
at com.googlesource.gerrit.plugins.admin.InitAdminUser.postRun(InitAdminUser.java:77)
at com.google.gerrit.pgm.init.InitPlugins.postInitPlugins(InitPlugins.java:166)
at com.google.gerrit.pgm.init.InitPlugins.postRun(InitPlugins.java:99)
at com.google.gerrit.pgm.init.SitePathInitializer.postRun(SitePathInitializer.java:129)
at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:122)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:166)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:93)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:50)
at Main.main(Main.java:25)
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Unique index or primary key violation: "PRIMARY_KEY_1 ON PUBLIC.ACCOUNT_EXTERNAL_IDS(EXTERNAL_ID) VALUES ( /* 3 */ 'username:admin' )"; SQL statement:
INSERT INTO account_external_ids(account_id,email_address,password,external_id)VALUES(?,?,?,?) [23505-174]
at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1167)
at com.google.gwtorm.schema.sql.SqlDialect.executeBatch(SqlDialect.java:442)
at com.google.gwtorm.jdbc.JdbcAccess.execute(JdbcAccess.java:449)
at com.google.gwtorm.jdbc.JdbcAccess.insertAsBatch(JdbcAccess.java:212)
at com.google.gwtorm.jdbc.JdbcAccess.insert(JdbcAccess.java:165)
... 14 more
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_1 ON PUBLIC.ACCOUNT_EXTERNAL_IDS(EXTERNAL_ID) VALUES ( /* 3 */ 'username:admin' )"; SQL statement:
INSERT INTO account_external_ids(account_id,email_address,password,external_id)VALUES(?,?,?,?) [23505-174]
Do I have to change the code to update the previously account created or run the java instructions in a different way ?