nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
84 stars 35 forks source link

Tried to scan non file #207

Open Bables55 opened 2 years ago

Bables55 commented 2 years ago

Steps to reproduce

  1. I don't know what triggered it.
  2. Output every 20 minutes.

Expected behaviour

No error is output.

Actual behaviour

A set of one error and 99 fatal errors occur every 20 minutes.

Server configuration

Operating system: CentOS 7.8 Web server: nginx 1.20.1 Database: MariaDB 10.2.44 PHP version: PHP 8.0.10 Nextcloud version: (see Nextcloud admin page) 22.1.1

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "version": "22.1.1.2",
        "dbtype": "mysql",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "installed": true,
        "default_language": "ja",
        "default_locale": "ja_JP",
        "default_phone_region": "JP",
        "defaultapp": "calendar",
        "knowledgebaseenabled": false,
        "allow_user_to_change_display_name": false,
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_keepalive": true,
        "auto_logout": false,
        "token_auth_enforced": false,
        "auth.bruteforce.protection.enabled": false,
        "auth.webauthn.enabled": true,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpdebug": false,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": 465,
        "mail_smtptimeout": 10,
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_template_class": "\\OC\\Mail\\EMailTemplate",
        "mail_send_plaintext_only": true,
        "mail_smtpstreamoptions": [],
        "mail_sendmailmode": "smtp",
        "allow_local_remote_servers": true,
        "trashbin_retention_obligation": "auto,93",
        "versions_retention_obligation": "7,auto",
        "appcodechecker": true,
        "updatechecker": true,
        "updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/",
        "updater.release.channel": "stable",
        "has_internet_connection": true,
        "connectivity_check_domains": [
        ],
        "check_for_working_wellknown_setup": true,
        "check_for_working_htaccess": true,
        "check_data_directory_permissions": true,
        "config_is_read_only": false,
        "log_type": "file",
        "logfilemode": 416,
        "loglevel": 2,
        "syslog_tag": "Nextcloud",
        "logdateformat": "F d, Y H:i:s",
        "logtimezone": "Asia\/Tokyo",
        "log_query": false,
        "log_rotate_size": 104857600,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "customclient_desktop": "https:\/\/nextcloud.com\/install\/#install-clients",
        "customclient_android": "https:\/\/play.google.com\/store\/apps\/details?id=com.nextcloud.client",
        "customclient_ios": "https:\/\/itunes.apple.com\/us\/app\/nextcloud\/id1125420102?mt=8",
        "customclient_ios_appid": "1125420102",
        "appstoreenabled": true,
        "apps_paths": [
            {
                "path": "\/MY-NEXTCLOUD-DIR\/apps",
                "url": "\/apps",
                "writable": true
            }
        ],
        "enable_previews": true,
        "preview_max_x": 4096,
        "preview_max_y": 4096,
        "preview_max_filesize_image": 10,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita"
        ],
        "ldapUserCleanupInterval": 51,
        "sort_groups_by_name": true,
        "comments.managerFactory": "\\OC\\Comments\\ManagerFactory",
        "systemtags.managerFactory": "\\OC\\SystemTag\\ManagerFactory",
        "maintenance": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "cache_chunk_gc_ttl": 86400,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "sharing.managerFactory": "\\OC\\Share20\\ProviderFactory",
        "sharing.maxAutocompleteResults": 0,
        "sharing.minSearchStringLength": 0,
        "sharing.enable_share_accept": false,
        "sharing.force_share_accept": false,
        "sqlite.journal_mode": "DELETE",
        "mysql.utf8mb4": true,
        "supportedDatabases": [
            "sqlite",
            "mysql"
        ],
        "theme": "",
        "minimum.supported.desktop.version": "2.0.0",
        "quota_include_external_storage": false,
        "external_storage.auth_availability_delay": 1800,
        "filesystem_check_changes": 0,
        "part_file_in_storage": true,
        "mount_file": "\/MY-NEXTCLOUD-DIR\/data\/mount.json",
        "filesystem_cache_readonly": false,
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED",
            "HTTP_FORWARDED_FOR"
        ],
        "max_filesize_animated_gifs_public_sharing": 10,
        "filelocking.enabled": true,
        "filelocking.ttl": 3600,
        "filelocking.debug": false,
        "upgrade.disable-web": false,
        "debug": false,
        "gs.enabled": false,
        "gs.federation": "internal",
        "simpleSignUpLink.shown": false,
        "login_form_autocomplete": true,
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "csrf.optout": [
            "\/^WebDAVFS\/",
            "\/^Microsoft-WebDAV-MiniRedir\/"
        ],
        "app_install_overwrite": [
            "files_external_dropbox"
        ]
    }
}

