-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
-
Docker tab shows it stopped right after Apply. Click the icon → Logs. The first lines say what is wrong; the usual one is
UNRAID_URL is required(empty field) orUNRAID_URL must start with http:// or https://. -
bind: address already in use: port 8484 is taken. Change the host side of Gateway port to e.g. 8485 and use that port everywhere. -
data root: ... not a directory: a mapped Host Path does not exist. Check the share names (ls /mnt/user).
The gateway page or the app says invalid api key although you pasted it correctly.
- On Unraid open Settings → Management Access → API Keys and check the key still exists.
- Check the container's Unraid WebGUI URL: it must be the LAN IP of Unraid with the scheme your WebGUI actually uses. Test from the Unraid terminal:
curl -s -o /dev/null -w "%{http_code}\n" -X POST http://192.168.0.100/graphql \ -H "Content-Type: application/json" -d '{"query":"{ __typename }"}'
200(or400) means reachable. A301/302means the WebGUI redirects to HTTPS: set the URL tohttps://...and, if the certificate is self-signed,UNRAID_INSECURE_TLS=true. - Check the Unraid API is running:
unraid-api statuson the terminal. Restart withunraid-api restartif needed. - Look at the container logs: a line
unraid validation errorwith details points at the cause.
You typed a wrong key 5 times: your IP is locked for 15 minutes (LOGIN_LOCKOUT). Wait, or restart the container to reset. If you are behind Cloudflare and TRUST_PROXY is false, all remote users share one IP (Cloudflare's), so one person's mistakes lock everybody: set TRUST_PROXY=true.
You used the LAN URL. Add the server again with the public hostname from Step 3, or edit the tunnel. Test the hostname in Safari on the phone with Wi‑Fi off: https://unraidfile.example.com/healthz must show {"status":"ok"}.
"Unexpected response … not valid JSON … Unexpected character '<'" or "Cloudflare Access is blocking the request"
The gateway answered with a web page instead of data. Almost always this is Cloudflare Access showing its login page because the request carried no valid service token:
- the server was added in the app with Connection: Direct and Access was enabled afterwards → remove the server and add it again with Connection: Cloudflare Access, pasting
CF-Access-Client-IdandCF-Access-Client-Secret; - the Access policy for the token has action Allow → it must be Service Auth (Allow means an interactive login; Service Auth checks the token);
- the token expired or the policy's Service Token rule points to a different token.
Quick check from a terminal: without headers curl -I https://gw.example.com/healthz must return 302 to …cloudflareaccess.com; with the two CF-Access-Client-* headers it must return 200 and JSON.
- Pull down to refresh.
- Open the Unraid Drive app once: it refreshes the session.
- Check the gateway is reachable from the device (Safari test above).
- On iOS, Settings → Unraid Drive → make sure Cellular Data is allowed.
- If it still spins, remove the server in the app and add it again; this rebuilds the local index.
- You are saving at the root or share level. Open a share and a folder inside it.
- The share is mapped Read Only in the container.
- The file name collides with an existing one; Files normally offers to replace, but some apps do not.
- Disk full on the NAS: the gateway returns no space left on share.
Cloudflare limits a request to 100 MB. The app chunks uploads and is not affected; the gateway web page is. Use the app, or SMB on the LAN, for huge files.
The gateway preserves the file modification time you send and reports the server's time. Make sure TZ in the container matches your timezone (display only; timestamps are UTC internally).
- Gateway: Docker tab → icon → Logs. Every request is one JSON line with method, path, status, duration and client IP.
- iOS: Settings → Privacy & Security → Analytics does not include extension logs; when reporting an issue, describe the exact steps and attach the gateway log lines around that time.
Open an issue on https://github.com/sidimam/unraid-drive/issues (app) or https://github.com/sidimam/unraid-gateway/issues (container) with: Unraid version, gateway version (/healthz), how you reach it (LAN / Cloudflare / other), and the relevant log lines. Never paste your API key or service token.