Read-Only Error with Encrypted Volume

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Read-Only Error with Encrypted Volume

Rolf Inator
Dear List,
 
I was moving from dejavu (on my Ubuntu machine) to rdiff-backup, because it seemed to have finer granularity for restoring actions. Unfortunately I tried to back my system up the second time now, but it aborted with an error. This is my setup:
sudo losetup /dev/loop0 backup_file
sudo cryptsetup luksOpen /dev/loop0 container
sudo mount -t ext4 /dev/mapper/container /media/homeuser/encryptedmount
Then I start the backup with rdiff-backup:
sudo rdiff-backup /home/homeuser/ /media/homeuser/encryptedmount/home/
 
After a while the system freezes until I unplug the external drive, where the backup goes to, with the following error message:
homeuser@laptop:~$ sudo rdiff-backup /home/homeuser/ /media/homeuser/encryptedmount/home/
Exception '[Errno 30] Read-only file system: '/media/homeuser/encryptedmount/home/runs/131206-200557'' raised of class '<type 'exceptions.OSError'>':
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 346, in Backup
    backup.Mirror(rpin, rpout)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 232, in patch
    ITR(diff.index, diff)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 277, in __call__
    if self.finish_branches(index) is None:
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 229, in finish_branches
    to_be_finished.end_process()
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 664, in end_process
    rpath.copy_attribs(self.dir_update, self.base_rp)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rpath.py", line 180, in copy_attribs
    rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rpath.py", line 977, in chown
    else: os.chown(self.path, uid, gid)
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/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 346, in Backup
    backup.Mirror(rpin, rpout)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 232, in patch
    ITR(diff.index, diff)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 277, in __call__
    if self.finish_branches(index) is None:
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 229, in finish_branches
    to_be_finished.end_process()
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 664, in end_process
    rpath.copy_attribs(self.dir_update, self.base_rp)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rpath.py", line 180, in copy_attribs
    rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rpath.py", line 977, in chown
    else: os.chown(self.path, uid, gid)
OSError: [Errno 30] Read-only file system: '/media/homeuser/encryptedmount/home/runs/131206-200557'
 
Is there anything that I am doing wrong?
 
Best and thanks,
Rolf

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: Read-Only Error with Encrypted Volume

Robert Nichols-2
On 07/29/2014 02:06 PM, Rolf Inator wrote:

> Dear List,
> I was moving from dejavu (on my Ubuntu machine) to rdiff-backup, because it
> seemed to have finer granularity for restoring actions. Unfortunately I tried to
> back my system up the second time now, but it aborted with an error. This is my
> setup:
> sudo losetup /dev/loop0 backup_file
> sudo cryptsetup luksOpen /dev/loop0 container
> sudo mount -t ext4 /dev/mapper/container /media/homeuser/encryptedmount
> Then I start the backup with rdiff-backup:
> sudo rdiff-backup /home/homeuser/ /media/homeuser/encryptedmount/home/
> After a while the system freezes until I unplug the external drive, where the
> backup goes to, with the following error message:
> homeuser@laptop:~$ sudo rdiff-backup /home/homeuser/
> /media/homeuser/encryptedmount/home/
> Exception '[Errno 30] Read-only file system:

It could be hanging up trying to read (forever) from a socket file. Try
using the "--exclude-sockets" option.

The mounted filesystem becomes read-only because you unplugged the drive.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: Read-Only Error with Encrypted Volume

Rolf Inator
Awesome, that you answered my question- thanks!
 
I will give it a try and will post again, after trying. My first thoughts were that some of the virtual machines are bearing, because they are too large to get backupped or the target responds too slow- but the socket hint is also a good catch.
 
Gesendet: Mittwoch, 30. Juli 2014 um 03:19 Uhr
Von: "Robert Nichols" <[hidden email]>
An: [hidden email]
Betreff: Re: [rdiff-backup-users] Read-Only Error with Encrypted Volume
On 07/29/2014 02:06 PM, Rolf Inator wrote:
> Dear List,
> I was moving from dejavu (on my Ubuntu machine) to rdiff-backup, because it
> seemed to have finer granularity for restoring actions. Unfortunately I tried to
> back my system up the second time now, but it aborted with an error. This is my
> setup:
> sudo losetup /dev/loop0 backup_file
> sudo cryptsetup luksOpen /dev/loop0 container
> sudo mount -t ext4 /dev/mapper/container /media/homeuser/encryptedmount
> Then I start the backup with rdiff-backup:
> sudo rdiff-backup /home/homeuser/ /media/homeuser/encryptedmount/home/
> After a while the system freezes until I unplug the external drive, where the
> backup goes to, with the following error message:
> homeuser@laptop:~$ sudo rdiff-backup /home/homeuser/
> /media/homeuser/encryptedmount/home/
> Exception '[Errno 30] Read-only file system:

It could be hanging up trying to read (forever) from a socket file. Try
using the "--exclude-sockets" option.

The mounted filesystem becomes read-only because you unplugged the drive.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: Read-Only Error with Encrypted Volume

Rolf Inator
In reply to this post by Robert Nichols-2
Seemingly that was the problem. The backup is now possible within 2hours and without any trouble. Thanks Robert!
 
Gesendet: Mittwoch, 30. Juli 2014 um 03:19 Uhr
Von: "Robert Nichols" <[hidden email]>
An: [hidden email]
Betreff: Re: [rdiff-backup-users] Read-Only Error with Encrypted Volume
On 07/29/2014 02:06 PM, Rolf Inator wrote:
> Dear List,
> I was moving from dejavu (on my Ubuntu machine) to rdiff-backup, because it
> seemed to have finer granularity for restoring actions. Unfortunately I tried to
> back my system up the second time now, but it aborted with an error. This is my
> setup:
> sudo losetup /dev/loop0 backup_file
> sudo cryptsetup luksOpen /dev/loop0 container
> sudo mount -t ext4 /dev/mapper/container /media/homeuser/encryptedmount
> Then I start the backup with rdiff-backup:
> sudo rdiff-backup /home/homeuser/ /media/homeuser/encryptedmount/home/
> After a while the system freezes until I unplug the external drive, where the
> backup goes to, with the following error message:
> homeuser@laptop:~$ sudo rdiff-backup /home/homeuser/
> /media/homeuser/encryptedmount/home/
> Exception '[Errno 30] Read-only file system:

It could be hanging up trying to read (forever) from a socket file. Try
using the "--exclude-sockets" option.

The mounted filesystem becomes read-only because you unplugged the drive.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki