Forum OpenACS Q&A: Aolserver startup problems

Collapse
Posted by mark rohn on
I'm still having problems trying to start the Aolserver. The latest
error
is

Warning: no such symbol "Ns_moduleInit" in module
"/home/nsadmin/aolserver/bin/postres.so"
Fatal: could not load: postgres.so?

Thanks
Mark

Collapse
Posted by Roberto Mello on
What AOLserver version are you using ?

Did you grab the driver source, edited the Makefile to point to your libraries and then compiled it ?

Did you copy it to the AOLserver bin directory ?

What version of PostgreSQL are you running ?

Collapse
Posted by Brent Fulgham on

I got bit by this one, too, initially.

Don't put the postgres module definition under "ns/drivers".

Instead, put it under:

ns_section "ns/db/drivers"
ns_param postgres nspostgres.so

That should fix the problem.

Collapse
Posted by mark rohn on
Roberto

I'm using AOLserver version 3.0 rc2.

Yes, I did grab the driver source and I changed the following
NSHOME=/usr/local/src/aolserver3_0rc2
PGLIB=/usr/local/pgsql/lib
PGINC=/usr/local/pgsql/include
The drive complied without any errors and produced the postgres.so file

Yes, after postgres.so was complied I placed it in the /home/nsadmin/aolserver/bin directory

I'm running Postgres version 7.0 beta3 which was complied from source and does work. I'm able to create databases and insert tables.

P.S. Brent I tried what you suggest but it did't work at all. But thanks for responding I do appreciate the help.

Thanks
Mark

Collapse
Posted by Brent Fulgham on
I'm not out of ideas yet!  Two more potential gotchas.

1.  With PostgreSQL 7.0beta3 (or higher) I found that I had to link to libcrypt (so add -lcrypt to the Makefile).

2.  With the PostgreSQL 7.0beta3 update, I found a few symlinks in /usr/lib were broken (namely libpq++.so and libpq.so).  Update them to point to the right place (libpq.so.2.1 and libpq++.so.3.1, IIRC).

Are you seeing anything interesting in the Logfile besides the Ns_ModuleInit error?  I must admit, I'm surprised my first suggestion didn't work.  See, the new driver source for nspostgres.so does not contain the "Ns_ModuleInit" declaration.  That's why it doesn't work if you put in under the regular "modules" section.  Do you maybe have it listed in both places?

Collapse
Posted by mark rohn on
Brent,
      Before we go any further the postgres source code that I grabed from the web was version 1.01. Is this the correct version or have I got old stuff

Thanks
Mark

Collapse
Posted by mark rohn on
Brent,

Better yet here is my server log.

[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: AOLserver/3.0rc2 starting.
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: security info: uid=504, euid=504, gid=505, egid=505
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]logexpanded = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]dev = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]debug = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]maxbackup = 10
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]stacksize = 65536
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/threads]stacksize = 65536
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/threads]mutexmeter = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]shutdowntimeout = 20
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]iobufsize = 16000
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]schedmaxelapsed = 2
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]listenbacklog = 32
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]dnscache = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]dnscachetimeout = 60
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]dstringcachemaxentries = 10
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]dstringcachemaxsize = 3072
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]checkexitcode = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]keepalivetimeout = 30
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/parameters]maxkeepalive = 100
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]realm = server1
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]enableaolpress = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]sendfdthreshold = 2048
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxconnections = 100
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxdropped = 0
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]directoryfile = index.adp,index.html,index.htm,index.tcl
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]pageroot = /web/server1/www
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]directorylisting = none
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]directoryproc = ""
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]directoryadp = ""
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]globalstats = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxurlstats = 1000
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]urlstats = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]connsperthread = 0
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]minthreads = 0
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxthreads = 20
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]threadtimeout = 120
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxheaders = 16384
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxline = 8192
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]maxpost = 65536
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]flushcontent = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]checkmodifiedsince = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1]headercase = preserve
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]mmap = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]cache = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]cachemaxsize = 5120000
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]cachemaxentry = 8192
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]directoryfile = index.adp,index.html,index.htm,index.tcl
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/fastpath]pageroot = /web/server1/www
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]autoclose = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]debug = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]library = /web/server1/tcl
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]sharedlibrary = /home/nsadmin/aolserver/modules/tcl
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]statlevel = 0
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]statmaxbuf = 100
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/tcl]nsvbuckets = 8
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]errorpage = ""
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]startpage = ""
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]enableexpire = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]enabledebug = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]debuginit = ns_adp_debuginit
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]defaultparser = adp
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]taglocks = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]cache = on
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]threadcache = off
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: conf: [ns/server/server1/adp]cachesize = 5120000
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/postgres.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: PostgreSQL loaded.
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: nsd.adp: mapped /*.adp
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/nssock.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/nscp.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: nscp: listening on 192.168.1.102:9999
[12/Apr/2000:09:16:37][10876.1024][-main-] Warning: nscp: no authorized users
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/nslog.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: nslog: opened: /home/nsadmin/aolserver/servers/server1/modules/nslog/access.log
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/nscgi.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Notice: loading: /home/nsadmin/aolserver/bin/nsperm.so
[12/Apr/2000:09:16:37][10876.1024][-main-] Warning: no such symbol "Ns_ModuleInit" in module "/home/nsadmin/aolserver/bin/postgres.so"
[12/Apr/2000:09:16:37][10876.1024][-main-] Fatal: could not load: postgres.so

Collapse
Posted by Brent Fulgham on
Okay Mark,

I've looked at your nsd.tcl file.  You are listing the postgres driver twice:  Once in the "ns/server/${server}/modules" stanza, and once under the "ns/db/drivers" stanza.  The bad one under the "modules" stanza is causing you the loading error.  Remove that line (i.e., line # 195) and it should work fine.

Good luck.

Collapse
Posted by mark rohn on
IT WORKS!!!!!!!!!!!!!!

Thanks
Mark