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

World: r3wp

[!CureCode] web-based bugtracking tool

Dockimbel
30-Aug-2009
[636]
installing the Cheyenne from the link above
 => you've installed Cheyenne 0.9.17??
Henrik
30-Aug-2009
[637]
the captcha appears not to be working, but there is no DRAW error 
this time.
Dockimbel
30-Aug-2009
[638]
The cheyenne version that you should be using is http://cheyenne-server.org/dl/0919/linux/face/cheyenne.gz
Henrik
30-Aug-2009
[639x4]
ok, thanks. I must admit, it's rather hard to keep track of which 
cheyenne is running.
which version
yes, finally. captcha available now.
now a new error... possibly mail related.
Dockimbel
30-Aug-2009
[643]
you need to edit %CureCode/private/curecode.conf to set the correct 
mail server.
Henrik
30-Aug-2009
[644]
URL  = /bugs/register.rsp
        File = www/bugs/register.rsp


        ** Script Error : read expected source argument of type: file url 
        object block 
        ** Where: send-confirmation 

        ** Near:  [template: read join locale/get-path %email-activation.tpl]
Dockimbel
30-Aug-2009
[645]
Check the %/private/helper.r script, they might be some things hardwired 
in 'send-confirmation function (like mail server).
Henrik
30-Aug-2009
[646]
The output of this:

join locale/get-path %email-activation.tpl

is:

nonenone/email-activation.tpl
Dockimbel
30-Aug-2009
[647x2]
Did you change something in %app-init.r? Did you create the webapp 
correctly in Cheyenne's config file?
This line in the webapp declaration should remain with a relative 
path : locales-dir %private/locales/
Henrik
30-Aug-2009
[649x4]
ah, that one. thanks.
ok, new error. where does %private/ start? my root dir occurs twice 
in locale/get-path
webapp [
	virtual-root "/bugs/"
	root-dir %www/bugs/
	locales-dir %private/locales/
]
I see you used an absolute path for root-dir in the example you gave 
above, but in the example testapp in httpd.cfg, the root-path is 
relative, so I used that here.
Dockimbel
30-Aug-2009
[653]
Try with an absolute path for root-dir. I remember having hit the 
same issue once a long time ago, but can't remember the fix.
Henrik
30-Aug-2009
[654x2]
yep, that works. now I get the mail error I expected. configuring 
smtp...
I think it would be a good idea to create a set of sanity checks, 
to check that the webapp paths are correct and that the right rebol 
version is used. that would be the easiest way to improve installation.
Dockimbel
30-Aug-2009
[656]
Yep, sure. I have currently 2 weeks of intensive coding for upgrading 
one of our commercial product. Once done, I'll get back to CureCode 
with some major improvements in plan.
Henrik
30-Aug-2009
[657x5]
crap... seems I need to install my own smtp server.
Successfully sent mail from a rebol command prompt, but it doesn't 
work in Cheyenne, despite identical set-net config. Odd.
URL  = /bugs/register.rsp
        File = /home/henrikmk/serve/www/bugs/register.rsp

        ** User Error : Server error: tcp connection failed 
        ** Where: none 

        ** Near:  [insert smtp-port reduce [from reduce [addr] tmp]]
and it should be running with root privileges.
DocKimbel, I noticed that it's spelled "STMP-server" in the config 
file and in the other sources. Is that correct? The correct spelling 
would be "SMTP-server"
Graham
30-Aug-2009
[662]
can't you use localhost as the smtp server?
Henrik
30-Aug-2009
[663x3]
from rebol yes, cheyenne, apparently not.
If I'm right, sending mail only happens in the helper.r file. But 
even if I try to make an error well before the actual mail sending 
happens in 'send-confirmation, it still returns a tcp error. It seems 
I'm not hitting the right place in the code.
BTW, I spotted another error with the captcha:

URL  = /bugs/captcha.rsp
        File = /home/henrikmk/serve/www/bugs/captcha.rsp

        ** Access Error : Port none not open
        ** Where: confirm
        ** Near:  [save/png img: make binary! 25000]


At that time I noticed the image was not displayed in the browser, 
but it only happened once.
Graham
30-Aug-2009
[666]
I never got the captcha working the way doc has it .. I had to write 
my images to the public folder and display them from there.
Henrik
30-Aug-2009
[667]
it's probably a permissions problem
Graham
30-Aug-2009
[668x4]
in ram?
There used to be a tracker at http://softinnov.org:8000/curecode
for curecode itself ...
send-confirmation: func [
	spec [block!] vkey [string!]
	/local url login pass template
][
	system/user/name: "REBOL3 Tracker" 
	set-net reduce [[no-reply-:-curecode-:-org] "softinnov.com"]
	url: rejoin [
		request/headers/Host

  either request/server-port = 80 [""][join ":" request/server-port]
		request/web-app
		"/validate.rsp?id=" url-encode spec/login 
		"&key=" vkey
	]
	login: spec/login
	pass: spec/pass
	template: read join locale/get-path %email-activation.tpl
	replace template "$url" url
	replace template "$login" login
	replace template "$pass" pass
	
	send/subject spec/email template
		rejoin ["[REBOL3 Tracker] " say "Account activation"]
]
Henrik
30-Aug-2009
[672]
yes, I thought I could make an error! earlier in that function, but 
I still get a TCP error.
Graham
30-Aug-2009
[673]
You know that ?? logs to trace.log
Dockimbel
30-Aug-2009
[674]
STMP-server
: thanks for finding that one!
Graham
30-Aug-2009
[675]
So, was your smtp error related to trying to connect to sofinnov's 
mail server?
Henrik
30-Aug-2009
[676]
I was trying to use ??, but couldn't get it to work.
Dockimbel
30-Aug-2009
[677]
Port none not open
 on save/png...odd one.
Graham
30-Aug-2009
[678x2]
Oh .. that's for RSP.
helper.r is in the global name space ... so ?? may not work
Dockimbel
30-Aug-2009
[680]
Try debug/probe instead.
Henrik
30-Aug-2009
[681x5]
debug/probe mold spec
 inserted on the first line...
no difference. it still reports tcp error. it must be coming some 
time before that function.
got debug/probe working now. it definitely stops at 'send-confirmation.
oh that's it. I just need to fill that function up with debug/probes 
and it works. :-) got a mail now.
graham or doc, could you please try registering at:

http://97.107.135.89/bugs/register.rsp