[EMAIL PROTECTED]:/usr/local/aolserver/bin#
[20/Oct/2003:13:51:30][12277.1024][-main-]
Notice: tbrown.tcl: starting to read config file...
[20/Oct/2003:13:51:30][12277.1024][-main-] Fatal: config: script error:
/usr/loc
al/pgsql/lib/libpq.so.2: can't stat `/usr/local/pgsql/lib/libpq.so.2'
(Permissio
n denied).
12280: find library=libz.so.1; searching
12280: search
path=i586/mmx:i586:mmx::/usr/local/pgsql/lib/i586/mmx:/usr/local
/pgsql/lib/i586:/usr/local/pgsql/lib/mmx:/usr/local/pgsql/lib
(LD_LIBR
ARY_PATH)
12280: trying file=i586/mmx/libz.so.1
12280: trying file=i586/libz.so.1
12280: trying file=mmx/libz.so.1
12280: trying file=libz.so.1
12280: trying file=/usr/local/pgsql/lib/i586/mmx/libz.so.1
12280: trying file=/usr/local/pgsql/lib/i586/libz.so.1
12280: trying file=/usr/local/pgsql/lib/mmx/libz.so.1
12280: trying file=/usr/local/pgsql/lib/libz.so.1
12280: search cache=/etc/ld.so.cache
12280: trying file=/usr/lib/libz.so.1
12280:
12280: find library=libc.so.6; searching
12280: search path=i586/mmx:i586:mmx: (LD_LIBRARY_PATH)
12280: trying file=i586/mmx/libc.so.6
12280: trying file=i586/libc.so.6
12280: trying file=mmx/libc.so.6
12280: trying file=libc.so.6
12280: search cache=/etc/ld.so.cache
12280: trying file=/lib/libc.so.6
12280:
12280:
12280: calling init: /lib/libc.so.6
12280:
12280:
12280: calling init: /usr/lib/libz.so.1
12280:
12280:
12280: initialize program: /usr/bin/file
12280:
12280:
12280: transferring control: /usr/bin/file
12280:
12280:
12280: calling fini: /usr/lib/libz.so.1
12280:
12280:
12280: calling fini: /lib/libc.so.6
12280:
while executing
"exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2"
invoked from within
"ns_log Notice [exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2]"
12276:
12276: calling fini: /lib/libdl.so.2
12276:
12276:
12276: calling fini: /lib/libpthread.so.0
12276:
12276:
12276: calling fini: /lib/libm.so.6
12276:
12276:
12276: calling fini: /lib/libnss_files.so.2
12276:
12276:
12276: calling fini: /lib/libnss_compat.so.2
12276:
12276:
12276: calling fini: /lib/libnsl.so.1
12276:
12276:
12276: calling fini: /lib/libc.so.6
12276:****** Here is the 2nd run, with Andrew Piskorski's fix. Changed nsadmin's default group to "web."
[EMAIL PROTECTED]:/usr/local/aolserver/bin#
[20/Oct/2003:14:03:59][12349.1024][-main-] Notice: tbrown.tcl: starting to
read config file...
[20/Oct/2003:14:04:00][12349.1024][-main-] Fatal: config: script error:
/usr/local/pgsql/lib/libpq.so.2: symbolic link to libpq.so.2.2
12352: find library=libz.so.1; searching
12352: search
path=i586/mmx:i586:mmx::/usr/local/pgsql/lib/i586/mmx:/usr/local/pgsql/lib/i586:/usr/local/pgsql/lib/mmx:/usr/local/pgsql/lib
(LD_LIBRARY_PATH)
12352: trying file=i586/mmx/libz.so.1
12352: trying file=i586/libz.so.1
12352: trying file=mmx/libz.so.1
12352: trying file=libz.so.1
12352: trying file=/usr/local/pgsql/lib/i586/mmx/libz.so.1
12352: trying file=/usr/local/pgsql/lib/i586/libz.so.1
12352: trying file=/usr/local/pgsql/lib/mmx/libz.so.1
12352: trying file=/usr/local/pgsql/lib/libz.so.1
12352: search cache=/etc/ld.so.cache
12352: trying file=/usr/lib/libz.so.1
12352:
12352: find library=libc.so.6; searching
12352: search
path=i586/mmx:i586:mmx::/usr/local/pgsql/lib (LD_LIBRARY_PATH)
12352: trying file=i586/mmx/libc.so.6
12352: trying file=i586/libc.so.6
12352: trying file=mmx/libc.so.6
12352: trying file=libc.so.6
12352: trying file=/usr/local/pgsql/lib/libc.so.6
12352: search cache=/etc/ld.so.cache
12352: trying file=/lib/libc.so.6
12352:
12352:
12352: calling init: /lib/libc.so.6
12352:
12352:
12352: calling init: /usr/lib/libz.so.1
12352:
12352:
12352: initialize program: /usr/bin/file
12352:
12352:
12352: transferring control: /usr/bin/file
12352:
12352:
12352: calling fini: /usr/lib/libz.so.1
12352:
12352:
12352: calling fini: /lib/libc.so.6
12352:
while executing
"exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2"
invoked from within
"ns_log Notice [exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2]"
12348:
12348: calling fini: /lib/libdl.so.2
12348:
12348:
12348: calling fini: /lib/libpthread.so.0
12348:
12348:
12348: calling fini: /lib/libm.so.6
12348:
12348:
12348: calling fini: /lib/libnss_files.so.2
12348:
12348:
12348: calling fini: /lib/libnss_compat.so.2
12348:
12348:
12348: calling fini: /lib/libnsl.so.1
12348:
12348:
12348: calling fini: /lib/libc.so.6
12348:****** The server log shows that uid=1003 (nsadmin) is still set to group 103 (nsadmin) rather than group 102 (web) after applying Andrew's fix to /etc/password
/etc/password - nsadmin:x:1003:102::/usr/local/aolserver:/bin/bash
server.log -
[20/Oct/2003:13:41:59][12171.1024][-main-] Notice: nsmain:
AOLserver/3.3.1+ad13 starting
[20/Oct/2003:13:41:59][12171.1024][-main-] Notice: nsmain:
security info: uid=1003, euid=1003, gid=103, egid=103Tom
At 11:36 PM 10/20/03 +1000, you wrote:
insert at the top of your config file the lines
ns_log Notice [exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2] ns_log Notice [exec /usr/bin/file /usr/local/pgsql/lib/libpq.so.2.2] ns_log Notice [exec /bin/ls -lF /usr/local/pgsql/lib/] exit
(assuming those paths are correct for your "file" and "ls") and tell us what the output is...
On Monday, October 20, 2003, at 01:29 PM, Tom Brown wrote:
At 10:45 AM 10/13/03 -0500, you wrote:+---------- On Oct 12, Tom Brown said: | I am running Aolserver (3.3.1_ad13) without the OACS system. I created an | aolserver config file using the nspostgres.so driver, version 1.6, | 2002/12/16, and code from OpenACS' sample aolserver config. I am starting | the server with nsd-postgres.
Are you running AOLserver chrooted?
No.
What user does AOLserver run as?
nsadmin
Does that user have read and execute access to /, /usr, /usr/local, /usr/local/pgsql, and /usr/local/pgsql/lib?
User "nsadmin" has its own group, "nsadmin", and is a member of group "web".
/ - owner, root; group, root; perms, 40755 /usr - user, root; group, root; perms, 40755 /usr/local - owner, nsadmin; group, nsadmin; perms, 40755 /usr/local/pgsql - owner, postgres; group, web; perms, 40750 /usr/local/pgsql/lib - owner, postgres; group, web; perms, 40755
Does that user have read access to /usr/local/pgsql/lib/libpq.so.2?
Not as user, but as group. /usr/local/pgsql/lib/libpq.so.2 is a link to /usr/local/pgsql/lib/libpq.so.2.2.
libpq.so.2 - owner, postgres; group, web; perms, 100755 libpq.so.2.2 - owner, postgres; group, web; perms, 100755
Tom
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
