All files are unscanned

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x)
    • 32.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12.13
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.66
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • 8.3.30
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • I tinkered with Nextcloud Office and Collabora built-in CODE server, since SOME files could be opened there, others didn't
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • manual installation of virtual machine
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Cloudflare (disabled proxying already for testing)

Summary of the issue you are facing:

Literally ALL files show up as “unscanned” in the browser. No images or office files render in browser anymore. They only trigger a download. No preview images are shown anymore.

occ file:scan —unscanned does NOT find any unscanned files.

occ files:scan –all does not solve the issue.

image

Steps to replicate it (hint: details matter!):

  1. Open Nextcloud files view

  2. See all files unscanned

  3. Click an image file and see it triggers a download

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

No entries when I encounter this issue

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Network: Loading https://domain/nextcloud/core/preview?fileId=97206&x=32&y=32&mimeFallback=true&v=6b4ef8&a=0 results in a 303 redirect to: /nextcloud/core/img/filetypes/file.svg for all files

Console:
Warnungen zu Content-Security-Policy 2
Content-Security-Policy: Ignorieren von "blob:" innerhalb script-src-elem: 'strict-dynamic' angegeben 97110
Content-Security-Policy: 'unsafe-eval' oder 'wasm-unsafe-eval' innerhalb "script-src-elem" wird ignoriert. 97110
[WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config 
Object { app: "viewer", uid: "Alex", level: 2, ignoredMimes: (4) […] }
previewUtils-BWqM5-N0.chunk.mjs:14:366
OCA.Files.Settings initialized files-main.js:1:592352
OCA.Files.Sidebar initialized files-sidebar.js:1:27525
OCA.Sharing.ShareSearch initialized files_sharing-files_sharing_tab.js:1:794
Setting current user talk-files-sidebar.js:193:8269
OCA.Comments.View initialized comments-comments-app.js:1:20376
Initializing unified search plugin-filters from talk talk-search.js:1:178934
Notifications permissions granted NotificationsApp-hrGoV45R.chunk.mjs:2:326991
Polling interval updated to 30000 NotificationsApp-hrGoV45R.chunk.mjs:2:326422
Started background fetcher as session_keepalive is enabled NotificationsApp-hrGoV45R.chunk.mjs:2:323582
Got notification data, restoring default polling interval. NotificationsApp-hrGoV45R.chunk.mjs:2:325377

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:


77.8.240.107 - - [05/Mar/2026:22:48:24 +0100] "GET /nextcloud/apps/files/files/97553?dir=/photos/%27foobar%202023/John HTTP/1.1" 200 19520 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:25 +0100] "GET /nextcloud/index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6718 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:26 +0100] "REPORT /nextcloud/remote.php/dav/files/Jane/ HTTP/1.1" 207 787 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:26 +0100] "GET /nextcloud/ocs/v2.php/apps/files/api/v1/folder-tree?path=%2F&depth=1 HTTP/1.1" 200 2328 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:26 +0100] "PROPFIND /nextcloud/remote.php/dav/files/Jane/photos/'foobar%202023/John/ HTTP/1.1" 207 1850 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:26 +0100] "GET /nextcloud/ocs/v2.php/apps/recommendations/api/v1/recommendations HTTP/1.1" 200 1230 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:26 +0100] "GET /nextcloud/ocs/v2.php/apps/circles/probecircles HTTP/1.1" 200 909 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:27 +0100] "GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 978 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:27 +0100] "PUT /nextcloud/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 978 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:27 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 984 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:27 +0100] "PROPFIND /nextcloud/remote.php/dav/systemtags/ HTTP/1.1" 207 1265 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
77.8.240.107 - - [05/Mar/2026:22:48:28 +0100] "GET /nextcloud/index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6718 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            ***REMOVED***
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.6.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpdebug": false,
        "mail_smtptimeout": 10,
        "mail_send_plaintext_only": false,
        "mail_smtpstreamoptions": [],
        "mail_sendmailmode": "smtp",
        "theme": "",
        "maintenance": false,
        "loglevel": 2,
        "loglevel_frontend": 2,
        "loglevel_dirty_database_queries": 0,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "logfile_audit": "\/var\/log\/nextcloud\/nextcloud-audit.log",
        "logfilemode": 416,
        "syslog_tag": "Nextcloud",
        "syslog_tag_audit": "Nextcloud",
        "log.backtrace": false,
        "logdateformat": "F d, Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_query": false,
        "db.log_request_id": false,
        "log_rotate_size": 104857600,
        "profiler": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "auto",
        "updatechecker": true,
        "appstore.experimental.enabled": true,
        "overwrite.cli.url": "https:\/\/donain\/nextcloud",
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "web.baseUrl": "https:\/\/domain\/nextcloud\/index.php\/apps\/web",
        "web.rewriteLinks": true,
        "defaultapp": "files",
        "allow_user_to_change_mail_address": true,
        "allow_user_to_change_display_name": true,
        "updater.release.channel": "stable",
        "mysql.utf8mb4": true,
        "default_phone_region": "DE",
        "default_language": "de",
        "default_locale": "de_DE",
        "default_timezone": "Europe\/Berlin",
        "maintenance_window_start": 4,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "knowledgebase.embedded": true,
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_relaxed_expiry": true,
        "session_keepalive": true,
        "auto_logout": false,
        "davstorage.request_timeout": 30,
        "carddav_sync_request_timeout": 30,
        "token_auth_enforced": false,
        "token_auth_activity_update": 60,
        "auth.bruteforce.protection.enabled": true,
        "auth.bruteforce.protection.force.database": false,
        "auth.bruteforce.protection.testing": false,
        "ratelimit.protection.enabled": true,
        "auth.webauthn.enabled": true,
        "auth.storeCryptedPassword": true,
        "hide_login_form": false,
        "overwritehost": "",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/nextcloud",
        "overwritecondaddr": "",
        "htaccess.RewriteBase": "\/nextcloud",
        "proxy": "",
        "proxyuserpwd": "***REMOVED SENSITIVE VALUE***",
        "proxyexclude": [],
        "allow_local_remote_servers": true,
        "appcodechecker": true,
        "has_internet_connection": true,
        "connectivity_check_domains": [
            "www.nextcloud.com",
            "www.startpage.com",
            "www.eff.org",
            "www.edri.org"
        ],
        "check_for_working_wellknown_setup": true,
        "check_for_working_htaccess": true,
        "check_data_directory_permissions": true,
        "appstoreenabled": true,
        "app_install_overwrite": [
            "gpgmailer"
        ],
        "memories.db.triggers.fcu": true,
        "enabledPreviewProviders": [],
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64"
    }
}

