World: r3wp
[!CureCode] web-based bugtracking tool
older newer | first last |
Dockimbel 22-Aug-2011 [1222] | I will have a look, but it has probably been fixed since v0.9.8. |
Henrik 22-Aug-2011 [1223x4] | well, it worked before, but I'm curious about the near '<unknown char>' bit |
if there are no dangers in upgrading curecode, I may do that instead. | |
trying 0.9.12 and getting this crash: URL = /bugs/ File = /home/henrikmk/serve/www/bugs/head.rsp ** Script Error : Invalid path value: locals ** Where: repend ** Near: [request/config/locals/instance %title.inc | |
This is with the latest cheyenne release 0.9.20. | |
Dockimbel 22-Aug-2011 [1227x2] | Have you followed the migration process? There's a migration script in the archive, probably in the /private folder. |
It's the %private/upgrade-096-0910.r script. | |
Henrik 22-Aug-2011 [1229x2] | I see, will try. |
There doesn't seem to be such a script. There is however an install.r script. | |
Dockimbel 22-Aug-2011 [1231] | About your error, the newest CureCode versions require the definition of a LOCALS block in the webapp: locals [ name "REBOL3 Tracker" instance %rebol3/ short "r3" ] |
Henrik 22-Aug-2011 [1232x3] | private$ ls ChangeLog.txt build-db.sql generate-load.r helper.r instances access-control.r db-abstract.r generate-test.r install.r |
I see, thanks. | |
ok, it looks like I'm going to need that upgrade script. where can I find it? it's not included in the distribution. | |
Dockimbel 22-Aug-2011 [1235x2] | http://curecode.org/dl/upgrade-096-0910.zip I am not sure it applies to 0.9.8, you'll need to check if the new SQL tables are already there or not. |
Be sure to backup your database before using it. | |
Henrik 22-Aug-2011 [1237x2] | ok, thanks. |
now I get an invalid port spec: ** Access Error : Invalid port spec: mysql://<removed> ** Where: do-sql ** Near: [do-sql/flat 'bugs any [ | |
Dockimbel 22-Aug-2011 [1239] | You should check that <removed> part for an invalid definition. |
Henrik 22-Aug-2011 [1240x3] | It should be something like this: mysql://user:[pass-:-localhost]/bugs I also tried it in a different console and it only appears if the mysql-protocol is not loaded. |
There is no reference to mysql-protocol.r anywhere in the source code. Could that be it? | |
In 0.9.8 there is a reference to mysql-protocol.r in app-init.r, but it's gone in 0.9.12. | |
Dockimbel 22-Aug-2011 [1243] | Ah probably, now CureCode expects that the %mysql-protocol.r be loaded externally. The best way to do that is to instruct Cheyenne to load it directly by declaring it in the GLOBALS section of the config file, like this: worker-libs [ %<path-to-mysql-protocol-folder>/mysql-protocol.r ] |
Henrik 22-Aug-2011 [1244] | I see. |
Dockimbel 22-Aug-2011 [1245] | Btw, all these setup steps are handled by the %private/install.r when doing a new installation. |
Henrik 22-Aug-2011 [1246] | actually no, I already read through the install.r file and there is no reference to anything but SQL queries and a message which contains a description of the webapp, but not worker-libs. |
Dockimbel 22-Aug-2011 [1247] | You're right, it is missing, I'm adding it right now. |
Henrik 22-Aug-2011 [1248] | Another crash in index.rsp: sess: session/content if all [ not sess/login? none? validate/full [action word! *] 'identify = request/content/action ][ SESS appears to be NONE. |
Dockimbel 22-Aug-2011 [1249] | Have you restarted Cheyenne fully after the changes in httpd.cfg? |
Henrik 22-Aug-2011 [1250] | I kill the old session with kill -9 and start the new after that |
Dockimbel 22-Aug-2011 [1251] | You should stop Cheyenne completly, remove the %.rsp-sessions file found in Cheyenne working folder, then restart it. |
Henrik 22-Aug-2011 [1252] | ls -lR | grep sessions reveals no such file |
Dockimbel 22-Aug-2011 [1253x2] | Try with ls -laR | grep sessions while Cheyenne is fully stopped. |
It's a file starting with a dot (= hidden file), so -lR is not enough to list it. Also, it exists only when Cheyenne is not running. | |
Henrik 22-Aug-2011 [1255] | where is the worker-libs block supposed to be located? |
Dockimbel 22-Aug-2011 [1256] | GLOBALS section of %httpd.cfg |
Henrik 22-Aug-2011 [1257x2] | that seemed to be it. now I'm back to this morning's crash when clicking bug entries in the database. |
ok, missing table... | |
Dockimbel 22-Aug-2011 [1259] | The upgrading script should have created all required tables. |
Henrik 22-Aug-2011 [1260] | it did not. there was a large number of errors, since there were no checks if the tables were actually existing or not and I couldn't tell whether the upgrade script actually finished. |
Dockimbel 22-Aug-2011 [1261] | As I said, the script is for v0.9.6, for your v0.9.8, you should have checked manually which tables are already created. You should then comment the lines in the upgrade script to match your configuration. |
Henrik 22-Aug-2011 [1262x2] | I'm doing each part manually now. |
the rss.gif image is missing from the img/ directory. | |
Dockimbel 22-Aug-2011 [1264] | Thanks, I'm adding it to the online archive. |
Henrik 22-Aug-2011 [1265x2] | When logging in this line fails: if sess/prefs/my-filter [sess/query: copy sess/prefs/my-filter] The content of SESS/PREFS is: [version 1 tickets-color-mode line tickets-alt-color #EEE default-project 1] I suppose this was meant to be stored in the database, but would a better check on this not be: if select sess/prefs 'my-filter [sess/query: copy sess/prefs/my-filter] ? |
I don't see anything about filters in the upgrade script. | |
Dockimbel 22-Aug-2011 [1267x3] | Looking into that issue... |
It should work okay with v0.9.12. It might be caused by an obsolete session object. You should follow the %.rsp-sessions suppression process once again. | |
Hmm, wait, I need to check the database content, it seems that the PREFS table might contain obsolete data that are not processed by the upgrade script. | |
Henrik 22-Aug-2011 [1270] | Yes, I checked the db content and it contains the block I posted above. |
Dockimbel 22-Aug-2011 [1271] | You should delete the content of PREFS table, CureCode will recreate correct new data if no PREFS record is found: DELETE FROM prefs |
older newer | first last |