[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgp-keyserver-folk
Subject:    [Pgp-keyserver-folk] Re: pksd 0.9.6 not running anymore. Why?
From:       Dan Egli <dan () shortcircuit ! dyndns ! org>
Date:       2003-04-11 5:46:43
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason Harris wrote:
| On Thu, Apr 10, 2003 at 09:59:44AM -0600, Dan Egli wrote:
|
|
|>Hey all. I'm encountering a funky error here. Perhaps someone could tell
|>me whats up?
|>
|>I've been running pks 0.9.6 for some time now. An up till a few days
|>ago, all was well. But lately, pksd doesn't want to run properly. I'm
|>wondering if it's a database size issue or something? In the past my DB
|>has only been several hundred megs. But when I checked the size of my db
|>currently it's 1.8GB. The symptoms are as follows:
|>
|>when I start pksd, it seems to start up ok, but never creates a socket
|>file, never attaches a socket file that is already present, and never
|>opens a listener port to accept web connections. My config file IS set
|>to accept www requests (see the file below).
|>
|>When I create a new, empty database and point the config there, it
|>creates the socket file fine, opens a listener port fine, etc... No
|>messages whatsoever in /var/log/messages to indicate whats up. I could
|>really use some help here?
|
|
| http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
|
| i.e., what does truss(1) (assuming FreeBSD (and sometimes Solaris))
output?

This is Linux and I have no truss command. I read your above document,
and I thought I was explaining it well enough. Yes I posted a guess, but
I did not say "Here is my problem, here is my guess as to the cause, how
do I fix this guess?". I said "this is my guess, but I am not positive.
If you have a better idea, I'm all ears".

I looked up truss, and it's equivalant Linux command is strace. Here's
the result of an strace:


execve("sbin/pksd", ["sbin/pksd", "/etc/pksd.conf"], [/* 19 vars */]) = 0
uname({sys="Linux", node="shortcircuit.dyndns.org", ...}) = 0
brk(0)                                  = 0x8096b8c
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=76870, ...}) = 0
old_mmap(NULL, 76870, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0HU\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1376438, ...}) = 0
old_mmap(NULL, 1217924, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40026000
old_mmap(0x40148000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x121000) = 0x40148000
old_mmap(0x4014d000, 9604, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014d000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
- -1, 0) = 0x40150000
munmap(0x40013000, 76870)               = 0
brk(0)                                  = 0x8096b8c
brk(0x8097b8c)                          = 0x8097b8c
brk(0)                                  = 0x8097b8c
brk(0x8098000)                          = 0x8098000
open("/etc/pksd.conf", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2257, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
- -1, 0) = 0x40013000
read(3, "pks_bin_dir /usr/local/pksd/bin\n"..., 4096) = 2257
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
rt_sigaction(SIGINT, {0x8059bd4, [], SA_RESTORER, 0x4004ccb8}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8059bd4, [], SA_RESTORER, 0x4004ccb8}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x8059bd4, [], SA_RESTORER, 0x4004ccb8}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x8059bd4, [], SA_RESTORER, 0x4004ccb8}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x805a590, [], SA_RESTORER, 0x4004ccb8}, NULL, 8) = 0
open("/var/pks_db/new_db/DB_CONFIG", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
open("/var/pks_db/new_db/__db_lock.share", O_RDWR|O_CREAT|O_EXCL, 0660)
= -1 EEXIST (File exists)
open("/var/pks_db/new_db/__db_lock.share", O_RDWR) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0660, st_size=729088, ...}) = 0
old_mmap(NULL, 729088, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x40151000
open("/var/pks_db/new_db/__db_log.share", O_RDWR|O_CREAT|O_EXCL, 0660) =
- -1 EEXIST (File exists)
open("/var/pks_db/new_db/__db_log.share", O_RDWR) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFREG|0660, st_size=32768, ...}) = 0
old_mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0x40013000
open("/var/pks_db/new_db/__db_mpool.share", O_RDWR|O_CREAT|O_EXCL, 0660)
= -1 EEXIST (File exists)
open("/var/pks_db/new_db/__db_mpool.share", O_RDWR) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0660, st_size=26214400, ...}) = 0
old_mmap(NULL, 26214400, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) =
0x40203000
select(0, NULL, NULL, NULL, {0, 1000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 2000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 4000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 8000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 64000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 128000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 256000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 512000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
[ for ever and ever ]
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)


And for all those who said to recover the database, that is not working.
I should have mentioned this before, but my standard startup procedure
is to run a recovery on the database then start pksd (incase the server
was shutdown incorrectly for whatever reason, or in case pksd crashed
and did not write the db out correctly before crashing).

I'm nearly 100% convinced it's a database problem because it works
beautifully with an empty database I create.

I am starting the process of exporting the entire database to pgp files
and then recreating the database and re-adding the pgp files, but if
someone has an idea that can fix the problem, I'm all ears!

Thank you,
Dan Egli
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+llbDxQEzeXtVwzoRAll2AKCchz8AZzkMhMeBdzkSbnzu9MxvjgCgmnrw
MIbGoC2wZu3DjP4tr0Cspj8=
=wcsN
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic