Article View: news.software.nntp
Article #85761Re: pullnews (Debian Wheezy, inn2-lfs) broken?
From: Tony
Date: Sat, 06 Jul 2013 17:51
Date: Sat, 06 Jul 2013 17:51
64 lines
4127 bytes
4127 bytes
In news.software.nntp, Julien ΓLIE <iulius@nom-de-mon-site.com.invalid>
wrote:
>Hi Tony,
>
>>>> tony@matrix:~$ /usr/lib/news/bin/pullnews -k 100 -r uk.net -g uk.net
>>>
>>> You should add "-c /path/to/pullnews.marks".
>>
>> That won't fix the issue with locks.
>
>Why won't it be fixing it?
>If you use "-c /path/to/pullnews.marks", the lock will be written in the
>file /path/to/pullnews.marks.pid so your user "tony" should be able to
>access it.
Then the man page needs to be re-written.
>OK, I understand what happened.
>
>The behaviour has changed in Wheezy because pullnews uses INN::Config
>(to properly handle locks) whereas it previously did not.
>As innshellvars* & INN::Config are setting $HOME to the home of the news
>user in INN 2.4.x (and probably before) and 2.5.x, the path changed. It
>therefore generates the unfortunate behaviour you are seeing. I did not
>see it when testing the addition of INN::Config to pullnews because I am
>using the news user... Sorry.
>One solution would be to remove the line
>$ENV{'HOME'} = ${pathnews};
>from the file Config.pm shipped with INN.
I've already got a solution which works, but anyone running pullnews from
crontab on a non-news user on Debian has had a broken config since Wheezy.
Maybe no one is.
>Another solution would be to add "-c /home/tony" to the pullnews you are
>running. Did you test that? I do not understand why you would have an
>error for the lock file if you use "-c /home/tony"; the lock file is
>written in your home directory.
It's not -c /home/tony though, it's -c /home/tony/.pullnews. And if that
has to be present, then the man page needs to be fixed. It would also be
the only tool I know which looks in the wrong home directory by default.
>I suggest to use "-c /home/tony" because it will work with Wheezy, and
>also with future INN versions.
I guess the manpage needs to be updated then.
>Starting from INN 2.6.0, $ENV{'HOME'} is no longer overriden by
>innshellvars* & INN::Config but pullnews will still need "-c /home/tony"
>when run as another user than the news user. The new default value is
><pathdb> (where the active and history files are) instead of $HOME. And
>the file is <pathdb>/pullnews.marks (instead of .pullnews, a "hidden" file).
I don't understand why the tool is being changed so that essentially, only
the news user can run it. It used to be a nice general purpose tool that
would run with sane defaults for any user?
--
Tony Evans
Seeking archives for uk.* from 1998 and older. Especially interested
in uk.net.news.* and any groups which preceded uk.net.news.* for
hierarchy management (uk.misc? uk.net?).
Technical Details
Message-ID:
<kr9ldj$ts1$1@matrix.darkstorm.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!backlog1.nntp.ams3.giganews.com!backlog1.nntp.ams2.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.mixmin.net!matrix.darkstorm.co.uk!.POSTED!not-for-mailReferences:
<kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk> <kr9gtn$2k7$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <kr9ldj$ts1$1@matrix.darkstorm.co.uk> Subject: Re: pullnews (Debian Wheezy, inn2-lfs) broken? Date: Sat, 06 Jul 2013 18:51:02 +0100 From: Tony <tony@darkstorm.invalid> References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk> <kr9gtn$2k7$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!backlog1.nntp.ams3.giganews.com!backlog1.nntp.ams2.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.mixmin.net!matrix.darkstorm.co.uk!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Organised? Me? Nah! Lines: 64 Reply-To: tony@darkstorm.co.uk NNTP-Posting-Host: blmyAcSH3qrT0c/m70BkWUGM/xgXuGdr3l0rYAH3gSc= Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: matrix.darkstorm.co.uk FiilSNeyDfNxIlV4u0K+MqsY4LASymTFCWYjYDHCwag== X-Complaints-To: abuse@matrix.darkstorm.co.uk NNTP-Posting-Date: Sat, 6 Jul 2013 17:50:43 +0000 (UTC) X-User-ID: 57ZC41n64AdrXhgSwnQLra71yFH4SeZus1z16mntJtw= X-Newsreader: Forte Agent 6.00/32.1186