I am trying to set up a remote following this tutorial. I tried it with google drive and although it failed at first because I had to install dvc-gdrive, in the end I could push.
However that was just a test. My real target is to set a NAS as remote. However after I set
dvc remote storageNAS1 https://thenas.intra.organization.jp:8443/thepath/dvcstore/
and do
dvc push -r storageNAS1
I get
dvc push -r storageNAS1
Enter a password for host 'None' user 'me':
Collecting |0.00 [00:00, ?entry/s]
ERROR: failed to transfer '22a1a2931c8370d3aeedd7183606fd7f' - https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5/22/a1a2931c8370d3aeedd7183606fd7f
Pushing
ERROR: failed to push data to the cloud - 1 files failed to upload
I also tried it without the port (8443) and strangely did not ask me my password but instead said “everything is up to date” but nothing was pushed.
Even more strange
Why does it say "Enter a passwprd for host ‘None’??
Host None??
That is very suspicious
Can someone tell me how to push to a NAS remote?
I also have the verbose version
dvc push -r storageNAS1 -v
2024-01-23 22:14:51,218 DEBUG: v3.41.0 (pip), CPython 3.9.16 on Linux-5.15.0-91-generic-x86_64-with-glibc2.31
2024-01-23 22:14:51,218 DEBUG: command: /home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/bin/dvc push -r storageNAS1 -v
Enter a password for host 'None' user 'me':
Collecting |0.00 [00:00, ?entry/s]
2024-01-23 22:15:05,517 DEBUG: Preparing to transfer data from '/home/me/MyStudy/2024/example2/.dvc/cache/files/md5' to ' https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5'
2024-01-23 22:15:05,517 DEBUG: Preparing to collect status from ' https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5'
2024-01-23 22:15:05,518 DEBUG: Collecting status from ' https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5'
2024-01-23 22:15:05,519 DEBUG: Querying 1 oids via object_exists
2024-01-23 22:15:05,698 DEBUG: Preparing to collect status from '/home/me/MyStudy/2024/example2/.dvc/cache/files/md5'
2024-01-23 22:15:05,699 DEBUG: Collecting status from '/home/me/MyStudy/2024/example2/.dvc/cache/files/md5'
2024-01-23 22:15:10,208 ERROR: failed to transfer '22a1a2931c8370d3aeedd7183606fd7f' - https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5/22/a1a2931c8370d3aeedd7183606fd7f
Traceback (most recent call last):
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/generic.py", line 330, in transfer
_try_links(
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/generic.py", line 262, in _try_links
return copy(
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/generic.py", line 87, in copy
return _put(
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/generic.py", line 156, in _put
return _put_one(from_paths[0], to_paths[0])
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/generic.py", line 148, in _put_one
return put_file(from_path, to_path, callback=callback, **put_file_kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/callbacks.py", line 146, in sync_wrapper
res = fn(*args, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/callbacks.py", line 164, in sync_wrapper
return fn(path1, path2, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_objects/fs/base.py", line 643, in put_file
self.fs.put_file(os.fspath(from_file), to_info, callback=callback, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/fsspec/asyn.py", line 118, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc_http/spec.py", line 11, in _put_file
return await super()._put_file(*args, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/fsspec/implementations/http.py", line 311, in _put_file
self._raise_not_found_for_status(resp, rpath)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/fsspec/implementations/http.py", line 216, in _raise_not_found_for_status
raise FileNotFoundError(url)
FileNotFoundError: https://thenas.intra.organization.jp:8443/thepath/dvcstore/files/md5/22/a1a2931c8370d3aeedd7183606fd7f
Pushing
2024-01-23 22:15:10,220 ERROR: failed to push data to the cloud - 1 files failed to upload
Traceback (most recent call last):
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc/commands/data_sync.py", line 64, in run
processed_files_count = self.repo.push(
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc/repo/__init__.py", line 65, in wrapper
return f(repo, *args, **kwargs)
File "/home/me/.cache/pypoetry/virtualenvs/example2-v9N6ApXV-py3.9/lib/python3.9/site-packages/dvc/repo/push.py", line 171, in push
raise UploadError(failed_count)
dvc.exceptions.UploadError: 1 files failed to upload
2024-01-23 22:15:10,223 DEBUG: Analytics is enabled.
2024-01-23 22:15:10,274 DEBUG: Trying to spawn ['daemon', 'analytics', '/tmp/tmpaju_t_hi', '-v']
2024-01-23 22:15:10,280 DEBUG: Spawned ['daemon', 'analytics', '/tmp/tmpaju_t_hi', '-v'] with pid 2387369