← Back to team overview

desktop-packages team mailing list archive

[Bug 1475579] [NEW] duplicity crashes when trying to connect to MEGA

 

Public bug reported:

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:PASSWORD@xxxxxxxxxx/MEGAsync

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


On Ubuntu Trusty Thar 14.04, after running :

     duplicity /home/USERNAME/MEGAsync/
mega://USERNAME:PASSWORD@xxxxxxxxxx/MEGAsync

I get the following error:

     BackendException: 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
DistroRelease: Ubuntu 15.04
Package: duplicity 0.7.01-1ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
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)

** Affects: duplicity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug vivid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to duplicity in Ubuntu.
https://bugs.launchpad.net/bugs/1475579

Title:
  duplicity crashes when trying to connect to MEGA

Status in duplicity package in Ubuntu:
  New

Bug description:
  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:PASSWORD@xxxxxxxxxx/MEGAsync

  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

  
  On Ubuntu Trusty Thar 14.04, after running :

       duplicity /home/USERNAME/MEGAsync/
  mega://USERNAME:PASSWORD@xxxxxxxxxx/MEGAsync

  I get the following error:

       BackendException: 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
  DistroRelease: Ubuntu 15.04
  Package: duplicity 0.7.01-1ubuntu1
  ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1475579/+subscriptions


Follow ups