Opening Forestdb file using the dump_tool

51 views
Skip to first unread message

Alex Chevrier

unread,
Feb 11, 2016, 11:03:20 AM2/11/16
to Couchbase Mobile
Hi,

I wanted to open my Forestdb file using the dump_tool available on the git repository of the Forestdb team,
I extracted the Forestdb file from my Nexus 5 phone using adb backup and I had two files named "db.forest.0" and
"db.forest.meta". I tried to open the first one with the dump_tool and it gave me the error : 'Unable to open db.forest.0'.
I was wondering if I was getting the correct Forestdb file but I guessed it was the right one since in the TestData directory
of the couchbase-lite-iOS git repository it does appear as the same type of file.

Did I miss a step, is there any convertion to be done between db.forest.0 to a certain type of file to be then read by the dump_tool ?
If yes, I wasn't able to find any tool capable of doing that.

Is it possible that my file got corrupted somehow ? I'll join the code from my mainActivity in this discussion and a directory
containing Forestdb files.

Thanks a lot,

Regards,

Alex Chevrier




mainActivity.java
couchbaseevents.cblite2.rar

Jens Alfke

unread,
Feb 11, 2016, 11:07:21 AM2/11/16
to mobile-c...@googlegroups.com
ForestDB file naming is weird. The actual name of the database is "db.forest", so I think that's what you'd give to the tool. ForestDB appends extensions like .0, .meta when it goes to the file system.

—Jens 
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/893cb008-9ce5-4912-af4f-32ee25e7d4a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<mainActivity.java>
<couchbaseevents.cblite2.rar>

Alex Chevrier

unread,
Feb 11, 2016, 11:56:19 AM2/11/16
to Couchbase Mobile
Actually changing the name of the file didn't resolve the problem I'm still facing the same error :
Unable to open db.forest.
Since it doesn't seems to be coming from your side I'll be closing the topic.

Thank you for your answer.

Jens Alfke

unread,
Feb 11, 2016, 12:30:36 PM2/11/16
to mobile-c...@googlegroups.com

On Feb 11, 2016, at 8:56 AM, Alex Chevrier <chevri...@gmail.com> wrote:

Actually changing the name of the file didn't resolve the problem I'm still facing the same error : 
Unable to open db.forest. 

Don’t rename the file! I didn’t say to do that. Just use the filename “db.forest” as the argument to the tool.

Also, are you aware of the Couchbase Lite Viewer app? 

—Jens

Alex Chevrier

unread,
Feb 11, 2016, 1:28:36 PM2/11/16
to Couchbase Mobile
I unfortunatly can't use the Couchbase Lite Viewer app since I'm coding in Win 10.
That's why I was trying to explore the dump_tool and maybe from there implementing an application
that would allow me to explore data contained in the file.

Alex
Reply all
Reply to author
Forward
0 new messages