cycbuff - bad file description problem
Sylwester Zelazko
slz at polcard.com.pl
Fri Sep 21 10:52:39 UTC 2001
Hi,
i have problems with inn 2.3.2, i have configured cycbuff, made files
but can't initialize cycbuff file.
Here goes my config:
cycbuff.conf:
cycbuff:ONE:/var/spool/news/cycbuff/one:51200
metacycbuff:BIGAREA:ONE
storage.conf:
method cnfs {
newsgroups: *
class: 1
size: 0,3999
expires: 4d1s
options: BIGAREA
}
-rw-r--r-- 1 news news 52428800 Sep 18 08:13 one
When I try to run inn or i run 'sm' i'm getting this in news.err:
Sep 21 10:19:48 post sm[5315]: CNFS-sm: CNFSflushhead: write failed (-1
bytes): Bad file descriptor
Sep 21 10:20:16 post sm[5315]: SM storage method 'cnfs' failed initialization
Sep 21 10:20:23 post sm[5315]: SM one or more storage methods failed
initialization
fragment of strace output:
...
open("/var/spool/news/cycbuff/one", O_RDONLY) = 5
shmat(5, 0x2, 0x1) = ?
shmat(5, 0x2, 0x2) = ?
lseek(5, 0, SEEK_SET) = 0
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 192) =
192
lseek(5, 0, SEEK_SET) = 0
time([1001058090]) = 1001058090
getpid() = 4341
rt_sigaction(SIGPIPE, {0x401cfe08, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(4, "<60>Sep 21 09:41:30 sm[4341]: CN"..., 91, 0) = 91
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
lseek(5, 0, SEEK_SET) = 0
time(NULL) = 1001058090
write(5, "CBuf3\0\0\0ONE\0\0\0\0\0\0\0\0\0\0\0\0\0/var/spo"..., 192) = -1
EBADF (Bad file descriptor)
time([1001058090]) = 1001058090
...
System: Debian woody, kernel - i try different - 2.2.20pre6, 2.4.5, 2.4.9, 2.4.4, 2.2.19
--
Sylwester Zelazko
More information about the inn-workers
mailing list