Bug 652821 - [abrt] rdiff-backup-1.2.8-5.fc14: rpath.py:993:rmdir:OSError: [Errno 39] Directory not empty: '/var/backup/.Trash-1000'
Summary: [abrt] rdiff-backup-1.2.8-5.fc14: rpath.py:993:rmdir:OSError: [Errno 39] Dire...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rdiff-backup
Version: 14
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e6f32134
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-12 21:22 UTC by Pieter De Praetere
Modified: 2010-11-13 22:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-13 22:01:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.59 KB, text/plain)
2010-11-12 21:22 UTC, Pieter De Praetere
no flags Details

Description Pieter De Praetere 2010-11-12 21:22:07 UTC
abrt version: 1.1.13
architecture: x86_64
comment: Called rdiff-backup --force foo bar, but bar was a directory that already existed, and contained some hidden directories, including the .Trash-directory.
component: rdiff-backup
executable: /usr/bin/rdiff-backup
kernel: 2.6.35.6-48.fc14.x86_64
package: rdiff-backup-1.2.8-5.fc14
reason: rpath.py:993:rmdir:OSError: [Errno 39] Directory not empty: '/var/backup/.Trash-1000'
release: Fedora release 14 (Laughlin)
time: 1289595825
uid: 500

backtrace
-----
rpath.py:993:rmdir:OSError: [Errno 39] Directory not empty: '/var/backup/.Trash-1000'

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 30, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 346, in Backup
    backup.Mirror(rpin, rpout)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 232, in patch
    ITR(diff.index, diff)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 277, in __call__
    if self.finish_branches(index) is None:
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 229, in finish_branches
    to_be_finished.end_process()
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 672, in end_process
    self.base_rp.rmdir()
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/rpath.py", line 993, in rmdir
    self.conn.os.rmdir(self.path)
OSError: [Errno 39] Directory not empty: '/var/backup/.Trash-1000'

Local variables in innermost frame:
self: <rdiff_backup.rpath.RPath instance at 0x7f122e27e8c0>

How to reproduce
-----
1. Call rdiff-backup on its first run on a directory that still contains the .Trash-directory.
2. Use it with the --force flag.

Comment 1 Pieter De Praetere 2010-11-12 21:22:09 UTC
Created attachment 460153 [details]
File: backtrace

Comment 2 Kevin Fenzi 2010-11-13 22:01:48 UTC
So what do you expect it to do in this case? Overwrite the directory anyhow, because you used --force?

--force only means to force an update or other action on a valid rdiff-backup directory. 

Not sure what we can do here... Upstream development isn't too active, but we could open discussion on how to handle this on their list?


Note You need to log in before you can comment on or make changes to this bug.