[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: inn2 - cant store article: File exists / rebuild databases



Marcus Schopen wrote:
Hallo,

after a blackout my privat inn2 shows the folling in its log, if posting a message:

  innd: SERVER cant store article: File exists

To find a solution, I changed /var/lib/news/active for each group to the highest und lowest article id. After a restart of inn2 I everything was fine again.

Problem: After getting the "Daily Usenet report" at night, I could only see articles of the last 3 month in my newsclient. In the configuration I told inn2 to keep all articles of the last 6 month. All articles of the last 6 month are still in /var/spool/news/articles directory, but not shown in the client.

What do I have to do to make a clean rebuild of all inn2's internal databases/history files etc., so I can see all articles again?

Andreas Metzler posted the folling nice working lines to me on the German list:

> as user root: invoke-rc.d inn2 stop
> then "su - news" to change to user news
> --------
> cd /var/lib/news/ \
>  && time makehistory -b -O -f history.n \
>  && awk 'NF == 2 { print }' < history >> history.n \
>  && makedbz -s `wc -l < history` -f history.n
> mv  history.n history
> mv history.n.dir  history.dir
> mv history.n.hash history.hash
> mv history.n.index history.index
> --------
> as user root: "invoke-rc.d inn2 start"
> as user news: ctlinnd renumber ''

Cheers,
Marcus




Reply to: