-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFTPStorage broken since conversion to django-storages #142
Comments
I'm having the same issue. CentOS 6.0. Python 2.6. |
My best guess is that the Paramiko API has changed :( |
I think the issue maybe that on line 35: self.storage = SFTPStorage(location, self.settings["url"], key) Note: some of the params needed for fileconveyor would need to be set with settings in SFTP_STORAGE_PARAMS which can be found in the following connect function: I believe the functionality may have broken when converting to django-storages: https://github.com/wimleers/fileconveyor/blob/master/fileconveyor/transporters/transporter_sftp.py#L35 |
I believe you're right. It seems too much code got deleted. This could happen because so few people use this transporter. Of course that's a poor excuse. We should have test coverage for the transporters. But that of course requires a massive amount of mocking. Ah well :( PR to fix it is welcome. If not, then I'll try to fix this soon, but I'm leaving for DrupalCon this weekend, so it won't be very soon. |
There's a forked version here with possible fix, need to include some notes: forked sftp |
Can you create a pull request to merge in your fix? :) |
@edmooney after adding SECRET_KEY to django_settings.py its running, however I'm now getting the following error, any ideas? 2013-05-22 21:16:38,360 - Arbitrator.Transporter - ERROR - The transporter 'SFTP' has failed while transporting the file '/var/www/html/test/hello.txt' (action: 1). Error: 'maximum recursion depth exceeded'. |
@wazdog.. will do pull request tomorrow with updated code. |
I get this error when I run arbitrary.py:
I am on ubuntu 12.04, with python 2.7.3, django 1.5.1, paramiko 1.7.6, and django-storages 1.1.5.
I have tried it with different versions of django and django-storages and I still get the same result.
The text was updated successfully, but these errors were encountered: