merve
June 4, 2021, 9:34am
1
Environment:
Ubuntu18.04
python3.6
boto3==1.17.49
botocore==1.20.49
dvc==2.3.0
I have created (s3-compatible) MINIO bucket with read/write access named dvc and configured the dvc as follows
12:31
[core]
remote = dvc
[‘remote “dvc”’]
url = s3://dvc
endpointurl = http://192.168.3.32:9000
my config file;
[core]
remote = dvc
['remote "dvc"']
url = s3://dvc
endpointurl = http://192.168.3.32:9000
When i do dvc add i got core dump error
Checked solutions
opened 11:07PM - 13 Aug 20 UTC
closed 05:24PM - 14 Oct 20 UTC
awaiting response
## Bug Report
I am trying to add credentials for an s3 compatible remote (i.e… . backblaze). Should I add them in a similar was as adding for AWS? When I try to add the credentialpath or access_key_id, I get an "extra keys not allowed" error. And when I manually modified the config file I got the same error when trying to push.
### Please provide information about your setup
```
DVC version: 1.5.0 (pip)
---------------------------------
Platform: Python 3.7.6 on Linux-5.4.0-42-generic-x86_64-with-debian-bullseye-sid
Supports: gs, hdfs, http, https, s3, ssh, oss
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/mapper/vgubuntu-root
Workspace directory: ext4 on /dev/mapper/vgubuntu-root
Repo: dvc, git
```
### Command and verbose outputs
```
$ dvc remote modify --verbose backblaze profile backblaze
**2020-08-13 19:01:09,274 ERROR: configuration error - config file error: extra keys not allowed @ data['remote']['backblaze']['profile']
------------------------------------------------------------
Traceback (most recent call last):
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/main.py", line 54, in main
ret = cmd.run()
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/command/remote.py", line 74, in run
section[self.args.option] = self.args.value
File "/home/alfred/anaconda3/lib/python3.7/contextlib.py", line 119, in __exit__
next(self.gen)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/config.py", line 426, in edit
self.validate(merged_conf)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/config.py", line 436, in validate
raise ConfigError(str(exc)) from None
dvc.config.ConfigError: config file error: extra keys not allowed @ data['remote']['backblaze']['profile']
------------------------------------------------------------
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
2020-08-13 19:01:09,291 DEBUG: Analytics is enabled.
2020-08-13 19:01:09,324 DEBUG: Trying to spawn '['daemon', '-q', 'analytics', '/tmp/tmpiye4fnzt']'
2020-08-13 19:01:09,325 DEBUG: Spawned '['daemon', '-q', 'analytics', '/tmp/tmpiye4fnzt']'**
$dvc push -v --remote backblaze
2020-08-13 19:05:40,119 ERROR: configuration error - config file error: extra keys not allowed @ data['remote']['backblaze']['credentialpath']
------------------------------------------------------------
Traceback (most recent call last):
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/main.py", line 53, in main
cmd = args.func(args)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/command/base.py", line 35, in __init__
self.repo = Repo()
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/repo/__init__.py", line 102, in __init__
self.config = Config(self.dvc_dir, tree=self.tree)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/config.py", line 270, in __init__
self.load(validate=validate)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/config.py", line 319, in load
conf = self.validate(conf)
File "/home/alfred/anaconda3/lib/python3.7/site-packages/dvc/config.py", line 436, in validate
raise ConfigError(str(exc)) from None
dvc.config.ConfigError: config file error: extra keys not allowed @ data['remote']['backblaze']['credentialpath']
------------------------------------------------------------
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
2020-08-13 19:05:40,136 DEBUG: Analytics is enabled.
2020-08-13 19:05:40,169 DEBUG: Trying to spawn '['daemon', '-q', 'analytics', '/tmp/tmpge2tx7qd']'
2020-08-13 19:05:40,170 DEBUG: Spawned '['daemon', '-q', 'analytics', '/tmp/tmpge2tx7qd']'
```
opened 04:30PM - 09 Aug 20 UTC
closed 03:07PM - 10 Aug 20 UTC
awaiting response
## Bug Report
I have been attempting to use dvc to keep track of my files. Th… is was my first pass at trying to get something to work.
Commands I have ran
```console
$ dvc add data/<my-data>
...
$ dvc remote add -d digital-ocean https://<my space>.nyc3.digitaloceanspaces.com/<my base path>
```
I have attempted to add an `endpointurl` as specified in https://dvc.org/doc/command-reference/remote/add#supported-storage-types under `s3 compatible storage`, but that causes a different error. Specifically it caused
```
ERROR: configuration error - config file error: extra keys not allowed @ data['remote']['digital-ocean']['endpointurl']
```
When I set my url to be ` https://<my space>.nyc3.digitaloceanspaces.com/<my base path>` and withhold setting an endpointurl, I end up getting
```
2020-08-09 09:19:17,823 DEBUG: Uploading '.dvc/cache/<file>' to 'https://<my space>.nyc3.digitaloceanspaces.com/<my bucket path>/<file>'
2020-08-09 09:19:17,832 ERROR: failed to upload '.dvc/cache/<file>' to 'https://<my space>.nyc3.digitaloceanspaces.com/<my bucket path>/<file>' - '411 Length Required'
```
for every single file I am attempting to upload. When I look to see the size of the files in my cache, they all appear to be non-empty.
### Please provide information about your setup
```console
$ dvc version
DVC version: 1.3.1 (osxpkg)
---------------------------------
Platform: Python 3.7.5 on Darwin-19.6.0-x86_64-i386-64bit
Supports: All remotes
Cache types: reflink, hardlink, symlink
Cache directory: apfs on /dev/disk1s5
Workspace directory: apfs on /dev/disk1s5
Repo: dvc, git
```
Hi @merve !
Would it be possible to post the log for command run with -v
option?
merve
June 4, 2021, 11:14am
3
2021-06-04 10:59:27,163 DEBUG: Check for update is enabled.
2021-06-04 10:59:29,385 DEBUG: state save (773292125, 1608142828000000000, 3766) 6be79816758ab0b2773391e2b7c80533
2021-06-04 10:59:29,408 DEBUG: state save (773292126, 1608142638000000000, 5188) 2c8c0e4d3e959e818bb2a86f694acfa2
2021-06-04 10:59:29,416 DEBUG: state save (773292127, 1608142526000000000, 3977) 01b5f7180045d33a527096ad103027a4
2021-06-04 10:59:29,424 DEBUG: state save (773292128, 1608142889000000000, 5012) 1952c68a414998260439c11c9591d252
2021-06-04 10:59:29,433 DEBUG: state save (773292129, 1608142620000000000, 4389) 33d6b2dde40a3edb8af103554c9e1a1d
2021-06-04 10:59:29,441 DEBUG: state save (773292130, 1608142607000000000, 6829) 51d3fa54ce6b9c392149e3a434c02c35
Adding…Bus error (core dumped)
Hey Merve! Would you mind sharing dvc doctor
and pip freeze | grep s3fs
. Also please post the full logs (including the command).
merve
June 5, 2021, 8:49am
5
dvc doctor
DVC version: 2.3.0 (pip)
---------------------------------
Platform: Python 3.6.9 on Linux-4.15.0-143-generic-x86_64-with-Ubuntu-18.04-bionic
Supports: All remotes
Cache types: <https://error.dvc.org/no-dvc-cache>
Caches: local
Remotes: s3
Workspace directory: nfs4 on 192.168.3.13:/mnt/raid/users/process_team
Repo: dvc, git
pip freeze | grep s3fs
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
s3fs==2021.5.0
@merve
so the failure occurs when using dvc add
?
Would it be possible to provide dvc add -v
result?
merve
June 8, 2021, 9:11am
7
@Paffciu
this error is before push it is when i do dvc add -v
and it gives bus error(core dumped)
this error is before push it is when i do dvc add -v
Unless you are working with external outputs, dvc add
doesn’t interact with the s3 at all so the issue doesn’t seem to be something relevant with ‘connecting to the s3’.
There isn’t much that comes to my mind, though perhaps you could try python -Xfaulthandler -m dvc add -v
and try to get some results (unlikely, but might give a traceback).