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

Every time you use webdav to sync photos, an error will be reported, #24

Open
hieastz opened this issue Aug 1, 2021 · 3 comments
Open
Labels
help wanted Extra attention is needed

Comments

@hieastz
Copy link

hieastz commented Aug 1, 2021

Caddy server is windows 10. The phone uses photosync+webdav to synchronize photos, and an error will be reported every time a photo is synchronized.

Error message: Cannot create a file when that file already exists

Tip: The error log will be output, but it does not affect the use

Caddyfile:

{
	order webdav before file_server
}

:7001 {
	webdav {
		root D:/_data
		prefix /
	}
}

error.log:

{"level":"error","ts":1627832105.3054144,"logger":"http.handlers.webdav","msg":"internal handler error","error":"mkdir D:\\_data\\手机相册\\Screenshots\\2020: Cannot create a file when that file already exists.
@noerw
Copy link

noerw commented Aug 11, 2021

I have a very similar issue (that feels like a race in the caching layer of the file tree?)

I run caddy on Linux 5.4.0-80-generic #90-Ubuntu, and didn't use an app to access the share, but the windows explorer webdav client.

This only occured for a single filename (a file that previously existed in the share, but was deleted), when trying to copy a file with that specific name to the dir, or when renaming another file to that name.
Interestingly, this occured for all files with that name in various subdirs:

/webdav/foo/tickets.yaml
/webdav/bar/tickets.yaml

Windows client reports something along the line of:

  • when copying: Error 0x80070021: Can't access file, because another process has locked a part of the file.
  • when renaming: The source file or the storage device can't be read

The error disappeared only after restarting caddy.

@mholt
Copy link
Owner

mholt commented Jul 28, 2022

I've updated the dependencies for the first time in a few years; might be worth checking again!

@ElXando
Copy link

ElXando commented Sep 4, 2024

I've also just setup Caddy webdav and PhotoSync and am experiencing the same error in the console.

@mholt mholt added the help wanted Extra attention is needed label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants