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

[BUG]problem when accessing nextcloud(hetzner storage share) webdav #153

Closed
sdrrrr opened this issue Mar 11, 2024 · 4 comments · Fixed by #161
Closed

[BUG]problem when accessing nextcloud(hetzner storage share) webdav #153

sdrrrr opened this issue Mar 11, 2024 · 4 comments · Fixed by #161
Labels
bug Something isn't working

Comments

@sdrrrr
Copy link

sdrrrr commented Mar 11, 2024

problem occurred when trying to access(upload/download/copy) a webdav storage pool .
the task windwos shows says
Put "https://nx2222.your-storageshare.de/remote.php/dav/files/herman/Palworld_0.1.5.1.zip": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

the nextcloud webdav is provided by hetzner storage-share (https://www.hetzner.com/storage/storage-share/)

@sdrrrr sdrrrr added the bug Something isn't working label Mar 11, 2024
@sdrrrr
Copy link
Author

sdrrrr commented Mar 11, 2024

Screenshot 2024-03-11 123746

@tobychui
Copy link
Owner

tobychui commented Mar 11, 2024

@sdrrrr How big is your file and what is the transfer speed of your network?
WebDAV is design for small files. There are lots of things might go wrong if you are transferring large files with WebDAV. One of the well known issue is Cloudflare limitation of 100MB per request.

@sdrrrr
Copy link
Author

sdrrrr commented Mar 11, 2024

the problem occurs after about 22MB of files being transfered , my network is about 1g

@sdrrrr How big is your file and what is the transfer speed of your network?

@tobychui
Copy link
Owner

@sdrrrr I figure out what might be the issue. Can you try remove the setTimeout line from the webdavfs module?

c.SetTimeout(5 * time.Second)

So the mount function become like this

func NewWebDAVMount(UUID string, Hierarchy string, root string, user string, password string) (*WebDAVFileSystem, error) {
	//Connect to webdav server
	c := gowebdav.NewClient(root, user, password)
	err := c.Connect()
	if err != nil {
		log.Println("[WebDAV FS] Unable to connect to remote: ", err.Error())
		return nil, err
	} else {
		log.Println("[WebDAV FS] Connected to remote: " + root)
	}
	return &WebDAVFileSystem{
		UUID:      UUID,
		Hierarchy: Hierarchy,
		c:         c,
		root:      root,
		user:      user,
	}, nil
}

and use go build again to see if the issue is fixed?

@tobychui tobychui mentioned this issue May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants