vagrant@vagrant-xen-trusty64:~/testn-autoproxy$ cat domain_config
name = "testn-autoproxy"
kernel = "testn-autoproxy.img"
extra = "-home /testn-autoproxy -pz /testn-autoproxy/apps/autoprox/ebin /testn-autoproxy/deps/ej/ebin /testn-autoproxy/deps/mnesia/ebin /testn-autoproxy/deps/mochijson2/ebin -goofs /tmp"
vif = []
disk = [ "tap:aio:/tmp/fs.img,xvda,w" ]
memory = 1024
vagrant@vagrant-xen-trusty64:~/testn-autoproxy$ sudo xl create -c domain_config
Parsing config from domain_config
Attaching vbd...
vbd: info 0 sectors 204800 of size 512
vbd: barrier 0 flush-cache 1 trim 0
{error_logger,{{2015,4,11},{4,21,38}},std_info,["Disk formatted successfully",{nr_files,254},{extent_size,8192},{nr_extents,24}]}
Erlang [ling-0.3.2]
=INFO REPORT==== 11-Apr-2015::04:21:38 ===
"Disk formatted successfully"
nr_files: 254
extent_size: 8192
nr_extents: 24
Eshell V6.3 (abort with ^G)
1> erlang:disk_info().
[{info,0},
{sectors,204800},
{sector_size,512},
{features,[flush]}]
2> application:set_env(mnesia, dir, "/tmp").
ok
3> mnesia:set_debug_level(trace).
none
4> ls("/").
boot erlang testn-autoproxy
tmp
ok
5> ls("/tmp").
ok
6> mnesia:create_schema([node()]).
{error,
{nonode@nohost,
{"All nodes not running",nonode@nohost,
{'EXIT',
{undef,
[{erlang,monotonic_time,[],[]},
{mnesia_schema,get_initial_schema,2,
[{file,"src/mnesia_schema.erl"},{line,81}]},
{mnesia_schema,read_schema,2,
[{file,"src/mnesia_schema.erl"},{line,471}]},
{rpc,local_call,3,[{file,"rpc.erl"},{line,329}]},
{mnesia_schema,ensure_no_schema,1,
[{file,"src/mnesia_schema.erl"},{line,367}]},
{mnesia_bup,create_schema,1,
[{file,"src/mnesia_bup.erl"},{line,307}]},
{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,661}]},
{shell,exprs,7,[{file,"shell.erl"},{line,684}]}]}}}}}
7> ls("/tmp").
ok
8> mnesia:start().
Mnesia(nonode@nohost): mnesia_monitor starting: <0.82.0>
Mnesia(nonode@nohost): Version: "%VSN%"
Mnesia(nonode@nohost): Env access_module: mnesia
Mnesia(nonode@nohost): Env auto_repair: true
Mnesia(nonode@nohost): Env backup_module: mnesia_backup
Mnesia(nonode@nohost): Env debug: trace
Mnesia(nonode@nohost): Env dir: "/tmp"
Mnesia(nonode@nohost): Env dump_disc_copies_at_startup: true
Mnesia(nonode@nohost): Env dump_log_load_regulation: false
Mnesia(nonode@nohost): Env dump_log_time_threshold: 180000
Mnesia(nonode@nohost): Env dump_log_update_in_place: true
Mnesia(nonode@nohost): Env dump_log_write_threshold: 1000
Mnesia(nonode@nohost): Env event_module: mnesia_event
Mnesia(nonode@nohost): Env extra_db_nodes: []
Mnesia(nonode@nohost): Env ignore_fallback_at_startup: false
Mnesia(nonode@nohost): Env fallback_error_function: {mnesia,lkill}
Mnesia(nonode@nohost): Env max_wait_for_decision: infinity
Mnesia(nonode@nohost): Env schema_location: opt_disc
Mnesia(nonode@nohost): Env core_dir: false
Mnesia(nonode@nohost): Env pid_sort_order: false
Mnesia(nonode@nohost): Env no_table_loaders: 2
Mnesia(nonode@nohost): Env dc_dump_limit: 4
Mnesia(nonode@nohost): Env send_compressed: 0
Mnesia(nonode@nohost): Mnesia debug level set to trace
Mnesia(nonode@nohost): mnesia_subscr starting: <0.83.0>
Mnesia(nonode@nohost): mnesia_locker starting: <0.84.0>
Mnesia(nonode@nohost): mnesia_recover starting: <0.85.0>
Mnesia(nonode@nohost): mnesia_tm starting: <0.86.0>
** exception exit: killed
9>
9>
9>
9>
9>
9> qMnesia(nonode@nohost): mnesia_monitor got FATAL ERROR from: <0.86.0>
=ERROR REPORT==== 11-Apr-2015::01:24:46 ===
Mnesia(nonode@nohost): ** ERROR ** (ignoring core) ** FATAL ** mnesia_tm crashed: {undef,
[{erlang,
monotonic_time,
[],
[]},
{mnesia_schema,
get_initial_schema,
2,
[{file,
"src/mnesia_schema.erl"},
{line,
81}]},
{mnesia_schema,
read_schema,
2,
[{file,
"src/mnesia_schema.erl"},
{line,
467}]},
{mnesia_schema,
init,
1,
[{file,
"src/mnesia_schema.erl"},
{line,
135}]},
{mnesia_tm,
init,
1,
[{file,
"src/mnesia_tm.erl"},
{line,
85}]},
{mnesia_sp,
init_proc,
4,
[{file,
"src/mnesia_sp.erl"},
{line,
32}]},
{proc_lib,
init_p_do_apply,
3,
[{file,
"proc_lib.erl"},
{line,
237}]}]} state: [<0.81.0>]
9> Mnesia(nonode@nohost): mnesia_recover terminated: killed
=ERROR REPORT==== 11-Apr-2015::01:24:56 ===
** Generic server mnesia_recover terminating
** Last message in was {'EXIT',<0.81.0>,killed}
** When Server state == {state,<0.81.0>,undefined,undefined,undefined,0,false,
false,[]}
** Reason for termination ==
** killed
=ERROR REPORT==== 11-Apr-2015::01:24:56 ===
** Generic server mnesia_monitor terminating
** Last message in was {'EXIT',<0.81.0>,killed}
** When Server state == {state,<0.81.0>,[],[],false,[],undefined,[],[]}
** Reason for termination ==
** killed
=ERROR REPORT==== 11-Apr-2015::01:24:56 ===
Mnesia(nonode@nohost): ** ERROR ** mnesia_event got unexpected event: {'EXIT',
<0.83.0>,
killed}
=ERROR REPORT==== 11-Apr-2015::01:24:56 ===
** gen_event handler mnesia_event crashed.
** Was installed in mnesia_event
** Last event was: {mnesia_system_event,
{mnesia_info,"~p terminated: ~p~n",
[mnesia_recover,killed]}}
** When handler state == {state,[],true,[]}
** Reason == {terminated,
[{io,format,
[<0.77.0>,"Mnesia(~p): ~p terminated: ~p~n",
[nonode@nohost,mnesia_recover,killed]]},
{mnesia_event,handle_system_event,2,
[{file,"src/mnesia_event.erl"},{line,160}]},
{gen_event,server_update,4,
[{file,"gen_event.erl"},{line,525}]},
{gen_event,server_notify,4,
[{file,"gen_event.erl"},{line,507}]},
{gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,248}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}
=INFO REPORT==== 11-Apr-2015::01:24:56 ===
application: mnesia
exited: {killed,{mnesia_sup,start,[normal,[]]}}
type: temporary
9> mnesia:info().
===> System info in version "%VSN%", debug level = trace <===
opt_disc. Directory "/tmp" is NOT used.
use fallback at restart = false
** exception exit: {aborted,{aborted,undef}}
Created
April 11, 2015 01:25
-
-
Save technolo-g/172b3715e3a57c04e3ce to your computer and use it in GitHub Desktop.
Mnesia on LING
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment