Failure while binding socket

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Failure while binding socket

Sir_Happy13
Hi,

I have installed sks 1.1.0 on ubuntu 8.10 and successfully imported the keydump from ftp://ftp.pramberger.at/services/keyserver/keydump/
Afterwards I tried to start the database but it failed with the error message:
Failure while binding socket.  Probably another socket bound to this address

Can someone tell me what I am doing wrong?

Here's the complete console log:
root@ubuntu:/root/Desktop/keydum# mv *.pgp /var/lib/sks/dump/
root@ubuntu:/root/Desktop/keydum# cd /usr/lib/sks/
root@ubuntu:/usr/lib/sks# ./sks_build.sh
Please select the mode in which you want to import the keydump:

1 - fastbuild
    only an index of the keydump is created and the keydump cannot be
    removed.

2 - normalbuild

    all the keydump will be imported in a new database. It takes longer
    time and more disk space, but the server will run faster (depending
    from the source/age of the keydump).
    The keydump can be removed after the import.

Enter enter the mode (1/2): 2
=== Running (fast)build... ===
Loading keys...done
DB time:  7.31 min.  Total time: 7.56 min.
Loading keys...done
DB time:  11.23 min.  Total time: 11.72 min.
Loading keys...done
DB time:  13.89 min.  Total time: 14.32 min.
Loading keys...done
DB time:  14.96 min.  Total time: 15.36 min.
Loading keys...done
DB time:  17.40 min.  Total time: 17.79 min.
Loading keys...done
DB time:  19.49 min.  Total time: 19.96 min.
Loading keys...done
DB time:  21.94 min.  Total time: 22.37 min.
Loading keys...done
DB time:  25.73 min.  Total time: 26.12 min.
Loading keys...done
DB time:  29.28 min.  Total time: 29.66 min.
Loading keys...done
DB time:  33.11 min.  Total time: 33.70 min.
Loading keys...done
DB time:  28.60 min.  Total time: 28.88 min.
=== Cleaning key database... ===
=== Building ptree database... ===
=== Done! ===
root@ubuntu:/usr/lib/sks# cd /usr/
root@ubuntu:/usr# sudo sks db
Fatal error: exception Failure("Failure while binding socket.  Probably another socket bound to this address")
root@ubuntu:/usr#



Thanks in advance!
__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

John Clizbe-3
[hidden email] wrote:
> Hi,
>
> I have installed sks 1.1.0 on ubuntu 8.10 and successfully imported the
> keydump from ftp://ftp.pramberger.at/services/keyserver/keydump/
> Afterwards I tried to start the database but it failed with the error
> message:
> Failure while binding socket.  Probably another socket bound to this address

<snip>

