Authentication failed.

18 views
Skip to first unread message

beni.fe...@which.co.uk

unread,
Mar 24, 2014, 7:49:54 AM3/24/14
to sta...@clarkparsia.com
Hi,

We are in process of evaluating Stardog and I have the following issue.

I cannot connect to stardog with the default credentials (admin, admin) and when I am trying to stop, I have the following message: Authentication failed.

When I am starting Stardog (stardog-admin server start), I have the following log trace:

Mar 24, 2014 11:29:42 AM com.complexible.stardog.StardogKernel start
SEVERE
: Database testConnectionPool will not be available because there was an error initializing the database: null
java
.lang.NullPointerException
 at com
.complexible.stardog.index.AbstractIndexBulkLoader.<init>(AbstractIndexBulkLoader.java:64)
 at com
.complexible.stardog.index.memory.BAIndexLoader.<init>(BAIndexLoader.java:68)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java
.lang.reflect.Constructor.newInstance(Constructor.java:525)
 at com
.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
 at com
.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
 at com
.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
 at com
.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
 at com
.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
 at com
.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
 at com
.sun.proxy.$Proxy22.createMemIndexBulkLoader(Unknown Source)
 at com
.complexible.stardog.StardogKernel.readOrCreate(StardogKernel.java:2094)
 at com
.complexible.stardog.StardogKernel.createDatabase(StardogKernel.java:2124)
 at com
.complexible.stardog.StardogKernel.createDatabase(StardogKernel.java:2116)
 at com
.complexible.stardog.StardogKernel.start(StardogKernel.java:1867)
 at com
.complexible.stardog.StardogKernel.<init>(StardogKernel.java:461)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java
.lang.reflect.Constructor.newInstance(Constructor.java:525)
 at com
.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
 at com
.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
 at com
.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
 at com
.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
 at com
.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
 at com
.google.inject.Scopes$1$1.get(Scopes.java:65)
 at com
.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
 at com
.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
 at com
.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
 at com
.complexible.stardog.protocols.server.StardogServer.start(StardogServer.java:80)
 at com
.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:139)
 at com
.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:46)
 at com
.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
 at com
.complexible.stardog.cli.admin.CLI.main(CLI.java:230)


Mar 24, 2014 11:29:42 AM com.complexible.stardog.StardogKernel start
SEVERE
: Database temporalDatabase will not be available because there was an error initializing the database: null
java
.lang.NullPointerException
 at com
.complexible.stardog.index.AbstractIndexBulkLoader.<init>(AbstractIndexBulkLoader.java:64)
 at com
.complexible.stardog.index.memory.BAIndexLoader.<init>(BAIndexLoader.java:68)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java
.lang.reflect.Constructor.newInstance(Constructor.java:525)
 at com
.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
 at com
.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
 at com
.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
 at com
.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
 at com
.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
 at com
.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
 at com
.sun.proxy.$Proxy22.createMemIndexBulkLoader(Unknown Source)
 at com
.complexible.stardog.StardogKernel.readOrCreate(StardogKernel.java:2094)
 at com
.complexible.stardog.StardogKernel.createDatabase(StardogKernel.java:2124)
 at com
.complexible.stardog.StardogKernel.createDatabase(StardogKernel.java:2116)
 at com
.complexible.stardog.StardogKernel.start(StardogKernel.java:1867)
 at com
.complexible.stardog.StardogKernel.<init>(StardogKernel.java:461)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java
.lang.reflect.Constructor.newInstance(Constructor.java:525)
 at com
.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
 at com
.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
 at com
.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
 at com
.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
 at com
.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
 at com
.google.inject.Scopes$1$1.get(Scopes.java:65)
 at com
.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
 at com
.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
 at com
.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
 at com
.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
 at com
.complexible.stardog.protocols.server.StardogServer.start(StardogServer.java:80)
 at com
.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:139)
 at com
