backups fail if there are any directories in the backup directory

Bug #1603126 reported by Tom Haddon
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mongodb (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

If there are any directories in the current backup directory, it will fail to run:

$ python /var/lib/mongodb/cronbackup.py
Traceback (most recent call last):
  File "/var/lib/mongodb/cronbackup.py", line 34, in <module>
    remove(join(backupdir, file))
OSError: [Errno 21] Is a directory: '/srv/mnt/backups/tmp-dump-1TsddJ'

This can happen if a previous run has failed for some reason, and will prevent any further runs from completing.

Related branches

Changed in mongodb (Juju Charms Collection):
status: New → Fix Committed
Changed in mongodb (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.