> root@ubuntu:/usr# sudo sks db
> Fatal error: exception Failure("Failure while binding socket. Probably
> another socket bound to this address")
> root@ubuntu:/usr#

Dunno. My troubleshooting list...

Anything else listening on port 11371? 'netstat -a |grep 11371'

Try starting sks after a reboot.

Try starting sks from the dir with the database dirs: /[usr|var]/lib/sks

What values are defined in sksconf?

See http://www.keysigning.org/sks/ for more info


--
John P. Clizbe                      Inet:John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. hkp://keyserver.gingerbear.net  or
     mailto:[hidden email]?subject=HELP

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"


_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Joseph Oreste Bruni-3
In reply to this post by Sir_Happy13

On Jan 26, 2009, at 4:42 PM, [hidden email] wrote:

> root@ubuntu:/usr# sudo sks db
> Fatal error: exception Failure("Failure while binding socket.  
> Probably another socket bound to this address")
> root@ubuntu:/usr#


Do you have another instance of SKS running perhaps? The "lsof" tool  
might be useful here.



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Unknown ack_policy in DB_ENV

Arthur Block
In reply to this post by Sir_Happy13
Hi,
(Sks 1.1, Opensuse 11.1 Berkeley db 4.6.21)
I managed compiling sks 1.1 successfully,
but database building fails:
---------------------------------------
/var/sks # sks_build.sh
=== Running fastbuild... ===
repmgr_set_local_site must be called before repmgr_start
Unknown ack_policy in DB_ENV->repmgr_set_ack_policy
illegal flag specified to DB_ENV->close
/usr/local/bin/sks_build.sh: line 11: 15104 Speicherzugriffsfehler  sks
fastbuild -n 10 -cache 100
Command failed unexpectedly. Bailing out
----------------------------------------
Any help or hints are  gratefully appreciated,
Arthur


_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Sir_Happy13
In reply to this post by Sir_Happy13
> Do you have another instance of SKS running perhaps? The "lsof" tool
> might be useful here.

I already checked this but nothing except the "grep sks" seemsdo be running. Here's the console log:
root@ubuntu:~# lsof | grep sks
root@ubuntu:~# ps aux | grep sks
root      6843  0.0  0.0   3244   804 pts/0    R+   22:48   0:00 grep sks
root@ubuntu:~#

Any ideas?
I have already set up Ubuntu for the third time. Everytime I fail with the socket already bound error message....

__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Joseph Oreste Bruni-3

On Jan 27, 2009, at 2:49 PM, [hidden email] wrote:

>> Do you have another instance of SKS running perhaps? The "lsof" tool
>> might be useful here.
>
> I already checked this but nothing except the "grep sks" seemsdo be  
> running. Here's the console log:
> root@ubuntu:~# lsof | grep sks
> root@ubuntu:~# ps aux | grep sks
> root      6843  0.0  0.0   3244   804 pts/0    R+   22:48   0:00  
> grep sks
> root@ubuntu:~#
>
> Any ideas?
> I have already set up Ubuntu for the third time. Everytime I fail  
> with the socket already bound error message....

Whatever port sks is trying to use is already in use by something. I  
can think of no other explanation.

First of all, is sks trying to bind to 11371? Or is it trying to bind  
to something else? Can you run "netstat -an" and see anything LISTEN-
ing on 11371 (assuming sks is configured to use that port)?




_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Sir_Happy13
In reply to this post by Sir_Happy13
> Whatever port sks is trying to use is already in use by something. I can think of no other explanation.
>
> First of all, is sks trying to bind to 11371? Or is it trying to bind to something else? Can you run "netstat -an" and see anything LISTEN-ing on 11371 (assuming sks is configured to use that port)?

Hi,

thanks for your reply.

Here's the console log of netstat -an | grep 11371 :
root@ubuntu:~# netstat -an | grep 11371
root@ubuntu:~#

So nothing seems to be running on that port.

I have neither changed anything in /etc/sks/sksconf nor anything in ubuntu itself. This is a fresh and clean installation of ubuntu 8.10. The only thing I did was a sudo apt-get install sks and then imported the keys using the shellscript.

I really go crazy!

Any further ideas what may have went wrong?

Thanks in advance!

____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

jack-sks-devel
On Wed, Jan 28, 2009 at 09:17:36AM +0100, [hidden email] wrote:
 
> Any further ideas what may have went wrong?

sks binds a couple of file sockets, so the sks process needs write permission
to the basedir it is running in.

"strace" is a very helpful tool in debugging these kinds of problems.

--Jack

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: F18B 13A3 6D06 D48A 598D  42EA 3D53 BDC8 7917 F802

_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel

attachment0 (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Sir_Happy13
In reply to this post by Sir_Happy13
> sks binds a couple of file sockets, so the sks process needs write
> permission
> to the basedir it is running in.
>
> "strace" is a very helpful tool in debugging these kinds of problems.

I used strace and it seems that /var/run/sks/db_com_sock does not exist.
But what to do now?
I have used the default ubuntu package and I did not delete the file. So the ubuntu package is fucked up?
Any ideas how to go on?

Here's the console output:
root@ubuntu:/usr/lib# strace sks db
execve("/usr/sbin/sks", ["sks", "db"], [/* 24 vars */]) = 0
brk(0)                                  = 0x87be000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0a000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51114, ...}) = 0
mmap2(NULL, 51114, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efd000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", 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\0P\31\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=83552, ...}) = 0
mmap2(NULL, 86284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee7000
mmap2(0xb7efb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7efb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libdb-4.6.so", 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\0\240}\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1234948, ...}) = 0
mmap2(NULL, 1238332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7db8000
mmap2(0xb7ee4000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b) = 0xb7ee4000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libm.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\0@4\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=149332, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db7000
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d91000
mmap2(0xb7db5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7db5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libdl.so.2", 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\0 \n\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9676, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d8d000
mmap2(0xb7d8f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7d8f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libpthread.so.0", 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\0000H\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=116457, ...}) = 0
mmap2(NULL, 98784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d74000
mmap2(0xb7d89000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb7d89000
mmap2(0xb7d8b000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d8b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\0\340g\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1425800, ...}) = 0
mmap2(NULL, 1431152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c16000
mmap2(0xb7d6e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158) = 0xb7d6e000
mmap2(0xb7d71000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d71000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c15000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c15ae0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7d6e000, 8192, PROT_READ)   = 0
mprotect(0xb7d89000, 4096, PROT_READ)   = 0
mprotect(0xb7d8f000, 4096, PROT_READ)   = 0
mprotect(0xb7db5000, 4096, PROT_READ)   = 0
mprotect(0xb7ee4000, 8192, PROT_READ)   = 0
mprotect(0x811c000, 4096, PROT_READ)    = 0
mprotect(0xb7f27000, 4096, PROT_READ)   = 0
munmap(0xb7efd000, 51114)               = 0
set_tid_address(0xb7c15b28)             = 6146
set_robust_list(0xb7c15b30, 0xc)        = 0
futex(0xbff27f10, 0x81 /* FUTEX_??? */, 1) = 0
rt_sigaction(SIGRTMIN, {0xb7d782e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7d78720, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="ubuntu", ...}) = 0
brk(0)                                  = 0x87be000
brk(0x87df000)                          = 0x87df000
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7bd7000
brk(0x8801000)                          = 0x8801000
sigaltstack({ss_sp=0x81711e0, ss_flags=0, ss_size=8192}, NULL) = 0
rt_sigaction(SIGSEGV, {0x8108ba3, [], SA_STACK|SA_NOMASK}, NULL, 8) = 0
readlink("/proc/self/exe", "/usr/sbin/sks", 256) = 13
stat64("/usr/sbin/sks", {st_mode=S_IFREG|0755, st_size=1209048, ...}) = 0
_llseek(0, 0, 0xbff27e5c, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
_llseek(1, 0, 0xbff27e4c, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
_llseek(2, 0, 0xbff27e4c, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
gettimeofday({1233166014, 930913}, NULL) = 0
getppid()                               = 6145
open("/dev/random", O_RDONLY|O_LARGEFILE) = 3
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7bb6000
uname({sys="Linux", node="ubuntu", ...}) = 0
stat64("/etc/sks/sksconf", {st_mode=S_IFREG|0644, st_size=849, ...}) = 0
open("/etc/sks/sksconf", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
_llseek(4, 0, [0], SEEK_CUR)            = 0
read(4, "# /etc/sks/sksconf\n#\n# The confi"..., 4096) = 849
read(4, "", 4096)                       = 0
close(4)                                = 0
rt_sigaction(SIGTERM, {0x8108c2d, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8108c2d, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x8108c2d, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGALRM, {0x8108c2d, [], 0}, {SIG_DFL}, 8) = 0
gettimeofday({1233166014, 935748}, NULL) = 0
getppid()                               = 6145
open("/var/log/sks/db.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
_llseek(4, 0, [0], SEEK_CUR)            = 0
time(NULL)                              = 1233166014
open("/etc/localtime", O_RDONLY)        = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f09000
read(6, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0"..., 4096) = 2309
_llseek(6, -28, [2281], SEEK_CUR)       = 0
read(6, "\nCET-1CEST,M3.5.0,M10.5.0/3\n", 4096) = 28
close(6)                                = 0
munmap(0xb7f09000, 4096)                = 0
write(4, "2009-01-28 19:06:54 Opening log\n", 32) = 32
time(NULL)                              = 1233166014
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(4, "2009-01-28 19:06:54 sks_db, SKS "..., 46) = 46
time(NULL)                              = 1233166014
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(4, "2009-01-28 19:06:54 Copyright Ya"..., 60) = 60
time(NULL)                              = 1233166014
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(4, "2009-01-28 19:06:54 Licensed und"..., 70) = 70
time(NULL)                              = 1233166014
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(4, "2009-01-28 19:06:54 http port: 1"..., 37) = 37
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(11371), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(6, 20)                           = 0
stat64("/var/run/sks/db_com_sock", 0xbff27d84) = -1 ENOENT (No such file or directory)
socket(PF_FILE, SOCK_STREAM, 0)         = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_FILE, path="/var/run/sks/db_com_sock"}, 26) = -1 ENOENT (No such file or directory)
write(2, "Fatal error: exception Failure(\""..., 111Fatal error: exception Failure("Failure while binding socket.  Probably another socket bound to this address")
) = 111
exit_group(2)                           = ?
Process 6146 detached
root@ubuntu:/usr/lib#
__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

jack-sks-devel
On Wed, Jan 28, 2009 at 07:15:07PM +0100, [hidden email] wrote:
> > sks binds a couple of file sockets, so the sks process needs write
 
> I used strace and it seems that /var/run/sks/db_com_sock does not exist.

IIRC, if it doesn't exist it will try to create it.

> But what to do now?

... snip ...
> bind(7, {sa_family=AF_FILE, path="/var/run/sks/db_com_sock"}, 26) = -1 ENOENT (No such file or directory)
... snip ...

Does the directory '/var/run/sks/' exist? Does the sks process have write access to it?
Can you think of other reasons why sks couldn't create the file?

> I have used the default ubuntu package and I did not delete the file. So the
> ubuntu package is fucked up?

Apparently.

--Jack

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: F18B 13A3 6D06 D48A 598D  42EA 3D53 BDC8 7917 F802

_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel

attachment0 (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

John Clizbe-3
In reply to this post by Sir_Happy13
[hidden email] wrote:
>> sks binds a couple of file sockets, so the sks process needs write
>> permission
>> to the basedir it is running in.
>>
>> "strace" is a very helpful tool in debugging these kinds of problems.
>
> I used strace and it seems that /var/run/sks/db_com_sock does not exist.
> But what to do now?

cd /var/run/sks

sks db & # to create db socket, db_com_sock

sks recon & # to create reconciliation socket, recon_com_sock

If there is an Ubuntu supplied script for starting the server, it should cd to
/var/run/sks before running either of the sks processes, the others I've seen do.

That done, there should be no need to run sks as root. I run as non-priv uid &
gid, sks.

Other than that, I have no idea what changes the Ubuntu folks made. The Debian
package seems to work for many.

--
John P. Clizbe                      Inet:John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. hkp://keyserver.gingerbear.net  or
     mailto:[hidden email]?subject=HELP

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"


_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel

signature.asc (694 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Johan van Selst
In reply to this post by Sir_Happy13
[hidden email] wrote:
> I used strace and it seems that /var/run/sks/db_com_sock does not exist.

No, the problem is that /var/run/sks/ does not exist. Create the
directory with appropriate permission for the user running sks and try
again?

> I have used the default ubuntu package and I did not delete the file.
> So the ubuntu package is fucked up?

I'm not familiar with the Ubuntu package. It could also be that the
package comes with a README or manual that will tell you what to do to
get get sks running. I can imagine that the standard key database may
not be a part of the binary package, so you might need to download and
install that manually as well.


Johan

_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel

attachment0 (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Sir_Happy13
In reply to this post by Sir_Happy13
Thank you so much Jack, John and Johan!
The problem was, as Johan stated, that /var/run/sks just does not exist. After creating it, the init script worked like a charm.

Thanks again!
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Failure while binding socket

Sir_Happy13
In reply to this post by Sir_Happy13
> And now, you need recon partners for your membership file?

Thanks for the offer. At the moment I just use the server for testing purposes. I'll come back to your offer later!
__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html



_______________________________________________
Sks-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/sks-devel