Old stashes with .encfs5 config files are not supported

Bug #1127068 reported by shuerhaaken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnome Encfs Manager
Confirmed
Wishlist
Moritz Molch

Bug Description

If I try to import my existing encfs folder ~/.crypt-raw Gnome Encfs Manager does not allow finishing this operation.
Ok Button is disabled.

Revision history for this message
Moritz Molch (mmolch) wrote :

Hello and thank you for reporting your problem.

Unfortunately I can't reproduce this. I created a stash at said location and and was able to import it without any problems.
The only things I can think of at the moment are that you didn't specify the full path or that the mount point is already used by another stash. I really need more information, e.g. what exactly you entered in the stash directory and mount directory fields. Also please include your Ubuntu version and the GEncfsM version.

Best Regards,
Moritz

Revision history for this message
shuerhaaken (shkn) wrote :

I have the ppa version and I'm running it under ubuntu 12.10.

Please see sreenshot here:
https://dl.dropbox.com/u/81625551/Bildschirmfoto%20vom%202013-02-16%2013%3A41%3A24.jpg

It is an encrypted folder that I use with cryptkeeper for years now.

About dialog sais version is '1.6.4~quantal1'

Revision history for this message
Moritz Molch (mmolch) wrote :

Strange. Does the stash contain the file ".encfs6.xml" or is the encfs config file named different?
The import code is actually kind of messy at the moment and I plan to redesign it in one of the next versions.

PS: If you are OK with a workaround for now, you can try to manually edit the stashes in dconf-editor under "/com/libertyzero/gnome-encfs-manager". Just create a new stash and then adjust the pathes.

Revision history for this message
shuerhaaken (shkn) wrote :

I found a file called ".encfs5"
No extension.
I'll try the workaround.

You should get the import code very soon, because cryptkeeper will not be usable from 13.04 on, because it does not have an appindicactor, afaik.
This is the time when users might start looking for alternatives. And your application seems the perfect drop-in replacement for cryptkeeper.

Revision history for this message
Moritz Molch (mmolch) wrote :

The import code actually works fine. It's just annoying to read.
In your case, add ".encfs5" to the "encfs-config-files" key in dconf-editor and it should work.

Revision history for this message
Moritz Molch (mmolch) wrote :

I added the file ".encfs5" to the list of recognized encfs config files in 1.6.5, hence I mark this bug as fix released.

Changed in gencfsm:
assignee: nobody → LibertyZero (libertyzero)
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
shuerhaaken (shkn) wrote :

Just adding ".encfs5" does not really help.
Importing now seemed possible. First mount looks like working but mount directory was empty.
Trying to mount it again gives the message that the password is wrong.

After that I tried with cryptkeeper and the mount directory also is empty.
Looks like the stash is corrupted after trying to import with GEncfsM!
Luckyly I had a backup.

The whole problem is reproducible for me.

Maybe you should not add ".encfs5".

Do you parse these config files yourself?

I worked around by creating a new stash with GEncfsM and copying my files to that new stash from the old one.
The old one I mounted with cryptkeeper from backup.

Revision history for this message
shuerhaaken (shkn) wrote :

One thing I can also see is that when I try to mount the stash with cryptkeeper now a file called ".encfs6.xml" is now created. The file wasn't there before I tried importing with GEncfsM.
Deleting that file does not help.

Maybe the original configuration was damaged.

Revision history for this message
Moritz Molch (mmolch) wrote :

All that GEncfsM does is trying to find an encfs config file from the list in encfs-config-files and then sets the ENCFS6_CONFIG environment variable. I can't reproduce the problem, because those .encfs5 configs were used by older encfs versions and I don't have one of those around anymore. I didn't even know that todays encfs still supports them because I read, that all old encfs stashes became incompatible at some point.
Please keep me updated, if you find out what exactly is going wrong and why.

Regards,
Moritz

Changed in gencfsm:
status: Fix Released → In Progress
Moritz Molch (mmolch)
summary: - Gnome Encfs Manager does not allow importing existing stashes
+ Old stashes with .encfs5 config files are not supported
Revision history for this message
shuerhaaken (shkn) wrote :

ok. As I said, I use this encfs container for a long time already.

Googling for ENCFS5_CONFIG (not ENCFS6_CONFIG) gave me results like this:
"... ENCFS5_CONFIG=/POSITION_DES_KEYS/.encfs5 encfs -S $dir ~/crypt"

So setting ENCFS6_CONFIG is maybe wrong for '.encfs5' ?

I have a working setup, so the situation is fine for me now.

Revision history for this message
Moritz Molch (mmolch) wrote :

Set to wishlist for now because I really don't have the time to deal with this at the moment. Also I'd need some testers for this.

Changed in gencfsm:
importance: Medium → Wishlist
status: In Progress → Confirmed
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.