-
-
Notifications
You must be signed in to change notification settings - Fork 867
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
collectstatic fails #1073
Comments
I get the same error when uploading a file, works perfectly with v1.11.1, documentation does not show any obvious settings changes required between the two versions. |
seems fairly unlikely to be related to my user-delegated-key contribution; but FWIW it all works for me... getaddrinfo sounds like some sort of DNS failure, you should probably be looking at what you have going on round about here: django-storages/storages/backends/azure_storage.py Lines 154 to 157 in 6dcd514
|
Unfortunately I haven't been working with this for a while, but this sounds familiar to the error described here https://stackoverflow.com/a/64600812 where the resources may not exist |
I am getting a similar error when running collectstatic however mine is:
I was following this tutorial: If anyone has any thoughts on what's going wrong I would really appreciate it. |
looks not compatible with the current code. Try removing that altogether. (It looks as though the Azure API no longer takes a custom domain in the place where it once did, and @pjsier's MR reinterpreted that configuration to mean something slightly different: you would now use that to replace 'blob.core.windows.net' rather than to configure the entire domain.) |
Thank you so much! That solved my problem. |
@pjsier this was probably a mis-step, I think? Suggest something like this would both restore the old behaviour, and make it possible to use truly custom domains: - account_domain = self.custom_domain or "blob.core.windows.net"
- account_url = "{}://{}.{}".format(
- self.azure_protocol, self.account_name, account_domain
+ account_domain = self.custom_domain or "{}.blob.core.windows.net".format(
+ self.account_name
)
+ account_url = "{}://{}".format(self.azure_protocol, account_domain) What do you think? |
I think that makes sense! I was trying to mirror the API, but in this case I think it likely caused more issues than it solved |
Hello everyone,
I might came across a potential issue with the azure functionality in django-storages in version 1.12.1.
Django's python manage.py collectstatic fails with following error:
azure.core.exceptions.ServiceRequestError: <urllib3.connection.HTTPSConnection object at 0x00000226A68C26D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
However the combination of the following works just fine, so i assume its not my settings, that cause the error:
django-storages==1.11.1
azure-storage-blob==2.1.0
azure-storage-common==2.1.0
Thanks :)
The text was updated successfully, but these errors were encountered: