Forum OpenACS Q&A: Re: Problem upgrading oacs-5.8 to oacs-5.9

Collapse
Posted by Claudio Pasolini on
I'm having trouble upgrading another 5.8 instance to oacs-5-9-1.

I installed Naviserver, PostgreSQL etcetera using the latest install-ns.sh script on a fresh Ubuntu 16.04.

First of all I upgraded the instance to the latest oacs-5-8-1, restarted the instance and verified that there were no errors in the error.log. Then I copied the 5.9.1 core packages over the 5.8.1 ones and tried to upgrade locally, but executing /acs-admin/apm/packages-install?operation=upgrade I got the following error:

no such key: word
    while executing
"nsv_get ad_page_contract_filters $filter"
    (procedure "ad_page_contract_filter_priority" line 2)
    invoked from within
"ad_page_contract_filter_priority $flag"
    (procedure "ad_page_contract" line 133)

It seems that ad_page_contract is broken. I then restarted the instance and retried but got the following from /acs-admin/install:

invalid command name "::xo::db::sql::site_node"
    while executing
"::xo::db::sql::site_node node_id -url /"
    invoked from within
"next "
    invoked from within
"ns_cache_eval xo_site_nodes id-$url { next }"
    (procedure ":get_node_id" line 2)
    invoked from within
":get_node_id -url $url"
    (procedure "get" line 10)
    invoked from within
"::xo::site_node get -url $url -node_id $node_id"
    (procedure "::nsf::procs::site_node::get" line 2)
    invoked from within
"site_node::get -url $url"
    (procedure "::nsf::procs::site_node::closest_ancestor_package" line 14)
    invoked from within
"site_node::closest_ancestor_package  -node_id [ad_conn node_id]  -package_key [subsite::package_keys]  -include_self  -element "node_id""
    (procedure "ad_conn" line 131)
    invoked from within
"ad_conn subsite_node_id"
    (procedure "ad_conn" line 135)
    invoked from within
"ad_conn subsite_id"
    (procedure "::nsf::procs::template::resource_path" line 8)
    invoked from within
"template::resource_path -type templates -style $style -relative"
    (procedure "template::themed_template" line 7)
    invoked from within
"template::themed_template [file rootname $relative_name]"
    (procedure "adp_parse_ad_conn_file" line 13)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
                $handler
            } ad_script_abort val {
                # do nothing
            }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "::nsf::procs::rp_serve_abstract_file" line 60)
    invoked from within

Something must be changed from the last time I upgraded.