I'm trying to backup to MEGA(https:://mega.co.nz/), which duplicity supports. I tried this on Ubuntu 15.04, which I am reporting this error from, but also on 14.04. On both version i had installed mega.py via pip.
What happened on 15.04: I executed the following code:
After a couple of seconds, it displayed the following error:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1500, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1494, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1327, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1055, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 948, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 221, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 207, in get_backend_object
return factory(pu)
File "/usr/lib/python2.7/dist-packages/duplicity/backends/megabackend.py", line 44, in __init__
self.__authorize(parsed_url.username, self.get_password())
File "/usr/lib/python2.7/dist-packages/duplicity/backends/megabackend.py", line 104, in __authorize
self.client.login(email, password)
File "/usr/local/lib/python2.7/dist-packages/mega/mega.py", line 31, in login
self._login_user(email, password)
File "/usr/local/lib/python2.7/dist-packages/mega/mega.py", line 42, in _login_user
raise RequestError(resp)
RequestError: -9
I'm trying to backup to MEGA(https: ://mega. co.nz/) , which duplicity supports. I tried this on Ubuntu 15.04, which I am reporting this error from, but also on 14.04. On both version i had installed mega.py via pip.
What happened on 15.04: I executed the following code:
duplicity /home/USERNAME/ MEGAsync/ mega:// USERNAME: <email address hidden>/MEGAsync
After a couple of seconds, it displayed the following error: duplicity" , line 1500, in <module> tempdir( main) duplicity" , line 1494, in with_tempdir duplicity" , line 1327, in main ProcessCommandL ine(sys. argv[1: ]) python2. 7/dist- packages/ duplicity/ commandline. py", line 1055, in ProcessCommandLine args[0] , args[1]) python2. 7/dist- packages/ duplicity/ commandline. py", line 948, in set_backend get_backend( bend) python2. 7/dist- packages/ duplicity/ backend. py", line 221, in get_backend object( url_string) python2. 7/dist- packages/ duplicity/ backend. py", line 207, in get_backend_object python2. 7/dist- packages/ duplicity/ backends/ megabackend. py", line 44, in __init__ __authorize( parsed_ url.username, self.get_ password( )) python2. 7/dist- packages/ duplicity/ backends/ megabackend. py", line 104, in __authorize client. login(email, password) lib/python2. 7/dist- packages/ mega/mega. py", line 31, in login _login_ user(email, password) lib/python2. 7/dist- packages/ mega/mega. py", line 42, in _login_user
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
backup, local_pathname = set_backend(
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
return factory(pu)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/local/
self.
File "/usr/local/
raise RequestError(resp)
RequestError: -9
On Ubuntu Trusty Thar 14.04, after running :
duplicity /home/USERNAME/ MEGAsync/ mega:// USERNAME: <email address hidden>/MEGAsync
I get the following error:
BackendExc eption: Error while authenticating client: -9.
For further information, I also asked this on askubuntu.com:
- http:// askubuntu. com/q/649419/ 36315
I am hoping to get this working on 14.04
ProblemType: Bug ature: Ubuntu 3.19.0- 21.21-generic 3.19.8
DistroRelease: Ubuntu 15.04
Package: duplicity 0.7.01-1ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-21-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Jul 17 12:16:48 2015
InstallationDate: Installed on 2015-06-22 (24 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: duplicity
UpgradeStatus: No upgrade log present (probably fresh install)