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

t x <>
Mon Apr 7 13:27:28 CEST 2014


This works.

This issue is now resolved.

Thanks for your patience with this. :-)



On Mon, Apr 7, 2014 at 4:20 AM, Loïc Hoguin <> wrote:
> You have to tell relx about your sys.config file, it doesn't magically find
> it. From the relx wiki page:
>
> %% If you have a sys.config file you need to tell relx where it is. If you
> do
> %% that relx will include the sys.config in the appropriate place
> %% automatically.
> {sys_config, "./config/sys.config"}.
>
> https://github.com/erlware/relx/wiki/configuration
>
>
> On 04/07/2014 01:16 PM, t x wrote:
>>
>> 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/
>>
>> 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
>>
>> :~/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)
>> ()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/" is NOT
>> used.
>> use fallback at restart = false
>> running db nodes   = ['']
>> stopped db nodes   = []
>> master node tables = []
>> remote             = []
>> ram_copies         = [schema]
>> disc_copies        = []
>> disc_only_copies   = []
>> [{'',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
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
> --
> Loïc Hoguin
> http://ninenines.eu



More information about the erlang-questions mailing list