Forum OpenACS Q&A: ecommerce doc "not found"

Collapse
Posted by Torben Brosten on

I've installed (and disabled) ecommerce hoping to read the package docs, but get a Request Error when linking from localhost/doc to localhost/doc/ecommerce.

  • The docs seem to exist in ../packages/ecommerce/www/doc/* as adp/tcl files instead of html files commonly found in the other package docs, suggesting they need to be interpreted by the request processor.
  • After enabling the package, I can use the API Broswer to browse package pages, but the doc directory (and files) don't show in any of the API Browser file "kind" areas.
  • Other package docs seem to display fine (except at least one of the payment gateways has a similar error)
  • I've cycled the package through enabling and "watch all files" with no change to the error.
  • I've read the docs via tty, but would really like to get a pretty version printed for annotating.

Error details: Request Error

Package ecommerce was not found.  May not be mounted.
    invoked from within
"apm_package_url_from_key_mem ecommerce"
    ("eval" body line 1)
    invoked from within
"eval $script"
    invoked from within
"ns_cache eval util_memoize $script {
	    list $current_time [eval $script]
	}"
    (procedure "util_memoize" line 20)
    invoked from within
"util_memoize "apm_package_url_from_key_mem $package_key""
    (procedure "apm_package_url_from_key" line 2)
    invoked from within
"apm_package_url_from_key "ecommerce""
    invoked from within
"set package_url [apm_package_url_from_key "ecommerce"]
"
    ("uplevel" body line 27)
    invoked from within
"uplevel {
    	  ad_page_contract {

    Index to documentation of the ecommerce package, a
    package to implement business-to-consumer web servi..."
    (procedure "code::tcl::/usr/local/www/dekka.com/openacs-4-6/packages/eco..." 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] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    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 "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file $path"
    (procedure "rp_internal_redirect" line 26)
    invoked from within
"rp_internal_redirect "/packages/$package_key/www/$path_tail""
    invoked from within
"if {![string compare [ad_conn path_info] "index.html"]} {
    rp_internal_redirect "/packages/acs-core-docs/www/index.adp"
} elseif {[file isdirectory..."
    (file "/usr/local/www/dekka.com/openacs-4-6/packages/acs-core-docs/www/index.vuh" line 11)
    invoked from within
"source [ad_conn file]"
    (procedure "rp_handle_tcl_request" line 3)
    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 "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file -noredirect -nodirectory  -extension_pattern ".vuh" "$root$prefix""
    ("uplevel" body line 3)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
	  ad_conn -set path_info  [string range $path [expr [string length $prefix] - 1] end]
	  rp_serve_abstract_file -noredirect -nodirectory  -e..."

Collapse
Posted by Torben Brosten on
ps. This is version 4.6.3.

Mounting package did not change the error. Also, tried placing a copy of the package doc folder to the main /www folder to bypass any package-specific settings. Still, results in error.

Am now going to start examining the code in the docs. Maybe some of the pkg parameters need to be set?

Collapse
Posted by Torben Brosten on
Hmm... The ecommerce docs show up normal after umounting, deleting and reloading ecommerce package.  Apparently there was some sort of unspecific/silent error during package loading/mounting --most likely attributable to other activities on the server that were significantly reducing available processing resources.