Forum .LRN Q&A: Re: Server startup failed: Error during bootstrapping

Collapse
Posted by Kenneth Wyrick on
Gustaf wrote in a mail:
maybe, this is the problem.

Let us recompile the DB driver:
cd /usr/local/src/modules/nsdbpg
export PG=/usr/include/postgresql
make
make install

and restart the instance.

Now we see;
[07/May/2021:18:51:49][32715.7fbbca3c1740][-main:litli-] Notice: nsdbpg: version 2.4 loaded, based on PostgreSQL 13.2 (Ubuntu 13.2-1.pgdg18.04+1) and libbpq 130002

and the error from above is gone.

There is later some error

[07/May/2021:18:51:49][32715.7fbbca3c1740][-main:litli-] Error: Error sourcing /var/www/litli/packages/acs-tcl/tcl> /site-nodes-procs.tcl:
: invalid command name "with_catch"
: while executing
: "with_catch errmsg {

which hints at a version mismatch ...
The function "with_catch" is deprecated and not called by recent code.
You should know better than me, why this is used.
In the NaviServer config file of this site
/usr/local/ns/config-litli.tcl you find the following section, where the deprecated code can be activated.

ns_section ns/server/${server}/acs {
ns_param NsShutdownWithNonZeroExitCode 1
# ns_param WithDeprecatedCode 0
# ns_param LogIncludeUserId 1
#
}

The site seems to work despite this error.