Troubleshooting
Keep this page handy when deployment, authentication, or UI behaviors need quick fixes.
Authentication & sessions
- OIDC redirect errors: Make sure your identity provider uses
${PUBLIC_URL}/callback(orOIDC_CALLBACK_URL) as the redirect URI. - Session resets after restart: Set
SESSION_SECRETso the app doesn't regenerate a new secret each start. - Users logged out after browser restart: Sessions persist by default for 30 days. If users are being logged out, check that
SESSION_SECRETis set and stable. AdjustSESSION_MAX_AGE_DAYSto change the session duration. - Users not admin: Confirm that the user's
groups,roles, orentitlementsinclude a value listed inOIDC_ADMIN_GROUPS(case-insensitive). - Cookies marked insecure behind HTTPS: Ensure
PUBLIC_URLuseshttpsand your proxy forwardsX-Forwarded-ProtoandHost.
Access & permissions
- Path marked read-only or hidden: Check Settings → Access Control for matching rules;
hiddenandrorules block writes even if user has permission. - Missing volume entries: Confirm your
docker-composemounts include/mnt/Labelentries and the container has read access. - Path not found after remounting: Restart the container whenever you change volume mounts in your Compose file so the app rescans volumes.
Search & thumbnails
- Slow or missing search results: Install or enable ripgrep. The official image bundles
rg; custom builds need either the tool or fallback search (which may skip large files controlled bySEARCH_MAX_FILESIZE). - Thumbnails not generating: Verify FFmpeg/ffprobe are available (paths override via
FFMPEG_PATH/FFPROBE_PATH) and that/cacheis writable. - Cache rebuild: Clearing
/cacheremoves thumbnails/indexes but keeps user data. The app regenerates thumbnails when you revisit folders.
Reverse proxy issues
- CORS errors: See Fixing CORS errors for
PUBLIC_URLandCORS_ORIGINSguidance. - Public URL mismatch warning in UI: If you see a
PUBLIC_URLmismatch dialog, you’re visiting the app from a different URL than the server is configured for. Either access the app via the configuredPUBLIC_URLdomain or updatePUBLIC_URLto match the URL you’re using and restart. - Websocket or upload failures: Ensure the proxy forwards WebSocket upgrades and
X-Forwarded-*headers. - Trust proxy misconfiguration: Set
TRUST_PROXYtoloopback,uniquelocal, a number of hops, or explicit CIDRs depending on your topology.
Updates & persistence
- Settings lost after update: Mount
/configpersistently; it containsapp.db,app-config.json, and extensions. Back this folder up before upgrading. /cachefilling disk:/cacheholds thumbnails and indexes; delete it if you need to reclaim space (the app rebuilds contents as needed).
ONLYOFFICE token errors
- "Document security token is not correctly configured" typically means the Document Server and nextExplorer share mismatched
ONLYOFFICE_SECRET. Double-check the secret stored in/etc/onlyoffice/documentserver/local.jsonand update both sides to match.
