| Author |
Message |
|
| Guest |
Posted: Mon Mar 03, 2008 12:10 am |
|
|
|
Guest
|
Hi All,
I am also having problems with the music tutorial
calling http://localhost:18080/music gives the following:
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,"/music"},{1,1}}
same for music/musician and so on
but calling http://localhost:18080/ gives proper:
Welcome to 'music', your new ErlyWeb app.
Let the Erlang hacking begin!
my yaws config:
<server localhost>
port = 18080
listen = 0.0.0.0
docroot = /apps/music/www
appmods = <"/music", erlyweb>
<opaque>
appname = music
</opaque>
# dir_listings = true
</server>
tried here changing appmods to "/" but no effect.
all compilations went fine
could you help me to find the problem? I am totally new to erlang,
yaws and erlyweb but would like to get more familiar to it.
thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Mon Mar 03, 2008 1:46 am |
|
|
|
Guest
|
Hi,
I think you're using an incompatible version of Yaws. What
erlyweb/yaws version are you using?
On Sun, Mar 2, 2008 at 4:10 PM, Smok <smok.telesfor@gmail.com> wrote:
>
> Hi All,
>
> I am also having problems with the music tutorial
> calling http://localhost:18080/music gives the following:
>
>
> 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,"/music"},{1,1}}
>
> same for music/musician and so on
>
> but calling http://localhost:18080/ gives proper:
>
> Welcome to 'music', your new ErlyWeb app.
> Let the Erlang hacking begin!
>
>
> my yaws config:
> <server localhost>
> port = 18080
>
> listen = 0.0.0.0
> docroot = /apps/music/www
>
> appmods = <"/music", erlyweb>
> <opaque>
> appname = music
> </opaque>
> # dir_listings = true
> </server>
>
> tried here changing appmods to "/" but no effect.
>
> all compilations went fine
>
> could you help me to find the problem? I am totally new to erlang,
> yaws and erlyweb but would like to get more familiar to it.
>
> thanks in advance
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Mon Mar 03, 2008 9:45 pm |
|
|
|
Guest
|
Hi Yariv,
thanks for the hint (should have think about it myself)
Had version 1.68, switched to 1.75 and now it works.
Well at least for opera.
I have a very strange behaviour in firefox, it does not display
anything. I can see from the yaws log that all is going ok but view
remains empty, only thing I can see is the name of application in tab.
Looks like the head goes through but body is ignored.
any idea what might that be?
thanks,
smok
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Mon Mar 03, 2008 9:50 pm |
|
|
|
Guest
|
On Mar 3, 10:44 pm, Smok <smok.teles...@gmail.com> wrote:
> Hi Yariv,
>
> thanks for the hint (should have think about it myself)
> Had version 1.68, switched to 1.75 and now it works.
> Well at least for opera.
> I have a very strange behaviour in firefox, it does not display
> anything. I can see from the yaws log that all is going ok but view
> remains empty, only thing I can see is the name of application in tab.
> Looks like the head goes through but body is ignored.
Do the page source appears in Firefox?
Use View -> Source in Firefox (or some thing like that, I use swedish
locale).
> any idea what might that be?
Could be something with CSS.
Good luck
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Mon Mar 03, 2008 10:12 pm |
|
|
|
Guest
|
Hi Jxn,
could not see the source, looks really like css.
But for a moment I solved it by restarting firefox (strange anyway as
yesterday I had the same behaviour and restarting did nothing).
Now all works fine (well almost). Small things I found is:
1. when showing musician element the path is updated to the following
http://localhost:8001/music//musician/list/1 - notice double // after
music
2. http://localhost:8001/music produces:
ERROR erlang code crashed:
File: appmod:0
Reason: {function_clause,[{lists,dropwhile,
[#Fun,undefined]},
{erlyweb,get_ewc,2},
{erlyweb,get_initial_ewc1,2},
{erlyweb,handle_request,4},
{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,"/music"},{1,1}}
however http://localhost:8001/music/ produces right view
I guess this might be a small error to be fixed.
cheers,
smok
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 05, 2008 3:29 am |
|
|
|
Guest
|
I have exactly the same issues w/yaws-1.75 and firefox (on ubuntu
gutsy), the // for musician and everything. w/musician, it works, but
i have to restart erlydb and recompile each time i run yaws. but
maybe it's supposed to be that way...? clearly i'm new to this.
Liron Greenstein
On Mar 3, 5:12 pm, Smok <smok.teles...@gmail.com> wrote:
> Hi Jxn,
>
> could not see the source, looks really like css.
> But for a moment I solved it by restarting firefox (strange anyway as
> yesterday I had the same behaviour and restarting did nothing).
> Now all works fine (well almost). Small things I found is:
> 1. when showing musician element the path is updated to the followinghttp://localhost:8001/music//musician/list/1 - notice double // after
> music
> 2.http://localhost:8001/musicproduces:
> ERROR erlang code crashed:
> File: appmod:0
> Reason: {function_clause,[{lists,dropwhile,
> [#Fun,undefined]},
> {erlyweb,get_ewc,2},
> {erlyweb,get_initial_ewc1,2},
> {erlyweb,handle_request,4},
> {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,"/music"},{1,1}}
>
> howeverhttp://localhost:8001/music/produces right view
> I guess this might be a small error to be fixed.
>
> cheers,
> smok
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 05, 2008 6:27 am |
|
|
|
Guest
|
You do have to start erlydb every time you run yaws. You don't have to
recompile though if you add the app's ebin directory to your code
path. If you want ErlyWeb to automatically recompile files that have
changed on disk between requests, add the {auto_compile, true}
compilation option.
On Tue, Mar 4, 2008 at 7:28 PM, Liron Greenstein <Liron86@gmail.com> wrote:
>
> I have exactly the same issues w/yaws-1.75 and firefox (on ubuntu
> gutsy), the // for musician and everything. w/musician, it works, but
> i have to restart erlydb and recompile each time i run yaws. but
> maybe it's supposed to be that way...? clearly i'm new to this.
>
> Liron Greenstein
>
>
>
> On Mar 3, 5:12 pm, Smok <smok.teles...@gmail.com> wrote:
> > Hi Jxn,
> >
> > could not see the source, looks really like css.
> > But for a moment I solved it by restarting firefox (strange anyway as
> > yesterday I had the same behaviour and restarting did nothing).
> > Now all works fine (well almost). Small things I found is:
> > 1. when showing musician element the path is updated to the followinghttp://localhost:8001/music//musician/list/1 - notice double // after
>
> > music
> > 2.http://localhost:8001/musicproduces:
> > ERROR erlang code crashed:
> > File: appmod:0
> > Reason: {function_clause,[{lists,dropwhile,
> > [#Fun,undefined]},
> > {erlyweb,get_ewc,2},
> > {erlyweb,get_initial_ewc1,2},
> > {erlyweb,handle_request,4},
> > {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,"/music"},{1,1}}
> >
> > howeverhttp://localhost:8001/music/produces right view
>
>
> > I guess this might be a small error to be fixed.
> >
> > cheers,
> > smok
> >
>
--~--~---------~--~----~------------~-------~--~----~
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|