Thread View: news.software.nntp
14 messages
14 total messages
Started by franconews
Mon, 09 Jul 2001 20:09
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: franconews
Date: Mon, 09 Jul 2001 20:09
Date: Mon, 09 Jul 2001 20:09
10 lines
1513 bytes
1513 bytes
Dans l'article <0vd77afhon.fsf@cs.uni-magdeburg.de>, "Roland Jesse" <jesse@cs.uni-magdeburg.de> a ๏ฟฝcrit : > innfeed[77550]: CNFS-sm: CNFSflushhead: write failed (-1 bytes): Bad > file descriptor Jul 9 13:48:02 nntp2 innfeed[77550]: SM storage I have the same problem, it happened when I tried to add another file buffer. It seems like a limitation from the system on the number of file descriptors.
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Jeffrey M. Vinocur
Date: Tue, 10 Jul 2001 11:24
Date: Tue, 10 Jul 2001 11:24
15 lines
1461 bytes
1461 bytes
In article <0vhewldsdz.fsf@cs.uni-magdeburg.de>, Roland Jesse <jesse@cs.uni-magdeburg.de> wrote: > >The MAXUSERS setting in the kernel configuration file is >increased from 32 to 128 which should provide plenty of file >descriptors for the system. Mmm. You might want to read about 'rlimitnofile' in inn.conf. -- Jeffrey M. Vinocur jeff@litech.org
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Jeffrey M. Vinocur
Date: Tue, 10 Jul 2001 15:32
Date: Tue, 10 Jul 2001 15:32
15 lines
1496 bytes
1496 bytes
In article <0vd778dexv.fsf@cs.uni-magdeburg.de>, Roland Jesse <jesse@cs.uni-magdeburg.de> wrote: > >Isn't it possible that this is caused by something else than the file >descriptor limit? Oh, quite possibly. (I don't know anything about CNFS, though, so I can't help you there. Somebody suggested file descriptors, though.) -- Jeffrey M. Vinocur jeff@litech.org
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Russ Allbery
Date: Tue, 10 Jul 2001 15:33
Date: Tue, 10 Jul 2001 15:33
18 lines
1858 bytes
1858 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes:
> Isn't it possible that this is caused by something else than the file
> descriptor limit? The error occurs at the *first* cycbuff the server
> tries to initialise.
What I don't understand is why innfeed wouldn't be able to initialize the
storage subsystem when innd presumably managed fine. Is there some sort
of system-wide file descriptor limit that you're running into? (Are you
using tradindexed? How big is your fd cache if you are? How many total
cycbuffs do you have?)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Russ Allbery
Date: Wed, 11 Jul 2001 08:19
Date: Wed, 11 Jul 2001 08:19
26 lines
2072 bytes
2072 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes:
> Russ Allbery <rra@stanford.edu> writes:
>> What I don't understand is why innfeed wouldn't be able to initialize
>> the storage subsystem when innd presumably managed fine.
> Me neither. :)
Hm. Did innd claim to have initialized the cycbuffs without any trouble?
Do you get reasonable output from cnfsstat?
>> (Are you using tradindexed? How big is your fd cache if you are? How
>> many total cycbuffs do you have?)
> I am using CNFS only with a total of 15 cycbuffs. That's the
> cycbuff.conf:
How about overview; are you using tradindexed? That can eat a lot of file
descriptors, which is why I ask.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Russ Allbery
Date: Wed, 11 Jul 2001 13:09
Date: Wed, 11 Jul 2001 13:09
26 lines
2169 bytes
2169 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes:
> Russ Allbery <rra@stanford.edu> writes:
>> Hm. Did innd claim to have initialized the cycbuffs without any
>> trouble?
> innd does not claim anything about cycbuffs. From news.notice:
How very strange. Okay, what does your storage.conf look like? This:
> news.nntp2 ~ % cnfsstat
> Class LOCAL for groups matching "unimd.*"
> Illegal division by zero at /usr/local/news/bin/cnfsstat line 289, <STOR> chunk 98.
definitely argues that innfeed isn't lying and your cycbuffs really aren't
initialized. What I don't understand then is why innd is apparently quite
happy.
Has anything written anything into the cycbuffs?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Wed, 11 Jul 2001 13:27
Date: Wed, 11 Jul 2001 13:27
31 lines
2396 bytes
2396 bytes
Russ Allbery <rra@stanford.edu> writes: > Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > > > Isn't it possible that this is caused by something else than the file > > descriptor limit? The error occurs at the *first* cycbuff the server > > tries to initialise. > > What I don't understand is why innfeed wouldn't be able to initialize the > storage subsystem when innd presumably managed fine. Is there some sort > of system-wide file descriptor limit that you're running into? (Are you > using tradindexed? How big is your fd cache if you are? How many total > cycbuffs do you have?) > I don't think it can be an fdlimit issue... if it hadn't managed to open the file it should have logged "ERROR opening '...'". My reading says the file has opened (and been opened O_RDONLY), the write then fails (the code does this, write to read only fds), so it must think the header is bogus. Drop a debugger on it, stop in CNFSinit_disks and print out *rpx after the read. I guess a useful debugging change would be to log rpx.magic if we don't like what we see. -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Thu, 12 Jul 2001 04:56
Date: Thu, 12 Jul 2001 04:56
38 lines
2942 bytes
2942 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > Alex Kiernan <alexk@demon.net> writes: > > > Drop a debugger on it, stop in CNFSinit_disks and print out *rpx after > > the read. > > INN was compiled without debugging switched on. What I can do easily, > though, is to run innfeed with ktrace. The result does not tell me > that much. Here is the part of the log after reading the config files > (inn.conf, storage.conf, cycbuff.conf) up until the error message: > > ------------------------------------------------------------------- > ... > 634 innfeed CALL open(0x8090010,0,0x460) > 634 innfeed NAMI "/articles/one" > 634 innfeed RET open 4 > 634 innfeed CALL fcntl(0x4,0x1,0) > 634 innfeed RET fcntl 0 > 634 innfeed CALL fcntl(0x4,0x2,0x1) > 634 innfeed RET fcntl 0 > 634 innfeed CALL lseek(0x4,0,0,0,0) > 634 innfeed RET lseek 0 > 634 innfeed CALL read(0x4,0xbfbff590,0xc0) > 634 innfeed GIO fd 4 read 192 bytes > "\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\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\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\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\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\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\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\0\0\0" OK, so they're definately not getting initialised; can you grab a similar chunk from when innd starts up? -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Thu, 12 Jul 2001 09:22
Date: Thu, 12 Jul 2001 09:22
32 lines
2500 bytes
2500 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > Alex Kiernan <alexk@demon.net> writes: > > > OK, so they're definately not getting initialised; can you grab a > > similar chunk from when innd starts up? > > I would love to, but innd does not seem to try to open cycbuff > /articles/one. Output from "ktrace innd": > You need to trace the forked process (or run with -d), the storage manager doesn't get initialised until after the fork. > I don't know about all these /dev/null open()s. They're innd reserving fds so that outgoing feeds don't eat too many. > But innd is not even trying to open /articles et al but only > /var/spool/news/articles. That's probably because of > > patharticles: /var/spool/news/articles > > in inn.conf. But isn't that value supposed to be used for storage > methods other than CNFS, only? There is a innd core file in > /var/spool/news/articles. It changes directory into there. -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Russ Allbery
Date: Thu, 12 Jul 2001 10:43
Date: Thu, 12 Jul 2001 10:43
19 lines
2085 bytes
2085 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes:
> Alex Kiernan <alexk@demon.net> writes:
>> You need to trace the forked process (or run with -d), the storage
>> manager doesn't get initialised until after the fork.
> Ok, I did a "ktrace innd -d" than. That still does not log anything
> regarding inn accessing a cycbuff. But it quits after a permission
> warning:
You need to ktrace -d inndstart instead, or otherwise it can't bind to the
network socket (which is what the RCreader error is about).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Fri, 13 Jul 2001 07:17
Date: Fri, 13 Jul 2001 07:17
29 lines
2544 bytes
2544 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > Russ Allbery <rra@stanford.edu> writes: > > > You need to ktrace -d inndstart instead, or otherwise it can't bind to the > > network socket (which is what the RCreader error is about). > > Both, "ktrace inndstart" and "ktrace -d inndstart" don't say much but > only: > `ktrace -d -i' possibly (I'm guessing from the man page)? > 13330 ktrace RET ktrace 0 > 13330 ktrace CALL execve(0xbfbff31c,0xbfbff828,0xbfbff830) > 13330 ktrace NAMI "/usr/local/news/bin/inndstart" > 13330 ktrace NAMI "/usr/libexec/ld-elf.so.1" > > That's not very verbose, though. Passing "-d" to inndstart prints out > "Jul 12 13:28:59 innfeed[13409]: Storage manager initialization > failed" but still fails to log more than the above. > An alternate approach, change the port innd binds to in inn.conf (so that the bind doesn't fail), then run innd directly as the news user. -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Fri, 13 Jul 2001 09:11
Date: Fri, 13 Jul 2001 09:11
31 lines
2567 bytes
2567 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > Alex Kiernan <alexk@demon.net> writes: > > > An alternate approach, change the port innd binds to in inn.conf (so > > that the bind doesn't fail), then run innd directly as the news user. > > That makes ktrace verbose as hell. :) But still no access to any files > in /articles by innd, though. > Any CNFS stuff getting logged by innd at all? > As the error message in news.notices says: > > Jul 13 10:45:28 nntp2 innfeed[14873]: CNFS-sm: CNFSflushhead: write failed (-1 bytes): Bad file descriptor > > Isn't it more likely that innfeed is the cause of error here? No. > Tracing that one get's us back to the following, though (which looks > way too familiar): > innd is responsible for initialising your cnfs buffers, they're clearly not initialised (either that or your OS is todged). -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Alex Kiernan
Date: Fri, 13 Jul 2001 10:40
Date: Fri, 13 Jul 2001 10:40
27 lines
2609 bytes
2609 bytes
Roland Jesse <jesse@cs.uni-magdeburg.de> writes: > Alex Kiernan <alexk@demon.net> writes: > > > Any CNFS stuff getting logged by innd at all? > > Not that I find anything. Looking for cnfs in the ktrace log file only > reveals entries from log files that are read in. > It really sounds like innd doesn't think it should be initialising your buffers, i.e. its something config oriented. > > innd is responsible for initialising your cnfs buffers, they're > > clearly not initialised (either that or your OS is todged). > > Can the cycbuff initialization be done by a manual innd invocation? > The system is a recent 4.3-stable FreeBSD and operates > normal. Personally, I do not suspect anything wrong on that side. > Nor do I really (although I did actually find a bug in Solaris 7 & 8's NFS implementation using this exact chunk of code). -- Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFSflushhead: write failed (-1 bytes): Bad file descriptor
Author: Russ Allbery
Date: Thu, 19 Jul 2001 19:26
Date: Thu, 19 Jul 2001 19:26
17 lines
2309 bytes
2309 bytes
Roland Jesse <jesse@mail.cs.uni-magdeburg.de> writes:
> Pointers to messed up config settings that may lead to the error of
> innd not initialising cycbuff files are still very much appreciated.
The main thing that would do it is having storageapi set to false in
inn.conf with a version of INN older than 2.3.
Other than that, it would have to be something in storage.conf or
cycbuff.conf, but I can't think of what it would be.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads