[erlang-questions] minimal failure case for specifying mnesia directory

t x txrev319@REDACTED
Mon Apr 7 13:16:31 CEST 2014


Hi,

  Here is my minimal failure case:

https://github.com/txrev319/fail0

  This is what's going on here. When I
  * run _rel/bin/fail0 console
  * and then I type in "mnesia:info()"

  * I get /home/x/tmp/fail0/_rel/Mnesia.fail0@REDACTED

despite putting "/home/x/data" into priv/sys.config. See:
https://github.com/txrev319/fail0/blob/master/priv/sys.config


  I'm clearly doing something retarded. What am I doing wrong?

Thanks!

## begin copy/paste

x@REDACTED:~/tmp/fail0$ _rel/bin/fail0 console
Exec: /home/x/tmp/fail0/_rel/erts-6.0/bin/erlexec -boot
/home/x/tmp/fail0/_rel/releases/1/fail0 -env ERL_LIBS
/home/x/tmp/fail0/_rel/releases/1/lib -config
/home/x/tmp/fail0/_rel/releases/1/sys.config -args_file
/home/x/tmp/fail0/_rel/releases/1/vm.args -- console
Root: /home/x/tmp/fail0/_rel
Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source] [64-bit]
[async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.0  (abort with ^G)
(fail0@REDACTED)1> mnesia:info().
---> Processes holding locks <---
---> Processes waiting for locks <---
---> Participant transactions <---
---> Coordinator transactions <---
---> Uncertain transactions <---
---> Active tables <---
schema         : with 1        records occupying 397      words of mem
===> System info in version "4.12", debug level = none <===
opt_disc. Directory "/home/x/tmp/fail0/_rel/Mnesia.fail0@REDACTED" is NOT used.
use fallback at restart = false
running db nodes   = ['fail0@REDACTED']
stopped db nodes   = []
master node tables = []
remote             = []
ram_copies         = [schema]
disc_copies        = []
disc_only_copies   = []
[{'fail0@REDACTED',ram_copies}] = [schema]
2 transactions committed, 0 aborted, 0 restarted, 0 logged to disc
0 held locks, 0 in queue; 0 local transactions, 0 remote
0 transactions waits for other nodes: []
ok



More information about the erlang-questions mailing list