r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Graham
29-Oct-2008
[3296]
I normally just reboot ... perhaps I need to find a cleaner way of 
killing the cheyenne process.
No, just the one RSP webapp.
Not responding.
Henrik
29-Oct-2008
[3297]
I usually kill it here and start it again. For those times where 
it mysteriously just quits, I can also just start it again. I have 
mine set up via launchd in OSX.
Graham
29-Oct-2008
[3298x3]
This is not so good then .. is there a way we can debug this?
Or is it just Cheyenne reaching it's pool limit?
Henrik, are you running RSP, or CGI ?
Henrik
29-Oct-2008
[3301]
RSP
Dockimbel
29-Oct-2008
[3302x2]
It's a bug, but hard to fix because I can't reproduce it. The only 
way to fix it would be to log into a  Cheyenne server in blocked 
state, using the rconsole client.
So, if one of you can provide me with an access to a server in such 
state, I should be able to investigate on that issue.
Henrik
29-Oct-2008
[3304]
Now my server quit. Doc, can we use that? I can't provide direct 
access to this server, but can you give hints on what to search for?
Graham
29-Oct-2008
[3305]
My quit as well... but i didn't see this message.  So I used 'kill 
to kill the pid and restarted it :(
Henrik
29-Oct-2008
[3306]
Did you have to actually kill it?
Graham
29-Oct-2008
[3307]
how else?
Henrik
29-Oct-2008
[3308x2]
Wait... I'll check my log.
Graham, mine just quits. I can go in and start it again without problems.
Graham
29-Oct-2008
[3310]
Mine is still running ... just RSP stops working.
Henrik
29-Oct-2008
[3311x4]
29/10/08 21.56.24 com.apple.launchd[1] (com.rebol.cheyenne[65863]) 
Stray process with PGID equal to this dead job: PID 65868 PPID 65866 
rebol
I think launchd kills it for me.
There are 4 lines with that.
restarted it
Dockimbel
30-Oct-2008
[3315]
If you can access to the server through rconsole just do this : write 
%debug.log mold uniserve (and put the compressed version of the %debug.log 
file on your web site so I can download it).
Graham
30-Oct-2008
[3316x3]
Ok
I take it that this is a new bug .. I'm still running a much older 
version of Cheyenne from last year ... and I never saw this.
( on a different server )
Dockimbel
30-Oct-2008
[3319]
Henrik, if you're running cheyenne in source mode, you should use 
the -w command line option (that will allow the generation of a %crash.log 
file if the REBOL error is catched). If your Cheyenne quits, I don't 
think that's caused by a bug inside Cheyenne, but usually by something 
like an uncatched file access error (file handles starvation, file 
access rights,...). Will had some similar issues with Cheyenne on 
OS X, I guess he could help here.
Graham
30-Oct-2008
[3320x2]
Do you think the error is being caused by an untrapped Rebol error?
catched => caught
uncatched => uncaught
Dockimbel
30-Oct-2008
[3322]
For Henrik issue, probably.
Graham
30-Oct-2008
[3323]
And mine .. do you know if anyone is having my problems?
Dockimbel
30-Oct-2008
[3324]
I experienced such issue a few times months ago, but not since v19.
Graham
30-Oct-2008
[3325]
I am running on marginal hardware ... I wonder if that's the issue 
too.
Dockimbel
30-Oct-2008
[3326]
A RSP script that would endlessly loop (or being stuck in a wait) 
could cause such issue.
Graham
30-Oct-2008
[3327]
No loops or waits in my code
Dockimbel
30-Oct-2008
[3328]
But you're using CALL ?
Graham
30-Oct-2008
[3329]
sorry .. I am using call/wait
Dockimbel
30-Oct-2008
[3330]
:)
Graham
30-Oct-2008
[3331]
I will ask my friend if he has the same issues ... he's running the 
same code and has not mentioned any problems
Dockimbel
30-Oct-2008
[3332]
You could put a couple of debug lines around your call/wait and log 
them to a file to see if your CALL always returns.
Graham
30-Oct-2008
[3333]
ok.
Dockimbel
30-Oct-2008
[3334]
I think I could improve such issues with a timeout on RSP script 
execution in the main process (and returning an error message if 
a time limit is reached).
Graham
30-Oct-2008
[3335x2]
I use call/output
are uniserve logging functions not available to rsp scripts?
Dockimbel
30-Oct-2008
[3337]
no, it's not the same process and helper processes where RSP scripts 
are executed, don't load Uniserve code. They just use a small client 
(%task-handler.r).
Pekr
30-Oct-2008
[3338x2]
Got error on Henrik's site - RSP error catched - internal limit reached: 
parse
Near: [parse either empty? val-ctx [data]] 
where: html-gen
Henrik
30-Oct-2008
[3340x2]
.... ok :-)
I think that's a bug in html-gen. hang on...
Pekr
30-Oct-2008
[3342]
ah, so not in Cheyenne? well, wrong group post then :-)
Henrik
30-Oct-2008
[3343x2]
hmm.. that didn't solve anything.
I thought maybe the file table was too big.
Pekr
30-Oct-2008
[3345]
has it anything in common with nested calls/recursion?