sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sks-devel] Re: debian sks start from init file fails


From: Gab
Subject: [Sks-devel] Re: debian sks start from init file fails
Date: Sat, 14 Mar 2009 07:01:35 +0100
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Andy Ruddock wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Teun Nijssen wrote:
>> on 2009-03-13 18:09 Andy Ruddock wrote the following:
>>> Phil Pennock wrote:
>>>> On 2009-03-13 at 08:44 +0100, Gab wrote:
>>>>> Hi!
>>>>> If i start sks with the usual debian way /etc/init.d/sks start or
>>>>> restart sksdb e sksrecon don't start living this error message:
>>>>>
>>>>>> address@hidden:~# /etc/init.d/sks start
>>>>>> Starting sks daemons: sksdb.. sksrecon.. done.
>>>>> Apparently go smooth but there's no server listening.
>>>>> If i restart it it says:
>>>>>
>>>>>> address@hidden:~# /etc/init.d/sks restart
>>>>>> Stopping sks daemons: sksrecon..start-stop-daemon: warning: failed to 
>>>>>> kill 16818: No such process
>>>>>>  sksdb..start-stop-daemon: warning: failed to kill 16815: No such process
>>>>>>  done.
>>>>>> Starting sks daemons: sksdb.. sksrecon.. done.
>>>>> If i launch sksdb& abd sksrecon& singulary all goes well:
>>>>>
>>>>>> tcp        0      0 0.0.0.0:11370           0.0.0.0:*               
>>>>>> LISTEN      0          134370      16673/sks       
>>>>>> tcp        0      0 0.0.0.0:11371           0.0.0.0:*               
>>>>>> LISTEN      0          134346      16671/sks
>>>>> I have executed one by one all commands inside sks_build.sh separately
>>>>> and all went well , i have never seen this behaviur .
>>>> Well, what about the logs, what do they say?
>>>> And what user owns all the files and which user is sks running as when
>>>> started by the init.d script?
>>>> Eg, if Debian is doing something like creating a Debian-sks user, then
>>>> you'll need to make sure that most of the sks directory area is
>>>> read-writeable by that user -- typically by making it owned by that
>>>> user.
>>> If the Debian install is anything like the Ubuntu one, then the pid
>>> files are stored in /var/run/sks/sksdb.pid & /var/run/sks/sksrecon.pid.
>>> The problem is that /var/run is mounted as a temporary filesystem and
>>> the sks sub-directory doesn't exist.
>>> You'll need to create the /var/run/sks directory, and set its owner to
>>> debian-sks before starting the daemons.
>>>
>>> I documented it here :
>>>
>>> http://tinyurl.com/az9w2h
>> I agree. I use the following lines, which look way more fun than yours :)
>>
>> mkdir -p `dirname "$SKSDBPID"`
>> chown debian-sks:debian-sks `dirname "$SKSDBPID"`
>>
>> Christoph, can you commit this for a new .deb package?
>>
>> cheers,
>>
>> teun
>>
> 
> More portable solution, I've updated my installation & documentation to
> match.
> 
> - --
> Andy Ruddock
> - ------------
> address@hidden (GPG Key ID 0xA622D452)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkm6vyYACgkQfSkWkaYi1FJv6gCgroBRrnD0oIFDV3pGrv3/Epng
> XlsAn3shBOyt2eKKKZRcOlyrQ4iEsQ4q
> =uju/
> -----END PGP SIGNATURE-----
> 
> 
All files in /var/run/sks are owned by debian-sks:

> srwxr-xr-x  1 debian-sks debian-sks    0 2009-03-14 06:51 db_com_sock
> srwxr-xr-x  1 debian-sks debian-sks    0 2009-03-14 06:52 recon_com_sock
> -rw-r--r--  1 debian-sks debian-sks    6 2009-03-14 03:30 sksdb.pid
> -rw-r--r--  1 debian-sks debian-sks    6 2009-03-14 03:30 sksrecon.pid

When i launch sks db & no problem , if i launch sks recon & i have this
error:

> Fatal error: exception Bdb.DBError("unable to join the environment")

Logs say not much abou the event :

> 2009-03-14 05:37:43 recon port: 11370
> 2009-03-14 05:37:43 Opening PTree database
> 2009-03-14 05:37:43 DB closed
> 2009-03-14 06:52:05 Opening log
> 2009-03-14 06:52:05 sks_recon, SKS version 1.1.0
> 2009-03-14 06:52:05 Copyright Yaron Minsky 2002-2003
> 2009-03-14 06:52:05 Licensed under GPL.  See COPYING file for details
> 2009-03-14 06:52:05 recon port: 11370
> 2009-03-14 06:52:05 Opening PTree database
> 2009-03-14 06:52:05 DB closed

The debug level is 8.

- --
sec   1024D/BC4F9423 2008-12-05
      Key fingerprint = 36C6 E257 2801 46E7 69A7  8721 F502 1342 BC4F 9423
uid                  Gabriele XXX (Mail Account Autistici)
<address@hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkm7SD8ACgkQ9QITQrxPlCPwagCgg2ImSwl1YMunBq9Ll3WEjhlZ
U5wAnRdQWS/W748KnlBWk5+dF6QmQ17+
=eV5h
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]