3rdparty/icewind is spamming logfile with errors (hundreds of errors per second)

Hi my logfile was getting really big latley (over 100GB). After I have had a look at it, I noticed that there is just one error message repeating insanly often, hundreds of errors per second. Here it is:

{"reqId":"Y3KLJzrhtKX4pKF7u1ww","level":3,"time":"2018-08-17T17:06:30+02:00","remoteAddr":"REMOVED","user":"USER","app":"PHP","method":"MOVE","url":"\/nextcloud\/remote.php\/dav\/uploads\/USER\/1654872603\/.file","message":"fseek() expects parameter 2 to be integer, float given at \/var\/www\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.3.3 (Nextcloud)","version":"13.0.5.2"}

I have no idea where this comes from. Did I do something wrong or this a software bug?
Thank you for your help.

Nextcloud version: 13.0.5.2
Operating system and version: Raspbian (Deebian Strech)
Apache or nginx version: nginx 1.10.3
PHP version: 7.0.30

The output of your Nextcloud log in Admin > Logging:

Error	PHP	fseek() expects parameter 2 to be integer, float given at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#74	2018-08-17T17:06:30+0200

config.php:

<?php
$CONFIG = array (
  'instanceid' => 123',
  'passwordsalt' => '456',
  'secret' => '789',
  'trusted_domains' => 
  array (
    0 => 'abc.abc',
    1 => 'www.abc.abc',
    2 => 'abc.def',
  ),
  'datadirectory' => '/mnt/ssd/nextcloud/data',
  'overwrite.cli.url' => 'https://abc.abc/nextcloud',
  'dbtype' => 'mysql',
  'version' => '13.0.5.2',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_db_user',
  'dbpassword' => 'abc123',
  'installed' => true,
  'skeletondirectory' => '',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
  'logtimezone' => 'Europe/Berlin',
  'maintenance' => false,
  'loglevel' => 3,
   'filelocking.enabled' => false,
);

First of all, please setup log rotation, ether via config.php (https://docs.nextcloud.com/server/13/admin_manual/configuration_server/config_sample_php_parameters.html#logging)

'log_rotate_size' => 104857600,

or for as system log rotation:

cat /etc/logrotate.d/nextcloud.log.conf
/var/www/nextcloud/data/nextcloud.log {
	minsize 5242880
	notifempty
	size 5242880
	olddir /var/log
}

Basically app that could cause an error is dropbox app https://github.com/icewind1991/files_external_dropbox or external storage.

But similar issue was reported also here: Cant watch video (>2GB) in the website/GUI

1 Like

Hi,

I have the exact same issue with the same nextcloud version on the same platform (Raspbian)

Hello,

I’m having the same issue. And my Nextcloud instance becomes unavailable after a while… Any idea to fix it?

Thank you!

I open a ticket to enable log rotation in NC per default: https://github.com/nextcloud/server/issues/12451 to avoid memory overload.