You are not logged in.

#1 2020-03-15 21:37:20

shevket
Member
Registered: 2017-07-19
Posts: 12

rethinkdb systemd service fails: "Inaccessible database file"

Hello,

I cannot start any rethinkdb service although the command line server works.

I created the `/var/lib/rethinkdb/default` directory and changed its ownership to `rethinkdb:rethinkdb`,
so that `ls -la /var/lib/rethindb/default` outputs:

total 16
drwxr-xr-x 3 rethinkdb rethinkdb 4096 Mar 15 17:14 .
drwxr-xr-x 4 rethinkdb rethinkdb 4096 Mar 15 17:14 ..
-rw-r--r-- 1 rethinkdb rethinkdb 1886 Mar 15 17:46 log_file
drwxr-xr-x 2 rethinkdb rethinkdb 4096 Mar 15 17:14 tmp

But running `# systemctl start rethindb@default` silently fails and I get the following output with `systemctl status`:

● rethinkdb@default.service - RethinkDB database server for instance 'default'
     Loaded: loaded (/usr/lib/systemd/system/rethinkdb@.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
● rethinkdb@default.service - RethinkDB database server for instance 'default'
     Loaded: loaded (/usr/lib/systemd/system/rethinkdb@.service; disabled; vendor preset: disabled)
     Active: failed (Result: signal) since Sun 2020-03-15 22:21:30 CET; 1min 44s ago
    Process: 2004 ExecStart=/usr/bin/rethinkdb serve --config-file /etc/rethinkdb/instances.d/default.conf (code=killed, signal=TRAP)
   Main PID: 2004 (code=killed, signal=TRAP)

Mar 15 22:21:29 vps561946.ovh.net systemd[1]: Started RethinkDB database server for instance 'default'.
Mar 15 22:21:29 vps561946.ovh.net rethinkdb[2004]: Version: rethinkdb 2.4.0 (GCC 9.2.1)
Mar 15 22:21:29 vps561946.ovh.net rethinkdb[2004]: error: Inaccessible database file: "/var/lib/rethinkdb/default/metadata": No such file or directory
Mar 15 22:21:29 vps561946.ovh.net rethinkdb[2004]:        Some possible reasons:
Mar 15 22:21:29 vps561946.ovh.net rethinkdb[2004]:        - the database file couldn't be created or opened for reading and writing
Mar 15 22:21:29 vps561946.ovh.net rethinkdb[2004]:        - the user which was used to start the database is not an owner of the file
Mar 15 22:21:30 vps561946.ovh.net systemd[1]: rethinkdb@default.service: Main process exited, code=killed, status=5/TRAP
Mar 15 22:21:30 vps561946.ovh.net systemd[1]: rethinkdb@default.service: Failed with result 'signal'.

I tried touching a metadata file but then the service just hangs and errors.

I don't really have a clue what the issue is here. I'm actually wondering if migrating to another db is not wiser. I used rdb in the past and liked it, but it seemed they were having maintainment issues at the time... So any help or info is appreciated!

Offline

Board footer

Powered by FluxBB