Upload an large folder Abort after about one minute

Dear,

      I have encounter a problem when upload an large folder by chrome web browser , it will be stop  after  one minute I upload , and when I upload the folder , the browser will display a error message . But when I upload a big single file , it's OK !   And I also change these parameters of PHP , who can help me , thanks !

upload_max_filesize=10240M
post_max_size=10240M
max_file_uploads=65536
memory_limit=1024M
max_input_time=3600
max_execution_time=3600

Hello

please, try to format your message ! You clearly miss something :wink:

Please, follows guidelines. Give at least serveur conf and nextcloud conf and nextcloud logs

Sorry, here are NC config files :

config.php

    <?php
    $CONFIG = array (
      'instanceid' => 'ocbc9i31qfh8',
      'passwordsalt' => 'nWngqXVaEO8j4JW0vkhQLDxlifGp+m',
      'secret' => 'jFyh782Svzcz/9LI6+fP67+mYdxevJynKAlidRZh8znG9h79',
      'trusted_domains' => 
      array (
          0 => 'xxxxx',
    	  1 => 'xxxxxxx',
          2 => 'xxxxxxx',
      ),
      'session_lifetime' => 60 * 60 * 24,
      'session_keepalive' => true,
      'log_type' => 'file',
      'logfile' => '/var/log/nextcloud.log',
      'logfilemode' => 0640,
      'loglevel' => 0,
      'logdateformat' => 'F d, Y H:i:s',
      'logtimezone' => 'Asia/Shanghai',
      'log_rotate_size' => 100 * 1024 * 1024,
      'datadirectory' => '/var/www/nextcloud/data',
      'dbtype' => 'mysql',
      'version' => '15.0.4.0',
      'overwrite.cli.url' => 'https://xxxxxxxx/nextcloud',
      'dbname' => 'xxxxxx',
      'dbhost' => 'localhost:3306',
      'dbport' => '',
      'dbtableprefix' => 'oc_',
      'dbuser' => 'xxxxx',
      'dbpassword' => 'xxxxxxxx',
      'installed' => true,
      'ldapIgnoreNamingRules' => false,
      'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
      'filelocking.enabled' => true,
      'memcache.local' => '\OC\Memcache\APCu',
      'memcache.locking' => '\OC\Memcache\Redis',
      'memcache.distributed' => '\OC\Memcache\Redis',
      'redis' => [
         'host'     => '/run/redis/redis-server.sock',
         'port'     => 0,
         'dbindex'  => 0,
         'password' => 'secret',
         'timeout'  => 1.5,
      ],
    );

.user.ini

upload_max_filesize=10240M
post_max_size=10240M
max_file_uploads=65536
memory_limit=1024M
max_input_time=3600
max_execution_time=3600
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='UTF-8'
output_buffering=0

.htaccess

    <IfModule mod_headers.c>
      <IfModule mod_setenvif.c>
        <IfModule mod_fcgid.c>
           SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
           RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
        </IfModule>
        <IfModule mod_proxy_fcgi.c>
           SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
        </IfModule>
      </IfModule>

      <IfModule mod_env.c>
        # Add security and privacy related headers
        Header set X-Content-Type-Options "nosniff"
        Header set X-XSS-Protection "1; mode=block"
        Header set X-Robots-Tag "none"
        Header set X-Download-Options "noopen"
        Header set X-Permitted-Cross-Domain-Policies "none"
        Header set Referrer-Policy "no-referrer"
        SetEnv modHeadersAvailable true
      </IfModule>

      # Add cache control for static resources
      <FilesMatch "\.(css|js|svg|gif)$">
        Header set Cache-Control "max-age=15778463"
      </FilesMatch>

      # Let browsers cache WOFF files for a week
      <FilesMatch "\.woff2?$">
        Header set Cache-Control "max-age=604800"
      </FilesMatch>
    </IfModule>
    <IfModule mod_php5.c>
      php_value upload_max_filesize 10240M
      php_value post_max_size 10240M
      php_value memory_limit 1024M
      php_value mbstring.func_overload 0
      php_value always_populate_raw_post_data -1
      php_value default_charset 'UTF-8'
      php_value output_buffering 0
      <IfModule mod_env.c>
        SetEnv htaccessWorking true
      </IfModule>
    </IfModule>
    <IfModule mod_php7.c>
      php_value upload_max_filesize 10240M
      php_value post_max_size 10240M
      php_value memory_limit 1024M
      php_value max_file_uploads 65536
      php_value max_input_time 3600
      php_value max_execution_time 3600
      php_value mbstring.func_overload 0
      php_value default_charset 'UTF-8'
      php_value output_buffering 0
      <IfModule mod_env.c>
        SetEnv htaccessWorking true
      </IfModule>
    </IfModule>
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{HTTP_USER_AGENT}  DavClnt
      RewriteRule ^$         /remote.php/webdav/          [L,R=302]
      RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
      RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
      RewriteRule ^\.well-known/webfinger /public.php?service=webfinger [QSA,L]
      RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L]
      RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L]
      RewriteRule ^remote/(.*) remote.php [QSA,L]
      RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
      RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
      RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
    </IfModule>
    <IfModule mod_mime.c>
      AddType image/svg+xml svg svgz
      AddEncoding gzip svgz
    </IfModule>
    <IfModule mod_dir.c>
      DirectoryIndex index.php index.html
    </IfModule>
    AddDefaultCharset utf-8
    Options -Indexes
    <IfModule pagespeed_module>
      ModPagespeed Off
    </IfModule>


    ErrorDocument 403 /nextcloud/
    ErrorDocument 404 /nextcloud/

apache2.conf

DefaultRuntimeDir ${APACHE_RUN_DIR}

