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

Endo
14-Apr-2010
[8055]
I tried with cheyenne-r0919.exe binary version with mysql server 
on localhost, same error: 
** Access Error : Invalid port spec: mysql://[root-:-localhost]/test
Dockimbel
14-Apr-2010
[8056x2]
cheyenne-r40.exe doesn't have ODBC driver.
Can you connect from REBOL console using : 
>> db: open mysql://[root-:-localhost]/test

??
Endo
14-Apr-2010
[8058x2]
db: open mysql://[root-:-localhost]/test gives same error on console, 
I'm using R2/View 2.7.7.3.1
mysql driver is not already in cheyenne?
Oldes
14-Apr-2010
[8060x2]
no, you must download it here: http://softinnov.org/rebol/mysql.shtml
I think it should be
Endo
14-Apr-2010
[8062]
then how cheyenne load it?
Dockimbel
14-Apr-2010
[8063x2]
See ChristianE explanations above.
Oldes: I agree, given how often it is used in combination with Cheyenne/RSP.
Endo
14-Apr-2010
[8065]
Hmm.. p: open odbc://test works on console

But cheyenne-r0919.exe still gives ** Access Error : Invalid port 
spec: odbc://test
BrianH
14-Apr-2010
[8066x2]
Don't use odbc - Cheyenne doesn't support it with the default build. 
Use the standalone mysql protocol linked above.
Or if you have the SDK, encap your own binary.
Endo
14-Apr-2010
[8068]
I see. I don't have SDK. Is there a license issue about mysql/odbc 
drivers or do you have a plan to put in next releases?
ChristianE
14-Apr-2010
[8069]
Don't mix the ODBC- with the mySQL-driver. Doc's mySQL-protocol works 
with all versions of Rebol(2). You use it thru the mysql://-scheme.
BrianH
14-Apr-2010
[8070]
ODBC drivers are binary, and are only included if you have /Command 
or the SDK. Which also include a mysql driver, but not as good a 
driver as the free one linked above.
Endo
15-Apr-2010
[8071]
It would be great if the drivers (mysql/sqlite/odbc/postgre) included 
in cheyenne. Ofcourse external dependencies is not good for Cheyenne, 
but optional driver-included binaries would be good anyway.
Dockimbel
15-Apr-2010
[8072]
Well, that's a good idea, but the SDK license is quite restrictive, 
I shouldn't distribute Cheyenne in binary form (see "REBOL API Restriction" 
part at http://www.rebol.com/docs/sdk/sdkintro.html). RT didn't asked 
me to pay any additional license so far, so I don't want to push 
it further by giving away a free /Command with Cheyenne.
Oldes
15-Apr-2010
[8073x3]
Does anybody use user and group directive in httpd.cfg? When I uncoment 
it and use own user name, than I got error:
## Error in [conf-parser] : Error in conf file at:
user oldes
group oldes
Hm.. probably needs mod-userdir enabled... but then it crashes completely:/
ech.. found reason -  now the logger does not have rights to write... 
so it could be fixed
Janko
18-Apr-2010
[8076]
Is anyone running cheyenne, the source code version on linux, with 
the need of /Library (like sqlite / pdf / ... binding) and need to 
setup set-net (for sending email)? If, how are you running it, with 
what version of rebol and how?
Oldes
18-Apr-2010
[8077x2]
Unfortunately I don't think it's possible. At least if you can't 
use /View version or don't have SDK license for Linux (needed for 
Rebol/pro).
Ask Carl to remove the library restriction.
Maxim
18-Apr-2010
[8079]
in /core you mean... I guess.
Oldes
18-Apr-2010
[8080x2]
There is no library support in Linux's version of REBOL/Core. Only 
in the /View version I guess... but that's in most cases not possible 
to use on servers as not many servers are with X server installed 
as well.
REBOL/Pro was supposed to be the /Core with the library support enabled.
Janko
19-Apr-2010
[8082]
The problem now is not the /Library support but the "set-net" / user.r
Pekr
19-Apr-2010
[8083]
it is imo a bug. There is absolutly no reason why rebpro kernel should 
behave differently from other kernels in the SDK.
Janko
19-Apr-2010
[8084]
I think if I could make user.r execute on start this problem would 
be solved. I wasn't able to make it autoexecute on linux yesterday 
.. I already spent 6  hours before with this stuff without accomplishing 
anything so I stopped at that point. I will try with user.r again 
now. user.r didn't start on rebol/core or rebpro on linux for me 
yesterday ( I had rebol.r and user.r in same file as script, in same 
file as executables, I tried to set REBOL_HOME and REBOLHOME)
Pekr
19-Apr-2010
[8085]
Janko - try to avoid set-net in the user.r, or just load missing 
mezzanines at the beginning of the user.r
Janko
19-Apr-2010
[8086x2]
yes, I need user.r to load the mezzaines.. I have set-net in cheyenne 
then
I should move this back to Linux probably
BrianH
19-Apr-2010
[8088]
Pekr, rebpro doesn't behave differently than the other kernels in 
the SDK - which are rebbase and rebface - it just behaves differently 
than the prepackaged interpreters.
Graham
25-Apr-2010
[8089x2]
anyone know how I can start cheyenne automatically ?
this is what I am doing currently on Ubuntu