Logs

Nextcloud log (data/owncloud.log)

{"reqId":"4TUfccUlm5iUp78A5qqn","level":2,"time":"September 14, 2021 19:34:03","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/var/www/vhosts/courio-city.net/nc/data/nextcloud.log\" was over 104857600 bytes, moved to \"/var/www/vhosts/courio-city.net/nc/data/nextcloud.log.1\"","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":3,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"File with id \"847\" has not been found.","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"File with id \"847\" has not been found.","Code":0,"Trace":[{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_sharing/lib/SharedStorage.php","line":434,"function":"acquireLock","class":"OC\\Files\\Storage\\FailedStorage","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Storage/Wrapper/Wrapper.php","line":591,"function":"acquireLock","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1964,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":2079,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1151,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1005,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Node/File.php","line":114,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Item.php","line":191,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Item.php","line":85,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":112,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":336,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":122,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Storage/FailedStorage.php","Line":197,"Hint":"Storage is temporarily not available","Previous":{"Exception":"OCP\\Files\\NotFoundException","Message":"File with id \"847\" has not been found.","Code":0,"Trace":[{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_sharing/lib/SharedStorage.php","line":132,"function":"getPath","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_sharing/lib/SharedStorage.php","line":493,"function":"init","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Storage/Wrapper/Jail.php","line":482,"function":"getWrapperStorage","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_sharing/lib/SharedStorage.php","line":433,"function":"resolvePath","class":"OC\\Files\\Storage\\Wrapper\\Jail","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Storage/Wrapper/Wrapper.php","line":591,"function":"acquireLock","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1964,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":2079,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1151,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","line":1005,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/Node/File.php","line":114,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Item.php","line":191,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Item.php","line":85,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":112,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":336,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":122,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/courio-city.net/nc/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/courio-city.net/nc/lib/private/Files/View.php","Line":1773},"CustomMessage":"--"}}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"F4R17LZ509Ck93cDeBzt","level":4,"time":"September 14, 2021 19:49:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"22.1.1.2"}
{"reqId":"3PEEL9yFVtQHjiuj1wnS","level":3,"time":"September 14, 2021 20:09:04","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"File with id \"847\" has not been found.","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"File with id \"847\" has not been found.","Code":0,"Trace":[{"file":"/MY-NEXTCLOUD-DIR/apps/files_sharing/lib/SharedStorage.php","line":434,"function":"acquireLock","class":"OC\\Files\\Storage\\FailedStorage","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/Storage/Wrapper/Wrapper.php","line":591,"function":"acquireLock","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1964,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":2079,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1151,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1005,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/Node/File.php","line":114,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Item.php","line":191,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Item.php","line":85,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":112,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":336,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":122,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/MY-NEXTCLOUD-DIR/lib/private/Files/Storage/FailedStorage.php","Line":197,"Hint":"Storage is temporarily not available","Previous":{"Exception":"OCP\\Files\\NotFoundException","Message":"File with id \"847\" has not been found.","Code":0,"Trace":[{"file":"/MY-NEXTCLOUD-DIR/apps/files_sharing/lib/SharedStorage.php","line":132,"function":"getPath","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_sharing/lib/SharedStorage.php","line":493,"function":"init","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/Storage/Wrapper/Jail.php","line":482,"function":"getWrapperStorage","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_sharing/lib/SharedStorage.php","line":433,"function":"resolvePath","class":"OC\\Files\\Storage\\Wrapper\\Jail","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/Storage/Wrapper/Wrapper.php","line":591,"function":"acquireLock","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1964,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":2079,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1151,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","line":1005,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/Files/Node/File.php","line":114,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Item.php","line":191,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Item.php","line":85,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":112,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":336,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":122,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/MY-NEXTCLOUD-DIR/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/MY-NEXTCLOUD-DIR/lib/private/Files/View.php","Line":1773},"CustomMessage":"--"}}
Bables55 commented 2 years ago

I have resolved the "File with id 847" issue with the above NC log. It was broken, in a state like a bug in NC. However, the "Tried to scan non file" error continues to occur.

Bables55 commented 2 years ago

{"reqId":"Y1zS6SWbN94nQBIKV4eB","level":4,"time":"2022-05-11T13:12:01+09:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"23.0.4.1","id":"627b43c6a8fb0"}

How can this obstacle be tracked?

Bables55 commented 2 years ago

Is this a problem on the side of ClamAV itself or the Antivirus for files app? Or my NC file structure? At least I just disable the Antivirus for Files app and error output in the NC logs stops.

Bables55 commented 2 years ago

I scanned the NC data directory using the command line. And there was no error output. What is the Antivirus for Files app doing every 15 minutes? What area is it going to inspect?

Bables55 commented 2 years ago

Is there any way to find out where this application is scrutinized?

Bables55 commented 2 years ago

Is there a way to unconditionally stop any errors that "Antivirus for files" outputs?

Bables55 commented 1 year ago

Version 4.0.0 seemed to resolve this issue, but after updating to 4.0.1, it reoccurred.

Palerm commented 1 year ago

{"reqId":"********","level":3,"time":"2023-07-03T04:00:16+02:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"26.0.3.2","data":{"app":"files_antivirus"},"id":"*******"} Same here since update to 5.2.1

Nick-Git2 commented 1 year ago

Same for me. It seems to be a NC issue as clamav itself does not produce an error entry in its logs. Deinstalling and reinstalling antivirus for files didn't help NC 26.0.3 and AV 5.2.1

Just4Link commented 1 year ago

Same problem here. I set up a new nextcloud instance with docker and clamav in a separate container. Everything works just that error spamming all 15-30 mins.

draeklae commented 1 year ago

Having the same issue with 5.2.1 and NC 27.0.0. {"reqId":"***","level":3,"time":"2023-07-06T08:35:06+02:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"27.0.0.8","data":{"app":"files_antivirus"}}

nerozero commented 1 year ago

same: NC - 24.0.12, Antivirus for files: 5.2.1, Clam - 1.1.0_1,1

{"reqId":"8nepi0LvIqgzQRoPiGTe","level":3,"time":"2023-07-11 17:15:05","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"24.0.12.1","data":{"app":"files_antivirus"}}

julian70400 commented 1 year ago

Same since NC 26.0.3

{"reqId":"ZVRGABClZYy694iZzmI1","level":3,"time":"2023-07-12T13:50:02+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"26.0.3.2","data":{"app":"files_antivirus"},"id":"64aeb0598a6ab"}

nonofr91 commented 1 year ago

idem NC 27: {"reqId":"LjskTpyIO0WO2Y3cUjVq","level":3,"time":"2023-07-19T17:15:01+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"27.0.0.8","data":{"app":"files_antivirus"},"id":"64b81ba1c1503"}

NC 26: {"reqId":"ee1HvVrtePhRb8dHqage","level":3,"time":"2023-07-19T17:10:01+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"26.0.3.2","data":{"app":"files_antivirus"},"id":"64b81be960a81"}

louim-lbs commented 1 year ago

Idem NC: 27.0.1 Antivirus for files: 5.2.1 ClamAV (Docker): stable

Steve8291 commented 1 year ago

I just started getting this error today as well. I'm on Antivirus for files: 5.2.1 and it is filling my logs. {"reqId":"xJQG7Am34VcwYmUUCp2K","level":3,"time":"2023-07-26T08:46:56-04:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"27.0.1.2","data":{"app":"files_antivirus"}}

Githopp192 commented 1 year ago

log is full of that:

remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"26.0.4.2","data":{"app":"files_antivirus"},"id":"xxxxx"}

[files_antivirus] Fehler: Tried to scan non file

Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file |   | vor 14 Minuten Fehler | files_antivirus | Tried to scan non file

vincentstans commented 1 year ago

Hello I too have the same issue for some time. Today I have used the command line to find out what is the problem. occ files_antivirus:status showed 1000 unscanned files of which 6 files could not be found.

warning: no file found for file 8 warning: no file found for file 9 warning: no file found for file 3 warning: no file found for file 11 warning: no file found for file 13 warning: no file found for file 12

in the oc_filecache table this resorts too fileid | storage | path 3 | 1 | files/Nextcloud.mp4 8 | 1 | files/Documents/About.txt 9 | 1 | files/Documents/About.odt 11 | 1 | files/Photos/Hummingbird.jpg 12 | 1 | files/Photos/Nut.jpg 13 | 1 | files/Photos/Coast.jpg

Where table oc_storage id 1 is Home::Temp

There is no temp user in my cloud so this directory doesn't exsist. I created a user temp and ran occ files_antivirus:status -vvv again and now resulted in

/temp/files/Documents/About.txt is unscanned /temp/files/Documents/About.odt is unscanned /temp/files/Nextcloud.mp4 is unscanned /temp/files/Photos/Hummingbird.jpg is unscanned /temp/files/Photos/Coast.jpg is unscanned /temp/files/Photos/Nut.jpg is unscanned

It seems too me a problem with the database and not the antivirus app as it simply tries to scan what it is told. I ended up removing the temp account and that removed the links in the database. The antivirus nolonger tries to scan non existing files.

Nick-Git2 commented 1 year ago

In my case I don't get any warnings in regards to not-found files.

But, I don't know if it's related, but what i noticed is that in my case the clamav-daemon throws this error right after reporting "Tried to scan non file" back to Nextcloud:

clamd[104471]: Sat Jul 29 20:05:34 2023 -> ^INSTREAM: Size limit reached, (requested: 8192, max: 0)

I've added StreamMaxLength 8192 to clamd.conf and restarted the daemon but this didn't change anything. Still get all the warnings and errors

Steve8291 commented 1 year ago

After reading @vincentstans report I think I've figured out how to fix the issue. Running the occ cleanup command seems to have silenced the error for me.

sudo -u www-data php /var/www/nextcloud/occ files:scan --all
sudo -u www-data php /var/www/nextcloud/occ files:cleanup
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

Looks like an update somewhere added database references back in to the temp user created on a fresh install. Could anyone else confirm that this fixes the problem for them?

Nick-Git2 commented 1 year ago

After reading @vincentstans report I think I've figured out how to fix the issue. Running the occ cleanup command seems to have silenced the error for me.

sudo -u www-data php /var/www/nextcloud/occ files:scan --all
sudo -u www-data php /var/www/nextcloud/occ files:cleanup
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

Looks like an update somewhere added database references back in to the temp user created on a fresh install. Could anyone else confirm that this fixes the problem for them?

In my case it didn't work. I still get the non-file errors.

Rgds,

nonofr91 commented 1 year ago

I ran the occ commands in the portainer console. But I still have the same message in my journal.

Tel3000 commented 1 year ago

In my case some files in the trash bin of a user have caused this error. occ -v files_antivirus:status leads to the file id's.

Looking up this file id's in oc_filecache and the corresponding storage id in oc_storages brings you the user-id and full path of dangling files. Cleaning up the users trash bin worked for me and stops the error logging.

Unfortunately i have no idea what process have lead to this state. Further investigation if this situation happens again.

Githopp192 commented 1 year ago

occ files:cleanup did not solve this issue.

occ files_antivirus:status: (shows allway this status when repeating):

0 unscanned files 1000 files scheduled for re-scan 1000 have been updated since the last scan

nonofr91 commented 1 year ago

In my case some files in the trash bin of a user have caused this error. occ -v files_antivirus:status leads to the file id's.

Looking up this file id's in oc_filecache and the corresponding storage id in oc_storages brings you the user-id and full path of dangling files. Cleaning up the users trash bin worked for me and stops the error logging.

Unfortunately i have no idea what process have lead to this state. Further investigation if this situation happens again.

here is the result for the command: root@c11ca3da4967:/# occ -v files_antivirus:status 0 unscanned files warning: no file found for file 93151 1 files scheduled for re-scan 0 have been updated since the last scan

Can you explain me how to find the user id? Should we look in the database tables? If so with which tool. Thanks in advance.

julian70400 commented 1 year ago

Can you explain me how to find the user id? Should we look in the database tables? If so with which tool. Thanks in advance.

In your case, you juste have 1 file which causes problem, the id is 93151.

==> now, go to your oc_filecache table and search the full path of this file through the fileid (93151). It will return you the name of the file wich causes troubles. ==> Login into the owner's account of this file and just delete it (it should be in the trash, so just purge it).

Problem solved :)

Tel3000 commented 1 year ago

Can you explain me how to find the user id? Should we look in the database tables? If so with which tool. Thanks in advance.

If you have sql access to the database use the following query to identify the dangling file reference

SELECT s.id, f.path FROM oc_filecache f JOIN oc_storages s ON f.storage = s.numeric_id WHERE f.fileid = 93151;

julian70400 commented 1 year ago

Removing all files (purge trash through user account concerned), when they are identified, definitively solved the problem in my case.

Nice investigation buddies :)

Steve8291 commented 1 year ago

Sorry for being premature in my earlier post. My errors did come right back. @julian70400 seems to have fixed the issue for me as well. I just removed all deleted files for all users: sudo -u www-data php /var/www/nextcloud/occ trashbin:cleanup --all-users

nerozero commented 1 year ago

Consider this still as a bug. File does exists, but seems to contain some characters which could not properly processed. Unfortunately @julian70400 solution works ONLY if ALL files has been purged, this is kinda brutal!

here is my solution - remove problematic files and then force to rescan user files.

here is the script which will handle all that for you: This script was intended to run on FreeBSD. You possibly need to change "su" to "sudo" in function: fx_nc_occ also DO NOT FORGET to set proper values in the CONFIG section

#!/bin/sh
# Created     : 2023-08-03 15:44:25
# Author      : George Eliozov
# Abstract    : Fix "File Not Found" issue by antivirus

##########################################################################################
# CONFIG
#

# Database
cfg_db_user="" # if empty credentials will be used from ~/.my.cnf
cfg_db_pass=""  # if empty credentials will be used from ~/.my.cnf
cfg_db_schema="nextcloud"

# OCC
cfg_nc_occ_bin="/usr/local/www/nextcloud/occ" # full path to nextcloud occ
cfg_nc_occ_run_user="www" # User to run php against occ

# Nextcloud - Data
cfg_nc_datadir="/path/to/nextcloud/data" # Need proper path for nextcloud data directory

##########################################################################################
# CODE
#

# Run occ
# args:
#   $@ - will be passwd as argument to occ
fx_nc_occ(){
  local cmd="php \"${cfg_nc_occ_bin}\" --no-ansi $@"
  # FreeBSD run as user, lunux users may use: sudo -u $cfg_nc_occ_run_user "$cmd"
  su -m $cfg_nc_occ_run_user -c "$cmd"
}

# Returns file ids of probelatic antivirus files
# No arguments
fx_get_problem_file_ids(){
  fx_nc_occ "-v files_antivirus:status" | sed -nr "s/warning: no file found for file ([[:digit:]]+)/\1/p"
}

# Returns full path for a given file id
# args:
#   $1 - "1" : return file path, "2" : return user
#   $2 - file id
fx_get_file_by_id(){
  local mycmd="mysql"
  local qtype="$1"
  local fileid="$2"

  [ "$cfg_db_user"  ] && mycmd="$mycmd --user=$cfg_db_user"
  [ "$cfg_db_pass"  ] && mycmd="$mycmd --password=$cfg_db_pass"
  mycmd="$mycmd --batch --raw -r --silent --skip-column-names -e"

  case "$qtype" in
    2)
      query="SELECT replace( b.id , 'home::', '' ) FROM \`$cfg_db_schema\`.oc_filecache a JOIN \`$cfg_db_schema\`.oc_storages b ON a.storage = b.numeric_id WHERE a.fileid = TRIM( \"$fileid\" );"
      ;;
    *)
      query="SELECT concat( replace( b.id , 'home::', '' ), '/' , a.path ) FROM \`$cfg_db_schema\`.oc_filecache a JOIN \`$cfg_db_schema\`.oc_storages b ON a.storage = b.numeric_id WHERE a.fileid = TRIM( \"$fileid\" );"
      ;;
  esac

  $mycmd "$query" 2>/dev/null

}

##########################################################################################
# Execution
#
ids="$( fx_get_problem_file_ids )"
users_to_scan=""

for id in $ids; do
  db_user="$( fx_get_file_by_id 2 $id )"
  db_file="$( fx_get_file_by_id 1 $id )"

  file_path="$cfg_nc_datadir/$db_file"
  file_size=$( stat -f%z "$file_path" )

  # collect effected users
  users_to_scan="$( echo "$users_to_scan"; echo "$db_user" )"

  echo "fileid: $id"
  echo "  User: $db_user"
  echo "  Path: $file_path"
  echo "  Size: $file_size"
  echo -n "  Removing file: "
  rm "$file_path"
  if [ $? -ne 0 ]; then
    echo "Failed"
    exit 1
  fi
  echo "Success"

  echo

done

# make sure we do rescan only once for each effected user
users_to_scan=$( echo "$users_to_scan" | sort | uniq )

echo
echo "Initiate file rescan..."
for u in $users_to_scan; do
  echo
  fx_nc_occ "files:scan $u"
done
joergmschulz commented 1 year ago

Here, some files are remnants from users that don't exist any longer (have been deleted) - where the deletion has not resulted in deletions of files. This happened for users from ldap where the occ user:delete has never been executed - or where this command failed for some reasons. One reason for vanished users is also a change in the authentication backend from LDAP to OIDC. After removing the LDAP backend from nextcloud, the openid connect provided user will be unknown to nextcloud until he logs in the first time. Then, this message vanishes from this user. When you now remove the user with occ user:delete that.user, the files will be deleted correctly and the entries in the storages and filecache databases are removed correctly. Bottom line: the non-file message can point to incoherent user/file statuses:

Additionally, I also found a non-existing deleted file referenced in oc_filecache.

Basically, this issue points to other root causes than a wrong implementation in files_antivirus. If so - where should we move this issue?

Githopp192 commented 1 year ago

Exactly @joergmschulz. is my opinion, too - "this issue points to other root causes than a wrong implementation in files_antivirus. "

All thoses things should the "files antivirus" handle properly - against the database, against the users, against cached files, against everything.

And thx a lot @nerozero for this fantastic script, but this should be handled by the app "files antivirus", too - either by setting up through cron job or other other (included into the app) maintenance job.

And may be we need to talk here, if we want to build a workaround of fix the issue (probably both :-) )

joergmschulz commented 1 year ago

ah yes, I think the script should be used with care as it deletes files from storage, and this might be undesirable in the scenario above (user currently not visible in nextcloud because the authentication backend didn't reinitialize her).

nerozero commented 1 year ago

I think the script should be used with care as it deletes files from storage

Definitely yes, this script should be considered as a temporary "Fix" to avoid massive spam in logs. All the solution above is "fixing" by purging entire "deleted files" content.

In my case I had only ~12 files with issues.

The bad thing - I didn't put in the script some kind of confirmation or "dry-run" option, just to simulate which files will be effected, or even maybe copy problematic files into another location. But this is easy to implement in the "Execution" section.

punkyard commented 1 year ago

hi this has been going since update of AiO to 27.0.2:

{"reqId":"apu","level":3,"time":"2023-08-21T08:15:10+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Tried to scan non file","userAgent":"--","version":"27.0.2.1","data":{"app":"files_antivirus"},"id":"64"}

zero0cool0 commented 1 year ago

Adding my 20 cents to this issue which as been filling my logs for a while now. Requires access to the database.

occ files_antivirus:status

will inform you about various file ids where apparently, no file could be found: warning: no file found for file [fileid]

According to the code (apps/files_antivirus/lib/Command/Status.php), this information is taken from the oc_files_antivirus table whose field fileid does indeed refer to the fileid field in the oc_filecache table. Analysing further, I found that in my case, these were a mix of

  1. references to folders and not files
  2. references to files whose storage field in oc_filecache did not have a corresponding mount in oc_mounts

Expanding on point 2 above in case it helps anyone.

In the end, rather than going with some of the suggested approaches above, I ended up deleting the offending entries from oc_files_antivirus. I have no idea what led to these entries in the first place

Suggested resolution: As the list of files to scan is built by apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php, it should check through getNodeForFile() if a node exists, and if not, remove the entry from the oc_files_antivirus table.