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

0 byte files #404

Open
unsalkorkmaz opened this issue Jun 15, 2022 · 3 comments
Open

0 byte files #404

unsalkorkmaz opened this issue Jun 15, 2022 · 3 comments

Comments

@unsalkorkmaz
Copy link

unsalkorkmaz commented Jun 15, 2022

Hi,
I had some problems in my nextcloud datas so I just found a problem related to it.

https://sabre.io/dav/0bytes/
https://help.nextcloud.com/t/files-become-zero-bytes/7214/63
nextcloud/server#3056
https://docs.duck.sh/mountainduck/issues_fastcgi/
nextcloud/ios#1395 (comment)
nextcloud/server#7995

I have no idea what is the problem exactly but some files are corrupted for some reason.
Any suggestion about this?

What I am using:
Debian 10, apache2, php-fpm version: 7.4.29,

fpm pool .conf:

[16534197197637]
user = example
group = example
listen.owner = example
listen.group = example
listen.mode = 0660
listen = /var/php-fpm/16534197197637.sock
pm = dynamic 
pm.max_children = 16
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 12
pm.max_requests = 500 
php_value[upload_tmp_dir] = /home/example/tmp
php_value[session.save_path] = /home/example/tmp
php_admin_value[memory_limit] = 4096M
php_admin_value[post_max_size] = 8192M
php_admin_value[upload_max_filesize] = 8192M
php_admin_value[max_execution_time] = 190000
php_admin_value[max_input_time] = 190000
clear_env = no
php_admin_value[opcache.preload] = /home/example/preload.php
php_admin_value[opcache.preload_user] = example
php_admin_value[opcache.max_accelerated_files] = 20000
php_admin_value[opcache.memory_consumption] = 512

I can provide necessary information. I know this sounds a vague problem and I am not expecting a pinpoint solution but would love to hear what you think can be the problem

@unsalkorkmaz
Copy link
Author

First thing coming to my mind is disabling chunk:
sudo -u www-data php occ config:app:set files max_chunk_size --value 0
source:
https://docs.nextcloud.com/server/21/admin_manual/configuration_files/big_file_upload_configuration.html?highlight=big%20file%20upload#adjust-chunk-size-on-nextcloud-side

@chris001
Copy link

Try to increase your php max execution time to the number of seconds needed to upload the largest file, and set max file upload, max post size, etc., to 4000M or 2000M to test if that works.
Try these:

  1. https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html
  2. https://stackoverflow.com/questions/4614147/uploading-a-file-larger-than-2gb-using-php

@unsalkorkmaz
Copy link
Author

I re-created the Nextcloud instance with disabling chunk and currently I didnt see any problem yet. I will update this issue if I find any.

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

2 participants