[erlang-questions] Re: Error start the server

Fred Hebert mononcqc@REDACTED
Tue Mar 23 19:03:43 CET 2010


On Tue, Mar 23, 2010 at 1:19 PM, NavaTux <navaneethanit@REDACTED> wrote:

> what is the solution for both? How it causes?
>
For the port problem, it is simply that another service is using that
particular port. Either kill that service/application (if you don't need it)
or pick a different port for your application.

> This error also happened when i click the URL.
>
> CAUGHT ERROR: error-badarg
> [{erlang,hd,[[]]},
>  {web_index,body,0},
>  {element_template,eval_callbacks,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2}]
> CAUGHT ERROR: error-badarg
> [{erlang,hd,[[]]},
>  {web_index,body,0},
>  {element_template,eval_callbacks,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2},
>  {element_template,eval,2}]
>
>
> The error mentioned says that the function {erlang,hd,[[]]} fails with a
badarg. {erlang,hd,[[]]} is a different way to write 'erlang:hd([])'.
Obviously, the 'hd/1' function can not return anything on empty lists.

This is why it fails.

>
> On Mar 23, 10:15 pm, Fred Hebert <monon...@REDACTED> wrote:
> > {listen,eaddrinuse} usually means the port is already used on this
> operating
> > system.
> >
> > On Tue, Mar 23, 2010 at 1:11 PM, NavaTux <navaneetha...@REDACTED>
> wrote:
> > > Eshell V5.6.5  (abort with ^G)
> > > (nitrogen@REDACTED)1> Recompile: ./src/pages/web_index
> >
> > > i use nitrogen framework,whenever i started my web app,http://
> > > localhost:8000
> > > the error shows the follwed one:
> > > what does it mean elaborately?
> > > what is the solution?
> > > how to identify the errors easily ??#generic question
> >
> > > =ERROR REPORT==== 23-Mar-2010::22:05:02 ===
> > > Failed initiating web server:
> > > undefined
> > > {{listen,eaddrinuse},
> > >  {child,undefined,
> > >        {httpd_acceptor,{0,0,0,0},8000},
> > >        {httpd_acceptor,start_link,
> > >                        [<0.69.0>,ip_comm,
> > >                         {0,0,0,0},
> > >                         8000,httpd_conf__0_0_0_0__8000,15000]},
> > >        permanent,1000,worker,
> > >        [httpd_acceptor]}}
> >
> > > =INFO REPORT==== 23-Mar-2010::22:05:02 ===
> > >    application: navatest
> > >    exited: {shutdown,{navatest_app,start,[normal,[]]}}
> > >    type: temporary
> >
> > > ________________________________________________________________
> > > erlang-questions (at) erlang.org mailing list.
> > > Seehttp://www.erlang.org/faq.html
> > > To unsubscribe; mailto:erlang-questions-unsubscr...@REDACTED
> >
> >
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list