Troubleshooting
Most problems show up in one of two logs. Run these in the deploy folder:
| Log | Shows |
|---|---|
docker compose logs lyra |
Lyra’s own log: settings it refused, emails it sent or couldn’t send, sign-ins that failed |
docker compose logs caddy |
HTTPS certificates and the requests Caddy passed on |
Lyra doesn’t start
Section titled “Lyra doesn’t start”./start.sh prints what went wrong:
| Message | What to do |
|---|---|
Lyra needs Docker with Compose 2.23.1 or newer |
Install or update Docker from docs.docker.com, then run ./start.sh again |
People need a way to sign in |
Set up at least one sign-in method in .env, then run ./start.sh again |
"…" isn't a domain |
Type the domain alone, like docs.acme.com, without https:// or a path |
… can't contain a single quote |
In a mail server password, write ' as %27 |
Lyra didn't start |
The error is printed above it. For a wrong setting, docker compose logs lyra shows Invalid configuration: with the setting’s name; see the table below |
When Invalid configuration: names a setting, this is usually why:
| Setting named | Usual reason |
|---|---|
APP_URL, SHARE_URL |
It isn’t a full address, or it uses http for a domain other than the machine itself. A server needs https |
AUTH_SECRET |
It’s shorter than 32 characters, or still the example value from .env.example |
SMTP_URL |
There’s no way to sign in at all. Set a mail server, Amazon SES, Google, Apple or single sign-on |
SES_REGION |
Both SMTP_URL and SES_REGION are set. Keep one |
EMAIL_FROM |
It’s empty |
OIDC_ISSUER_URL |
Only some of OIDC_ISSUER_URL, OIDC_CLIENT_ID and OIDC_CLIENT_SECRET are set, or the issuer isn’t a full address |
OIDC_LABEL |
It’s empty, or longer than 60 characters |
APPLE_CLIENT_ID |
Only some of the four APPLE_ settings are set |
APPLE_PRIVATE_KEY |
It isn’t the contents of the .p8 key file, starting with -----BEGIN PRIVATE KEY----- |
SIGN_UP_EMAIL_DOMAINS |
It has something other than domains like acme.com |
OLD_APP_HOSTS |
It has https:// or a path, or the host of APP_URL or SHARE_URL |
TRUSTED_PROXIES |
It has something other than addresses, ranges, loopback, linklocal or uniquelocal |
REDIS_URL |
ROLE is api, collab or jobs without a Redis |
DESKTOP_RELEASES_S3_PREFIX |
It’s set without S3_BUCKET |
PADDLE_API_KEY, PADDLE_ENVIRONMENT |
Only some of the Paddle settings are set. Leave them all empty on your own server |
SHOW_SIGN_IN_LINKS |
It’s true, which only works when developing Lyra on your own computer |
A setting that takes true, false or a number, like PASSWORD_SIGN_IN or UPLOAD_MB_PER_DAY |
It’s empty or has another word. Remove the line to use the default |
Settings describes each one. After fixing .env, run ./start.sh again.
Other problems
Section titled “Other problems”| What you see | What to do |
|---|---|
| The browser can’t connect over HTTPS | Check docker compose logs caddy. Usually the domain doesn’t point at the server yet, or port 80 or 443 is closed. Caddy gets each certificate the first time someone opens the domain |
A page that only says "code":"not_found" |
Open Lyra at the address in APP_URL. It doesn’t show the app on any other address, such as the server’s IP address |
| No sign-in email arrives | docker compose logs lyra shows each email sent, or the mail server’s error. A mail server on another machine must offer STARTTLS for smtp://, unless SMTP_URL ends with ?requireTLS=false |
Too many requests. Try again in … seconds. |
A rate limit. Someone, or a script with an API token, sent too many requests in a minute. It clears by itself. Behind your own proxy, check TRUSTED_PROXIES: without it, everyone who isn’t signed in shares the proxy’s address and its limits |
| Single sign-on fails for everyone | docker compose logs lyra shows Single sign-on returned an ID token that was not accepted with the reason. For email not verified, see OIDC_REQUIRE_EMAIL_VERIFIED in Sign-in |
| Other people’s edits only show after a reload | Your proxy isn’t passing WebSockets on /collab, or is buffering /api/live. See Your own proxy |
Ignored settings that Lyra no longer uses in the log |
Remove the settings it names from .env. Settings says what replaced them |
| Everyone was signed out after a restore or a move | AUTH_SECRET changed. Put back the .env from your backup. See Backups |