Apps

Enabled:

  • activity: 5.0.0
  • admin_audit: 1.22.0
  • app_api: 32.0.0
  • bruteforcesettings: 5.0.0
  • calendar: 6.2.1
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • comments: 1.22.0
  • contacts: 8.3.4
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • deck: 1.16.3
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.1
  • files_pdfviewer: 5.0.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.1
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0
  • forms: 5.2.4
  • formvox: 0.2.11
  • geoblocker: 0.5.19
  • gpoddersync: 3.16.0
  • logreader: 5.0.0
  • lookup_server_connector: 1.20.0
  • memories: 7.8.2
  • nextcloud_announcements: 4.0.0
  • nextpod: 0.7.10
  • notifications: 5.0.0
  • oauth2: 1.20.0
  • password_policy: 4.0.0
  • photos: 5.0.0
  • privacy: 4.0.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recommendations: 5.0.0
  • related_resources: 3.0.0
  • richdocuments: 9.0.3
  • richdocumentscode: 25.4.902
  • serverinfo: 4.0.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • spreed: 22.0.9
  • support: 4.0.0
  • survey_client: 4.0.0
  • systemtags: 1.22.0
  • tasks: 0.17.1
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_nextcloud_notification: 6.0.0
  • twofactor_totp: 14.0.0
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • viewer: 5.0.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0

Disabled:

  • encryption: 2.20.0
  • suspicious_login: 10.0.0 (installed 9.0.1)
  • user_ldap: 1.23.0

What’s also interesting: While reloading, I can see that previews are available for a split second. After that, the default file icons are being rendered:

That seems to be just a tag on the files. Can you check that?
Unscanned in Nextcloud terms would mean the files wouldn’t show up in the first place. Either some rule or some app adds that

1 Like

Ah I see. That might be from an antivirus app that I tried a few years ago. I’ve deleted those tags.

But then still: No previews, no rendering in browser.

Would be my guess

In config.php?
Would be a surprise, since I haven’t changed anything there, but I’ll check.

Wow, there was an empty array indeed. I swear I have not put it there.
Anyway, after filling it with all values from Configuration Parameters — Nextcloud latest Administration Manual latest documentation - still no changes. Do I need to generate the preview now or anything?

OK, I’m getting closer. The mime types of files seem to be wrong. I’ve tried to generate a preview for two jpg files manually via occ, and that’s the result:

No preview generator available for file of typeapplication/octet-stream.

That seems wrong to me. Can I fix the mimetypes?

OK, I found the issue or multiple issues. The one that was the most important:

App formvox breaks mime type detection for me reproducibly. I’ve filed a bug ticket there: With formvox enabled, mimetypes are broken in my installation · Issue #12 · nextcloud/formvox

Another issue that might be related, was that mimetypes were not complete in the database. I fixed that with occ maintenance:mimetype:update-db.

Thanks for helping me find the way @SysKeeper!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.