Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Tried to scan non file" with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404. #379

Open
Arveen205 opened this issue Sep 20, 2024 · 1 comment

Comments

@Arveen205
Copy link

          We are encountering the same issue with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404.

I deleted all records using the command DELETE FROM oc_files_antivirus; and then ran the command sudo -u www-data php /var/www/nextcloud/occ files_antivirus:background-scan. However, the warnings still appear when I check the status using the command sudo -u www-data php /var/www/nextcloud/occ -v files_antivirus:status

Warning: No file found for file 51
Warning: No file found for file 59
Warning: No file found for file 105
Warning: No file found for file 106
Warning: No file found for file 107
Warning: No file found for file 108

I searched for these file IDs in the database using the query SELECT * FROM oc_filecache WHERE fileid = 51;, and I got something like this: appdata_bnkxbpkzmrty/theming/global/0/favIcon-core#0082c9.

This file existed, but after reviewing the PHP code for the background scan, I noticed that it doesn't check files under appdata_. That's why these warnings are being displayed.

PLEASE FIX IT :)

Originally posted by @Arveen205 in #207 (comment)

@Arveen205 Arveen205 changed the title We are encountering the same issue with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404. Tried to scan non file with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404. Sep 20, 2024
@Arveen205 Arveen205 changed the title Tried to scan non file with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404. "Tried to scan non file" with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404. Sep 20, 2024
@zero0cool0
Copy link

PR #364 attempts to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants