Forum OpenACS Q&A: Server startup failed: Error during bootstrapping

I have configured AOLserver/3.3.1 with POstgreSql 7.4.13
When starting the AOLserver i got the following error:
.
Server startup failed: Error during bootstrapping
command "ns_db" is not enabled
while executing
"ns_db pools"
(procedure "db_bootstrap_set_db_type" line 61)
invoked from within
"db_bootstrap_set_db_type database_problem"

Checked the following
1) .bashrc contains:

export PATH=/usr/local/bin/:/usr/local/pgsql/bin:$PATH
export D_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib

2)found possible cause

$ ldd /usr/local/aolserver3.3oacs/bin/nspostgres.so

output:
linux-gate.so.1 => (0xffffe000)
libpq.so.3 => not found
libc.so.6 => /lib/libc.so.6 (0xf7ea9000)
/lib/ld-linux.so.2 (0x56555000)

Strange: file libpq.so.3 is in $LD_LIBRARY_PATH

3) How can I recompile nspostgres.so?

Any suggestions?

Regards,
Ram

Collapse
Posted by Andrew Piskorski on
Most likely, you simply have an error in your AOLserver config file. Look at all the parts where you try to configure the database pools, and compare to a known-good config file.

Or you're starting AOLserver in such a way that it can't find your PostgreSQL libraries, as you imply above. How are you starting AOLserver? Have you verified that it is in fact seeing the environment variables above. I assume that the "D_LIBRARY_PATH" typo occurs only in your post above, not in your actual code.

Why are you using such ancient versions of AOLserver and PostgreSQL?

Collapse
Posted by Ram Mankoe on
Andrew,

Thanks for your reply.
1) AOLserver is started as follows:
/usr/local/aolserver3.3oacs/bin/nsd -f -t \
/web/projop/etc/config.tcl -u projop -g projop

2)
Indeed , it's een type error regarding to $LD_LIBRARY_PATH
3) Verified that it is in fact seeing the environment variables above.
4) I have installed project-open (see project-open.com) which refers to these 'old' AOLserver and PostgreSQL.
5) I shall compare my config to a known-good config file regarding to database pools.

Thanks and regards,
Ram

Collapse
Posted by Ram Mankoe on
Problem has been solved after changing the value of database pools.

Regards,
Ram