.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:46)
 at com
.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
 at com
.complexible.stardog.cli.admin.CLI.main(CLI.java:230)


Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0
Mar 24, 2014 11:29:42 AM com.complexible.stardog.index.disk.btree.impl.ArrayKeys <init>
WARNING
: Invalid index metadata: 1 > 0


************************************************************
This copy of Stardog is licensed to Benigno Villa (beni.villa@gmail.com), Which?
This is a Community license
This license does not expire.
************************************************************


                                                             
:;  
                                     
;;                   `;`:  
 
`'+',    ::                        `++                    `;:`  
 
+###++,  ,#+                        `++                    .    
 
##+.,',  '#+                         ++                     +    
,##      ####++  ####+:   ##,++` .###+++   .####+    ####++++#    
`##+     ####+'  ##+#++   ###++``###'+++  `###'+++  ###`,++,:    
 
####+    ##+        ++.  ##:   ###  `++  ###  `++` ##`  ++:      
 
###++,  ##+        ++,  ##`   ##;  `++  ##:   ++; ##,  ++:      
   
;+++  ##+    ####++,  ##`   ##:  `++  ##:   ++' ;##'#++      
     
;++  ##+   ###  ++,  ##`   ##'  `++  ##;   ++:  ####+        
,.   +++  ##+   ##:  ++,  ##`   ###  `++  ###  .++  '#;          
,####++'  +##++ ###+#+++` ##`   :####+++  `####++'  ;####++`      
`####+;    ##++  ###+,++` ##`    ;###:++   `###+;   `###++++      
                                                   
##   `++      
                                                   
.##   ;++      
                                                   
#####++`      
                                                     
`;;;.        


************************************************************
Stardog server 2.1.1 started on Mon Mar 24 11:29:42 GMT 2014.


Stardog server is listening on 127.0.0.1.
SNARL server available at snarl://localhost:5804.
HTTP server available at http://localhost:5804.


STARDOG_HOME=/Users/bfernan/s/stardog


LOG_FILE=/usr/share/stardog/stardog.log




Could you tell what's going on, please?

Thanks in advance for your support.

Best regards,

Benigno Villa Fernández

Sameer Garg
Software Eng. @ Which?

CONFIDENTIAL NOTICE 
This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you received this communication in error, please notify us by e-mail or by telephone (020 7770 7000) and then delete the e-mail and any copies of it. (v.9)

Which? is the business name of Which? Limited, registered in England and Wales No. 677665. Registered office: 2 Marylebone Road, London NW1 4DF.

Mike Grove

unread,
Mar 24, 2014, 8:22:42 AM3/24/14
to stardog
You seem to be using a non-persistent memory database.  There's a small bug in the initialization of these non-persistent databases where the license information is not passed into the newly created, empty database.  This will be fixed in the next version, but in the meantime, you can either use a persistent memory database, or a disk database which is by default persistent.  I'd recommend the latter.

Cheers,

Mike
 

Thanks in advance for your support.

Best regards,

Benigno Villa Fernández

Sameer Garg
Software Eng. @ Which?

CONFIDENTIAL NOTICE 
This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you received this communication in error, please notify us by e-mail or by telephone (020 7770 7000) and then delete the e-mail and any copies of it. (v.9)

Which? is the business name of Which? Limited, registered in England and Wales No. 677665. Registered office: 2 Marylebone Road, London NW1 4DF.

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

beni.fe...@which.co.uk

unread,
Mar 24, 2014, 12:30:41 PM3/24/14
to sta...@clarkparsia.com, beni.fe...@which.co.uk
Thank you very much for your workaround.

I have only created the database in disk and it works again. This is the scala code to resolve it.

aAdminConnection.disk(database).
      create
(new File(s"${System.getProperty("java.io.tmpdir")}/$database.rdf"))


 at com
.google.inject.internal<sp
...
Reply all
Reply to author
Forward
0 new messages