Forum OpenACS Development: Error API subsite::package_keys

Collapse
Posted by Iuri Sampaio on
Hi there,

I installed an upgrade (HEAD source) of acs-bootstrap-installer package and now i can not access the system because there is a error on include login template

I am trying to track down the error however and i can not locate the page that calls the proc subsite::package_keys.

Does anyone have idea what file is?

Please, see errors bellow:

[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Debug: db_exec: timing 0 seconds nsdb0 select dbqd.www.index.users_query
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Error: lang::message::lookup: Key 'intranet-core.No_OTP_defined_yet' does not exist in en_US
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Debug: NO FULLQUERY FOR dbqd.acs-subsite.lib.login.otp_installed --> using default SQL
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Notice: Querying '
select count(*)
from apm_enabled_package_versions
where package_key = 'intranet-otp';'
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Notice: dbinit: sql(localhost::projop): '
select count(*)
from apm_enabled_package_versions
where package_key = 'intranet-otp'
'
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Debug: db_exec: timing 0 seconds nsdb0 0or1row dbqd.acs-subsite.lib.login.otp_installed
[28/Feb/2009:12:01:25][11663.3039513520][-conn:projop::1] Error: Error in include template "/web/projop/packages/acs-subsite/lib/login": invalid command name "subsite::package_keys"
invalid command name "subsite::package_keys"
while executing
"subsite::package_keys"
(procedure "ad_conn" line 87)
invoked from within
"ad_conn subsite_node_id"
(procedure "ad_conn" line 91)
invoked from within
"ad_conn subsite_id"
(procedure "subsite::get_element" line 4)
invoked from within
"subsite::get_element -element object_id"
invoked from within
"if { ![exists_and_not_null package_id] } {
set subsite_id [subsite::get_element -element object_id]
}"
("uplevel" body line 48)
invoked from within
"uplevel {
# Present a login box
#
# Expects:
# subsite_id - optional, defaults to nearest subsite
# return_url - optional, defaults to Your..."
(procedure "code::tcl::/web/projop/packages/acs-subsite/lib/login" line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] }

Collapse
Posted by Dave Bauer on
You have an incomplete or inconsistent checkout from CVS.

The procedure subsite::package_keys is a core procedure and is included in a HEAD checkout from CVS.

If looks like you have other problems that you have not found yet.

First make sure your entire checkout is from HEAD and updated.

Second scan the error logs on startup for errors sourcing the tcl library files. You may have a conflict in a file that is unresolved, causing a parsing error.

Third, read the stack trace. It tells you exactly how subsite::package_keys was called.

command name "subsite::package_keys"
invalid command name "subsite::package_keys"
while executing
"subsite::package_keys"
(procedure "ad_conn" line 87)
invoked from within
"ad_conn subsite_node_id"
(procedure "ad_conn" line 91)
invoked from within
"ad_conn subsite_id"
(procedure "subsite::get_element" line 4)
invoked from within
"subsite::get_element -element object_id"
invoked from within
"if { ![exists_and_not_null package_id] } {
set subsite_id [subsite::get_element -element object_id]
}"

Its very explicit if you take the time to read the information provided.