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

Error "Update mkParentDir failed" when using rclone with ocis #4762

Closed
nikslor opened this issue Oct 9, 2022 · 4 comments
Closed

Error "Update mkParentDir failed" when using rclone with ocis #4762

nikslor opened this issue Oct 9, 2022 · 4 comments
Labels

Comments

@nikslor
Copy link

nikslor commented Oct 9, 2022

Describe the bug

I run into an issue when trying to sync my home dir to ocis (2.0.0) using rclone (1.61.1). On the client side I see messages like the following:

$ rclone -v -L sync /tmp/blackhole/ocis/ storage:/test
2023/01/31 18:04:15 ERROR : foo/bar/baz/test.txt: Failed to copy: Update mkParentDir failed: Resource not found: Sabre\DAV\Exception\NotFound: 404 Not Found
2023/01/31 18:04:15 INFO  : test.txt: Copied (new)
2023/01/31 18:04:15 ERROR : webdav root 'test': not deleting files as there were IO errors
2023/01/31 18:04:15 ERROR : webdav root 'test': not deleting directories as there were IO errors
2023/01/31 18:04:15 ERROR : Attempt 1/3 failed with 1 errors and: Update mkParentDir failed: Resource not found: Sabre\DAV\Exception\NotFound: 404 Not Found
2023/01/31 18:04:15 ERROR : foo/bar/baz/test.txt: Failed to copy: Update mkParentDir failed: Resource not found: Sabre\DAV\Exception\NotFound: 404 Not Found

Steps to reproduce

  • Let's assume your working dir is /tmp/blackhole/ocis
  • create test.txt: echo "Hello ocis" > test.txt
  • create a simple folder structure mkdir -p foo/bar/baz
  • copy text.txt to that folder cp test.txt foo/bar/baz/
  • start sync rclone -v -L sync /tmp/blackhole/ocis/ storage:/test

Expected behavior

I should be able to sync this folder with rclone w/o seeing such an error.

Actual behavior

I get an error with the latest OCIS stable version.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

did setcap 'cap_net_bind_service=+ep' ocis and run ocis like this:

OCIS_BASE_DATA_PATH=/var/lib/ocis
ACCOUNTS_DEMO_USERS_AND_GROUPS=false
PROXY_HTTP_ADDR=0.0.0.0:443
OCIS_URL=https://storage.0x17.ch
PROXY_TRANSPORT_TLS_KEY=/etc/letsencrypt/live/storage.0x17.ch/privkey.pem
PROXY_TRANSPORT_TLS_CERT=/etc/letsencrypt/live/storage.0x17.ch/fullchain.pem
OCIS_INSECURE=false
PROXY_ENABLE_BASIC_AUTH=true

Additional context

I had a similar issue earlier on, see: #2767

@nikslor
Copy link
Author

nikslor commented Jan 31, 2023

@wkloucek I think this may be related to #2767, maybe something you want to have a look at?
(I hope it's fine to highlight you - otherwise just let me know)

@nikslor
Copy link
Author

nikslor commented May 9, 2023

I also see this with rclone on a Windows 11 box syncing to the same server.

@micbar
Copy link
Contributor

micbar commented May 10, 2023

There was a fix in #6136 which is available on ocis master which might fix this issue.

@nikslor
Copy link
Author

nikslor commented May 11, 2023

Hi @micbar I can confirm, that this is fixed in a recent release! I tested with 3.0.0 rc3 and the problem is gone.
Awesome! Thanks a lot for the work on this!

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

No branches or pull requests

2 participants