I'm starting to use Mochiweb (rev104) on Ubuntu Jaunty, I've been able
to run the myapp example, but can't find how to handle requests on port
80 whereas it works on other ports.
When running the example after having modified myapp_sup.erl with
'{port, 80}', launching it returns the following error message :
=PROGRESS REPORT==== 22-Aug-2009::06:01:45 ===
application: crypto
started_at: nonode@nohost
** Found 0 name clashes in code paths
=CRASH REPORT==== 22-Aug-2009::06:01:45 ===
crasher:
initial call: mochiweb_socket_server:init/1
pid: <0.53.0>
registered_name: []
exception exit: {undef,[{fdsrv,start,[]},
{mochiweb_socket_server,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: [myapp_sup,<0.51.0>]
messages: []
links: [<0.52.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 377
stack_size: 24
reductions: 399
neighbours:
=SUPERVISOR REPORT==== 22-Aug-2009::06:01:45 ===
Supervisor: {local,myapp_sup}
Context: start_error
Reason: {undef,[{fdsrv,start,[]},
{mochiweb_socket_server,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,undefined},
{name,myapp_web},
{mfa,
{myapp_web,start,
[[{ip,"0.0.0.0"},
{port,80},
{docroot,
"/home/kael/bin/erlang/myapp/priv/www"}]]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=INFO REPORT==== 22-Aug-2009::06:01:45 ===
application: myapp
exited: {shutdown,{myapp_app,start,[normal,[]]}}
type: temporary
I've tried with different local IP and have checked with netstat that no
service is running on that port.
Could someone please enlighten me on what I'm missing ?
Cheers.
--
kael
Thanks for the solution.
> Check permissions.
Erm, not sure to know which permissions to check.
--
kael