Skip to content

Troubleshooting

Health checks, logs, common errors, and getting back into an account.

Health checks

EndpointMeans
GET /health/liveThe process is up.
GET /health/readyThe database answers and local storage is not full. It does not call S3, so a broken bucket shows up in Settings › Storage › Test storage, not here.

The image's Docker HEALTHCHECK probes /health/ready every 30 seconds; docker compose ps shows the result. For the details of a failing check, run docker inspect --format '{{json .State.Health}}' <container>.

Logs

docker compose logs avenvail --since 1h

Logs never include file contents, share tokens or passwords. When asking for help, still check a log for host names and file names before posting it.

Avenvail does not start

The last lines of the log say why. Common ones:

MessageFix
Invalid Avenvail configuration followed by a listFix each listed setting. See Configuration.
Avenvail:BaseUrl must be an absolute http(s) URLSet Avenvail__BaseUrl, including https://.
Another Avenvail process is using the data directoryAnother container (or a restore) is using the same volume. Stop it first.
The database was created by the 0.0 spikeSpike databases cannot be upgraded. Remove the db and blobs folders in the data volume and start fresh.
Access to the path '/data/...' is deniedThe container runs as UID 1654. For a bind mount, sudo chown -R 1654 <folder>.

Sign-in fails or loops

  • Avenvail__BaseUrl must match the address in the browser exactly. Sign-in requests from any other origin are refused.
  • Over plain http:// on a public address, browsers drop the session cookie when the base URL is https://. Use HTTPS end to end through the proxy.
  • After five wrong passwords or two-factor codes the account is locked for five minutes.
  • Lost your authenticator app? Use a recovery code, or see Lost your phone or passkeys.
  • For single sign-on errors, see Single sign-on troubleshooting.

Lost a password

Another administrator can reset it in Settings › Users, which signs the user out and gives you a one-time link to send them. Without an administrator who can sign in:

docker compose exec avenvail dotnet Avenvail.Api.dll admin reset-password <user name>

This prints a new password, turns off two-factor authentication, clears any lockout and signs out existing sessions. It also works for accounts that only had single sign-on. If Avenvail__Oidc__DisablePasswordLogin is on, remove it and restart before signing in with the new password.

No administrator can sign in

If every administrator was disabled or demoted, make an account an active administrator again:

docker compose exec avenvail dotnet Avenvail.Api.dll admin make-admin <user name>

Uploads fail

SymptomLikely cause
413 from the proxy (an HTML error page, not Avenvail's JSON)The proxy's body limit. See Reverse proxies.
413 with upload_too_largeAvenvail__MaxUploadBytes.
507Local disk is below Avenvail__MinFreeDiskBytes. Free space or raise the limit carefully.
Large uploads fail on CloudflareCloudflare's per-plan body limit. The web app uploads in pieces; ShareX does not. See Cloudflare.
413 with chunk_too_largeA client sent a piece larger than Avenvail__ResumableUploads__ChunkBytes.
401 from ShareXThe token was revoked or expired. Make a new one in Settings › ShareX.

Backups

MessageFix
Access to the path '/backups/...' is deniedsudo chown 1654 backups on the host.
could not be read correctly with a list of filesThose files' bytes are missing or changed in storage. Restore them from another copy or delete them in Avenvail, then back up again.
Avenvail is running on this data directory during restoredocker compose stop avenvail, then use docker compose run --rm avenvail admin restore ....
already holds an installationRestoring would replace it. Add --force; the old database and keys are kept in /data/pre-restore-<time>/.
made by a newer version of AvenvailRestore with that version or a later one.