Troubleshooting
Symptoms, causes and fixes for the problems people hit most often. Start with the request id.
request_id. When something fails, copy it: it ties the browser, the proxy and the server log together.Command not found
hydro: command not found right after installing usually means the shell has not picked up PATH yet. Open a new terminal. On Windows the installer's "Add hydro to PATH" option must be ticked. Check with hydro version.
Cannot sign in to the admin
| Symptom | Cause and fix |
|---|---|
| Login succeeds, then you are signed out immediately | security.secure_cookies: true over plain HTTP. Secure cookies are only sent over HTTPS. Use HTTPS, or keep it false for local HTTP development. |
| Behind a proxy, login loops | The proxy must forward Host and X-Forwarded-Proto: https, and http.public_origin must match the public URL. |
403 on any POST, PUT or DELETE | Missing CSRF token. Send X-CSRF-Token from GET /csrf-token, or use a Bearer token or API key instead of the cookie. |
| Forgot the password | Another admin can send a reset link from Users and roles. Locked out entirely: hydro create-admin --email [email protected] --password-stdin creates a new admin. |
| Lost the authenticator device | Use a recovery code from enrolment. Otherwise another admin disables MFA for you. |
429 too_many_requests | Login is limited to 5 attempts per minute. Wait for the Retry-After period. |
Start-up errors
| Message | Meaning |
|---|---|
invalid HYDRO_…: … | An environment variable has a bad value (for example a boolean). Fix or unset it. |
automatic TLS cannot run behind a reverse proxy | http.auto_tls and http.behind_proxy are mutually exclusive. |
automatic TLS requires one valid domain | Set http.domain to a single host name without scheme, port or wildcard. |
preview signing key must contain at least 32 bytes | Lengthen security.preview_signing_key. |
scheduled cloud backup requires configured S3-compatible storage credentials | backup.enabled needs the media.s3_* settings. |
i18n default locale cannot be empty | Set i18n.default_locale and list it in i18n.locales. |
… already exists; refusing to overwrite | hydro new and hydro init never overwrite files. Choose a new folder. |
| Address already in use | Another process owns the port. Change http.address or stop the other process. |
hydro validate --config config.yaml
hydro doctor --config config.yamlDatabase
- database is locked (SQLite). Only one writer at a time. Make sure no other tool writes to the file, avoid network drives, and move to PostgreSQL or MySQL for concurrent hosting such as CGI.
- Migration fails. Restore your backup, then run
hydro migrateagainst a disposable copy to reproduce. Never edit an applied migration. - The server refuses to start after deleting a migration folder. Databases that applied a migration require its directory. Restore it from git.
Content does not show up
| Symptom | Check |
|---|---|
| A new YAML content type is missing in the admin | Run hydro content-type validate, then restart hydro serve. Unknown YAML keys are rejected. |
/api/v1/content/<id> answers 404 | The type needs public: true. With drafts: true only published records are visible. |
| Published page is not in the API | Pages and news need the matching locale and slug, and must be published (not draft, scheduled for later or expired). |
400 limit must be between 1 and 100 | Lower limit; use offset or loop on metadata.has_more. |
400 for filter[field] or search | The field must be filterable (or searchable) in the YAML, and each parameter may appear only once. |
?locale= answers 400 | The locale is not in i18n.locales. |
| Translated fields come back in the default language | Localization needs i18n.enabled and more than one locale, and the field needs localized: true. Missing values fall back per field. |
Browser and CORS
Browsers on another origin can read published content only when the origin is listed in security.public_api_origins (no wildcards). Server-side code is unaffected. Admin writes from other origins are not supported; use a token from a server.
Media
- Uploads rejected. Free disk space is below
media.min_free_bytes(default 50 MiB), or your proxy limits the body size (client_max_body_sizein nginx). - Images missing after moving servers. Copy the media directory with the database, or restore both from one backup.
- Hotlinked images blocked on your own site. Add your frontend host to
media.allowed_referer_hosts.
Webhooks
- Nothing arrives: check the
topicslist (hydro events catalogshows valid names) and that the URL is reachable from the server. - Signature mismatch: sign the raw request body, prefixed with the timestamp and a dot, using the same secret. Parse JSON only after verifying.
Still stuck?
Collect the request_id, the output of hydro version, hydro doctor --json (redact secrets) and the relevant log lines, then open an issue. For security problems follow Reporting vulnerabilities instead.