Bug 1076675

Summary: [abrt] rdiff-backup: connection.py:370:reval:IOError: [Errno 28] No space left on device
Product: [Fedora] Fedora Reporter: Dieter Kasper <dieter.kasper>
Component: rdiff-backupAssignee: Kevin Fenzi <kevin>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: frank, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c091adeb80a92584c67649a1db5d3de88faf3a39
Whiteboard: abrt_hash:8e6e664f614f8c3a4d4b403af95cb969ced0a629
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-19 16:34:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Dieter Kasper 2014-03-14 19:57:36 UTC
Description of problem:
no space left on target device

Version-Release number of selected component:
rdiff-backup-1.2.8-11.fc20

Additional info:
reporter:       libreport-2.1.12
cmdline:        /usr/bin/python /usr/bin/rdiff-backup -v5 /home/ksp/p ksp@pingu::/no_save/sdb/ksp/mobi-rdiff.p
executable:     /usr/bin/rdiff-backup
kernel:         3.12.10-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            2128

Truncated backtrace:
connection.py:370:reval:IOError: [Errno 28] No space left on device

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 337, in Backup
    backup_final_init(rpout)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 501, in backup_final_init
    checkdest_if_necessary(rpout)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 920, in checkdest_if_necessary
    dest_rp.conn.regress.Regress(dest_rp)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/connection.py", line 450, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/connection.py", line 370, in reval
    if isinstance(result, Exception): raise result
IOError: [Errno 28] No space left on device

Local variables in innermost frame:
req_num: 0
self: PipeConnection 1
args: (<rdiff_backup.rpath.RPath instance at 0x1c8ba70>,)
result: IOError(28, 'No space left on device')
function_string: 'regress.Regress'
arg: <rdiff_backup.rpath.RPath instance at 0x1c8ba70>

Potential duplicate: bug 794502

Comment 1 Dieter Kasper 2014-03-14 19:57:42 UTC
Created attachment 874589 [details]
File: backtrace

Comment 2 Dieter Kasper 2014-03-14 19:57:44 UTC
Created attachment 874590 [details]
File: environ

Comment 3 Kevin Fenzi 2014-03-14 21:49:18 UTC
Your device seems to be out of space? 

There's not much we can really do about that for you... 

Unless you see space available or something?

Comment 4 Dieter Kasper 2014-03-16 15:30:25 UTC
script fragments :

    pingu)
        RDIFF=ksp@$HOST
        RSYNC=$HOST:
        if [ "$ip_flag" = "Not-in-MchX-or-via-KD" ] ; then echo $ip_flag; exit 2; fi
        DST=/no_save/sdb
        CHK_DST=`ssh -X $HOST mount | grep $DST`
        if [ "$CHK_DST" = "" ] ; then echo "$DST not mounted"; exit 3; fi
        DST=/no_save/sdb/ksp
        break;;


  nice -99 rdiff-backup -v5 /var/spool/mail     $RDIFF::$DST/mobi-rdiff.mail
  nice -99 rdiff-backup -v5 $HOME/Mail          $RDIFF::$DST/mobi-rdiff.Mail
  nice -99 rdiff-backup -v5 $HOME/p             $RDIFF::$DST/mobi-rdiff.p

________________________________________________________________________________
It seems to me there should be plenty of space available and usable ...

$ uname -a
Linux pingu 3.8.0 #9 SMP PREEMPT Mon Jun 24 09:31:53 CEST 2013 i686 GNU/Linux

$ df -k /no_save/sdb
Dateisystem    1K-Blöcke   Benutzt Verfügbar Verw% Eingehängt auf
/dev/sdb       480721640 174802352 281499960   39% /no_save/sdb

$ mount | grep sdb
/dev/sdb on /no_save/sdb type ext2 (rw,relatime,errors=continue)

$ id
uid=2128(ksp) gid=2128(ksp) Gruppen=2128(ksp)

ksp@pingu:~$ dd if=/dev/zero of=/no_save/sdb/ksp/test bs=1024k count=4096
4096+0 Datensätze ein
4096+0 Datensätze aus
4294967296 Bytes (4,3 GB) kopiert, 84,3486 s, 50,9 MB/s

ksp@pingu:~$ ls -lh /no_save/sdb/ksp/test
-rw-r--r-- 1 ksp ksp 4,0G Mär 16 16:23 /no_save/sdb/ksp/test

Comment 5 Kevin Fenzi 2014-03-17 20:51:10 UTC
How about /tmp on the remote machine? Does it contain enough space to unpack and apply increments? 

If you pass it --tempdir /no_save/sdb/tmp/ or the like does it work?

Comment 6 Dieter Kasper 2014-03-18 22:38:21 UTC
setting --tempdir worked for me

So, you can close this bug report,
except you think it would be useful to add the Path which caused ENOSPC
to the message 
"connection.py:370:reval:IOError: [Errno 28] No space left on device"

Thanks

Comment 7 Kevin Fenzi 2014-03-19 16:34:39 UTC
Yeah, the error could be better. ;( 

Will see if I can ask upstream to improve it. 

Thanks for the report and glad you got it working...