duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] gdocs backend with par2 problem


From: Laurent Lavaud
Subject: Re: [Duplicity-talk] gdocs backend with par2 problem
Date: Tue, 21 Oct 2014 14:36:23 +0200 (CEST)

in fact now it connect but failed after when uploading:

Duplicity 0.6 series is being deprecated:
See http://www.nongnu.org/duplicity/

Using archive dir: /root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c
Using backup name: 42c50b0eead9ebba415b3f454e57b95c
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.u1backend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.~par2wrapperbackend Succeeded
Main action: inc
================================================================================
duplicity 0.6.25 (October 20, 2014)
Args: /opt/bin/duplicity -v9 --encrypt-key=xxx --sign-key=xxx --use-agent 
--allow-source-mismatch --tempdir=/share/MD0_DATA/.duplicity/temp 
/share/MD0_DATA/data/documents par2+gdocs://xxx/duplicity/documents
Linux NASC5ED37 3.4.6 #1 Fri Oct 3 18:32:07 CST 2014 armv5tel 
/opt/bin/python2.6 2.6.8 (unknown, Apr 12 2012, 13:02:25) 
[GCC 4.2.3]
================================================================================
Using temporary directory 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir
Registering (mkstemp) temporary file 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/mkstemp-BfITE5-1
Temp has 1950688108544 available, backup will use approx 34078720.
Local and Remote metadata are synchronized, no sync needed.
0 files exist on backend
2 files exist in cache
Extracting backup chains from list of files: []
Last full backup date: none
Collection Status
-----------------
Connecting with backend: Par2WrapperBackend
Archive dir: /root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c

Found 0 secondary backup chains.
No backup chains with active signatures found
No orphaned or incomplete backup sets found.
No signatures found, switching to full backup.
Using temporary directory 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-aKEnwt-tempdir
Registering (mktemp) temporary file 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-aKEnwt-tempdir/mktemp-H7NfKO-1
Using temporary directory 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-b95Oqb-tempdir
Registering (mktemp) temporary file 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-b95Oqb-tempdir/mktemp-YanfYm-1
AsyncScheduler: instantiating at concurrency 0
Registering (mktemp) temporary file 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/mktemp-pfGEZX-2
Selecting /share/MD0_DATA/data/documents
Comparing . and None
Getting delta of (. dir) and None
A .
Selecting /share/MD0_DATA/data/documents/astronomie
Comparing astronomie and None
Getting delta of (astronomie dir) and None
A astronomie
Selecting /share/MD0_DATA/data/documents/astronomie/Astrométrie.pdf
Comparing astronomie/Astrométrie.pdf and None
Getting delta of (astronomie/Astrométrie.pdf reg) and None
A astronomie/Astrométrie.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/AviStack_eng.pdf
Comparing astronomie/AviStack_eng.pdf and None
Getting delta of (astronomie/AviStack_eng.pdf reg) and None
A astronomie/AviStack_eng.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/Ciel en 
fete-20110515-imagerie planetaire.pdf
Comparing astronomie/Ciel en fete-20110515-imagerie planetaire.pdf and None
Getting delta of (astronomie/Ciel en fete-20110515-imagerie planetaire.pdf reg) 
and None
A astronomie/Ciel en fete-20110515-imagerie planetaire.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/RCE_2010_CCD_urbain.pdf
Comparing astronomie/RCE_2010_CCD_urbain.pdf and None
Getting delta of (astronomie/RCE_2010_CCD_urbain.pdf reg) and None
A astronomie/RCE_2010_CCD_urbain.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/RCE_2010_Choix_CCD.pdf
Comparing astronomie/RCE_2010_Choix_CCD.pdf and None
Getting delta of (astronomie/RCE_2010_Choix_CCD.pdf reg) and None
A astronomie/RCE_2010_Choix_CCD.pdf
Selecting 
/share/MD0_DATA/data/documents/astronomie/RCE_2010_Optimisation_C14.pdf
Comparing astronomie/RCE_2010_Optimisation_C14.pdf and None
Getting delta of (astronomie/RCE_2010_Optimisation_C14.pdf reg) and None
A astronomie/RCE_2010_Optimisation_C14.pdf
Selecting 
/share/MD0_DATA/data/documents/astronomie/RCE_2010_Photographier_ISS.pdf
Comparing astronomie/RCE_2010_Photographier_ISS.pdf and None
Getting delta of (astronomie/RCE_2010_Photographier_ISS.pdf reg) and None
A astronomie/RCE_2010_Photographier_ISS.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/Stage_traitement_d.image.pdf
Comparing astronomie/Stage_traitement_d.image.pdf and None
Getting delta of (astronomie/Stage_traitement_d.image.pdf reg) and None
A astronomie/Stage_traitement_d.image.pdf
Selecting /share/MD0_DATA/data/documents/astronomie/ameliorer_c8.pdf
Comparing astronomie/ameliorer_c8.pdf and None
Getting delta of (astronomie/ameliorer_c8.pdf reg) and None
A astronomie/ameliorer_c8.pdf
Removing still remembered temporary file 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-aKEnwt-tempdir/mktemp-H7NfKO-1
Removing still remembered temporary file 
/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/duplicity-b95Oqb-tempdir/mktemp-YanfYm-1
AsyncScheduler: running task synchronously (asynchronicity disabled)
Making directory 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/duplicity_temp.1
Create Par2 recovery files
Deleting 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/duplicity_temp.1/duplicity-full.20141021T121651Z.vol1.difftar.gpg
Attempt 1 failed: BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 
Backtrace of previous error: Traceback (innermost last):
  File "/opt/lib/python2.6/site-packages/duplicity/backend.py", line 318, in 
