files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

Tried to scan non file

Open Bables55 opened this issue 4 years ago • 38 comments

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 avatar Sep 15 '21 09:09 Bables55

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 avatar Apr 04 '22 06:04 Bables55

{"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 avatar May 11 '22 05:05 Bables55

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 avatar May 12 '22 10:05 Bables55

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 avatar May 13 '22 09:05 Bables55

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

Bables55 avatar Jun 30 '22 01:06 Bables55

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

Bables55 avatar Aug 29 '22 09:08 Bables55

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

Bables55 avatar Dec 09 '22 07:12 Bables55

{"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

Palerm avatar Jul 03 '23 09:07 Palerm

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

Nick-Git2 avatar Jul 04 '23 08:07 Nick-Git2

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.

Just4Link avatar Jul 04 '23 15:07 Just4Link

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"}}

draeklae avatar Jul 06 '23 06:07 draeklae

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"}}

nerozero avatar Jul 11 '23 17:07 nerozero

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"}

julian70400 avatar Jul 12 '23 13:07 julian70400

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"}

nonofr91 avatar Jul 19 '23 17:07 nonofr91

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

louim-lbs avatar Jul 25 '23 07:07 louim-lbs

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"}}

Steve8291 avatar Jul 26 '23 12:07 Steve8291

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

Githopp192 avatar Jul 27 '23 21:07 Githopp192

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.

vincentstans avatar Jul 29 '23 12:07 vincentstans

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

Nick-Git2 avatar Jul 29 '23 18:07 Nick-Git2

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?

Steve8291 avatar Aug 02 '23 10:08 Steve8291

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,

Nick-Git2 avatar Aug 02 '23 10:08 Nick-Git2

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

nonofr91 avatar Aug 02 '23 16:08 nonofr91

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.

Tel3000 avatar Aug 03 '23 20:08 Tel3000

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

Githopp192 avatar Aug 03 '23 21:08 Githopp192

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.

nonofr91 avatar Aug 04 '23 09:08 nonofr91

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 :)

julian70400 avatar Aug 04 '23 14:08 julian70400

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;

Tel3000 avatar Aug 04 '23 14:08 Tel3000

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

Nice investigation buddies :)

julian70400 avatar Aug 04 '23 15:08 julian70400

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

Steve8291 avatar Aug 05 '23 13:08 Steve8291

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

nerozero avatar Aug 05 '23 14:08 nerozero