Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4519

RDF consumer causes exception creating admin user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Received (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: RDF
    • Labels:
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      When following the docker-compose instructions [here|https://github.com/DSpace/DSpace/blob/master/dspace/src/main/docker-compose/README.md] and adding an rdf consumer as follows in the local.cfg:

      event.dispatcher.default.consumers = versioning, discovery, eperson, rdf
      

      The creation of the admin user fails with the following exception:
      Exception: Error, no admin group (group 1) foundjava.lang.IllegalStateException: Error, no admin group (group 1) found at org.dspace.administer.CreateAdministrator.createAdministrator(CreateAdministrator.java:224) at org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:79) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:264) at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:120) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:90)
       

      From previous issues I gather this may have something to do with the Spring context not being initialized properly.

      It is possible to work-around this by removing RDF, restarting the containers and add the rdf consumer back in after adding the administrator user. This yields the following exception, though rdf conversion does work after this point.

      Caught exception:
      org.postgresql.util.PSQLException: ERROR: setval: value 0 is out of bounds for sequence "handle_seq" (1..9223372036854775807)
      	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2505)
      	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2241)
      	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)
      	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:447)
      	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:368)
      	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:309)
      	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:295)
      	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:272)
      	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:267)
      	at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
      	at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
      	at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:344)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:264)
      	at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:120)
      	at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:90)
      
      

       

      Test done on Ubuntu 18.04, branched from https://github.com/DSpace/DSpace/tree/dspace-7.0-beta2.1
      Client: Docker Engine - Community Version: 19.03.9

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tjnhendriks Tim Hendriks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: