For the quickest reply, please use our new Customer Helpdesk and Feedback platform
 
   
2 of 2
2
Yaws And setuid-drv
Posted: 07 September 2007 07:41 PM   [ Ignore ]   [ # 16 ]
Newbie
Rank
Total Posts:  1
Joined  2007-09-07

this problem also happend to me.

problem code in “yaws_config.erl”:

paths() ->
case 
yaws:getuid() of
{ok
“0″} -> %% root
[yaws_generated
:etcdir() ++ /yaws.conf”];
-> %% developer
[filename
:join([os:getenv(”HOME”), “yaws.conf”]),
./yaws.conf”,
yaws_generated:etcdir() ++ /yaws.conf”]
end

type this command in Erlang interactive shell:
yaws_config:path().

return:
[”false/yaws.conf”,”./yaws.conf”,”/usr/local/etc/yaws.conf”]

for root, yaws.conf must be placed in “/usr/local/etc/” dir.
for other users, yaws.conf must be placed in one of those 3 dirs.

Profile
 
 
Posted: 17 October 2007 11:26 PM   [ Ignore ]   [ # 17 ]
Newbie
Rank
Total Posts:  2
Joined  2007-03-29

i have tried yaws on powerpc tiger latest version and get the same error

14> yaws:start().

=ERROR REPORT==== 17-Oct-2007::17:24:26 ===
Failed to load setuid_drv (from “/usr/local/lib/erlang/lib/yaws-1.68/ebin/../priv/”) : “Driver is an inappropriate Mach-O file”
=ERROR REPORT==== 17-Oct-2007::17:24:26 ===
FATAL {‘EXIT’,normal}
{error,{shutdown,{yaws_app,start,[normal,[]]}}}
=INFO REPORT==== 17-Oct-2007::17:24:26 ===
  application: yaws
  exited: {shutdown,{yaws_app,start,[normal,[]]}}
  type: permanent

15> {“Kernel pid terminated”,application_controller,”{application_start_failure,yaws,{shutdown,{yaws_app,start,[normal,[]]}}}”}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,yaws,{shutdown,{yaws_app,start,[normal,[]]}}})

Profile
 
 
   
2 of 2
2