You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/rethink $ rethinkdb
info: Loading data from directory rethinkdb_data
error: Inaccessible database file: "rethinkdb_data/metadata": Invalid argument
Some possible reasons:
- the database file couldn't be created or opened for reading and writing
- the database file is located on a filesystem that doesn't support O_DIRECT open flag (e.g. in case when the filesystem is working in journaled mode)
- user which was used to start the database is not an owner of the file
Crashing while already crashed. Printing error message to stderr.
Segmentation fault from reading the address (nil).Trace/breakpoint trap (core dumped)
Linux Mint 13
$ uname -a
Linux virtualBox-stockholm 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
The directory rethink_db is created, I'm the owner of it and of metadata file.
I'm not sure how to check for O_DIRECT, it's an ext4 local filesystem.
Beyond that I have no idea what's going on.
RethinkDB looks cool and looking forward trying it.
Hi Slava, our current status when investigating this bug is that we've created a Linux Mint 13 VM inside of VirtualBox (with the same uname -a string except for machine name) and failed to reproduce the problem. The server starts up normally.
This is on a fresh installation of Linux Mint 13, running in a VirtualBox VM on a Ubuntu 12.04 host (running on an i7-2760QM on some Intel 330 or 520 SSD), the filesystem being ext4, no weird installation options.
Yes, it's consistent. I tried deleting the folder. I tried running under sudo, etc..
This is also VirtualBox with Minn 13 upgraded to latest versions of packages.
Is there a way to enable debug or something like that? Or something I can provide that will give a hint of what's going on? Like strace, core dump or something?
I'm seeing this same issue from within a Vagrant-mounted volume:
vagrant@vagrantbase:/opt/repo$ rethinkdb --config-file /opt/repo/conf/rethinkdb.conf --web-static-directory /opt/repo/rethinkdb/current/web
info: Running rethinkdb 1.3.2-0ubuntu1~precise (GCC 4.6.3)...
info: Loading data from directory /opt/repo/var/rethinkdb/instances
Version: rethinkdb 1.3.2-0ubuntu1~precise (GCC 4.6.3)
error: Inaccessible database file: "/opt/repo/var/rethinkdb/instances/metadata": Invalid argument
Some possible reasons:
- the database file couldn't be created or opened for reading and
writing
- the database file is located on a filesystem that doesn't support
O_DIRECT open flag (e.g. some encrypted or journaled file systems)
- user which was used to start the database is not an owner of the file
Trace/breakpoint trap
I believe this is fixed in 1.4 (which is going to be out in a few days). In 1.4 (and next), if rethink can't open a file under O_DIRECT, it falls back to the page cache and gives the user a warning about potential performance ramifications.
Activity
coffeemug commentedon Nov 9, 2012
Thanks Slava. We're a little inundated with questions, so it'll take some time sort everything out, but we'll investigate this as soon as we can.
slava-vishnyakov commentedon Nov 9, 2012
Sure, let me know how I can help investigate it. And thanks for looking into it. :)
srh commentedon Nov 9, 2012
Hi Slava, our current status when investigating this bug is that we've created a Linux Mint 13 VM inside of VirtualBox (with the same uname -a string except for machine name) and failed to reproduce the problem. The server starts up normally.
This is on a fresh installation of Linux Mint 13, running in a VirtualBox VM on a Ubuntu 12.04 host (running on an i7-2760QM on some Intel 330 or 520 SSD), the filesystem being ext4, no weird installation options.
Does this behavior happen consistently for you?
slava-vishnyakov commentedon Nov 9, 2012
Thanks for looking.
Yes, it's consistent. I tried deleting the folder. I tried running under sudo, etc..
This is also VirtualBox with Minn 13 upgraded to latest versions of packages.
Is there a way to enable debug or something like that? Or something I can provide that will give a hint of what's going on? Like strace, core dump or something?
srh commentedon Nov 9, 2012
Thanks for the quick response. I think running
(strace rethinkdb 2>&1) > trace.txtmight be very helpful.Edit: Sorry, ignore this.
srh commentedon Nov 9, 2012
Sorry, I meant, try running
strace -o trace -f rethinkdbfrom an empty directory.Here's the metadata file opening output we get here.
slava-vishnyakov commentedon Nov 9, 2012
Does that help?
coffeemug commentedon Nov 9, 2012
@slava-vishnyakov - what are your mount args for ext4? Are you doing anything special?
slava-vishnyakov commentedon Nov 9, 2012
I don't think that I'm doing anything special.
This is from
fstab:slava-vishnyakov commentedon Nov 9, 2012
Oh wait, can the encrypted home folder be the reason?
slava-vishnyakov commentedon Nov 9, 2012
Yep, it was due to running in encrypted home folder. Runned outside of it - everything works.
You can probably add that to a list of reasons,
Thanks for help, guys!
jdoliner commentedon Nov 9, 2012
Awesome we should add this to known issues.
daniel-toppatch commentedon Mar 6, 2013
I'm seeing this same issue from within a Vagrant-mounted volume:
coffeemug commentedon Mar 6, 2013
I believe this is fixed in 1.4 (which is going to be out in a few days). In 1.4 (and next), if rethink can't open a file under O_DIRECT, it falls back to the page cache and gives the user a warning about potential performance ramifications.
chore: idle tick rethinkdb#3 — 11-point audit, cooldown 12h
chore: idle tick rethinkdb#12 — blocked, cooldown re-fix (1800→43200s) …
chore: idle tick rethinkdb#3 — 11-point audit, cooldown 12h
chore: idle tick rethinkdb#12 — blocked, cooldown re-fix (1800→43200s) …