HenniOKF
Documentation

Reference

Troubleshooting

What can go wrong when setting up, developing and checking, and what helps then.

Look first

  1. /status: is the instance configured, are there accounts, which address and which version apply?
  2. 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 seeCauseWhat helps
npm install fails with "Cannot read properties of null (reading 'edgesOut')"without package-lock.json npm stumbles over the entry overrides for playwright-coretake 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 missingset it in .env.local, restart
/status reports that a directory cannot be createdthe root directory is not writable for the applicationcheck the permissions of the directory
no form for the first admin on /sign-inHENNIOKF_SYNC_TOKEN is missingenter it, restart
a change to .env.local has no effectthe environment is read only at startrestart the server
no passkey is offeredthe page runs under another address than the main addressopen it under http://localhost:3370 or adjust HENNIOKF_URL
signing in over an http address in the network failsthe main address is https, the cookie works only encrypteduse HTTPS or localhost
"Too many sign-in attempts"more than HENNIOKF_SIGN_IN_LIMIT attempts in a minutewait a minute
everyone is signed outthe secret changed, for example because users/secret was missingsign 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 addressallow cookies; the language lives only in the cookie locale

When developing

What you seeCauseWhat helps
"is not a function" after a new function in lib/env.tsthe running development server keeps the old modulerestart the server
a change to proxy.ts or instrumentation.ts has no effectthe server reads both only at startrestart the server
a block of rules for agents suddenly stands in AGENTS.mdnext dev writes it at every startremove the block before every commit
a page answers 500 when called directly, not when you click therea component needs document or window while loadingload it with dynamic(() => import(…), { ssr: false })
the build reports that it traces the whole projecta file path is computed at runtimeput /*turbopackIgnore: true*/ in front of the computed part, as in lib/docs.ts
/docs stays English whatever the switch saysgetLocale() swallowed the internal error of Next.js, and the pages were built statickeep unstable_rethrow first in the catch of getLocale()
an address with ? fails in curl in zshthe shell looks for filesput the address in quotes
pkill -f "next start" does not hit the serverafter the start the process is called next-serverfind the process by its port and stop exactly that one

When checking

What you seeCauseWhat helps
npm run check fails on formattingPrettier wants it otherwise, often the line width 96npx prettier --write <files>
the build fails on a type error in tests/ or e2e/next build checks these directories toofix the error there
tests/docs.test.ts failsfront 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 failsa key is in one dictionary only, a text is empty, or the placeholders differadd the key to both, see Texts in two languages
a browser test with not.toContainText fails after a new textthe new English text contains the excluded wordchoose another word
the browser tests find no Chromiumthe versions of Playwright and Chromium do not fitnpx 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 Playwrightkeep the overrides for playwright-core in package.json
a browser test fails only sometimestwo tests change the same data in parallelgive every test its own data

More under Pitfalls.