DB backup/restore

5 views
Skip to first unread message

Tze-John Tang

unread,
Jun 27, 2014, 9:43:25 AM6/27/14
to sta...@clarkparsia.com
I have looked at the manual pages, but I am unsure how backup and restore is supposed to function.
The server was shutdown improperly, and now I am getting missing page errors when querying the store. I have some backups from the past few days. 
My db already exists, so I used the overwrite option to write over the db.

stardog-admin db restore -o /backup/path


From the stardog.log file..

Reading Index: 100% complete in 00:01:23
Reading Index finished in 00:01:23.460
Creating index: 100% complete in 00:01:38 (181.9K triples/sec)
Creating index finished in 00:01:38.261


But when I list the dbs, nothing is shown:

websvc@ua00017p:/opt/apps/stardog_data> stardog-admin db list
No databases in the system; use the 'create' command to make a new database.
websvc@ua00017p
:/opt/apps/stardog_data>


If I restore the db to a new name, I get the same thing. Also if I remove the existing db, and create a new one, and then restore over it.

Thanks,

-tj

Tze-John Tang

unread,
Jun 27, 2014, 9:50:19 AM6/27/14
to sta...@clarkparsia.com
Looks like it might have been a bad backup. When I try a different one it progresses past the index restore step. The other one was existing, but since I had never restored before, I did not know what to expect.

Thanks,

-tj

Mike Grove

unread,
Jun 27, 2014, 11:40:01 AM6/27/14
to stardog
Would it be possible to get the bad backup so that we might try to figure out why the restore didn't fail as expected when restoring from a bad backup?

Cheers,

Mike


--
-- --
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

Tze-John Tang

unread,
Jun 27, 2014, 12:29:08 PM6/27/14
to sta...@clarkparsia.com
Sorry Mike. I cleared it out before I saw your message. It looks like it was erroring out on a missing diff file.

-tj

Mike Grove

unread,
Jun 27, 2014, 12:32:15 PM6/27/14
to stardog
Do you happen to have the stacktrace or other error information?

Thanks.

Mike

Tze-John Tang

unread,
Jun 27, 2014, 2:25:07 PM6/27/14
to sta...@clarkparsia.com
Jun 27, 2014 8:32:33 AM com.complexible.stardog.metadata.MetadataIO readBytes
WARNING: Unrecognized option in the metadata: backup.dict.size
Jun 27, 2014 8:36:14 AM com.complexible.stardog.index.io.IndexIO restore
SEVERE: Error in restoring from backup
com.complexible.stardog.index.IndexException: diff
        at com.complexible.stardog.index.disk.DiskIndexData.getDifferentialIndexManager(DiskIndexData.java:68)
        at com.complexible.stardog.index.AggregateIndexData.<init>(AggregateIndexData.java:38)
        at com.complexible.stardog.index.AbstractIndex.<init>(AbstractIndex.java:193)
        at com.complexible.stardog.index.disk.DiskIndex.<init>(DiskIndex.java:53)
        at com.complexible.stardog.index.disk.AbstractDiskIndexLoader.build(AbstractDiskIndexLoader.java:139)
        at com.complexible.stardog.index.disk.AbstractDiskIndexLoader.build(AbstractDiskIndexLoader.java:45)
        at com.complexible.stardog.index.io.IndexIO.restore(IndexIO.java:631)
        at com.complexible.stardog.db.DatabaseFactory.restore(DatabaseFactory.java:82)
        at com.complexible.stardog.StardogKernel.restore(StardogKernel.java:1497)
        at com.complexible.stardog.protocols.server.admin.AdminServerFunction.restore(AdminServerFunction.java:584)
        at com.complexible.stardog.protocols.server.admin.AdminServerFunction.handleMessage(AdminServerFunction.java:115)
        at com.complexible.common.protocols.server.rpc.ServerHandler.handleMessage(ServerHandler.java:256)
        at com.complexible.common.protocols.server.rpc.ServerHandler.channelRead(ServerHandler.java:143)
        at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:340)
        at io.netty.channel.DefaultChannelHandlerContext.access$700(DefaultChannelHandlerContext.java:29)
        at io.netty.channel.DefaultChannelHandlerContext$8.run(DefaultChannelHandlerContext.java:331)
        at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.FileNotFoundException: diff
        at com.complexible.stardog.index.disk.DiskDifferentialIndexManager.<init>(DiskDifferentialIndexManager.java:35)
        at com.complexible.stardog.index.disk.DiskIndexData.getDifferentialIndexManager(DiskIndexData.java:65)
        ... 18 more

Mike Grove

unread,
Jun 27, 2014, 2:49:26 PM6/27/14
to stardog
Great, thanks for sending that along.

Cheers,

Mike


Reply all
Reply to author
Forward
0 new messages