-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
SFTP problem #199
Comments
@adi- Thank for reporting this error, I'll look at it deeper this evening. |
The basic I have started with was: DBBACKUP_STORAGE = 'storages.backends.sftpstorage.SFTPStorage'
DBBACKUP_STORAGE_OPTIONS = {
'host': '__server_address__',
'params': {
'username': '__username__',
'password': '__password__',
}
} I have also tried setting custom |
Could we also have the full traceback ? |
|
I've not discovered the exact cause, but I was able to resolve this problem by setting SFTP_KNOWN_HOST_FILE with a path to a file containing the host keys for the target server. If there's a better or simpler way to resolve this, I'd be interested. Thanks! |
Still doesn't work. Could you paste your settings here? |
Using a a windows path I can replicate this defect. the code checks if the parent exists, and if not then it tries to create it. Using a windows path the 'dirname' becomes and empty string, and then calling "exists" on an empty string says that it does not exist and tries to create it. -- infinite loop.
there needs to be a sanity check somewhere around |
Ubuntu 16.04 ;) |
what is the path being set? If posixpath.dirname returns an empty string then you will get this, windows pathnames (backslashes) was just an initial guess |
Here's the settings I'm using, and both the source and target servers are Ubuntu:
As I said above, if I remove the |
I think the real trouble is here: https://github.com/jschneier/django-storages/blob/master/storages/backends/sftpstorage.py#L78 We catch all exception without raise critical errors. Let me sometime to make a better try/except block |
@jbittel How come you are using |
@jbittel ahhh, my bad. There is such an option. However, with your settings I cannot make it work either :( |
Ok, make it work finally! It will be good to mention about |
So, this seems to be a duplicate of: #118 |
Closing... |
I get this error:
which really doesn't say much about the real problem. I know that there is a mkdir loop, but what causes it?
The text was updated successfully, but these errors were encountered: