[Bug]: Error: Class "OCP\App" not found
shawnlocal opened this issue · comments
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- Nextcloud Server is running on 64bit capable CPU, PHP and OS.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Hello,
I set my ClamAV in antivirus app (admin settings > security) to delete infected files. It tries to delete it but it can’t. I get following error in logs
`/var/www/nextcloud/apps/files_antivirus/lib/Status.php - line 168:
OCA\Files_Antivirus\Item->processInfected()
/var/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php - line 327:
OCA\Files_Antivirus\Status->dispatch()
/var/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php - line 123:
OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 54:
OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 60:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 152:
OC\BackgroundJob\TimedJob->execute()`
Steps to reproduce
- Install Antivirus for Files app
- Install ClamAV on Ubuntu
- Set the ClamAV in Admin Settings > Security > Antivirus for Files - When infected files are found during a background scan: Delete
Expected behavior
ClamAV to delete the infected file
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
Enabled: - admin_audit: 1.15.0 - bruteforcesettings: 2.5.0 - checksum: 1.1.5 - cloud_federation_api: 1.8.0 - comments: 1.15.0 - contactsinteraction: 1.6.0 - dav: 1.24.0 - extract: 1.3.5 - federatedfilesharing: 1.15.0 - files: 1.20.1 - files_antivirus: 3.3.1 - files_external: 1.17.0 - files_pdfviewer: 2.6.0 - files_rightclick: 1.4.0 - files_sharing: 1.17.0 - files_trashbin: 1.15.0 - files_versions: 1.18.0 - files_zip: 1.1.2 - logreader: 2.10.0 - lookup_server_connector: 1.13.0 - metadata: 0.17.0 - music: 1.7.0 - ncdownloader: 1.0.2 - notifications: 2.13.1 - oauth2: 1.13.0 - occweb: 0.1.0 - password_policy: 1.15.0 - photos: 2.0.0 - privacy: 1.9.0 - provisioning_api: 1.15.0 - quota_warning: 1.15.0 - ransomware_protection: 1.14.0 - registration: 2.0.0 - richdocuments: 7.0.1 - richdocumentscode: 22.5.802 - serverinfo: 1.15.0 - settings: 1.7.0 - sharebymail: 1.15.0 - support: 1.8.0 - suspicious_login: 4.3.0 - text: 3.6.0 - theming: 2.0.1 - theming_customcss: 1.12.0 - twofactor_backupcodes: 1.14.0 - twofactor_totp: 7.0.0 - updatenotification: 1.15.0 - user_status: 1.5.0 - video_converter: 1.0.5 - viewer: 1.9.0 - workflowengine: 2.7.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No response
Additional info
No response
yeah I have same error with clamav and kaspersky it show a confusing messages for users