Project

General

Profile

Bug #3433

Error: Store.__init__() takes no parameters

Added by Steve Hoeksema over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
obsync
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is on Ubuntu 12.04 obsync, but also appears in git master: https://github.com/ceph/obsync/blob/master/obsync#L909

Sorry if I should be reporting this to Ubuntu or on Github issues instead.

When trying to sync from a local filesystem to S3, i.e.

obsync -v --no-preserve-acls --src-type=file --src-path=/path/to/files --dst-type=s3 --dst-host=s3.amazonaws.com --dst-bucket=my-files

I get this error:

Traceback (most recent call last):
  File "/usr/bin/obsync", line 1136, in <module>
    prefix=opts.src_prefix, path=opts.src_path)
  File "/usr/bin/obsync", line 554, in make_store
    return FileStore(kwargs['path'], create)
  File "/usr/bin/obsync", line 892, in __init__
    Store.__init__(self, "file://" + url)
TypeError: object.__init__() takes no parameters
ERROR TYPE: unknown, ORIGIN: source

I'm not a Python programmer so I don't really know what I'm doing, but it seems to work when I change the line from:

Store.__init__(self, "file://" + url)

to

Store.__init__(self)

History

#1 Updated by Greg Farnum about 8 years ago

I'm not really sure where obsync is tracked — Ian, can you figure that out?

#2 Updated by Greg Farnum about 8 years ago

  • Assignee set to Ian Colle

#3 Updated by Ian Colle about 8 years ago

  • Assignee changed from Ian Colle to Matthew Wodrich

#4 Updated by Matthew Wodrich about 8 years ago

  • Status changed from New to Resolved

Sorry for the delay in response - active development of obsync has moved over to https://github.com/dreamhost/obsync and obsync is no longer part of the ceph repository in active development. There are a significant number of changes between the version of obsync you're working with and what is on master in development (including parallelism!), but I have included in the work recently merged to master a couple of fixes for the FileStore codepath which should take care of your issue.

Also available in: Atom PDF