Forum OpenACS Q&A: ds_properties error!

Collapse
Posted by Rocael Hernández Rizzardini on
For those who might have found this kind of error during the installation of openacs / dotlrn from CVS HEAD for me worked to not install ACS Developer Support, so everything goes well in the installation process.
Collapse
2: Re: ds_properties error! (response to 1)
Posted by Jeff Davis on
Could you post a bug for this (with the error log message
if you have it).  We should make developer support work since it can be quite useful.
Collapse
3: Re: ds_properties error! (response to 1)
Posted by Rocael Hernández Rizzardini on
you are right!
but I haven't been able to reproduce it =)
Collapse
4: Re: ds_properties error! (response to 1)
Posted by Rocael Hernández Rizzardini on
Well, here is it:

in the browser:

    *

(1 row)
acs_sc_impl_alias__new
------------------------
                  5475
(1 row)

Installed News, version 4.6.

Package enabled.HTTP/1.0 500 Internal Server Error Content-Type: text/html; charset=iso-8859-1 MIME-Version: 1.0 Date: Wed, 12 Feb 2003 08:41:05 GMT Server: AOLserver/3.3.1+ad13 Content-Length: 530 Connection: close
Server Error
The requested URL cannot be accessed due to a system error on this server.

in the log file:

[12/Feb/2003:09:41:04][379.5126][-conn2-] Notice: APM/QD = DONE looping through files to load queries from
[12/Feb/2003:09:41:05][379.5126][-conn2-] Error: no such array: ds_properties
no such array: ds_properties
    while executing
"nsv_get ds_properties enabled_ips"
    (procedure "ds_collection_enabled_p" line 6)
    invoked from within
"ds_collection_enabled_p"
    (procedure "rp_report_error" line 9)
    invoked from within
"rp_report_error"
    (procedure "rp_handler" line 123)
    invoked from within
"rp_handler"

Collapse
5: Re: ds_properties error! (response to 1)
Posted by Rocael Hernández Rizzardini on
and this happen with almost every package, for example, if I don't install news, it happen with forums, if don't install news and forums it happen with calendar and so on...
Collapse
6: Re: ds_properties error! (response to 1)
Posted by Lars Pind on
Roacel,

This was due to the changes that Peter recently made to the installer.

In order for the installer to be able to call the after-install proc, it must source the -procs files of the packages.

But -init files aren't loaded until *all* packages have been loaded.

Thus, developer-support would start getting called on subsequent package installs, because they check for whether the right procs are defined, which they are, because the -procs files have been loaded ... but it hadn't been initialized.

We considered two fixes, one which was to fix developer support so it doesn't do things that break if it hasn't been initialized yet. The other was to load the -init files for each package as well.

This is all a bit screwy anyway, so we chose to go the first route. The consideration was that (a) this was quick and easy to do, and (b) it's a special case for developer-support, because the mere fact that its procs exist cause it to be called by the database commands and the request processor.

All these details are meant to serve as documentation for later.

The bottom line is, it's fixed :)

/Lars