Comments (7)
DVC should work properly with the virtual-host style endpointurl addressing. The error indicates that you don't have the right permissions to access that bucket. Are you able to use the AWS CLI to access that byte-plus bucket?
from dvc.
It looks like you have to pass addressing_style: 'virtual'
to botocore to enable this?
from dvc.
In botocore it defaults to auto
, where if you are setting an endpointurl it uses virtual style and then falls back to path
https://github.com/boto/botocore/blob/e7c5b6ab22174797db551f44053a0b2245430649/botocore/utils.py#L2604-L2614
from dvc.
Thank you, @skshetry and @pmrowla.
When forcing boto3 to use {'addressing_style': 'virtual'}
, I can access byte-plus bucket:
What should I do to make dvc work?
from dvc.
The error given with s3fs/DVC is a permission error when accessing a specific file. It does not look like s3fs is not failing to create the client session (InvalidPathAccess is not the raised exception when you use DVC). This would normally mean that the issue is specifically with the credentials you are setting for your DVC remote (and not that the issue is due to an incorrect addressing style)
@0ut0fcontrol can you verify that you are able to access your bucket via the AWS CLI?
from dvc.
@pmrowla Yes, I can access my bucket via aws cli:
And, if I insert config_kwargs['s3'] = {'addressing_style': 'virtual'}
in here, dvc will work fine.
However, I don't know how to pass this kwarg from dvc cli into s3fs.
from dvc.
This looks to me like it may be an aiobotocore or botocore bug since their behavior to default to virtual host addressing and fall back to path addressing may not be working correctly?
But we can add support for setting this explicitly in dvc-s3 dvc-s3 (we set config timeouts in the same way). It will also need to get added to the DVC remote config schema
https://github.com/iterative/dvc-s3/blob/43f70226160f1a5c9ffdad4092d41a8bab7ec19b/dvc_s3/__init__.py#L176-L179
from dvc.
Related Issues (20)
- `dvc data status` key error HOT 1
- dvc doctor fails in repo HOT 3
- metrics diff atol and rtol
- dvc fetch: hangs forever on "Fetching" HOT 5
- exp run: pygit2 in script does not find active branch and last commit HOT 2
- `dvc repro --pull`: invalidates cache HOT 8
- Dataset delete when using 'dvc add' due to low memory on pc HOT 2
- import: hangs when pulling many files from GCS remote and one fails HOT 2
- Stages with conditional dependency HOT 4
- bug: running exp with `--queue` always take workspace version for python deps HOT 4
- Feature proposal: `dvc artifacts get --show-url` HOT 1
- dvc.scm.CloneError: SCM error HOT 1
- Config setting studio.url is not respected
- pull: breaks if imported dir ends with "/" HOT 1
- dvc queue status doesn't report active workers HOT 6
- dvc exp run --run-all: One or two experiments are executed, than it hangs (JSONDecodeError) (similar to #10398)
- dvc metrics diff --all: on same branch is empty HOT 2
- json output is not valid, due to colorized ANSI escape codes HOT 1
- dvc repro: pygit2 update breaking changes HOT 3
- dvc exp apply - fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvc.