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

issues with haproxy + nginx + fpm - need some help debugging this #168

Open
rmalchow opened this issue May 1, 2021 · 0 comments
Open

issues with haproxy + nginx + fpm - need some help debugging this #168

rmalchow opened this issue May 1, 2021 · 0 comments

Comments

@rmalchow
Copy link

rmalchow commented May 1, 2021

hi,

i have a nextcloud instance running behind a pfsense haproxy:

[client] -- https --> [haproxy] -- http --> [nginx] -- fpm --> [nextcloud]

and i am seeing stalled uploads and this:

Error | no app in context | 
Sabre\DAV\Exception\BadRequest: Expected  filesize of 1724803 bytes but read (from Nextcloud client) and wrote  (to Nextcloud storage) 40960 bytes. Could either be a network problem on  the sending side or a problem writing to the storage on the server  side.
/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php - line 156: 
OCA\DAV\Connector\Sabre\File->put(null)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 1098: 
OCA\DAV\Connector\Sabre\Directory->createFile(" --- filename --- ", null)
/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 504: 
Sabre\DAV\Server->createFile(" --- filename --- ", null, null)
/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89: 
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 472: 
Sabre\DAV\Server->emit("method:PUT", [ Sabre\HTTP ... }])
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 253: 
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 321: Sabre\DAV\Server->start()
/var/www/html/apps/dav/appinfo/v1/webdav.php - line 84: 
Sabre\DAV\Server->exec()/var/www/html/remote.php - line 167: require_once("/var/www/ht ... p")
-- | -- | --

the only combination of settings that i have found to work thus far is smaller chunks (<32k) and "option forceclose" in haproxy. i am pretty sure something is going wrong in between haproxy and nginx, and i am assuming something along the lines of a mismatch between size in header size in body - but i am not entirely sure how to approach debugging this.

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

No branches or pull requests

1 participant