http://content.screencast.com/users/SynapseEMR/folders/Jing/media/fce31231-a410-4ee8-a602-0ebb891ede0c/2010-04-26_1057.swf
I'm typing the start up commands
Janko
25-Apr-2010
[8091]
I had this setup on one server. You have to play with etc/init.d 
folders .. I currently also don't have it setup that way because 
I had some problems then and one guy showed me some simpler way. 
(but I can't remember it right now, I can ask him tomorrow)
Graham
25-Apr-2010
[8092]
ok
Janko
25-Apr-2010
[8093]
with init.d you have multiple files for different stages of startup 
and shutdown process so it's a little complicated.. the guy (he was 
on ubuntu showed me just one file where you add cli commands and 
that's it)
BudzinskiC
25-Apr-2010
[8094x2]
Graham, which version of Ubuntu are you using? The newest version 
of Ubuntu doesn't use the /etc/init.d system anymore, it uses upstart 
instead: http://upstart.ubuntu.com/getting-started.html.Much easier 
but less powerful (but maybe enough for you) is editing the /etc/rc.local 
file. That just starts an app after booting, it doesn't allow you 
to restart or stop it with a command. Just put the command to start 
up cheyenne on a line between "# By default this script does nothing." 
and "exit 0"
Even better though would be if you wrote a small demon script in 
rebol or bash or whatever you like, that gets started by rc.local 
instead of directly starting cheyenne. This demon would check all 
running tasks every 60 seconds and see if cheyenne is still running, 
otherwise restart it. This way, if cheyenne should crash, it is automatically 
restarted.
Janko
25-Apr-2010
[8096]
I think there are some applications that do this.. can't remember 
their names right now
Graham
25-Apr-2010
[8097x6]
It's not my server .. .I just told them to install ubuntu server 
32 bit
I'll have a look .. but I'm having issues now starting cheyenne. 
 I'm using the latest binary from doc but it just stops
I have to run cheyenne.r to allow it to create a cache.efs file and 
then I can run the binary
ie. I use rebol core and use the source version
going to try the rc.local
Doesn't seem to be predictable ...
Graham
26-Apr-2010
[8103x2]
Is there a simple file upload script demo .... ?
Hmm.. Cheyenne is not handling HEAD correctly

>> read/custom  http://www.curecode.org/[ HEAD "" ]
URL Parse: none none www.curecode.org none none none
Net-log: ["Opening" "tcp" "for" "HTTP"]
connecting to: www.curecode.org
Net-log: {HEAD / HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL View 2.7.6.3.1
Host: www.curecode.org
Referer: http://www.curecode.org/
}
Net-log: "HTTP/1.1 200 OK"
Net-log: ["low level read of " 2048 "bytes"]