World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Kaj 8-Jun-2010 [8308x2] | Are you switching the user account in the Cheyenne config file? |
Also, in the screencast you're starting Cheyenne when it is already running, so it may be a legitimate fille locking error | |
Graham 8-Jun-2010 [8310x3] | No and I'm not. |
After the first pwd you see that I get a message to say that my process was stopped. | |
I then do a ps aux | grep cheyenne to confirm that it is no longer running | |
Kaj 8-Jun-2010 [8313] | Any harsh protection subsystems running on that Ubuntu besides the traditional Unix file security? |
Graham 8-Jun-2010 [8314x2] | Nope. This is a new ubuntu default installation. I am *presuming* cheyenne quits because it can't write the .cache.efs file but don't know for sure |
running cheyenne in verbose mode doesn't help because it never gets to start logging the error | |
Kaj 8-Jun-2010 [8316] | Ubuntu has had extra security subsystems for several years, though. Probably SE-Linux - I'm not very familiar with it |
Graham 8-Jun-2010 [8317] | Well, I don't know what is going on but hopefully my saving a copy of the .cache.efs file and copying it anew each time the user restarts cheyenne will bypass this issue |
Henrik 9-Jun-2010 [8318x3] | After rebooting OSX, I'm now getting this error, when trying to start cheyenne.r: make object! [ code: 303 type: 'script id: 'expect-arg arg1: 'context arg2: 'blk arg3: [block!] near: [extension-class: context list] where: func [/local list][ list: extract phases 2 forall list [change list to-set-word list/1] repend list [to-set-word 'service none] extension-class: context list ] ] |
It's an older cheyenne 0.9.17. | |
found the bug. it seems that cheyenne 0.9.17 cannot run with rebol/core 2.7.7 due to it's inability to make a context from a hash!. | |
Kaj 9-Jun-2010 [8321] | I'm running Cheyenne on 2.7.7 now, so I can confirm that new Cheyenne versions run there |
Henrik 9-Jun-2010 [8322] | this is in fact a bit odd... I've been running cheyenne on this machine for about 18 months without modifications and suddenly it would not run unless I changed the 'phases hash to a block in httpd.r. |
Kaj 9-Jun-2010 [8323x2] | I think HASH has been changed by the R3 Forward contributions |
Or doesn't that make sense? It would be MAP, of course | |
BrianH 10-Jun-2010 [8325] | No R2/Forward changes wold cause that. |
Graham 24-Jun-2010 [8326x2] | I found this on multi-tenanting http://msdn.microsoft.com/en-us/library/aa479086.aspx |
I adopted the isolated approach with separate DBs for each user, and separate webapps for each user .. but I think it's just not efficient. | |
Graham 1-Jul-2010 [8328] | Just wondering if do-sql protects against SQL injection ... |
Janko 1-Jul-2010 [8329x6] | It supports Prepared Statements (Parameterized Queries) which I think are bullet proff of I think (at least) because they are done with database. Theory is that if you do it in code there can be edge cases where db will interpret stuff differently as you quote / escape it so that is not good. |
do-sql 'db [ "select * where id = ?" id ] | |
what do you mean by separate web-apps? | |
http://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet#Defense_Option_1:_Prepared_Statements_.28Parameterized_Queries.29 | |
I use isolated approach too, but I use sqlite databases which are not that good for webapps but ok for isolated since 1 user wont make hundrets of connections to the same database at the same time | |
and sqlite databases are just files so you can have them as many as you can stuff on your disc :) | |
Graham 1-Jul-2010 [8335] | Ok, good to know ..never seen it discussed before. |
Terry 2-Jul-2010 [8336] | Looking like the next mobile Safari will support websockets... pushing Cheyenne generated data to the iphone sound intriguing. |
Kaj 3-Jul-2010 [8337] | It should: WebSockets have been in the WebKit development builds for a while. So all the other WebKit-based browsers should get it soon, too |
Terry 9-Jul-2010 [8338x3] | I have an ongoing issue with cheyenne websockets when not using port 80 (?) the page loads, the socket connects, but immediately disconnects? |
the browser disconnects (dropped an alert in the ws.onclose function) but there's no disconnect message from Cheyenne? | |
Actually, not quite. It's not working when connecting from the machine that's running Cheyenne (windows 7), but connects fine from an xp box on the same network. | |
Graham 9-Jul-2010 [8341] | You're running cheyenne on port 80 under windows 7? |
Dockimbel 9-Jul-2010 [8342] | Hi Terry, it's possible that the ws URL wth port <> 80 returned by Cheyenne doesn't match the one expected by the browser to validate the ws handshake, let me have a look at it... |
Terry 9-Jul-2010 [8343] | port 82 |
Dockimbel 9-Jul-2010 [8344] | Terry, it doesn't look like port-related. |
Terry 9-Jul-2010 [8345] | I think its some weird Windows 7 thing. |
Dockimbel 9-Jul-2010 [8346] | What URL do you use for your ws connection in JS code? |
Terry 9-Jul-2010 [8347] | I've tried everything.. now im using the FQDN including port :82 |
Dockimbel 9-Jul-2010 [8348x2] | Can you show me the URL? |
Do you change the hostname dynamically in the ws URL or is it static? | |
Terry 9-Jul-2010 [8350x2] | static |
it's in your user group | |
Dockimbel 9-Jul-2010 [8352x2] | if it's static, then it can work only for the URL you've written, so from the server itself, the URL might be invalid |
I mean, if you've used something like ws://intranet/app.rsp and ws://intranet is not resolved on your server, that's would be the cause of your issue | |
Terry 9-Jul-2010 [8354] | from the server, i cant' get a message to on-message .. but from the other client, I can.. only it won't reply. |
Dockimbel 9-Jul-2010 [8355x2] | Terry: just replace ws:// by http:// and test the URL from rebol console with a READ (from your server box) |
(or from a ws-enabled browser from your server box) | |
Terry 9-Jul-2010 [8357] | hmm.. how about this.. when i close Cheyenne, the messages are sent back to the browser..AFTER it closes |
older newer | first last |