What app is this about, and its version: Nextcloud 33.0.2~ynh1
What YunoHost version are you running: YunoHost 12.1.39
What type of hardware are you using: Old laptop or computer
Describe your issue
Nextcloud can’t execute the background job for clamav
Step to reproduce:
- install the app “Antivirus for file”
- install clamav as explained here: Antivirus scanner — Nextcloud latest Administration Manual latest documentation
- (sudo apt-get install clamav clamav-daemon)
- ss -a|grep clam
u_str LISTEN 0 4096 /run/clamav/clamd.ctl 2276539 - configure nextcloud for: Daemon (socket), and socket to: /run/clamav/clamd.ctl
→ first error: clamav is not properly runnning so: - sudo systemctl restart clamav-daemon.service
- Configure again the Nextcloud socket for: /run/clamav/clamd.ctl
But then Nextcloud can’t execute the background job
Share relevant logs or error messages
Error Call to a member function getUID() on null
Error while running background job OCA\Files_Antivirus\BackgroundJob\BackgroundScanner (id: 245, arguments: null)
EDIT: I found the origin of the problem by running manually the backgound scan:
Sudo yunohost app shelle nextcloud
php occ files_antivirus:background-scan -v
scanning /cyprien/files/zz - Test partage fédéré/test.docx
An unhandled exception has been thrown:
The error is because clamav can’t scan file that came through the federated share!
I deleted those file and everything seems to be working.
I create a github ticket for this error: Background scan error on federated share file · Issue #614 · nextcloud/files_antivirus · GitHub