Weird mount behaviour giving Input/output error

Bug #454800 reported by Michael
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Fix Released
Medium
Unassigned
ecryptfs-utils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

This only occured when I upgraded to release 81.

Basically this is my /etc/fstab

/srv/backup/originals /srv/rsync/data/originals ecryptfs r,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs,ecryptfs_encrypted_view 0 0
/srv/backup/originals /srv/backup/originals ecryptfs rw,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs 0 0

When I try to access either the encrypted or unecrypted view vI get
me@ubuntu-nas:/srv$ echo "hello world\n" > rsync/data/originals/hello.txt
-bash: rsync/data/originals/hello.txt: Input/output error
me@ubuntu-nas:/srv$ echo "hello world\n" > backup/originals/hello.txt
-bash: backup/originals/hello.txt: Input/output error

me@ubuntu-nas:/srv$ less rsync/data/originals/documents/codes/code.txt
rsync/data/originals/documents/codes/code.txt: Input/output error
me@ubuntu-nas:/srv$ less backup/originals/documents/codes/code.txt
backup/originals/documents/codes/code.txt: Input/output error

Now this is the weird bit
If I
me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals
me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals

It works as expected the encrypted view is encrypted, the normal view is decrypted, and file creation works properly.

me@ubuntu-nas:/srv$ sudo mount -a
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_encrypted_view
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=7ad5e0064d20e6c9
Mounted eCryptfs
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=7ad5e0064d20e6c9
Mounted eCryptfs

Breaks it again.

Revision history for this message
Michael (m-kucharski) wrote :

Here is some lines from syslog
Oct 18 17:40:28 ubuntu-nas kernel: [ 5554.465186] Valid eCryptfs headers not found in file header region or xattr region
Oct 18 17:40:28 ubuntu-nas kernel: [ 5554.465199] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
Oct 18 17:41:39 ubuntu-nas umount.ecryptfs: Failed to find key with sig [7ad5e0064d20e6c9]: Required key not available
Oct 18 17:42:04 ubuntu-nas cnid_dbd[2969]: main: Idle timeout, exiting
Oct 18 17:42:12 ubuntu-nas cnid_metad: cnid_dbd pid 2969 exited with exit code 0
Oct 18 17:44:29 ubuntu-nas mount.ecryptfs: Error initializing key module [/usr/lib/ecryptfs/libecryptfs_key_mod_gpg.so]; rc = [-22]
Oct 18 17:44:31 ubuntu-nas kernel: [ 5797.692006] ecryptfs_parse_options: eCryptfs: unrecognized option [r]
Oct 18 17:44:31 ubuntu-nas mount.ecryptfs: Error initializing key module [/usr/lib/ecryptfs/libecryptfs_key_mod_gpg.so]; rc = [-22]
L

summary: - Wierd mount behvaiour giving Input/output error
+ Weird mount behvaiour giving Input/output error
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote : Re: Weird mount behvaiour giving Input/output error

I'm seeing the same kind of error in my dmesg here, with ecryptfs-utils 81-0ubuntu3 in Karmic. If you need debugging, please just ask.

Changed in ecryptfs-utils (Ubuntu):
status: New → Confirmed
summary: - Weird mount behvaiour giving Input/output error
+ Weird mount behaviour giving Input/output error
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Tyler, you use ecryptfs in /etc/fstab, don't you?

Could you try the last released ecryptfs-utils and see if you can reproduce these problems?

Changed in ecryptfs:
importance: Undecided → Medium
Changed in ecryptfs-utils (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Michael (m-kucharski) wrote : Re: [Bug 454800] Re: Weird mount behaviour giving Input/output error

The problem went away in a later release.

On 17 February 2010 17:35, Dustin Kirkland <email address hidden>wrote:

> Tyler, you use ecryptfs in /etc/fstab, don't you?
>
> Could you try the last released ecryptfs-utils and see if you can
> reproduce these problems?
>
> ** Changed in: ecryptfs
> Importance: Undecided => Medium
>
> ** Changed in: ecryptfs-utils (Ubuntu)
> Importance: Undecided => Medium
>
> --
> Weird mount behaviour giving Input/output error
> https://bugs.launchpad.net/bugs/454800
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in eCryptfs - Enterprise Cryptographic Filesystem: New
> Status in “ecryptfs-utils” package in Ubuntu: Confirmed
>
> Bug description:
> This only occured when I upgraded to release 81.
>
> Basically this is my /etc/fstab
>
> /srv/backup/originals /srv/rsync/data/originals ecryptfs
> r,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs,ecryptfs_encrypted_view
> 0 0
> /srv/backup/originals /srv/backup/originals ecryptfs
> rw,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs
> 0 0
>
> When I try to access either the encrypted or unecrypted view vI get
> me@ubuntu-nas:/srv$ echo "hello world\n" > rsync/data/originals/hello.txt
> -bash: rsync/data/originals/hello.txt: Input/output error
> me@ubuntu-nas:/srv$ echo "hello world\n" > backup/originals/hello.txt
> -bash: backup/originals/hello.txt: Input/output error
>
> me@ubuntu-nas:/srv$ less rsync/data/originals/documents/codes/code.txt
> rsync/data/originals/documents/codes/code.txt: Input/output error
> me@ubuntu-nas:/srv$ less backup/originals/documents/codes/code.txt
> backup/originals/documents/codes/code.txt: Input/output error
>
> Now this is the weird bit
> If I
> me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals
> me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals
>
> It works as expected the encrypted view is encrypted, the normal view is
> decrypted, and file creation works properly.
>
> me@ubuntu-nas:/srv$ sudo mount -a
> Attempting to mount with the following options:
> ecryptfs_unlink_sigs
> ecryptfs_encrypted_view
> ecryptfs_key_bytes=16
> ecryptfs_cipher=aes
> ecryptfs_sig=7ad5e0064d20e6c9
> Mounted eCryptfs
> Attempting to mount with the following options:
> ecryptfs_unlink_sigs
> ecryptfs_key_bytes=16
> ecryptfs_cipher=aes
> ecryptfs_sig=7ad5e0064d20e6c9
> Mounted eCryptfs
>
> Breaks it again.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ecryptfs/+bug/454800/+subscribe
>

Changed in ecryptfs:
status: New → Fix Released
Changed in ecryptfs-utils (Ubuntu):
status: Confirmed → 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.