Reference
Troubleshooting
What can go wrong when setting up, developing and checking, and what helps then.
Look first
/status: is the instance configured, are there accounts, which address and which version apply?- The output of the server: at start it reports "Not configured:" or "User management not set up:" with the reason.
For faults in the container and on the VPS see Operation and backup.
When setting up
| What you see | Cause | What helps |
|---|---|---|
npm install fails with "Cannot read properties of null (reading 'edgesOut')" | without package-lock.json npm stumbles over the entry overrides for playwright-core | take the lock file from the repository and use npm ci |
every protected page leads to /status, which says "The instance is not configured" | HENNIOKF_ROOT is missing | set it in .env.local, restart |
/status reports that a directory cannot be created | the root directory is not writable for the application | check the permissions of the directory |
no form for the first admin on /sign-in | HENNIOKF_SYNC_TOKEN is missing | enter it, restart |
a change to .env.local has no effect | the environment is read only at start | restart the server |
| no passkey is offered | the page runs under another address than the main address | open it under http://localhost:3370 or adjust HENNIOKF_URL |
signing in over an http address in the network fails | the main address is https, the cookie works only encrypted | use HTTPS or localhost |
| "Too many sign-in attempts" | more than HENNIOKF_SIGN_IN_LIMIT attempts in a minute | wait a minute |
| everyone is signed out | the secret changed, for example because users/secret was missing | sign in again. users/secret lies in users/ and goes into the backup, or set HENNIOKF_AUTH_SECRET fixed |
| the page stays English after choosing "DE" | cookies are blocked for this address | allow cookies; the language lives only in the cookie locale |
When developing
| What you see | Cause | What helps |
|---|---|---|
"is not a function" after a new function in lib/env.ts | the running development server keeps the old module | restart the server |
a change to proxy.ts or instrumentation.ts has no effect | the server reads both only at start | restart the server |
a block of rules for agents suddenly stands in AGENTS.md | next dev writes it at every start | remove the block before every commit |
| a page answers 500 when called directly, not when you click there | a component needs document or window while loading | load it with dynamic(() => import(…), { ssr: false }) |
| the build reports that it traces the whole project | a file path is computed at runtime | put /*turbopackIgnore: true*/ in front of the computed part, as in lib/docs.ts |
/docs stays English whatever the switch says | getLocale() swallowed the internal error of Next.js, and the pages were built static | keep unstable_rethrow first in the catch of getLocale() |
an address with ? fails in curl in zsh | the shell looks for files | put the address in quotes |
pkill -f "next start" does not hit the server | after the start the process is called next-server | find the process by its port and stop exactly that one |
When checking
| What you see | Cause | What helps |
|---|---|---|
npm run check fails on formatting | Prettier wants it otherwise, often the line width 96 | npx prettier --write <files> |
the build fails on a type error in tests/ or e2e/ | next build checks these directories too | fix the error there |
tests/docs.test.ts fails | front matter incomplete, a line in an index.md missing, a link into nothing or a forbidden pattern in docs/ | the message names file and line, see Writing documentation |
tests/i18n.test.ts fails | a key is in one dictionary only, a text is empty, or the placeholders differ | add the key to both, see Texts in two languages |
a browser test with not.toContainText fails after a new text | the new English text contains the excluded word | choose another word |
| the browser tests find no Chromium | the versions of Playwright and Chromium do not fit | npx playwright install chromium; in a cloud session a PLAYWRIGHT_BROWSERS_PATH with links to the installed revision |
the build fails on two different types for Page | @axe-core/playwright pulls in a second core of Playwright | keep the overrides for playwright-core in package.json |
| a browser test fails only sometimes | two tests change the same data in parallel | give every test its own data |
More under Pitfalls.