Try 'erl' (or 'werl'?) then 'application:start(os_mon).' excluding single quotes and including the dot, and report what it says. answered Jan 30 2014 at 03:06 |
answered Jan 30 2014 at 05:39 |
application:start(sasl). ;) B. answered Jan 30 2014 at 06:09 |
C:\Program Files (x86)\Apache Software Foundation\CouchDB\bin>erl Eshell V5.8.5 (abort with ^G) 1> application:start(sasl). ok =PROGRESS REPORT==== 30-Jan-2014::14:20:21 == supervisor: {local,sasl_safe_sup} started: [{pid,<0.37.0>}, {name,alarm_handler}, {mfargs,{alarm_handler,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 2> =PROGRESS REPORT==== 30-Jan-2014::14:20:21 == supervisor: {local,sasl_safe_sup} started: [{pid,<0.38.0>}, {name,overload}, {mfargs,{overload,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 2> =PROGRESS REPORT==== 30-Jan-2014::14:20:21 == supervisor: {local,sasl_sup} started: [{pid,<0.36.0>}, {name,sasl_safe_sup}, {mfargs, {supervisor,start_link, [{local,sasl_safe_sup},sasl,safe]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 2> =PROGRESS REPORT==== 30-Jan-2014::14:20:21 == supervisor: {local,sasl_sup} started: [{pid,<0.39.0>}, {name,release_handler}, {mfargs,{release_handler,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 2> =PROGRESS REPORT==== 30-Jan-2014::14:20:21 == application: sasl started_at: [email protected] 2> application:start(os_mon). {error,{shutdown,{os_mon,start,[normal,[]]}}} =CRASH REPORT==== 30-Jan-2014::14:21:16 == crasher: initial call: os_mon_sysinfo:init/1 pid: <0.46.0> registered_name: [] exception exit: {enoent, [{erlang,open_port, [{spawn, "c:/PROGRA~2/Apache Software Foundation/CouchD B/lib/os_mon-2.2.7/priv/bin/win32sysinfo.exe"}, [{packet,1}]]}, {os_mon_sysinfo,start_portprogram,0}, {os_mon_sysinfo,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]} in function gen_server:init_it/6 ancestors: [os_mon_sup,<0.44.0>] messages: [] links: [<0.45.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 24 reductions: 444 neighbours: 3> =SUPERVISOR REPORT==== 30-Jan-2014::14:21:16 == Supervisor: {local,os_mon_sup} Context: start_error Reason: {enoent, [{erlang,open_port, [{spawn, "c:/PROGRA~2/Apache Software Foundation/CouchDB/l ib/os_mon-2.2.7/priv/bin/win32sysinfo.exe"}, [{packet,1}]]}, {os_mon_sysinfo,start_portprogram,0}, {os_mon_sysinfo,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]} Offender: [{pid,undefined}, {name,os_mon_sysinfo}, {mfargs,{os_mon_sysinfo,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 3> =INFO REPORT==== 30-Jan-2014::14:21:16 == application: os_mon exited: {shutdown,{os_mon,start,[normal,[]]}} type: temporary 3> answered Jan 30 2014 at 06:22 |
attached crash dump answered Jan 30 2014 at 06:24 |
we should make os_mon optional (it�s buggy/broken in other situations, like if a mountpoint has a space in the name..) It exists only for the compaction daemon which is disabled by default, so this is just breaking you for no upside. B. answered Jan 30 2014 at 06:32 |
any idea why it happens? any way to overcome it? any way to workaround it? Thanks!! answered Jan 30 2014 at 06:39 |
The error is; {enoent, [{erlang,open_port, [{spawn, "c:/PROGRA~2/Apache Software Foundation/CouchDB/lib/os_mon-2.2.7/priv/bin/win32sysinfo.exe"} Meaning it can�t find that to launch it. Does it exist? Or is ~2 or the spaces confusing erlang? B. answered Jan 30 2014 at 06:42 |
it is there. no problem to run that command. answered Jan 30 2014 at 06:51 |
Hrm, no clue then. Will need a Windows/Erlang developer. B. answered Jan 30 2014 at 06:55 |
btw, where does it take the "c:/PROGRA~2" from? can i instruct it to use another path? [note that we don't have the issue on many other windows 7 machines with the exact paths] answered Jan 30 2014 at 07:24 |
I think the "c:/PROGRA~2" may ultimately come from the erl.ini file in the CouchDb bin directory but I'm not sure of that, and don't know if changing it there would be sufficient. The "~2" business may not be an error either - some programs still live in the days of 8.3 file names and use this convention for reporting names that don't fit that convention. If you want to try another path, the simplest way would be to uninstall CouchDb and reinstall somewhere like C:\CouchDb which is short and has no spaces. While the uninstall should leave your local.ini file and databases alone, it would be best to back them up somewhere and then copy to the new installation. Nick answered Jan 30 2014 at 08:17 |
From: Robert Samuel Newson answered Jan 30 2014 at 08:44 |
Hi, The path in erl.ini was just like on my machine where it works fine - C:\\Program Files (x86)\\Apache Software Foundation\\CouchDB So I followed the suggestion and installed on C:\ and all works fine :-) Thanks! Boaz answered Feb 6 2014 at 07:19 |
Group Couchdb-user
asked Jan 30 2014 at 02:54
active Feb 6 2014 at 07:19
posts:15
users:4