Forum OpenACS Development: Bootstraping error
[11/Jul/2001:16:39:07][4604.1][-main-] Notice: Loading QUERIES!! OpenACS - ben [11/Jul/2001:16:39:07][4604.1][-main-] Notice: Querying ' select distinct package_key from apm_package_versions where enabled_p='t';' [11/Jul/2001:16:39:07][4604.1][-main-] Notice: dbinit: sql (localhost::openacs-4): ' select distinct package_key from apm_package_versions where enabled_p='t' ' [11/Jul/2001:16:39:18][4604.1][-main-] Error: Server startup failed: Error during bootstrapping Entity: line 18: error: Extra content at the end of the document </queryset> ^ document was not well formed error while parsing XML while executing "ns_xml parse -persist $stuff_to_parse" (procedure "db_qd_internal_parse_init" line 4) invoked from within "db_qd_internal_parse_init $whole_file $file_tag" (procedure "db_qd_internal_load_queries" line 15) invoked from within "db_qd_internal_load_queries $stream $file_path" (procedure "db_qd_internal_load_cache" line 9) invoked from within "db_qd_internal_load_cache $file_path" (procedure "db_qd_load_query_file" line 2) invoked from within "db_qd_load_query_file $file" (procedure "apm_load_queries" line 25) invoked from within "apm_load_queries" [11/Jul/2001:16:39:18][4604.1][-main-] Notice: Sourcing files for postload... [11/Jul/2001:16:39:18][4604.1][-main-] Notice: Done.
Try looking backwards in the log file and see if you can find another error message. If I recall correctly, there will be an error message associated with particular query file that failed to parse. This will be in addition to the error that you see at the end of startup.
The first error message should indicate which .xql file failed to load correctly.
Yeah, we should be able to provide that ... I'll look into it.
Don - Yes it would be helpful if file that produced the error was logged.
The best way to find out in which file the error ocures is to set the parameter
true in the
ns_section ns/parameters of your configuration file.
Restart your server and tail the log file. Almost everything is now being logged. If this is not enough then also enable query logging by setting the
Verbose parameter to
On in the
That's OK, though, these queryfiles are simple enough so that once you
know which one's failing, finding the problem should be simple.
My apologies, and thanks for letting me know.