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

Kaj
9-Sep-2010
[8983]
I think the main win is getting the UniServe task master processes 
to run as non-root. Is that feasible?
Carl
9-Sep-2010
[8984]
It's always been DNS -- never was GC.
Kaj
9-Sep-2010
[8985]
I saw you write that many years ago, but I don't know if I could 
find it again
Carl
9-Sep-2010
[8986x4]
It didn't come from me, I promise!
I'd like to make that side proc an option.  Holger added it for async 
DNS lookup, but a great deal of the time no lookup is being done, 
or sync DNS lookup is just fine.
Perhaps it could be an R/Command build option?
And, in Core and others, could be cmd line option.
Graham
9-Sep-2010
[8990]
that was the infamous zombie dns process in older r2 version
Carl
9-Sep-2010
[8991]
I'm wrapping up R3 A107... so if we want to do some test builds for 
2.7.8 on this, let me know.
Kaj
9-Sep-2010
[8992x2]
Carl, did you see our above discussion on getting Cheyenne to shed 
root access, and my request in R3 Chat to have Library access enabled 
in R2/Core?
It's essential for getting R2 up to a professional level for web 
serving
Tomc
9-Sep-2010
[8994]
do the latest core have odbc as well?
Kaj
9-Sep-2010
[8995x2]
It doesn't have Library
The 2.7.8 planning seems to include some goals in that direction, 
making View not bomb out when X11 is not running, but the time plan 
was abandoned
Graham
9-Sep-2010
[8997]
rebcmd has odbc, ssl and library access.
Kaj
9-Sep-2010
[8998]
Sure, but I need Library in Core to have it be meaningful in Syllable 
Server
Graham
9-Sep-2010
[8999]
So, it's just simply releasing rebcmd as core ....if the will exists
Dockimbel
10-Sep-2010
[9000]
Making the REBOL side process a command-line option for /Core and 
build option for /Command would be a good improvement.
Graham
15-Sep-2010
[9001x3]
What causes this error?


15/9-02:54:33.067-## Error in [task-handler-4721] : Make object! 
[
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'protected-exec
    arg2: 'code
    arg3: [block! function!]

    near: [protected-exec/event request/parsed/file get in session/events]
    where: 'fire-event
] !
I'm trying to display the login.rsp page of a webapp
the login.rsp is straight from svn
Dockimbel
15-Sep-2010
[9004]
looking at login.rsp...
Graham
15-Sep-2010
[9005]
maybe it's a httpd.cfg error?
Dockimbel
15-Sep-2010
[9006]
From the error message, the error would come from an incorrect event 
definition in %app-init.r
Janko
15-Sep-2010
[9007]
errors like this are usually coaused by error in app-init.r yes
Graham
15-Sep-2010
[9008x2]
I deleted the app-init.r and still get the error
In fact I didn't have an app-init.r so added one
Dockimbel
15-Sep-2010
[9010]
IIRC, app-init.r is mandatory for a webapp, even if you don't use 
it.
Graham
15-Sep-2010
[9011x4]
so maybe that was the first issue.
put it back and restarted cheyenne
very odd .. I deleted the comments in on-application-start and it 
works now!
I can only guess that I didn't complete shut down and restart Cheyenne
Dockimbel
15-Sep-2010
[9015x2]
You should just "Reset Workers", it's enough to reload all the webapps. 
You should also consider running your dev instance of Cheyenne with 
-w 0 command-line option to make it reload all apps on each request.
I'm looking at the code in RSP.r and I can't figure out how you could 
raise such internal error. Can you please describe me the simplest 
way to reproduce that error?
Graham
15-Sep-2010
[9017x3]
reload all apps on each request?
The first thing I did was create a web app with no app-init.r
When I tried to access the login.rsp page I got that error.
Dockimbel
15-Sep-2010
[9020]
yes, the -w 0 option asks Cheyenne to maintain a pool of 0 worker 
process and launch one only when required (killing it when the request 
is completed). That has the side-effect or "reloading" all webapps 
and cleaning any corrupted data in memory produced by user-scripts.
Graham
15-Sep-2010
[9021x2]
what impact does that have on performance?
it sounds like it would slow it down to cgi ?
Dockimbel
15-Sep-2010
[9023]
yes, but you use it for the development only, not for production. 
I'm working with big RSP webapps and the slowdown with that option 
is barely noticeable.
Graham
15-Sep-2010
[9024]
oh .. ok
Dockimbel
15-Sep-2010
[9025x3]
I've removed %app-init.r from %www/testapp in Cheyenne's archive, 
started a fresh Cheyenne session, logged in http://localhost/testapp
and I can't reproduce your error. I only keep receiving this kind 
of (normal) error: 

##RSP Script Error: 

	URL  = /testapp/login.rsp
	File = app-init.r


 ** Access Error : Cannot open /C/Dev/Cheyenne/www/testapp/app-init.r 
	** Where: rsp-script 
	** Near:  [init: load join root %/app-init.r]
I've removed -w 0 option also to mimic your config, I'll try putting 
app-init.r back now.
Still no success in reproducing your error...
Graham
15-Sep-2010
[9028x2]
I renamed app-init.r in my svn version, started cheyenne and don't 
get any error
looks like the cheyenne I'm using is a build from middle of last 
year
Dockimbel
15-Sep-2010
[9030x2]
You should get some if you try to use any session object functions 
or access any session/content variables.
mid-2009? That's damn old :-)
Graham
15-Sep-2010
[9032]
it let me run the test rsp script