Thread View: news.software.nntp
13 messages
13 total messages
Started by greg andruk
Tue, 17 Sep 2002 07:14
Re: Cygwin INN port issues
Author: greg andruk
Date: Tue, 17 Sep 2002 07:14
Date: Tue, 17 Sep 2002 07:14
65 lines
3973 bytes
3973 bytes
[in configure]
> smtp path needs to be explicitly given.
This is intentional. The copy of configure I distribute will try to
find ssmtp and report on what it finds, but it won't automatically use
it. While ssmtp is the closest thing to sendmail that is shipped with
Cygwin, I don't really recommend using it in a non-interactive
application like INN. It lacks the error recovery/retry bits found in a
real MTA.
exim is available for Cygwin, and I would suggest installing and using
that for the MTA.
> After 'make install' I installed innd.exe as a service using your
> command:
> cygrunsrv -I INN -a '-f' -o -p /usr/local/news/bin/innd.exe -u news -w
> news
> and granted log on as a service right to news user on w2k system. I also
> initialized the DB using this command:
> /usr/local/news/db/ ../bin/makedbz -f ./history -I
(I assume that first part was a shell prompt) Is this a cut and paste of
the command you used? -I is not a valid option. Are history (it needs
to be created with `touch history' or `makehistory' before makedbz will
work) and history.* present in the db directory?
> Then I tried to start the service. It fails, writing 6 messages to the
> event log:
[...]
innd : SERVER cant dbzinit /usr/local/news/db/history No such file or
directory.
Yeah, I'd double-check the history creation stuff above. And the file
ownership, if they are present.
starting service `INN' failed: execv: 1, Operation not permitted.
Hmm. Can you log onto the system interactively as the news user and run
innd? I wouldn't recommend trying to start it as a service until this
works correctly. But I'd worry about the history problem first.
By the way, you don't really need to create a separate group for INN to
work, you can use one of the existing groups such as None.
Here is a bit of the preliminary documentation I'll be putting up on the
Web pages at some point, to help explain my nonchalance over the heresy
of using a generic group (the Cygwin FAQ also points this stuff out, but
I think it's important enough to be redundant):
The Cygwin environment is not designed to be secure in a multiuser
setting. It's fine to have other people connect to your news server,
but you only want to give trusted people Windows accounts on the
machine where you run INN. This means, for example, that you really
don't want to add your system to the same domain or workgroup as your
accounting department, or even be thinking about running stuff like
that on the same machine. Assume that if users have permission
to run any programs on this machine, they have permission to run all
programs on this machine. You'll sleep better.
Re: Cygwin INN port issues
Author: Balthasar Indermuehle
Date: Tue, 17 Sep 2002 18:03
Date: Tue, 17 Sep 2002 18:03
30 lines
2038 bytes
2038 bytes
> (I assume that first part was a shell prompt) Is this a cut and paste of > the command you used? -I is not a valid option. Are history (it needs > to be created with `touch history' or `makehistory' before makedbz will > work) and history.* present in the db directory? makehistory produces error: Can't initialize storage manager: Expected 'method' keyword ../bin/makedbz -i produces a few history files in the db folder, no error message. > Yeah, I'd double-check the history creation stuff above. And the file > ownership, if they are present. Everything belongs to user "news". all builds and "make install"'s etc are executed from the news account. > > Hmm. Can you log onto the system interactively as the news user and run > innd? I wouldn't recommend trying to start it as a service until this > works correctly. But I'd worry about the history problem first. It still produces the "can't dbzinit /usr/local/news/history ..." message when being started manually (from the "news" account) and then dies. cheers - Balt
Re: Cygwin INN port issues
Author: Balthasar Indermuehle
Date: Tue, 17 Sep 2002 22:20
Date: Tue, 17 Sep 2002 22:20
26 lines
1871 bytes
1871 bytes
Ok, this is a huge mess. I got innd.exe to produce new and different error messages. i even got innfeed.exe to produce an error message and die... it would probably be most helpful if you could post a complete set of configuration files that worked on your system (i.e. inn.conf, newsfeeds, incoming.conf, etc...) everytime I change anything on any of the files, some other error messages appear, the worst one I had was a syntax error in incoming.conf which resolved itself after deleting the file and manually retyping it in vi. i edited it in wordpad and saved it as text only before that, it appears innd does not like crlf instead of just lf... the current state of affairs is innfeed.exe dies yelling seteuid(0) failed, permission denied. innd dies shouting SERVER can't initialize storage subsystem Expected 'method' keyword. i'll gladly provide more detailed information if that helps in any way. cheers - Balt
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Tue, 17 Sep 2002 23:48
Date: Tue, 17 Sep 2002 23:48
107 lines
5345 bytes
5345 bytes
Balthasar Indermuehle wrote:
> Ok, this is a huge mess. I got innd.exe to produce new and different
> error messages. i even got innfeed.exe to produce an error message and
> die...
If you got that far, then innd itself must be basically okay. That's
good news.
> it would probably be most helpful if you could post a complete set of
> configuration files that worked on your system (i.e. inn.conf,
> newsfeeds, incoming.conf, etc...)
I'll see what I can do about this, at least maybe put up what is a
minimally working system. Really, the defaults should basically work,
though.
> everytime I change anything on any of the files, some other error
> messages appear, the worst one I had was a syntax error in
> incoming.conf which resolved itself after deleting the file and
> manually retyping it in vi.
Keep in mind that most files I'm including are basically identical to
what ships in the standard ISC INN. Why don't I list the differences
here, so we all know what's a generic INN 2.3.3 problem or a
Gregism...
- A couple of small mods to nnrpd:
o the nnrpd load averaging stuff is forced to be turned off. This is
done in the configuration headers.
o the setproctitle stuff is #ifdef'd out, because it doesn't behave
well under Cygwin.
- expire names its intermediate files a little bit differently, but
that's far away from your problems.
- news.daily has a few lines added to account for the changes in
expire.
- A few changes are in innd itself:
o icd.c removes and adds lines from active differently than under
Unix. This code only really comes into play when ctlinnd
newgroup/rmgroup are run.
o Channel feeds are forced to use pipes instead of socketpairs, but
again this is a compile-time configuration thing -- the code is
already in stock INN.
o inndstart is basically useless. I've only tweaked it enough to
make peace with gcc, and will probably leave it useless until there
is IPv6 support in Cygwin to make it worth the bother. All you
should expect it to do at present is put up an error message that
it can't start innd.
- innfeed has a couple of useless #include lines commented out.
Apparently there aren't any unix systems that needed them to be there
anyway.
- some junk is added in configure to look for smtpd and make embedded
Perl link right.
- install_sh has a few lines added to deal with that silly .EXE
extension.
- The makefiles do still complain about startinnfeed and inndstart not
being setuid root. This can be ignored, since the programs aren't
needed.
> i edited it in wordpad and saved it as
> text only before that, it appears innd does not like crlf instead of
> just lf...
Yeah, INN will definitely be expecting that Cygwin is configured to use
Unix-style line endings, and that you use an editor that thinks the
same way (The Cygwin flavor of Xemacs is a wonderful choice for this,
unless of course you hate emacs, then I guess it would be a lousy
choice).
> the current state of affairs is innfeed.exe dies yelling seteuid(0)
> failed, permission denied.
Are you using startinnfeed in your newsfeeds file? If yes, use innfeed
instead, startinnfeed won't work. Yeah yeah, I know, I need to get all
this stuff better documented, but it's hard to figure what needs
documenting when too close to these things. You're helping a lot with
my figuring that out, by the way, thanks for your patience here.
> innd dies shouting SERVER can't initialize
> storage subsystem Expected 'method' keyword.
Syntax error in storage.conf. Make sure there are no stray CRLFs in
there. (or maybe you haven't set it up yet?) Also, you might want to
walk through INSTALL again, as long and tedious as it can seem. There
are loads of good, practical advice in there. Also, while inncheck is
not perfect, it's still very useful.
> i'll gladly provide more detailed information if that helps in any
> way.
Let's just keep going on 'til it works, you've already helped me a
whole bunch. I hope I'm being at least marginally useful...
Re: Cygwin INN port issues
Author: Balthasar Indermuehle
Date: Wed, 18 Sep 2002 00:45
Date: Wed, 18 Sep 2002 00:45
58 lines
3481 bytes
3481 bytes
You're being very helpful, thanks! > I'll see what I can do about this, at least maybe put up what is a > minimally working system. Really, the defaults should basically work, > though. my inexperience in setting up a basic nntp server gets in the way here. what does a correctly formatted newsfeeds file look like? All I want to do is to read all newsgroups from news.xyz.com and post it back to the same server. access to the local server should be read/post to all (yes, I know... let's not worry about security or spam for now). > Are you using startinnfeed in your newsfeeds file? If yes, use innfeed > instead, startinnfeed won't work. Yeah yeah, I know, I need to get all > this stuff better documented, but it's hard to figure what needs > documenting when too close to these things. You're helping a lot with > my figuring that out, by the way, thanks for your patience here. entries in my newsfeeds file look like this (i changed it to innfeed after reading your post, the same errors are stopping innfeed though). innfeed!\ :!*\ :Tc,Wnm*:/usr/local/news/bin/innfeed and controlchan!\ :!*,control,control.*,!control.cancel\ :Tc,Wnsm:/usr/local/news/bin/controlchan and for my news server: news.xyz.com/\ :!junk,!control*/!foo\ :Tm:innfeed! everything else in that file is commented out. does that make sense to you? > Syntax error in storage.conf. Make sure there are no stray CRLFs in > there. (or maybe you haven't set it up yet?) Also, you might want to > walk through INSTALL again, as long and tedious as it can seem. There > are loads of good, practical advice in there. Also, while inncheck is > not perfect, it's still very useful. I have uncommented the timehash method in the storage.conf file. innd.exe still writes "SM expected 'method' keyword, line 3" into the error log before passing out. innfeed still dies with a "unable to initialize storage system" message. > Let's just keep going on 'til it works, you've already helped me a > whole bunch. I hope I'm being at least marginally useful... you're very useful indeed. thanks! - Balt
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Wed, 18 Sep 2002 02:07
Date: Wed, 18 Sep 2002 02:07
96 lines
4667 bytes
4667 bytes
Balthasar Indermuehle wrote:
> You're being very helpful, thanks!
>
>> I'll see what I can do about this, at least maybe put up what is a
>> minimally working system. Really, the defaults should basically work,
>> though.
>
> my inexperience in setting up a basic nntp server gets in the way here.
Yow, and you're starting off with this thing? You're a brave soul,
you are -- I hope you're in it for the challenge as well as getting a
working server.
> what does a correctly formatted newsfeeds file look like? All I want to
> do is to read all newsgroups from news.xyz.com and post it back to the
> same server. access to the local server should be read/post to all (yes,
> I know... let's not worry about security or spam for now).
Oooo, read and post? Have you arranged for someone to exchange an
IHAVE type newsfeed with you? I've got a few ways you can get articles
if you don't have a real newsfeed, but I haven't tackled the posting
part yet (but if you do have those IHAVE arrangements, don't worry
about this).
>> Are you using startinnfeed in your newsfeeds file? If yes, use innfeed
>> instead, startinnfeed won't work. Yeah yeah, I know, I need to get all
>> this stuff better documented, but it's hard to figure what needs
>> documenting when too close to these things. You're helping a lot with
>> my figuring that out, by the way, thanks for your patience here.
>
> entries in my newsfeeds file look like this (i changed it to innfeed
> after reading your post, the same errors are stopping innfeed though).
>
> innfeed!\
> :!*\
> :Tc,Wnm*:/usr/local/news/bin/innfeed
Okay, that's exactly what I use. When you were getting that
"seteuid(0) failed" message before, that was with startinnfeed in
there, right? Otherwise I'm going to be really confuzzled.
> and
>
> controlchan!\
> :!*,control,control.*,!control.cancel\
> :Tc,Wnsm:/usr/local/news/bin/controlchan
Yep, this should be fine.
> and for my news server:
> news.xyz.com/\
> :!junk,!control*/!foo\
> :Tm:innfeed!
You can lose the '/' on the first line of this entry, if you're not
using any aliases. Otherwise it seems to look okay.
> everything else in that file is commented out. does that make sense to
> you?
Yep.
>> Syntax error in storage.conf. Make sure there are no stray CRLFs in
>> there. (or maybe you haven't set it up yet?) Also, you might want to
>> walk through INSTALL again, as long and tedious as it can seem. There
>> are loads of good, practical advice in there. Also, while inncheck is
>> not perfect, it's still very useful.
>
> I have uncommented the timehash method in the storage.conf file.
> innd.exe still writes "SM expected 'method' keyword, line 3" into the
> error log before passing out. innfeed still dies with a "unable to
> initialize storage system" message.
Odd. Okay, The simplest storage.conf using using timehash would look
like this:
method timehash {
newsgroups: *
class: 0
}
Not knowing what you have in storage.conf now, I have no idea what's
wrong with line 3 in your copy =) If you still have trouble, maybe you
could post it?
>> Let's just keep going on 'til it works, you've already helped me a
>> whole bunch. I hope I'm being at least marginally useful...
>
> you're very useful indeed. thanks!
There's a first time for everything, I guess =)
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Wed, 18 Sep 2002 02:14
Date: Wed, 18 Sep 2002 02:14
23 lines
1856 bytes
1856 bytes
itsy bitsy meowbot wrote: > >> and for my news server: >> news.xyz.com/\ >> :!junk,!control*/!foo\ >> :Tm:innfeed! > > You can lose the '/' on the first line of this entry, if you're not > using any aliases. Otherwise it seems to look okay. Actually, no it doesn't, sorry. I forgot that the default ME entry doesn't look like it used to. If your ME line starts with !* as distributed, you'll want to change the above to: news.xyz.com:*\ :*,!junk,!control*\ :Tm:innfeed! (no point in excluding that foo distribution, that's just example stuff.) More coffee.....
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Wed, 18 Sep 2002 02:16
Date: Wed, 18 Sep 2002 02:16
18 lines
1728 bytes
1728 bytes
itsy bitsy meowbot wrote: > doesn't look like it used to. If your ME line starts with !* as > distributed, you'll want to change the above to: > > news.xyz.com:*\ > :*,!junk,!control*\ > :Tm:innfeed! And if I looked before hitting the post key, it would have been news.xyz.com\ :*,!junk,!control*\ :Tm:innfeed! > More coffee..... Making it a double.
Re: Cygwin INN port issues
Author: Balthasar Indermuehle
Date: Wed, 18 Sep 2002 08:19
Date: Wed, 18 Sep 2002 08:19
59 lines
3064 bytes
3064 bytes
Hi,
As you said, I'm in for the challenge as well, but hopeful to get a
running server in the end, too... :-) I do have a peer set up for ihave
btw.
i have recreated storage.conf using vi (you're right, i don't like emacs
and the like, i loove vi however...). it has only these lines:
method timehash {
newsgroups: *
class: 0
}
this apparently made the stupid 'method' missing error go away. NB: I
never even opened let alone saved storage.conf with any editor other
than vi.
innd is now producing more warnings in the log than ever (which is a
good sign because it appears to live a few microsecs longer...), and new
errors that appear to be stopping it are there as well:
innd : news.abnormal.com bad_newsfeeds missing field 2.
and
innd : SERVER syntax_error /usr/local/news/etc/newsfeeds.
those are terminal errors. My newsfeeds file looks like this:
ME:!*/!local,!collabra-internal::
innfeed!\
:!*\
:Tc,Wnm*:/usr/local/news/bin/innfeed
controlchan!\
:!*,control,control.*,!control.cancel\
:Tc,Wnsm:/usr/local/news/bin/controlchan
news.xyz.com
:!junk,!control*\
:Tm:innfeed!
everything else is commented out (with #).
then innfeed is started and producing this event-orama (the first is
just an info message to show I'm using the latest version)
innfeed : Win32 Process Id = 0xC90 : Cygwin Process Id = 0xC90 : ME
starting innfeed 2.3.3 (meoWINg-4) at Wed Sep 18 08:06:46 2002.
innfeed : Win32 Process Id = 0xC90 : Cygwin Process Id = 0xC90 : ME
config file error: line 13: syntax error.
which one is the ME config file?
I'm learning...
cheers
- Balt
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Wed, 18 Sep 2002 10:14
Date: Wed, 18 Sep 2002 10:14
102 lines
4712 bytes
4712 bytes
Balthasar Indermuehle wrote:
> Hi,
>
> As you said, I'm in for the challenge as well, but hopeful to get a
> running server in the end, too... :-) I do have a peer set up for ihave
> btw.
Yay and yay.
> i have recreated storage.conf using vi (you're right, i don't like emacs
> and the like, i loove vi however...). it has only these lines:
>
> method timehash {
> newsgroups: *
> class: 0
> }
>
> this apparently made the stupid 'method' missing error go away. NB: I
> never even opened let alone saved storage.conf with any editor other
> than vi.
Huh. No idea why you would have had to recreate it from scratch. For
untarring the archive, did you use tar and gzip, or something like
Winzip? I'm just trying to figure out how these files could have ended
up with stray stuff in them, because I can't duplicate the problem
here.
> innd is now producing more warnings in the log than ever (which is a
> good sign because it appears to live a few microsecs longer...),
That's fine, the Unix syslog levels used by INN don't happen to match
up very well with the event log levels Cygwin translates them to, and
lots of perfectly normal stuff will be flagged as a warning. Tha'ts
something to deal with out Later, when I feel like it.
> and new
> errors that appear to be stopping it are there as well:
>
> innd : news.abnormal.com bad_newsfeeds missing field 2.
>
> and
>
> innd : SERVER syntax_error /usr/local/news/etc/newsfeeds.
>
> those are terminal errors. My newsfeeds file looks like this:
>
> ME:!*/!local,!collabra-internal::
> innfeed!\
> :!*\
> :Tc,Wnm*:/usr/local/news/bin/innfeed
> controlchan!\
> :!*,control,control.*,!control.cancel\
> :Tc,Wnsm:/usr/local/news/bin/controlchan
> news.xyz.com
> :!junk,!control*\
> :Tm:innfeed!
Missing backslash on that news.xyz.com line, and it still needs the *,
on the feed patern line to actually feed stuff.
> everything else is commented out (with #).
Okay.
> then innfeed is started and producing this event-orama (the first is
> just an info message to show I'm using the latest version)
>
> innfeed : Win32 Process Id = 0xC90 : Cygwin Process Id = 0xC90 : ME
> starting innfeed 2.3.3 (meoWINg-4) at Wed Sep 18 08:06:46 2002.
> innfeed : Win32 Process Id = 0xC90 : Cygwin Process Id = 0xC90 : ME
> config file error: line 13: syntax error.
>
> which one is the ME config file?
For innfeed errors, it's etc/innfeed.conf -- and line 13 is up near the
top in the boring part you probably would have left as is....
From the shell, try:
dos2unix -U innfeed.conf
That should be a *lot* less painful than trying to type in something as
wordy as inn.conf by hand!
If that cures the error, we definitely have linefeed issues here.
After that, the fun part will be figuring out if something went wrong
when the archive was extracted, something in the make process did evil
things, or one of those pesky Windows editors decided to get "helpful"
and "fix" them :/
If that doesn't cure the problem, then it's probably a bona fide syntax
error...
> I'm learning...
Excellent, the subliminal "you really want to wipe out C: and install
FreeBSD" messages must be taking hold =)
> cheers
>
> - Balt
Re: Cygwin INN port issues
Author: Balthasar Indermuehle
Date: Wed, 18 Sep 2002 21:25
Date: Wed, 18 Sep 2002 21:25
59 lines
3193 bytes
3193 bytes
getting there... now INND is starting and actually keeps running, but it's consuming 100% cpu, and writing this event-orama (all warnings or infos, the two marked --> are Errors) innd : Reading config from /usr/local/news/etc/inn.conf. innd : SERVER descriptors 256. innd : SERVER outgoing 243. innd : SERVER ccsetup control:10. innd : SERVER lcsetup localconn:12. innd : SERVER rcsetup remconn:13. INN : Win32 Process Id = 0x1464 : Cygwin Process Id = 0x1464 : `INN' service started. innd : innfeed! spawned innfeed!:16:proc:5256. innd : controlchan! spawned controlchan!:17:proc:5276. -->innd : news.xyz.com bad_newsfeeds unknown field 3 flag. -->innd : SERVER syntax_error /usr/local/news/etc/newsfeeds. innd : innfeed! closed. innd : controlchan! closed. innd : control:10 closed. innd : remconn:13 closed. innfeed : Win32 Process Id = 0x1488 : Cygwin Process Id = 0x1488 : Reading config from /usr/local/news/etc/inn.conf. innfeed : Win32 Process Id = 0x1488 : Cygwin Process Id = 0x1488 : ME starting innfeed 2.3.3 (meoWINg-4) at Wed Sep 18 21:09:23 2002. innfeed : Win32 Process Id = 0x1488 : Cygwin Process Id = 0x1488 : loading /usr/local/news/etc/innfeed.conf. INN : Win32 Process Id = 0x1464 : Cygwin Process Id = 0x1464 : `INN' service stopped. innfeed : Win32 Process Id = 0x1488 : Cygwin Process Id = 0x1488 : ME source lost . Exiting. innfeed : Win32 Process Id = 0x1488 : Cygwin Process Id = 0x1488 : ME finishing at Wed Sep 18 21:09:25 2002. i did the dos2unix -U newsfeeds. the only lines left in the newsfeeds file are these: ME:!*/!local,!collabra-internal:: innfeed!\ :!*\ :Tc,Wnm*:/usr/local/news/bin/innfeed controlchan!\ :!*,control,control.*,!control.cancel\ :Tc,Wnsm:/usr/local/news/bin/controlchan news.xyz.com:*\ :!junk,!control*\ :Tm:innfeed! phew... any idea what's wrong with this setup? - Balt freebsd is an alternative i am considering...
Re: Cygwin INN port issues
Author: Jeffrey M. Vinocur
Date: Wed, 18 Sep 2002 22:26
Date: Wed, 18 Sep 2002 22:26
28 lines
1630 bytes
1630 bytes
In article <a3990644.0209181325.3ea40fb0@posting.google.com>, Balthasar Indermuehle <bi@inside.net> wrote: > >-->innd : news.xyz.com bad_newsfeeds unknown field 3 flag. > >news.xyz.com:*\ > :!junk,!control*\ > :Tm:innfeed! > >any idea what's wrong with this setup? Yes, exactly what it says -- check the syntax for newsfeeds. You want news.xyz.com:\ :*,!junk,!control*\ :Tm:innfeed! >freebsd is an alternative i am considering... You'd have the above problem on any INN... -- Jeffrey M. Vinocur jeff@litech.org
Re: Cygwin INN port issues
Author: itsy bitsy meowbot
Date: Wed, 18 Sep 2002 22:28
Date: Wed, 18 Sep 2002 22:28
36 lines
2342 bytes
2342 bytes
Balthasar Indermuehle wrote:
> -->innd : news.xyz.com bad_newsfeeds unknown field 3 flag.
> -->innd : SERVER syntax_error /usr/local/news/etc/newsfeeds.
>
> i did the dos2unix -U newsfeeds. the only lines left in the newsfeeds
> file are these:
>
> news.xyz.com:*\
> :!junk,!control*\
> :Tm:innfeed!
You need some of that coffee too =)
news.xyz.com\
:*,!junk,!control*\
:Tm:innfeed!
The one-line version might be clearer?
news.xyz.com:*,!junk,!control*:Tm:innfeed!
Nope, that's ugly as sin too.
> phew...
>
> any idea what's wrong with this setup?
Only that the syntax of newsfeeds is evil.
> freebsd is an alternative i am considering...
Ha! Just try to find a decent virus checker for FreeBSD! Oh, um,
never mind.
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