Fails silently to mount on WebDAV filesystem

Bug #539227 reported by Charles
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
eCryptfs
New
Undecided
Unassigned

Bug Description

An ecrpytfs mount fails without any message when I attempt to stack it on a WebDAV filesystem. This problem was also noted at the expired question at https://answers.launchpad.net/ecryptfs/+question/96477

First my fstab entry:
        http://webdav.4shared.com:80/wa /home/tcl/4shared davfs rw,user,no

The attempted mount sequence. All appears good until the ls fails with 'Invalid argument' regarding the encrypted directory.

tcl@gilbereth:~$ mount 4shared/
/sbin/mount.davfs: warning: the server does not support locks
tcl@gilbereth:~$ sudo mount -t ecryptfs ~/4shared/ ~/vvv/
[sudo] password for tcl:
Passphrase:
Select cipher:
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]:
Select key bytes:
 1) 16
 2) 32
 3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]:
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=83000bfe5456fb3d
WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
 3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]:
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=83000bfe5456fb3d
WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
it looks like you have never mounted with this key
before. This could mean that you have typed your
passphrase wrong.

Would you like to proceed with the mount (yes/no)? : yes
Would you like to append sig [83000bfe5456fb3d] to
[/root/.ecryptfs/sig-cache.txt]
in order to avoid this warning in the future (yes/no)? : no
Not adding sig to user sig cache file; continuing with mount.
Mounted eCryptfs
tcl@gilbereth:~$ cd vvv
tcl@gilbereth:~/vvv$ ls
ls: cannot open directory .: Invalid argument
tcl@gilbereth:~/vvv$ cd ~/4shared/
tcl@gilbereth:~/4shared$ ls
fred lost+found
tcl@gilbereth:

Revision history for this message
Charles (tcl-lau) wrote :

I guess it might be helpful to include syslog...

root@gilbereth:/var/log# ls ~tcl/4shared/
fred lost+found uuuu
root@gilbereth:/var/log# ls ~tcl/vvv
ls: cannot open directory /home/tcl/vvv: Invalid argument
root@gilbereth:/var/log# tail -2 /var/log/syslog
Mar 25 20:53:30 gilbereth kernel: [670447.886305] Error opening lower persistent file for lower_dentry [0xf6c20aa0] and lower_mnt [0xf5e2a900]; rc = [-22]
Mar 25 20:53:30 gilbereth kernel: [670447.886315] ecryptfs_open: Error attempting to initialize the persistent file for the dentry with name [/]; rc = [-22]

Revision history for this message
Tobias Bradtke (webwurst) wrote :

Same for me. I really would like to use ecryptfs over webdav as a remote backup solution.

Revision history for this message
Chris (0cs935kb51-k5gb-wz6bkyhu4u) wrote :

Same problem for me. I would love to see this feature because it would easily enable me to restore single encrypted files from my online storage provider.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This is, unfortunately, a duplicate of Bug #277578. eCryptfs doesn't yet work perfectly when stacked on top of other stacked filesystems. I'll add WebDAV to the description of that one.

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.