Skip to content
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

pull fails with azure SAS connection strings #1811

Closed
AmitAronovitch opened this issue Mar 31, 2019 · 0 comments · Fixed by #1812
Closed

pull fails with azure SAS connection strings #1811

AmitAronovitch opened this issue Mar 31, 2019 · 0 comments · Fixed by #1812

Comments

@AmitAronovitch
Copy link
Contributor

Azure SAS connection strings can be used to allow read-only access to specific container, which is useful in the context of CI pipelines and automation.

However, when using such limited-credentials connection string, dvc pull abends with the error below.

Some digging reveals that this is because remote/azure.py always tries to create the bucket (which already exists). If we check for existence before trying to create - this should work...
(will send PR)

[#########                     ] 30% Collecting informationClient-Request-ID=19129d6a-5393-11e9-80ab-5800e34ea0d9 Retry policy did not allow for a retry: Server-Timestamp=Sun, 31 Mar 2019 08:58:06 GMT, Server-Request-ID=c72fbeda-501e-0089-3c9f-e78298000000, HTTP status code=403, Exception=This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.RequestId:c72fbeda-501e-0089-3c9f-e78298000000Time:2019-03-31T08:58:06.2059267Z</Message></Error>.

<font color="#CC0000">Error</font>: failed to pull data from the cloud - This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;Error&gt;&lt;Code&gt;AuthorizationFailure&lt;/Code&gt;&lt;Message&gt;This request is not authorized to perform this operation.
RequestId:c72fbeda-501e-0089-3c9f-e78298000000
Time:2019-03-31T08:58:06.2059267Z&lt;/Message&gt;&lt;/Error&gt;

<font color="#C4A000">Having any troubles?</font> Hit us up at <font color="#3465A4">https://dvc.org/support</font>, we are always happy to help!

Please provide information about your setup
DVC version: 0.29.0+220b4b.mod
linux x86_64 py3.6 pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant