Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410741 - net-irc/anope-1.8.7 doesn't create necessary backups directory
Summary: net-irc/anope-1.8.7 doesn't create necessary backups directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 02:10 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2012-07-01 21:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
anope-1.8.7.ebuild-backupsdir.patch (anope-1.8.7.ebuild-backupsdir.patch,640 bytes, text/plain)
2012-04-04 02:10 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-04 02:10:24 UTC
Created attachment 307705 [details]
anope-1.8.7.ebuild-backupsdir.patch

ohnopublishing local # less /var/log/anope/services.log.20120404
[Apr 04 00:00:15 2012] Backup of os_info.db failed.
[Apr 04 00:00:15 2012] Backing up databases
[Apr 04 00:00:15 2012] Backup of nick.db failed.
[Apr 04 00:00:15 2012] Backup of bot.db failed.
[Apr 04 00:00:15 2012] Backup of chan.db failed.
[Apr 04 00:00:15 2012] Backup of hosts.db failed.
[Apr 04 00:00:15 2012] Backup of prenick.db failed.
[Apr 04 00:00:15 2012] Backup of oper.db failed.
[Apr 04 00:00:15 2012] Backup of news.db failed.
[Apr 04 00:00:15 2012] Backup of exception.db failed.

I just manually created the directory myself:
ohnopublishing local # ls -lad /var/lib/anope/backups
drwxr-xr-x 2 anope anope 48 Apr  4 00:08 /var/lib/anope/backups

I _think_ that in 24 hours anope will backup properly to this directory. I assume that these messages are only caused because the directory did not already exist. Attached is a patch which adds this to the list of directories which the ebuild ensures exist.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-07-01 21:08:00 UTC
OK, I'll just commit this myself as a net-irc member ;-).

+  01 Jul 2012; Nathan Phillip Brink <binki@gentoo.org> anope-1.8.7.ebuild:
+  Ensure that /var/lib/anope/backups directory exists so that database backups
+  succeed, fixing bug #410741.