Can authenticate but unable to read remote filesytem

Bug #1644682 reported by Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sftpcloudfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

The program installed correctly and the service is running, bound to 127.0.0.1. I also set `auth-url` to `https://auth.api.rackspacecloud.com/v1.0` in the default conf file. I restarted the service to get these changes.

I can authenticate with my username and API key, and see an `sftp>` prompt. Any attempt to navigate the remote filesystem fails, `ls`, `cd`, etc.

The log shows these types of errors:

ERR [20161125-01:24:36.080] thr=3 paramiko: unexpected error: list_folder('/',) from ('127.0.0.1', 50266): request() got an unexpected keyword argument 'body'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sftpcloudfs/server.py", line 56, in wrapper
    rc = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sftpcloudfs/server.py", line 92, in list_folder
    for leaf, stat in self.fs.listdir_with_stat(path) ]
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 102, in wrapper
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 750, in listdir_with_stat
    return [(unicode(name, 'utf-8)'), stat) for name, stat in self._listdir_cache.listdir_with_stat(path)]
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 522, in listdir_with_stat
    self.listdir(path)
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 499, in listdir
    self.listdir_root(cache)
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 472, in listdir_root
    _, objects = self.conn.get_account()
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1239, in get_account
    full_listing=full_listing)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1189, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 423, in get_account
    conn.request(method, full_path, '', headers)
  File "/usr/lib/python2.7/dist-packages/ftpcloudfs/fs.py", line 66, in request_x_forwarded_for
    fn(method, url, body=body, headers=headers)
TypeError: request() got an unexpected keyword argument 'body'

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: sftpcloudfs 0.12.2-1
ProcVersionSignature: Ubuntu 3.13.0-101.148-generic 3.13.11-ckt39
Uname: Linux 3.13.0-101-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
Date: Fri Nov 25 01:37:03 2016
PackageArchitecture: all
ProcEnviron:
 TERM=screen-256color
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 XDG_RUNTIME_DIR=<set>
SourcePackage: sftpcloudfs
UpgradeStatus: Upgraded to trusty on 2014-09-25 (791 days ago)

Revision history for this message
Lucas (liitii) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.