Steps to reproduce
- Upgrade to 10.5 from previous version
- Wait long enough for cron to run Files_Antivirus task
- Receive error notification (every 12 hours)
Expected behaviour
Files_Antivirus task should run without error like it used to in 10.4
Actual behaviour
Files_Antivirus cron task generates an ArgumentCountError every time it runs
Server configuration
Operating system: Debian 10.5
Web server:
apache2:amd64/buster 2.4.38-3+deb10u4 uptodate
Database:
mysql-server:amd64/stretch 5.7.31-1debian9 uptodate
PHP version:
php7.4-fpm:amd64/buster 7.4.9-1+0~20200807.24+debian10~1.gbp7962cd uptodate
ownCloud version:
ownCloud 10.5.0 (stable)
version 10.5.0.10
Updated from an older ownCloud or fresh install:
updated from previous version
Where did you install ownCloud from:
Official ownCloud Debian repository
Signing status (ownCloud 9.0 and above):
no code integrity errors displayed in dashboard or ‘occ integrity:check-core’ or ‘occ integrity:check-app files_antivirus’
No errors have been found.
The content of config/config.php:
Too large to fit here. Can be shared somehow if it turns out to be critical.
List of activated apps:
Enabled:
- bookmarks: 0.10.6
- calendar: 1.6.4
- comments: 0.3.0
- configreport: 0.2.0
- contacts: 1.5.5
- dav: 0.6.0
- duo: 2.5.2
- federatedfilesharing: 0.5.0
- federation: 0.1.0
- files: 1.5.2
- files_antivirus: 0.15.2
- files_external: 0.7.1
- files_mediaviewer: 1.0.3
- files_pdfviewer: 0.11.2
- files_sharing: 0.13.0
- files_texteditor: 2.3.0
- files_trashbin: 0.9.1
- files_versions: 1.3.0
- firstrunwizard: 1.2.0
- gallery: 16.1.1
- market: 0.6.0
- notifications: 0.5.2
- oauth2: 0.4.3
- provisioning_api: 0.5.0
- qownnotesapi: 19.1.0
- systemtags: 0.3.0
- tasks: 0.9.7
- updatenotification: 0.2.1
- user_ldap: 0.15.2
Disabled:
- audioplayer
- encryption
- external
- twofactor_totp
- user_external
Are you using external storage, if yes which one:
no external storage
Are you using encryption:
no
Are you using an external user-backend, if yes which one:
LDAP
LDAP configuration (delete this part if not used)
Not relevant to this issue
Client configuration
Not relevant to this issue
Logs
Web server error log
Not relevant to this issue
ownCloud log (data/owncloud.log)
Relevant excerpt
{"reqId":"F2pLegN0WipQCkemre0n","level":3,"time":"September 03, 2020 04:30:02","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"Non-static method OCA\\Files_Antivirus\\Cron\\Task::run() should not be called statically at \/var\/www\/owncloud\/lib\/private\/BackgroundJob\/Legacy\/RegularJob.php#31"}
{"reqId":"F2pLegN0WipQCkemre0n","level":3,"time":"September 03, 2020 04:30:02","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"ArgumentCountError\",\"Message\":\"Too few arguments to function OCA\\\\Files_Antivirus\\\\Cron\\\\Task::run(), 0 passed in \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Legacy\\\/RegularJob.php on line 31 and exactly 1 expected\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Legacy\\\/RegularJob.php(31): OCA\\\\Files_Antivirus\\\\Cron\\\\Task::run()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(66): OC\\\\BackgroundJob\\\\Legacy\\\\RegularJob->run()\\n#2 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(125): OC\\\\BackgroundJob\\\\Job->execute()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(255): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1000): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(271): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(147): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#8 \\\/var\\\/www\\\/owncloud\\\/console.php(116): OC\\\\Console\\\\Application->run()\\n#9 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_antivirus\\\/lib\\\/Cron\\\/Task.php\",\"Line\":113}"}
Browser log
Not relevant to this issue