[Duplicity-team] [Question #219277]: I don't fully understand the format of log-file. And how about add JSON-formatted log files?

2013-01-15 Thread Chaser-andrey
New question #219277 on Duplicity:
https://answers.launchpad.net/duplicity/+question/219277

What the magic numbers in the log files?
NOTICE 1
WARNING 1
WARNING 5
INFO 3

I can't found any docs about structure of log files. :-(

Also, what about adding optional support for JSON format of log files? I see in 
documentation, that log files designed to be easily consumable by other 
programs. I think that JSON format will be much better and easily, because 
there are many light and fast JSON parsers for different languages.

I'm not a Python developer, but I think, I'll might write patch if upstream 
will support this idea.


-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.

___
Mailing list: https://launchpad.net/~duplicity-team
Post to : duplicity-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~duplicity-team
More help   : https://help.launchpad.net/ListHelp


Re: [Duplicity-team] [Question #218882]: Can't run duplicity cleanup with GPG error

2013-01-11 Thread Chaser-andrey
Question #218882 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/218882

Status: Answered = Open

Chaser-andrey is still having a problem:
Distro: Gentoo Linux x86_64
Detailed output:

LANG=C duplicity -v9 cleanup file:///mnt/backup/home/ 
Using archive dir: 
/home/chaser/.cache/duplicity/8c7f80e9d2ce9e7f681de32babdd8c42
Using backup name: 8c7f80e9d2ce9e7f681de32babdd8c42
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.u1backend Failed: No module named httplib2
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Main action: cleanup

duplicity 0.6.20 (October 28, 2012)
Args: /usr/bin/duplicity -v9 cleanup file:///mnt/backup/home/
Linux andromeda 3.7.1-pf #1 SMP Sun Dec 23 13:51:58 EET 2012 x86_64 AMD 
Phenom(tm) II X4 965 Processor
/usr/bin/python2.7 2.7.3 (default, Sep 24 2012, 13:37:21) 
[GCC 4.7.1]

Synchronizing remote metadata to local cache...
PASSPHRASE variable not set, asking user.
GnuPG passphrase: 
Copying 
duplicity-new-signatures.20130109T012002Z.to.20130109T043002Z.sigtar.gpg to 
local cache.
Using temporary directory /tmp/duplicity-mzm8Ow-tempdir
Registering (mktemp) temporary file 
/tmp/duplicity-mzm8Ow-tempdir/mktemp-eBki8M-1
Registering (mktemp) temporary file 
/tmp/duplicity-mzm8Ow-tempdir/mktemp-OOcxv2-2
Removing still remembered temporary file 
/tmp/duplicity-mzm8Ow-tempdir/mktemp-OOcxv2-2
Removing still remembered temporary file 
/tmp/duplicity-mzm8Ow-tempdir/mktemp-eBki8M-1
GPG error detail: Traceback (most recent call last):
  File /usr/bin/duplicity-2.7, line 1403, in module
with_tempdir(main)
  File /usr/bin/duplicity-2.7, line 1396, in with_tempdir
fn()
  File /usr/bin/duplicity-2.7, line 1272, in main
sync_archive(decrypt)
  File /usr/bin/duplicity-2.7, line 1072, in sync_archive 

   
copy_to_local(fn)   

   
  File /usr/bin/duplicity-2.7, line 1019, in copy_to_local

   
gpg.GzipWriteFile(src_iter, tdp.name, size=sys.maxint)  

   
  File /usr/lib64/python2.7/site-packages/duplicity/gpg.py, line 375, in 
GzipWriteFile   

new_block = block_iter.next(min(128*1024, bytes_to_go)) 

   
  File /usr/bin/duplicity-2.7, line 1002, in next 

   
self.fileobj.close()

   
  File /usr/lib64/python2.7/site-packages/duplicity/dup_temp.py, line 225, in 
close   
   
assert not self.fileobj.close() 

   
  File /usr/lib64/python2.7/site-packages/duplicity/gpg.py, line 242, in 
close   

self.gpg_failed()   

   
  File /usr

[Duplicity-team] [Question #218882]: Can't run duplicity cleanup with GPG error

2013-01-10 Thread Chaser-andrey
New question #218882 on Duplicity:
https://answers.launchpad.net/duplicity/+question/218882

I can't run duplicity cleanup with GPG error
I try run:
LANG=C duplicity cleanup file:///mnt/backup/home/

and I get this output:

Import of duplicity.backends.u1backend Failed: No module named httplib2
Synchronizing remote metadata to local cache...
GnuPG passphrase: 
Copying 
duplicity-new-signatures.20130109T012002Z.to.20130109T043002Z.sigtar.gpg to 
local cache.
GPGError: GPG Failed, see log below:
= Begin GnuPG log =
gpg: encrypted with 4096-bit ELG key, ID XX, created 2012-10-18
me me@mymail
gpg: block_filter 0x2242630: read error (size=8882,a-size=8882)
gpg: unexpected EOF in bz2lib
gpg: block_filter 0x223f350: read error (size=15834,a-size=15834)
gpg: mdc_packet with invalid encoding
gpg: decryption failed: Invalid packet
gpg: block_filter: pending bytes!
gpg: block_filter: pending bytes!
= End GnuPG log =

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.

___
Mailing list: https://launchpad.net/~duplicity-team
Post to : duplicity-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~duplicity-team
More help   : https://help.launchpad.net/ListHelp