Re: snsend failing in POST?

Sonya Chang <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
On Tuesday, June 17, 2003, at 04:07  PM, Patrik RÃ¥dman wrote:
> You didn't mention what OS you run, though. Linux, I presume?
>
>> I've modified the end of the last block of the default POST script to
>> read:
>>
>> } | snsend -v || fail "Unable to post to $postable ($?)"
>>
>> and I consistently get "Unable to post to test.group (2)" when I
>> attempt to post.
>
> Well, error code 2 means "system error" (as stated in the man page).
> Did you check the log file for any output? Try adding -Pddd to
> the snsend call to enable all debug messages, hopefully it will report
> why it dies.

Ah ha, thank you very much for your help... I have now fixed my 
problem, which turned out to be two minor problems.

Although I *had* been looking in the logs for info, I saw nothing, and 
assumed the snntpd was just quiet.  However, when you suggested that 
the logs *should* say interesting things, I figured out that my syslogd 
was explicitly configured to ignore syslog messages for news 
(news.none), which is obviously not what I want.  This appears to be a 
default for RedHat (7.3 is the version I'm running), so perhaps that 
will be helpful to other less experienced users down the road.

After fixing the syslog conf problem, I found that the logs were in 
fact helpful and said "/usr/local/sbin/POST: cat: command not found" -- 
so, basically, my paranoid path setup in my snntpd wrapper script 
(which included just /usr/local/sbin) was the culprit.  I changed POST 
to use /bin/cat instead of just cat, and now it works perfectly.

Thanks again!
Sonya
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.