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

caddy aborting with incomplete response #895

Closed
AetherCollective opened this issue Jul 7, 2022 · 12 comments
Closed

caddy aborting with incomplete response #895

AetherCollective opened this issue Jul 7, 2022 · 12 comments

Comments

@AetherCollective
Copy link

Trying to migrate from one nextcloud instance to another, copying a bunch of media files to my nextcloud via Rclone, and I keep getting this error:

nextcloud-aio-apache.log:

{"level":"error","ts":1657153365.3401353,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}

Nextcloud > Settings > Admin > Logging:

[no app in context] Error: Expected filesize of 11340736302 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 10962067456 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

PUT /remote.php/dav/files/Emily/Shared/Movies/sample1.mkv
from 172.17.0.1 by Emily at 2022-07-07T00:45:58+00:00

rclone received this response:

2022-07-06 03:05:32 ERROR : Shared/Movies: error reading destination directory: couldn't list files: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>408 Request Timeout</title>
</head><body>
<h1>Request Timeout</h1>
<p>Server timeout waiting for the HTTP request from the client.</p>
<hr>
<address>Apache/2.4.53 (Debian) Server at emilyloveapp Port 8000</address>
</body></html>: 408 Request Timeout
@AetherCollective AetherCollective added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Jul 7, 2022
@szaimen
Copy link
Collaborator

szaimen commented Jul 7, 2022

Hi,

are you running AIO behind a reverse proxy and after what time does the timeout appear?

@szaimen szaimen added the needs info Not enough information provided label Jul 7, 2022
@AetherCollective
Copy link
Author

No I am not. I just port fowarded the ports and it worked as-is.

As for when, usually after transferring a large file

@szaimen
Copy link
Collaborator

szaimen commented Jul 7, 2022

Okay and does this timeout appear after approx. 1h?

@AetherCollective
Copy link
Author

I haven't been watching that carefully. It's a batch process that has been running for a few weeks and it just occasionally does this so tbh I'm not really sure when or what is triggering it

@AetherCollective
Copy link
Author

Any ideas?

@szaimen
Copy link
Collaborator

szaimen commented Jul 7, 2022

My idea is that the process is running into a timeout when trying to upload a very large file and it reaches the php timeout of 1h...

@szaimen szaimen removed 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working needs info Not enough information provided labels Jul 8, 2022
@szaimen
Copy link
Collaborator

szaimen commented Jul 8, 2022

I've created #901 for a possible enhancement in the future.

@szaimen szaimen closed this as completed Jul 8, 2022
@AetherCollective
Copy link
Author

One of the biggest problems is it takes forever for a sync to start. Multiple hours for 30753 folders and 245897 files. During the process where it tries to figure out if files have changed on the server, I get these timeouts even then

@szaimen
Copy link
Collaborator

szaimen commented Jul 10, 2022

I fear this is rather a desktop client bug then...

@AetherCollective
Copy link
Author

How can I verify rather it is client or server sided? What would you recommend?

@szaimen
Copy link
Collaborator

szaimen commented Jul 10, 2022

I fear this is rather a desktop client bug then...

See e.g.nextcloud/desktop#4424

@AetherCollective
Copy link
Author

Just to be clear, I'm not using virtual files

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants