Thread View: news.software.nntp
5 messages
5 total messages
Started by Jerry Stratton
Sat, 29 Jun 2002 00:55
innd hangs on startup on Mac OS X?
Author: Jerry Stratton
Date: Sat, 29 Jun 2002 00:55
Date: Sat, 29 Jun 2002 00:55
81 lines
3585 bytes
3585 bytes
I've compiled inn 2.3.3 on Mac OS X 10.1.5; it appears to start fine
with rc.news and with inndstart. The following is in the log
"~news/log/news.notice" for each startup:
Jun 28 13:10:11 cerebus innd: SERVER descriptors 256
Jun 28 13:10:11 cerebus innd: SERVER outgoing 243
Jun 28 13:10:11 cerebus innd: SERVER ccsetup control:12
Jun 28 13:10:11 cerebus innd: SERVER lcsetup localconn:14
Jun 28 13:10:11 cerebus innd: SERVER rcsetup remconn:4
ps -axe | grep innd shows innd running:
759 ?? Rs 4:01.98 /usr/local/news/bin/innd -p4
PATH=/usr/local/news/bin
If I attempt to connect via telnet to port 119, I can connect, but do
not receive any response from innd:
telnet cerebus 119
Trying 199.106.12.16...
Connected to cerebus.sandiego.edu.
Escape character is '^]'.
At this point, nothing happens; it appears to hang, and the only way
out is to use that escape character (CTRL-C, CTRL-D, CTRL-X do not
work.) If I kill the innd process, telnetting to port 119 results in
a refused connection, indicating that there is nothing else
attempting to use that port.
Note that I get this same response whether I am connecting from an
allowed client or from a disallowed client. I have the following in
readers.conf:
auth "sandiego.edu" {
hosts: "*.sandiego.edu, sandiego.edu"
default: "<user>"
default-domain: "sandiego.edu"
}���
access "all" {�
users: "*@sandiego.edu"
newsgroups: "*"
access: "Read Post"
}
None of the log files show any new entries after trying to connect.
The 'netstat' command appears to indicate that attempts to connect
hang around after I've given up and canceled the telnet:
tcp 0 0 cerebus.nntp pwa.acusd.edu.54062 CLOSE_WAIT
tcp 0 0 localhost.nntp localhost.49163 CLOSE_WAIT
Attempting to check status with "ctlinnd mode" also appears to hang, I
suspect while talking to innd.
[cerebus:~/log] news% ps -axe | grep innd
824 ?? Rs 6:10.79 /usr/local/news/bin/innd -p4
PATH=/usr/local/news/bin
916 std R+ 0:00.00 grep innd USER=news LOGNAME=news
HOME=/usr/local/news
912 p5 S+ 0:00.00 ctlinnd mode USER=news LOGNAME=news
HOME=/usr/local/n
I have no articles in the database (tradspool) yet.
I have tried removing the db/history.* files and recreating them with
makedbz -i in case they were somehow the problem.
history.hash expands from 0 to 60,000,000 bytes immediately after
starting up innd. Is it supposed to?
Any ideas on what might I might have done wrong to cause innd to (appear
to) hang like this?
--
http://www.hoboes.com/jerry/
Re: innd hangs on startup on Mac OS X?
Author: Jeffrey M. Vinocur
Date: Sat, 29 Jun 2002 05:21
Date: Sat, 29 Jun 2002 05:21
36 lines
2151 bytes
2151 bytes
In article <newsw-D506B8.17554228062002@news.west.cox.net>, Jerry Stratton <newsw@hoboes.com> wrote: >I've compiled inn 2.3.3 on Mac OS X 10.1.5 Ho hum. I know we had CURRENT working on OS X last time I checked (it's running on my powerbook, actually), I haven't tried running STABLE. If you're in a position to run prerelease code, try the latest snapshots from the isc.org ftp site -- it has been pretty quite recently with no complaints, so everything should be fine... >If I attempt to connect via telnet to port 119, I can connect, but do >not receive any response from innd [...] I started to wonder about firewall, but ... see below. >None of the log files show any new entries after trying to connect. Yeah, so it's definitely not readers.conf-related. >Attempting to check status with "ctlinnd mode" also appears to hang, I >suspect while talking to innd. Yeah, between this and the above, it feels like your INN is stuck in an infinte loop. Can you peek at it (with gdb, say) and see where? >history.hash expands from 0 to 60,000,000 bytes immediately after >starting up innd. Is it supposed to? Hmm.
Re: innd hangs on startup on Mac OS X?
Author: Jerry Stratton
Date: Sat, 29 Jun 2002 16:40
Date: Sat, 29 Jun 2002 16:40
80 lines
4296 bytes
4296 bytes
In article <afjg49$e43$2@puck.litech.org>, jeff@litech.org (Jeffrey M. Vinocur) wrote: > Ho hum. I know we had CURRENT working on OS X last time I > checked (it's running on my powerbook, actually), I haven't tried > running STABLE. If you're in a position to run prerelease code, > try the latest snapshots from the isc.org ftp site -- it has been > pretty quite recently with no complaints, so everything should be > fine... I get the same problem with the latest (June 21) CURRENT and STABLE. history.hash expands to 60,000,000, the news.notice gets a few lines logged to it that seem okay, no other log file gets anything added, and attempts to connect partially connect (either from localhost, other computers on campus, or other computers off of our campus) and appear to 'hang'. As does "ctlinnd mode". > >Attempting to check status with "ctlinnd mode" also appears to hang, I > >suspect while talking to innd. > > Yeah, between this and the above, it feels like your INN is stuck > in an infinte loop. Can you peek at it (with gdb, say) and see > where? I don't really know how to use gdb. If I attempt to connect to the running CURRENT and backtrace, I get: sudo gdb /usr/local/news/bin/innd 16563 Password: GNU gdb 5.1-20020125 (Apple version gdb-213) (Wed Apr 3 04:16:48 GMT 2002) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-macos10". Reading symbols for shared libraries .. done /usr/local/news/bin/16563: No such file or directory. Reading symbols for shared libraries . done [Switching to process 16563 thread 0x1d03] (gdb) bt #0 0x000280b0 in GROUPfind (group=0x0) at ov3.c:219 #1 0x0002820c in tradindexed_groupadd (group=0x156600 "control", lo=1, hi=0, flag=0x3b5601e "y\ncontrol.cancel 0000000000 0000000001 n\ncontrol.checkgroups 0000000000 0000000001 n\ncontrol.newgroup 0000000000 0000000001 n\ncontrol.rmgroup 0000000000 0000000001 n\njunk 0000000000 0000000001 y\nnews."...) at ov3.c:248 #2 0x0001eb74 in OVgroupadd (group=0xfc <Address 0xfc out of bounds>, lo=1691657, hi=16, flag=0xefcdab89 <Address 0xefcdab89 out of bounds>) at ov.c:124 #3 0x00015400 in NGparseentry (ngp=0x155dc0, p=0x156600 "control", end=0x3b5601f "\ncontrol.cancel 0000000000 0000000001 n\ncontrol.checkgroups 0000000000 0000000001 n\ncontrol.newgroup 0000000000 0000000001 n\ncontrol.rmgroup 0000000000 0000000001 n\njunk 0000000000 0000000001 y\nnews.a"...) at ng.c:119 #4 0x000156c0 in NGparsefile () at ng.c:194 #5 0x0000db8c in ICDsetup (StartSites=1) at icd.c:77 #6 0x0000f77c in main (ac=2, av=0x0) at innd.c:590 #7 0x00002070 in _start () #8 0x00001ea0 in start () Is there another set of commands I should run in gdb to be more helpful? > >history.hash expands from 0 to 60,000,000 bytes immediately after > >starting up innd. Is it supposed to? > > Hmm. Does this mean "no"? :*) Jerry -- http://www.hoboes.com/jerry/
Re: innd hangs on startup on Mac OS X?
Author: Jeffrey M. Vinocur
Date: Sun, 30 Jun 2002 04:08
Date: Sun, 30 Jun 2002 04:08
46 lines
2548 bytes
2548 bytes
In article <newsw-C3EC55.09404429062002@news.west.cox.net>, Jerry Stratton <newsw@hoboes.com> wrote: >In article <afjg49$e43$2@puck.litech.org>, > jeff@litech.org (Jeffrey M. Vinocur) wrote: > >> Yeah, between this and the above, it feels like your INN is stuck >> in an infinte loop. Can you peek at it (with gdb, say) and see >> where? > >#0 0x000280b0 in GROUPfind (group=0x0) at ov3.c:219 Ooo. That bit of code looks very familiar. I think I've gotten in an infinite loop there myself. The memory is pretty vague, but I think it ended up being corruption in the overview database (or group.index?). Try wiping the contents of spool/overview/ and see if that fixes it. >Is there another set of commands I should run in gdb to be more helpful? That backtrace was definitely the correct thing to do first off. >> >history.hash expands from 0 to 60,000,000 bytes immediately after >> >starting up innd. Is it supposed to? >> >> Hmm. > >Does this mean "no"? :*) Hard to say -- I don't really understand how the history stuff works. Seems big...you didn't specify a size to makedbz, as I recall...maybe that's the default. I wouldn't worry about it, I guess. I may be hallucinating (since I can't find any evidence in the cvs logs) but I thought somebody (Alex?) recently increased the default size. Perhaps I'm thinking of something else, though. (Boy I wish we had cvsweb.) -- Jeffrey M. Vinocur jeff@litech.org
Re: innd hangs on startup on Mac OS X? SOLVED!
Author: Jerry Stratton
Date: Sun, 30 Jun 2002 13:04
Date: Sun, 30 Jun 2002 13:04
136 lines
5710 bytes
5710 bytes
In article <afm07d$o7u$2@puck.litech.org>,
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <newsw-C3EC55.09404429062002@news.west.cox.net>,
> Jerry Stratton <newsw@hoboes.com> wrote:
> >In article <afjg49$e43$2@puck.litech.org>,
> > jeff@litech.org (Jeffrey M. Vinocur) wrote:
> >
> >> Yeah, between this and the above, it feels like your INN is stuck
> >> in an infinte loop. Can you peek at it (with gdb, say) and see
> >> where?
> >
> >#0 0x000280b0 in GROUPfind (group=0x0) at ov3.c:219
>
> Ooo. That bit of code looks very familiar. I think I've gotten
> in an infinite loop there myself. The memory is pretty vague,
> but I think it ended up being corruption in the overview database
> (or group.index?). Try wiping the contents of spool/overview/
> and see if that fixes it.
No, but it does act weird. When I remove (or remove and touch)
spool/overview/group.index (the only file in that directory), the next
time I try to start inndstart, news.err and news.crit contain:
Jun 30 05:36:18 cerebus innd: cronkite.sandiego.edu/news.sandiego.edu\
bad_news
feeds missing field 2
Jun 30 05:36:18 cerebus innd: SERVER syntax_error
/usr/local/news/etc/newsfeeds
And news.notice contains:
Jun 30 05:37:20 cerebus innd: SERVER descriptors 256
Jun 30 05:37:20 cerebus innd: SERVER outgoing 243
Jun 30 05:37:20 cerebus innd: SERVER ccsetup control:13
Jun 30 05:37:20 cerebus innd: SERVER lcsetup localconn:15
Jun 30 05:37:20 cerebus innd: SERVER rcsetup remconn:4
Jun 30 05:37:20 cerebus innd: controlchan! spawned
controlchan!:18:proc:19809
Jun 30 05:37:20 cerebus innd: cronkite.sandiego.edu/news.sandiego.edu\
bad_news
feeds missing field 2
Jun 30 05:37:20 cerebus innd: opened :17:file
Jun 30 05:37:20 cerebus innd: SERVER syntax_error
/usr/local/news/etc/newsfeeds
Jun 30 05:37:20 cerebus innd: controlchan! closed
Jun 30 05:37:20 cerebus innd: closed
Jun 30 05:37:20 cerebus innd: control:13 closed
Jun 30 05:37:20 cerebus innd: localconn:15 closed
Jun 30 05:37:20 cerebus innd: remconn:4 closed
And innd is not started; however, now group.index in spool/overview
exists:
-rw-rw-r-- 1 news news 131080 Jun 30 05:37 group.index
and if I then run inndstart again, innd starts but hangs as before.
In case it matters, etc/newsfeeds contains:
ME:!*/!local,!collabra-internal::
controlchan!\
:!*,control,control.*,!control.cancel\
:Tc,Wnsm:/usr/local/news/bin/controlchan
cronkite.sandiego.edu/news.sandiego.edu\
:usd.*, sdnet.*\
:Tf,Wnm:
Note that cronkite.sandiego.edu does not know about me and is not
feeding me.
I just now decided to simplify that newsfeed line to:
cronkite.sandiego.edu\
:usd.*, sdnet.*\
:Tf,Wnm:
and the error in news.err changed to (after removing group.index again):
Jun 30 05:44:40 cerebus innd: tradspool: storeonxref needs to be true
Jun 30 05:44:40 cerebus innd: SM storage method 'tradspool' failed
initializatio
n
Jun 30 05:44:40 cerebus innd: SM one or more storage methods failed
initializati
on
Jun 30 05:44:40 cerebus innd: SERVER cant initalize storage manager: one
or more
storage methods failed initialization
So I then set storeonxref in inn.conf to true. Now, removing group.index
does not keep innd from starting up, and innd no longer hangs. In
news.notice, I see:
Jun 30 05:46:58 cerebus innd: SERVER descriptors 256
Jun 30 05:46:58 cerebus innd: SERVER outgoing 243
Jun 30 05:46:58 cerebus innd: SERVER ccsetup control:13
Jun 30 05:46:58 cerebus innd: SERVER lcsetup localconn:15
Jun 30 05:46:58 cerebus innd: SERVER rcsetup remconn:4
Jun 30 05:46:58 cerebus innd: controlchan! spawned
controlchan!:18:proc:19877
Jun 30 05:46:58 cerebus innd: cronkite.sandiego.edu opened
cronkite.sandiego.edu
:17:file
Jun 30 05:46:58 cerebus innd: tradspool:
/usr/local/news/spool/tradspool.map not
found
Jun 30 05:46:58 cerebus innd: SERVER starting
/usr/local/news/spool/tradspool.map does exist, however, and is readable
by everyone, writeable by user and group news.
-rw-rw-r-- 1 news news 800 Jun 30 05:46 spool/tradspool.map
Since the mod date is the time I ran inndstart, I'm assuming that
tradspool.map was just created now.
telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.sandiego.edu.
Escape character is '^]'.
200 cerebus.sandiego.edu InterNetNews server INN 2.4.0 (20020621
prerelease) ready
Thanks for the assistance!
Jerry
--
http://www.hoboes.com/jerry/
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