4

Folks,

I have been in trouble with deja-dup, Ubuntu backup utility. It asks encryption password every time when back up starts. I entered every related passwords (server's one, client's one, and all things I think related), but it does not help. After entering encryption password, deja-dup works for some time and asks password again.

I expected this symptom has been solved in 14.04, but unforatunately deja-dup in 14.04 has exactly the same case.

Here is my environment of backup ...

My laptop computer (ThinkPad X220) is scheduled to be backed up files under my home directory in every week. The destination of backup is my office computer (running Ubuntu 12.04). This backup is made using ssh connection (so, selection of backup style in deja-dup is "ssh").

Help, suggestion and answers appreciated.

terakinizers
  • 71
  • 1
  • 2
  • 7
  • I'm seeing this as well. It looks like it gets to a specific file, prompts for the password and then starts over from the beginning. Excluding that specific file (or its folder) just means it finds a different file to loop back on. – Darcy Casselman Jul 14 '14 at 01:42
  • I had this problem, and this post helped: https://askubuntu.com/questions/1057627/duplicity-fails-with-bad-session-key-error – Sam Oct 23 '18 at 11:11

7 Answers7

8

If you run Deja-Dup from a terminal, you may be able to get more info on the problem:

export DEJA_DUP_DEBUG=1
deja-dup --backup

In my particular case, it turned out that there was a stale lock file preventing GnuPG from working at all. Deleting ~/.gnupg/gnupg_spawn_agent_sentinel.lock solved the issue for me.

Ponkadoodle
  • 181
  • 1
  • 4
7

I had a similar problem with deja-dup running on Ubuntu 14.04. I found that these directories in my home folder were owned by root.

  • .dbus
  • .gnupg
  • .gvfs
  • .rnd

After I changed the ownership of those directories and their contents to me, deja-dup was able to create an encrypted backup of my home directory.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
Robert C.
  • 71
  • 1
  • 3
2

I also faced this annoying problem and it is still an open bug (here is the report)

Changing the path/name of the backup folder solved the issue for me.

  • 1
    @CharlesGreen `After entering encryption password, deja-dup works for some time and asks password again.` The same thing was happening to me, too. Changing the path is a workaround as described [here](https://bugs.launchpad.net/ubuntu/+source/deja-dup/+bug/989750/comments/5) and [here](https://bugs.launchpad.net/ubuntu/+source/deja-dup/+bug/989750/comments/11) – yildirimyigit Sep 11 '14 at 13:41
0

Following @Ponkadoodle's answer to debug he problem I only found a vacuous stack trace due to an EOFError with the text Compressed file ended before the end-of-stream marker was reached.

What actually helped was deleting the directory ~/.cache/deja-dup/[32 digit hex]. The backup started immediately afterwards finally succeeded. The directory was recreated by Déjà Dup, so the hex string seems more like an identifier than a random name.

I also found that my .gnupg directory was owned by root. I changed that in accordance to @Robert C.'s answer. While it did not solve the problem it might have caused it, so better check all mentioned directories.

Brandlingo
  • 101
  • 2
0

deja-dup uses duplicity, so perhaps there is an option in the gui to turn off encryption?

For example, with a duplicity command you'd turn off encryption this way:

duplicity --no-ecryption --verbosity 8 /home/user/folder-to-backup/ file:///home/user/backup/destination-folder/

I realize this doesn't address your question perfectly, but sense no one else has tried, I thought I'd say something. Turning encryption off might not be acceptable, but I suspect it would prevent that prompting you're trying to avoid.

Lonnie Best
  • 2,174
  • 2
  • 32
  • 42
0

Here's what I did:

I formatted and renamed my external USB disk and then selected it under "Storage location."

Also, this time I chose the option "Allow to restore files without password."

I hope this helps.

bernland
  • 101
  • 1
0

Not sure if this is what you're looking for, but...

To reset the password (yes, I have found a way to reset deja-dup password.) you must simply enter your deja-dup folder and delete EVERY SINGLE BACKUP. On it's next attempt to backup, it should ask you for a NEW password.

Cheers!