大网数据广告活动
服务器运维问答

Nextcloud 14 does not upload files bigger than 1MB

· 52CE 我爱测

I am running Nextcloud 14 on Debian Stretch with nginx, php-fpm7.2, mariadb and redis inside a LXC container (Proxmox VE, lvm thin storage). On another LXC container, alpine linux 3.8 runs an nginx reverse proxy. For some reason …

问题原文

原帖链接 · user393856 · CC BY-SA 4.0

I am running Nextcloud 14 on Debian Stretch with nginx, php-fpm7.2, mariadb and redis inside a LXC container (Proxmox VE, lvm thin storage). On another LXC container, alpine linux 3.8 runs an nginx reverse proxy.

For some reason i can not upload files larger than one megabyte.

I already tried/checked the following:

  • php upload_max_filesize = 16G
  • php post_max_size = 16G
  • php output_buffering = Off
  • php max_input_time = 3600
  • php max_execution_time = 3600
  • php memory_limit = 1024M
  • php upload_tmp_dir = /upload_tmp/ (permissions and available space are fine)
  • nginx client_max_body_size 16G;
  • nginx fastcgi_read_timeout 3600;
  • nginx client_body_temp_path /upload_tmp;
  • reverseproxy proxy_buffering off;
  • reverseproxy proxy_request_buffering off;

Does someone have an idea, where else i could take a look?

已采纳解答

原帖链接 · user393856 · CC BY-SA 4.0

The problem was the reverse proxy. In the http block was another client_max_body_size set to 1m. Setting it to 0 solved it. Found the solution here: https://serverfault.com/a/401732/393856

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-09-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。