After upgrade from 18.0.0 to 18.0.1 a “bad gateway” error starts to occur. By trial and error I have determined the problem can be eliminated by disabling the file sharing app.
Nextcloud version 18.0.1:
Operating system and version Debian 4.19.37-5:
Apache or nginx version nginx_:
PHP version 7.3_:
When I did a automated system upgrade from 17.0.6 to 18.0.4 on my production system, I ran into the “bad gateway” problem. I then tested out the upgrade on a test system with little user data and had no problems. The production system has a few thousand shared files.
I then restored to 17.0.6 and manually upgraded to 18.0.0 without the problem. After a manual
upgrade to 18.0.1 the problem reappeared. Somewhere in my research I saw the problem could be caused by an app and so I started to disable apps until the problem went away. The problem definitely comes and goes with the file sharing app.
The “bad gateway” is due to a a large header as indicated in the nginx error log snippet below:
2020/05/30 20:32:55 [error] 28537#28537: *234 **upstream sent too big header** while reading response header from upstream, client:, server: , request: "GET /apps/files/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: ""