iterate
    return fn(*args, **kwargs)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 118, in put
    % (source_path.get_filename(), self.folder.title.text, str(e)), 
raise_errors)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 175, in __handle_error
    raise BackendException(message)
 BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 

Attempt 2 failed: BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 
Backtrace of previous error: Traceback (innermost last):
  File "/opt/lib/python2.6/site-packages/duplicity/backend.py", line 318, in 
iterate
    return fn(*args, **kwargs)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 118, in put
    % (source_path.get_filename(), self.folder.title.text, str(e)), 
raise_errors)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 175, in __handle_error
    raise BackendException(message)
 BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 

Attempt 3 failed: BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 
Backtrace of previous error: Traceback (innermost last):
  File "/opt/lib/python2.6/site-packages/duplicity/backend.py", line 318, in 
iterate
    return fn(*args, **kwargs)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 118, in put
    % (source_path.get_filename(), self.folder.title.text, str(e)), 
raise_errors)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 175, in __handle_error
    raise BackendException(message)
 BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 

Attempt 4 failed: BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 
Backtrace of previous error: Traceback (innermost last):
  File "/opt/lib/python2.6/site-packages/duplicity/backend.py", line 318, in 
iterate
    return fn(*args, **kwargs)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 118, in put
    % (source_path.get_filename(), self.folder.title.text, str(e)), 
raise_errors)
  File "/opt/lib/python2.6/site-packages/duplicity/backends/gdocsbackend.py", 
line 175, in __handle_error
    raise BackendException(message)
 BackendException: Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 

Failed to upload file 
'duplicity-full.20141021T121651Z.vol1.difftar.gpg.vol000+200.par2' to remote 
folder 'documents': Server responded with: 400, 
Releasing lockfile <LinkLockFile: 
'/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/NASC5ED37-b6fe8000.18555'
 -- '/root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c/lockfile'>
Removing still remembered temporary file 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/mktemp-pfGEZX-2
Removing still remembered temporary file 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir/mkstemp-BfITE5-1
Cleanup of temporary directory 
/share/MD0_DATA/.duplicity/temp/duplicity-Ck8oeJ-tempdir failed - this is 
probably a bug.

--
Laurent Lavaud
Administrateur Systèmes et Réseaux

