server icon indicating copy to clipboard operation
server copied to clipboard

NC 21 Error: filesize(): stat failed for /data/flow.log at /lib/public/Log/RotationTrait.php#62

Open AndyXheli opened this issue 5 years ago • 9 comments

Getting below error ever since updated to NC 21 from NC 20

Apache 2.4 PHP 7.4.15 MySQL 8.0.23

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"HobPfumnXkOgMUyRtcdT","level":3,"time":"2021-02-26T17:00:06+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/data/flow.log at /var/www/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/var/www/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18","id":"603949b8db38c"}

AndyXheli avatar Feb 26 '21 19:02 AndyXheli

Same here NC21

Webserver: Apache/2.4.46 (Unix) OpenSSL/1.1.1i PHP/8.0.2 mod_fcgid/2.3.9 (apache2handler) Database: mysql 10.5.8 PHP version: 8.0.2

Error Message {"reqId":"rhNwrCTIJla5pyTF7jqF","level":3,"time":"2021-02-26T20:06:20+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /usr/share/webapps/nextcloud/data/flow.log at /srv/http/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/srv/http/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/srv/http/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/srv/http/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/srv/http/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/srv/http/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/srv/http/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18","id":"60399874a210a"}

ukjohnd avatar Feb 27 '21 01:02 ukjohnd

Same here using NC21 on Fedora 33 with nginx 1.18 and php 8.0.3

MastaG avatar Mar 03 '21 12:03 MastaG

Same here, but on nginx on new install of NC21:

Nextcloud 21.0.0-9 (Arch Linux package) *config.php shows 21.0.0.18 Arch Linux 5.11.2.arch1-1 nginx 1.19.7-1 PHP 8.0.3-1 MariaDB 10.5.9-1

{"reqId":"b9aKKMPkPBA9X7Im7sUW","level":3,"time":"March 03, 2021 08:11:47","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"LorGwKiN8dWMoxH4Efnq","level":3,"time":"March 03, 2021 11:11:48","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"CwYNy4AJcUENymXMcQCp","level":3,"time":"March 03, 2021 14:11:49","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"eM4iaClpPKsmuriJFXWe","level":3,"time":"March 03, 2021 17:11:51","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"rgElnjCVLQqkVW3PBwlr","level":3,"time":"March 03, 2021 20:26:52","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"ahBprMvRpP1yQr86IkSM","level":3,"time":"March 03, 2021 23:26:55","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"fhA2flkv5ujkDlwia3o8","level":3,"time":"March 04, 2021 02:41:54","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"vMaJXRpcZfTqkymCEGEo","level":3,"time":"March 04, 2021 05:41:55","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.0.18"}


steadybright avatar Mar 04 '21 14:03 steadybright

I've the same, but at 20.0.8.

radoeka avatar Mar 27 '21 14:03 radoeka

Same here after upgrade from 20.xx to 21.0.1

NC 21.0.1 PHP 8.0.3

kiv57 avatar Apr 12 '21 09:04 kiv57

Same also here

NC 21.01 Php 7.4 Debian 10

Happyfeet01 avatar Apr 14 '21 14:04 Happyfeet01

Same here with a fresh 21.0.1 install on Debian 10 with PHP 8.0 running as php-fpm with Apache 2.4.46 and MariaDB 10.5.9.

prismopensource avatar Apr 15 '21 11:04 prismopensource

same here: NC 21.01 PHP 7.4.16 MySQL 10.0.38 Apache 2.4.18 Ubuntu 16.04.7 LTS

turtlak69 avatar Apr 26 '21 09:04 turtlak69

Same NC 21.01 PHP 8.0.5 MariaDB 10.5.10 Apache2 2.4.46 Ubuntu 20.04.2

Misaka-12450 avatar May 11 '21 20:05 Misaka-12450