There was an error trying to set the database OFFLINE: 500

0 views
Skip to first unread message

s.ar...@geophy.com

unread,
Dec 15, 2016, 5:38:28 AM12/15/16
to Stardog
Hi all, I disabled a database but the interface does not synchronize it and  it does not allow me to edit the database either.

It shows as online but when I click in the button I get the exception below:


There was an error trying to set the database OFFLINE: 500 - You can only offline a database which is online.


ERROR 2016-12-15 11:36:01,595 [Stardog.Executor-53] com.complexible.common.protocols.server.rpc.ServerHandler:exceptionCaught(413): exceptionCaughtServerHandler
java.lang.IllegalStateException: You can only offline a database which is online.
at com.complexible.stardog.db.DatabaseImpl._offline(DatabaseImpl.java:342) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.db.DatabaseImpl.offline(DatabaseImpl.java:327) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.StardogKernel._offline(StardogKernel.java:2407) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.StardogKernel.offline(StardogKernel.java:2385) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.protocols.server.admin.AdminServerFunction.offline(AdminServerFunction.java:539) ~[stardog-protocols-spec-server-4.2.1.jar:?]
at com.complexible.stardog.protocols.server.admin.AdminServerFunction.handleMessage(AdminServerFunction.java:166) ~[stardog-protocols-spec-server-4.2.1.jar:?]
at com.complexible.common.protocols.server.rpc.ServerHandler.lambda$handleMessage$1(ServerHandler.java:336) ~[stardog-protocols-api-server-4.2.1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
ERROR 2016-12-15 11:36:01,597 [StardogServer.WorkerGroup-2] com.complexible.stardog.protocols.http.server.HttpMessageEncoder:createErrorResponse(288): The result encoder received an error message it could not encode, error was:
java.lang.IllegalStateException: You can only offline a database which is online.
at com.complexible.stardog.db.DatabaseImpl._offline(DatabaseImpl.java:342) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.db.DatabaseImpl.offline(DatabaseImpl.java:327) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.StardogKernel._offline(StardogKernel.java:2407) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.StardogKernel.offline(StardogKernel.java:2385) ~[stardog-4.2.1.jar:?]
at com.complexible.stardog.protocols.server.admin.AdminServerFunction.offline(AdminServerFunction.java:539) ~[stardog-protocols-spec-server-4.2.1.jar:?]
at com.complexible.stardog.protocols.server.admin.AdminServerFunction.handleMessage(AdminServerFunction.java:166) ~[stardog-protocols-spec-server-4.2.1.jar:?]
at com.complexible.common.protocols.server.rpc.ServerHandler.lambda$handleMessage$1(ServerHandler.java:336) ~[stardog-protocols-api-server-4.2.1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_111]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]

Stephen Nowell

unread,
Dec 15, 2016, 7:29:02 AM12/15/16
to sta...@clarkparsia.com
Samur,

If the web console displayed an error when offlining the database, that might be more helpful in determining why the interface is not in sync with the system. To recover, I would recommend using the admin CLI [1] to online/offline it, or possibly repair if something is broken.

Cheers,
Stephen

[1] http://docs.stardog.com/#_stardog_admin_cli
--
-- --
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

Samur Araujo

unread,
Dec 15, 2016, 9:19:03 AM12/15/16
to sta...@clarkparsia.com
Thank you Stephen.

--
-- --
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
---
You received this message because you are subscribed to a topic in the Google Groups "Stardog" group.
To unsubscribe from this topic, visit https://groups.google.com/a/clarkparsia.com/d/topic/stardog/TbvzpknpOJk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stardog+unsubscribe@clarkparsia.com.



--
Senior Data Scientist 
Geophy 

Nieuwe Plantage 54-55
2611XK  Delft
+31 (0)70 7640725 

1 Fore Street
EC2Y 9DT  London
+44 (0)20 37690760

Reply all
Reply to author
Forward
0 new messages