----- Mail original -----
> ok it was my fault, my google account was not configured to allow
> some application to connect.
> 
> BackendException: Invalid user credentials given. Be aware that
> accounts that use 2-step verification require creating an
> application specific access code for using this Duplicity backend.
> Follow the instrucction in
> http://www.google.com/support/accounts/bin/static.py?page=guide.cs&guide=1056283&topic=1056286
> and create your application-specific password to run duplicity
> backups.
> 
> 
> thanks for your quick response !
> 
> --
> Laurent Lavaud
> Administrateur Systèmes et Réseaux
> 
> ----- Mail original -----
> > On 21.10.2014 10:58, Laurent Lavaud wrote:
> > > Hello,
> > > 
> > > It seems the PAR2 option dont work with gdocs backend, my command
> > > line:
> > > 
> > > duplicity -v9 --encrypt-key=xxx --sign-key=xxx --use-agent
> > > --allow-source-mismatch --tempdir=/share/MD0_DATA/.duplicity/temp
> > > /share/MD0_DATA/data/documents
> > > par2+gdocs://address@hidden/duplicity/documents
> > > 
> > > if i use only gdocs backend, it works well.
> > > 
> > > i use the latest 0.6.25 version.
> > > 
> > > errors log:
> > > 
> > > Duplicity 0.6 series is being deprecated:
> > > See http://www.nongnu.org/duplicity/
> > > 
> > > Using archive dir:
> > > /root/.cache/duplicity/42c50b0eead9ebba415b3f454e57b95c
> > > Using backup name: 42c50b0eead9ebba415b3f454e57b95c
> > > Import of duplicity.backends.botobackend Succeeded
> > > Import of duplicity.backends.cfbackend Succeeded
> > > Import of duplicity.backends.dpbxbackend Succeeded
> > > Import of duplicity.backends.ftpbackend Succeeded
> > > Import of duplicity.backends.ftpsbackend Succeededpython
> > > Import of duplicity.backends.hsibackend Succeeded
> > > Import of duplicity.backends.imapbackend Succeeded
> > > Import of duplicity.backends.localbackend Succeeded
> > > Import of duplicity.backends.megabackend Succeeded
> > > Import of duplicity.backends.rsyncbackend Succeeded
> > > Import of duplicity.backends.sshbackend Succeeded
> > > Import of duplicity.backends.swiftbackend Succeeded
> > > Import of duplicity.backends.tahoebackend Succeeded
> > > Import of duplicity.backends.u1backend Succeeded
> > > Import of duplicity.backends.webdavbackend Succeeded
> > > Import of duplicity.backends.~par2wrapperbackend Succeeded
> > > Using temporary directory
> > > /share/MD0_DATA/.duplicity/temp/duplicity-aoATHn-tempdir
> > > User error detail: Traceback (most recent call last):
> > >   File "/opt/bin/duplicity", line 1509, in <module>
> > >     with_tempdir(main)
> > >   File "/opt/bin/duplicity", line 1503, in with_tempdir
> > >     fn()
> > >   File "/opt/bin/duplicity", line 1336, in main
> > >     action = commandline.ProcessCommandLine(sys.argv[1:])
> > >   File
> > >   "/opt/lib/python2.6/site-packages/duplicity/commandline.py",
> > >   line 1062, in ProcessCommandLine
> > >     backup, local_pathname = set_backend(args[0], args[1])
> > >   File
> > >   "/opt/lib/python2.6/site-packages/duplicity/commandline.py",
> > >   line 955, in set_backend
> > >     globals.backend = backend.get_backend(bend)
> > >   File "/opt/lib/python2.6/site-packages/duplicity/backend.py",
> > >   line 163, in get_backend
> > >     return _backends[pu.scheme](pu)
> > >   File
> > >   
> > > "/opt/lib/python2.6/site-packages/duplicity/backends/~par2wrapperbackend.py",
> > >   line 50, in __init__
> > >     raise UnsupportedBackendScheme(self.parsed_url.url_string)
> > > UnsupportedBackendScheme: scheme not supported in url:
> > > par2+gdocs://address@hidden/duplicity/documents
> > > 
> > > UnsupportedBackendScheme: scheme not supported in url:
> > > par2+gdocs://address@hidden/duplicity/documents
> > > 
> > > 
> > 
> > could you edit your copy of
> > /opt/lib/python2.6/site-packages/duplicity/backends/~par2wrapperbackend.py
> > around line 50 from
> > 
> >         try:
> >             url_string = self.parsed_url.url_string.lstrip('par2+')
> >             self.wrapped_backend = backend.get_backend(url_string)
> >         except:
> >             raise
> >             UnsupportedBackendScheme(self.parsed_url.url_string)
> > 
> > to
> > 
> >             url_string = self.parsed_url.url_string.lstrip('par2+')
> >             self.wrapped_backend = backend.get_backend(url_string)
> > 
> > removing the try/except?
> > 
> > please rerun and send the output.. ede/duply.net
> > 
> > 
> > _______________________________________________
> > Duplicity-talk mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/duplicity-talk
> > 
> 
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]