Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  ErlyWeb 0.7 - strange crash

dmitriid
Posted: Fri Dec 28, 2007 2:03 pm Reply with quote
User Joined: 17 Aug 2006 Posts: 213
I've not given up on ErlyWeb yet Smile

yaws.conf:
Quote:
<server localhost>
View user's profile Send private message
Guest
Posted: Fri Dec 28, 2007 2:20 pm Reply with quote
Guest
Is this a case of yaws changing its record format again? I know that
this has been a problem in the past.

--Kevin
On Dec 28, 2007, at 9:03 AM, Dmitrii 'Mamut' Dimandt wrote:

> I've not given up on ErlyWeb yet Smile
>
> yaws.conf:
> <server localhost>
> port = 81
> listen = 0.0.0.0
> docroot = /home/dmitriid/data/www/erlyweb
> dir_listings = true
> appmods = </, erlyweb>
> <opaque>
> appname = buktu
> </opaque>
> </server>
>
> Then:
> erlyweb:create_app("buktu", "/home/dmitriid/data/www/erlyweb").
> > all ok.
> Then:
> erlyweb:compile("/home/dmitriid/data/www/erlyweb/buktu",
> [{auto_compile, true}]).
> > all ok.
>
> Then navigate to http://localhost:81/ and:
> Internal error, yaws code crashed
>
> ERROR erlang code crashed:
> File: appmod:0
> Reason: {{badrecord,arg},
> [{yaws_arg,opaque,1},
> {erlyweb,get_app_name,1},
> {erlyweb,out,1},
> {yaws_server,deliver_dyn_part,8},
> {yaws_server,aloop,3},
> {yaws_server,acceptor0,2},
> {proc_lib,init_p,5}]}
> Req: {http_request,'GET',{abs_path,"/"},{1,1}}
>
> Once again I'm lost Smile
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Fri Dec 28, 2007 5:45 pm Reply with quote
Guest
Ugh, you must be using a different version of Yaws than the one I
compiled against. I compiled against 1.73. You can either recompile
ErlyWeb yourself against your Yaws installation or upgrade Yaws.

On Dec 28, 2007 6:14 AM, Kevin A. Smith <kevin@hypotheticalabs.com> wrote:
>
> Is this a case of yaws changing its record format again? I know that
> this has been a problem in the past.
>
> --Kevin
>
> On Dec 28, 2007, at 9:03 AM, Dmitrii 'Mamut' Dimandt wrote:
>
> > I've not given up on ErlyWeb yet Smile
> >
> > yaws.conf:
> > <server localhost>
> > port = 81
> > listen = 0.0.0.0
> > docroot = /home/dmitriid/data/www/erlyweb
> > dir_listings = true
> > appmods = </, erlyweb>
> > <opaque>
> > appname = buktu
> > </opaque>
> > </server>
> >
> > Then:
> > erlyweb:create_app("buktu", "/home/dmitriid/data/www/erlyweb").
> > > all ok.
> > Then:
> > erlyweb:compile("/home/dmitriid/data/www/erlyweb/buktu",
> > [{auto_compile, true}]).
> > > all ok.
> >
> > Then navigate to http://localhost:81/ and:
> > Internal error, yaws code crashed
> >
> > ERROR erlang code crashed:
> > File: appmod:0
> > Reason: {{badrecord,arg},
> > [{yaws_arg,opaque,1},
> > {erlyweb,get_app_name,1},
> > {erlyweb,out,1},
> > {yaws_server,deliver_dyn_part,8},
> > {yaws_server,aloop,3},
> > {yaws_server,acceptor0,2},
> > {proc_lib,init_p,5}]}
> > Req: {http_request,'GET',{abs_path,"/"},{1,1}}
> >
> > Once again I'm lost Smile
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
dmitriid
Posted: Sat Dec 29, 2007 10:45 am Reply with quote
User Joined: 17 Aug 2006 Posts: 213
Yariv Sadan wrote:
Quote:
Ugh, you must be using a different version of Yaws than the one I compiled against. I compiled against 1.73. You can either recompile ErlyWeb yourself against your Yaws installation or upgrade Yaws. [/code]
I went the easy (?) way and installed yaws 1.73. Argh! I must be stupid or something:

Quote:
<server dmitriid>
View user's profile Send private message
Guest
Posted: Sat Dec 29, 2007 10:21 pm Reply with quote
Guest
"and navigate to http://localhost:81/, I get erlyweb's welcome screen.
"

you get that because the docroot is www and there is an index.html
file in there. It's just straight up yaws webserver, No Erlyweb is
being called.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
dmitriid
Posted: Sun Dec 30, 2007 1:29 pm Reply with quote
User Joined: 17 Aug 2006 Posts: 213
On 12/30/07, andrewfromfly <oneone@gmail.com (oneone@gmail.com)> wrote:
Quote:

"and navigate to http://localhost:81/, I get erlyweb's welcome screen.
"

you get that because the docroot is www and there is an index.html
file in there.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum