Open L0ric0 opened 4 years ago
check if a clamav-daemon is running and use that one as the default or don't enable scans until an admin has configured the app.
a scan with clamscan is triggered on the next run of cron.php even if a clamav-deamon is running which hogs a lot of ram.
Operating system: archlinux
Web server: nginx
Database: postgres
PHP version: 7.4
Nextcloud version: 17.0.2
Where did you install Nextcloud from: the AUR
List of activated apps:
Enabled: - accessibility: 1.3.0 - activity: 2.10.1 - admin_audit: 1.7.0 - announcementcenter: 3.6.1 - bruteforcesettings: 1.4.0 - calendar: 1.7.1 - cloud_federation_api: 1.0.0 - comments: 1.7.0 - contacts: 3.1.6 - cookbook: 0.5.7 - dav: 1.13.0 - event_update_notification: 1.0.0 - federatedfilesharing: 1.7.0 - federation: 1.7.0 - files: 1.12.0 - files_antivirus: 2.2.1 - files_external: 1.8.0 - files_pdfviewer: 1.6.0 - files_retention: 1.6.0 - files_rightclick: 0.15.1 - files_sharing: 1.9.0 - files_trashbin: 1.7.0 - files_versions: 1.10.0 - files_videoplayer: 1.6.0 - firstrunwizard: 2.6.0 - flowupload: 0.1.7 - gallery: 18.4.0 - gpxpod: 4.1.0 - impersonate: 1.4.0 - logreader: 2.2.0 - lookup_server_connector: 1.5.0 - nextcloud_announcements: 1.6.0 - notifications: 2.5.0 - oauth2: 1.5.0 - password_policy: 1.7.0 - previewgenerator: 2.2.0 - privacy: 1.1.0 - provisioning_api: 1.7.0 - recommendations: 0.5.0 - serverinfo: 1.7.0 - sharebymail: 1.7.0 - support: 1.0.1 - survey_client: 1.5.0 - suspicious_login: 3.0.1 - systemtags: 1.7.0 - text: 1.1.1 - theming: 1.8.0 - timetracker: 0.0.39 - twofactor_backupcodes: 1.6.0 - updatenotification: 1.7.0 - uploaddetails: 0.1.2 - viewer: 1.2.0 - workflowengine: 1.7.0
Nextcloud configuration:
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "17.0.2.1", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "theme": "", "loglevel": 0, "log_type": "file", "data-fingerprint": "de75db130d06c80711abb2451c1c7753", "memcache.local": "\\OC\\Memcache\\APCu", "app_install_overwrite": [ "files_external_onedrive", "timetracker" ], "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465" }, "apps": { "accessibility": { "types": "", "enabled": "yes", "installed_version": "1.3.0" }, "activity": { "types": "filesystem", "enabled": "yes", "installed_version": "2.10.1" }, "admin_audit": { "installed_version": "1.7.0", "types": "logging", "enabled": "yes" }, "announcementcenter": { "types": "logging", "installed_version": "3.6.1", "enabled": "yes" }, "backgroundjob": { "lastjob": "360" }, "bruteforcesettings": { "types": "", "installed_version": "1.4.0", "enabled": "yes" }, "calendar": { "installed_version": "1.7.1", "types": "", "enabled": "yes" }, "cloud_federation_api": { "types": "filesystem", "enabled": "yes", "installed_version": "1.0.0" }, "comments": { "types": "logging", "enabled": "yes", "installed_version": "1.7.0" }, "contacts": { "types": "", "enabled": "yes", "installed_version": "3.1.6" }, "cookbook": { "types": "", "enabled": "yes", "installed_version": "0.5.7" }, "core": { "vendor": "nextcloud", "public_files": "files_sharing\/public.php", "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php", "installedat": "1559660644.1448", "installed.bundles": "[\"CoreBundle\"]", "scss.variables": "08343dd3f787291558383b46e1b489fb", "updater.secret.created": "1569514034", "lastupdateResult": "[]", "oc.integritycheck.checker": "[]", "lastcron": "1578428470", "backgroundjobs_mode": "cron", "lastupdatedat": "1578427878", "theming.variables": "699540fb475ca5b4dcbb5d4a870c5d3c", "enterpriseLogoChecked": "yes" }, "dav": { "types": "filesystem", "enabled": "yes", "installed_version": "1.13.0", "regeneratedBirthdayCalendarsForYearFix": "yes", "buildCalendarSearchIndex": "yes", "chunks_migrated": "1", "buildCalendarReminderIndex": "yes" }, "event_update_notification": { "types": "logging,dav", "installed_version": "1.0.0", "enabled": "yes" }, "federatedfilesharing": { "types": "", "enabled": "yes", "installed_version": "1.7.0" }, "federation": { "types": "authentication", "enabled": "yes", "installed_version": "1.7.0", "autoAddServers": "1" }, "files": { "types": "filesystem", "enabled": "yes", "cronjob_scan_files": "500", "installed_version": "1.12.0" }, "files_antivirus": { "av_mode": "socket", "av_socket": "\/var\/run\/clamav\/clamd.ctl", "av_host": "", "av_port": "0", "av_cmd_options": "", "av_infected_action": "only_log", "av_stream_max_length": "26214400", "av_max_file_size": "524288000", "av_path": "\/usr\/bin\/clamscan", "installed_version": "2.2.1", "types": "filesystem,dav", "enabled": "yes" }, "files_external": { "types": "filesystem", "enabled": "yes", "user_mounting_backends": "ftp,dav,owncloud,sftp,amazons3,swift,smb,files_external_onedrive,\\OC\\Files\\Storage\\SFTP_Key,\\OC\\Files\\Storage\\SMB_OC", "installed_version": "1.8.0" }, "files_external_onedrive": { "types": "filesystem", "enabled": "no", "installed_version": "1.0.7" }, "files_pdfviewer": { "types": "", "enabled": "yes", "installed_version": "1.6.0" }, "files_retention": { "installed_version": "1.6.0", "types": "filesystem", "enabled": "yes" }, "files_rightclick": { "enabled": "yes", "types": "", "installed_version": "0.15.1" }, "files_sharing": { "types": "filesystem", "enabled": "yes", "installed_version": "1.9.0" }, "files_texteditor": { "installed_version": "2.8.0", "types": "", "enabled": "no" }, "files_trashbin": { "types": "filesystem,dav", "enabled": "yes", "installed_version": "1.7.0" }, "files_versions": { "types": "filesystem,dav", "enabled": "yes", "installed_version": "1.10.0" }, "files_videoplayer": { "types": "", "enabled": "yes", "installed_version": "1.6.0" }, "firstrunwizard": { "types": "logging", "enabled": "yes", "installed_version": "2.6.0" }, "flowupload": { "types": "", "enabled": "yes", "installed_version": "0.1.7" }, "gallery": { "types": "", "enabled": "yes", "installed_version": "18.4.0" }, "gpxpod": { "reset304": "1", "resetPics404": "1", "types": "", "enabled": "yes", "installed_version": "4.1.0" }, "impersonate": { "types": "", "enabled": "yes", "installed_version": "1.4.0" }, "logreader": { "types": "", "enabled": "yes", "installed_version": "2.2.0", "levels": "11111" }, "lookup_server_connector": { "types": "authentication", "enabled": "yes", "installed_version": "1.5.0" }, "metadata": { "installed_version": "0.9.0", "types": "", "enabled": "no" }, "nextcloud_announcements": { "types": "logging", "enabled": "yes", "installed_version": "1.6.0", "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200" }, "notifications": { "types": "logging", "enabled": "yes", "installed_version": "2.5.0" }, "oauth2": { "types": "authentication", "enabled": "yes", "installed_version": "1.5.0" }, "password_policy": { "types": "", "enabled": "yes", "enforceHaveIBeenPwned": "1", "installed_version": "1.7.0" }, "previewgenerator": { "installed_version": "2.2.0", "types": "filesystem", "enabled": "yes" }, "privacy": { "types": "", "enabled": "yes", "readableLocation": "de", "installed_version": "1.1.0" }, "provisioning_api": { "types": "prevent_group_restriction", "enabled": "yes", "installed_version": "1.7.0" }, "recommendations": { "types": "", "enabled": "yes", "installed_version": "0.5.0" }, "serverinfo": { "types": "", "enabled": "yes", "installed_version": "1.7.0" }, "sharebymail": { "types": "filesystem", "enabled": "yes", "installed_version": "1.7.0" }, "support": { "enabled": "yes", "types": "session", "installed_version": "1.0.1" }, "survey_client": { "types": "", "enabled": "yes", "installed_version": "1.5.0", "stats": "no", "files_sharing": "no", "encryption": "no", "last_sent": "1577910526", "last_report": "{\"id\":\"oc2h2sysu4v6\",\"items\":[[\"server\",\"version\",\"17.0.1.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"7.4.1\"],[\"php\",\"memory_limit\",1073741824],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 12.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.2.0, 64-bit\"],[\"database\",\"size\",41419631],[\"apps\",\"uploaddetails\",\"0.1.2\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"viewer\",\"1.2.0\"],[\"apps\",\"calendar\",\"1.7.1\"],[\"apps\",\"bruteforcesettings\",\"1.4.0\"],[\"apps\",\"files_rightclick\",\"disabled\"],[\"apps\",\"gallery\",\"18.4.0\"],[\"apps\",\"accessibility\",\"1.3.0\"],[\"apps\",\"federatedfilesharing\",\"1.7.0\"],[\"apps\",\"files_pdfviewer\",\"1.6.0\"],[\"apps\",\"logreader\",\"2.2.0\"],[\"apps\",\"password_policy\",\"1.7.0\"],[\"apps\",\"privacy\",\"1.1.0\"],[\"apps\",\"provisioning_api\",\"1.7.0\"],[\"apps\",\"recommendations\",\"0.5.0\"],[\"apps\",\"serverinfo\",\"1.7.0\"],[\"apps\",\"support\",\"1.0.1\"],[\"apps\",\"survey_client\",\"1.5.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.6.0\"],[\"apps\",\"updatenotification\",\"1.7.0\"],[\"apps\",\"federation\",\"1.7.0\"],[\"apps\",\"lookup_server_connector\",\"1.5.0\"],[\"apps\",\"oauth2\",\"1.5.0\"],[\"apps\",\"files\",\"1.12.0\"],[\"apps\",\"activity\",\"2.10.1\"],[\"apps\",\"dav\",\"1.13.0\"],[\"apps\",\"files_sharing\",\"1.9.0\"],[\"apps\",\"files_trashbin\",\"1.7.0\"],[\"apps\",\"files_versions\",\"1.10.0\"],[\"apps\",\"sharebymail\",\"1.7.0\"],[\"apps\",\"workflowengine\",\"1.7.0\"],[\"apps\",\"comments\",\"1.7.0\"],[\"apps\",\"firstrunwizard\",\"2.6.0\"],[\"apps\",\"nextcloud_announcements\",\"1.6.0\"],[\"apps\",\"notifications\",\"2.5.0\"],[\"apps\",\"systemtags\",\"1.7.0\"],[\"apps\",\"theming\",\"1.8.0\"],[\"apps\",\"contacts\",\"3.1.6\"],[\"apps\",\"announcementcenter\",\"3.6.1\"],[\"apps\",\"metadata\",\"disabled\"],[\"apps\",\"impersonate\",\"1.4.0\"],[\"apps\",\"event_update_notification\",\"1.0.0\"],[\"apps\",\"admin_audit\",\"1.7.0\"],[\"apps\",\"timetracker\",\"0.0.39\"],[\"apps\",\"cookbook\",\"0.5.6\"],[\"apps\",\"files_external_onedrive\",\"disabled\"],[\"apps\",\"text\",\"1.1.1\"],[\"apps\",\"files_retention\",\"1.6.0\"],[\"apps\",\"gpxpod\",\"4.1.0\"],[\"apps\",\"files_videoplayer\",\"1.6.0\"],[\"apps\",\"cloud_federation_api\",\"1.0.0\"],[\"apps\",\"flowupload\",\"0.1.7\"],[\"apps\",\"files_external\",\"1.8.0\"],[\"apps\",\"suspicious_login\",\"3.0.1\"],[\"apps\",\"previewgenerator\",\"2.2.0\"]]}" }, "suspicious_login": { "types": "authentication", "enabled": "yes", "installed_version": "3.0.1" }, "systemtags": { "types": "logging", "enabled": "yes", "installed_version": "1.7.0" }, "text": { "types": "", "enabled": "yes", "installed_version": "1.1.1" }, "theming": { "types": "logging", "enabled": "yes", "installed_version": "1.8.0", "slogan": "***REMOVED SENSITIVE VALUE***", "url": "***REMOVED SENSITIVE VALUE***", "name": "Uraziel", "cachebuster": "3" }, "timetracker": { "installed_version": "0.0.39", "types": "", "enabled": "yes" }, "twofactor_backupcodes": { "types": "", "enabled": "yes", "installed_version": "1.6.0" }, "updatenotification": { "types": "", "enabled": "yes", "installed_version": "1.7.0", "gpxpod": "4.0.0", "update_check_errors": "0", "flowupload": "0.1.5", "timetracker": "0.0.38", "suspicious_login": "3.0.1", "core": "17.0.2.1", "cookbook": "0.5.7" }, "uploaddetails": { "installed_version": "0.1.2", "types": "", "enabled": "yes" }, "viewer": { "types": "", "enabled": "yes", "installed_version": "1.2.0" }, "workflowengine": { "types": "filesystem", "enabled": "yes", "installed_version": "1.7.0" } } }
Browser: firefox
Operating system: Windows
Insert your Nextcloud log here
Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ...
Steps to reproduce
Expected behaviour
check if a clamav-daemon is running and use that one as the default or don't enable scans until an admin has configured the app.
Actual behaviour
a scan with clamscan is triggered on the next run of cron.php even if a clamav-deamon is running which hogs a lot of ram.
Server configuration
Operating system: archlinux
Web server: nginx
Database: postgres
PHP version: 7.4
Nextcloud version: 17.0.2
Where did you install Nextcloud from: the AUR
List of activated apps:
Nextcloud configuration:
Client configuration
Browser: firefox
Operating system: Windows
Logs
Nextcloud log (data/owncloud.log)
Browser log