PidFile ${APACHE_PID_FILE}

Timeout 3600

KeepAlive On


MaxKeepAliveRequests 500


KeepAliveTimeout 60


User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel warn


IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf


Include ports.conf


<Directory />
	Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

<Directory /usr/share>
	AllowOverride None
	Require all granted
</Directory>

<Directory /var/www/>
	#Options Indexes FollowSymLinks
        Options FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

AccessFileName .htaccess

<FilesMatch "^\.ht">
	Require all denied
</FilesMatch>

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


IncludeOptional conf-enabled/*.conf


IncludeOptional sites-enabled/*.conf

ServerTokens  Prod
ServerSignature  off
TraceEnable off
LimitRequestBody 10737418240

php.ini

[PHP]


user_ini.filename = ".user.ini"


engine = On


short_open_tag = Off


precision = 14


output_buffering = 0


zlib.output_compression = Off


implicit_flush = Off


unserialize_callback_func =

serialize_precision = -1


disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,


disable_classes =


zend.enable_gc = On


expose_php = Off


max_execution_time = 3600


max_input_time = 3600


memory_limit = 1024M


error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT


display_errors = On

display_startup_errors = On


log_errors = On


log_errors_max_len = 1024


ignore_repeated_errors = Off


ignore_repeated_source = Off


report_memleaks = On



html_errors = On


variables_order = "GPCS"


request_order = "GP"


register_argc_argv = Off


auto_globals_jit = On


post_max_size = 16G


auto_prepend_file =


auto_append_file =


default_mimetype = "text/html"


default_charset = "UTF-8"


doc_root =


user_dir =


enable_dl = Off


file_uploads = On


upload_tmp_dir = /tmp


upload_max_filesize = 16G


max_file_uploads = 65536


allow_url_fopen = On


allow_url_include = Off


default_socket_timeout = 3600


cli_server.color = On

date.timezone = Asia/Shanghai

pdo_mysql.default_socket=

smtp_port = 25

mail.add_x_header = Off


odbc.allow_persistent = On


odbc.check_persistent = On


odbc.max_persistent = -1


odbc.max_links = -1


odbc.defaultlrl = 4096

odbc.defaultbinmode = 1

;birdstep.max_links = -1


ibase.allow_persistent = 1


ibase.max_persistent = -1


ibase.max_links = -1


ibase.timestampformat = "%Y-%m-%d %H:%M:%S"


ibase.dateformat = "%Y-%m-%d"


ibase.timeformat = "%H:%M:%S"


mysqli.max_persistent = -1


mysqli.allow_persistent = On


mysqli.max_links = -1


mysqli.cache_size = 2000


mysqli.default_port = 3306


mysqli.default_socket =


mysqli.default_host =


mysqli.default_user =


mysqli.default_pw =

mysqli.reconnect = Off


mysqlnd.collect_statistics = On

mysqlnd.collect_memory_statistics = Off


pgsql.allow_persistent = On


pgsql.auto_reset_persistent = Off


pgsql.max_persistent = -1


pgsql.max_links = -1


pgsql.ignore_notice = 0


pgsql.log_notice = 0


bcmath.scale = 0


session.save_handler = files


session.use_strict_mode = 0


session.use_cookies = 1


session.use_only_cookies = 1

session.name = PHPSESSID

session.auto_start = 0


session.cookie_lifetime = 0


session.cookie_path = /


session.cookie_domain =


session.cookie_httponly =


session.serialize_handler = php

session.gc_probability = 0


session.gc_divisor = 1000


session.gc_maxlifetime = 1440


session.referer_check =

session.cache_expire = 180


session.use_trans_sid = 0


session.sid_length = 26


session.trans_sid_tags = "a=href,area=href,frame=src,form="


session.sid_bits_per_character = 5


zend.assertions = -1


tidy.clean_output = Off


soap.wsdl_cache_enabled=1


soap.wsdl_cache_dir="/tmp"


soap.wsdl_cache_ttl=86400

soap.wsdl_cache_limit = 5

ldap.max_links = -1

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=1024
opcache.save_comments=1
opcache.revalidate_freq=1

the kern.log has some error about php:

May 30 07:09:05 nextcloud kernel: [1048235.324738] php7.2[29194]: segfault at 2f ip 00007fbc4a0d526e sp 00007ffeea16b258 error 6 in libpthread-2.27.so[7fbc4a0c9000+1a000]
May 30 07:39:05 nextcloud kernel: [1050035.514090] php7.2[30153]: segfault at 2f ip 00007f522e88126e sp 00007ffe0251bd18 error 6 in libpthread-2.27.so[7f522e875000+1a000]
May 30 08:09:06 nextcloud kernel: [1051835.745756] php7.2[31090]: segfault at 2f ip 00007f38344e526e sp 00007fff10cba0a8 error 6 in libpthread-2.27.so[7f38344d9000+1a000]
May 30 08:39:06 nextcloud kernel: [1053635.945510] php7.2[32085]: segfault at 2f ip 00007fe04b30926e sp 00007fff3c3202d8 error 6 in libpthread-2.27.so[7fe04b2fd000+1a000]
May 30 09:09:06 nextcloud kernel: [1055436.148470] php7.2[11107]: segfault at 2f ip 00007f1840e4626e sp 00007ffc6db483e8 error 6 in libpthread-2.27.so[7f1840e3a000+1a000]
May 30 09:39:06 nextcloud kernel: [1057236.352179] php7.2[23735]: segfault at 2f ip 00007f097be9426e sp 00007ffd5603dcc8 error 6 in libpthread-2.27.so[7f097be88000+1a000]

nextcloud.log has no errors

the browser has some errors: