Troubleshooting
Find the symptom, then follow the fix. Tamamo logs start-up, reloads and errors, but not individual visitors, so start with the logs:
bash
docker compose logs --tail 50 tamamoWeb UI
Why does the web UI show 502 Bad Gateway?
The web UI can't reach the admin API on port 8081. Check these causes in order:
- The admin API is off. Set
TAMAMO_ENABLE_APIto"true"on thetamamoservice, then rundocker compose up -d. A plain restart is not enough. The log saysadmin API is off. See environment variables. - The backend has another name. The web UI looks for a service named
tamamo. SetTAMAMO_APIon thewebuiservice. - The backend is not running. Check
docker compose ps.
To test the link, run docker compose exec webui wget -qO- http://tamamo:8081/. JSON with "admin_api":true means it works. Connection refused means the API is off. An empty 404 means the host name is not in admin.domains.
I forgot the admin password. How do I reset it?
Set a new password with -set-login:
bash
printf '%s\n' 'a-new-long-passphrase' | docker compose exec -T tamamo tamamo -set-login adminReplace admin with your username. If TAMAMO_ADMIN_USERNAME and TAMAMO_ADMIN_PASSWORD are set, change those instead. See command-line flags.
Startup and files
Why does Tamamo report "permission denied" on /data?
The container runs as user ID 65532, which must own the data folder. Run sudo chown 65532:65532 data, then docker compose up -d. See the data folder.
Why does Tamamo stop at start-up with a line number?
The log names the bad line, for example unknown setting "pass_hour" in protection (did you mean "pass_hours"?). Fix that line, then check the file:
bash
docker compose run --rm tamamo -checkIf the file is beyond repair, move it aside. Tamamo writes a new one with defaults, and you must set the login and sites again. See broken files.
Why does Tamamo say "address already in use"?
Another program, or a second Tamamo, uses the port. Stop it, or change the host side of the port mapping:
yaml
ports:
- "9923:8923"When you run the binary directly, set TAMAMO_LISTEN to another address, such as :9000.
Settings
Why does my settings change have no effect?
Check these causes in order:
- The field is locked. An environment variable overrides it. Remove the variable, or change its value. See environment variables.
- The setting needs a restart.
server.listenandadmin.listenare read only at start-up. - The file has an error. Tamamo logs
could not reload the settings; keeping the running ones. Rundocker compose exec tamamo tamamo -checkto see the line. - You edited a different file. In Docker, Tamamo reads
/data/tamamo.yaml, which is./data/tamamo.yamlon your host. See the data folder.
Why does my site not match?
Tamamo picks the site from the Host header, and uses the global settings when no site lists that name. A proxy that rewrites the host is the usual cause. In nginx, add proxy_set_header Host $host;. See sites.
Visitors
Why does everyone have to pass the check again?
The signing key changed, so every pass is invalid. This happens after a rotation, or when secret.key is deleted or empty at start-up. If you did not rotate it on purpose, restore secret.key from your backup and restart Tamamo. See the data folder.
Why does the check loop forever?
The pass cookie (tamamo-pass by default) is not stored or not sent back. Check these causes in order:
- The cookie is not stored. Set
protection.cookie_domainto the host name, a parent domain, or empty. - The cookie is
Secureover HTTP. TheSecuremark means the browser sends the cookie only over HTTPS. Serve HTTPS, or have the proxy sendX-Forwarded-Proto: https. - The visitor's address or browser changes. The pass is bound to the address and user agent. Fix the proxy, or turn off
bind_iporbind_user_agentin protection. - The verify request is blocked. If the page shows
Something went wrong, pass/.tamamo/through your proxy unchanged. See behind a reverse proxy.
Why do all visitors share one IP address?
Behind a proxy, Tamamo sees the proxy's address. Set server.ip_source to the header your proxy sends, and list the proxy's address under server.trusted_proxies. An empty trusted_proxies lets anyone who can reach Tamamo fake an address. The valid ip_source values are remote, x-forwarded-for, x-real-ip and cf-connecting-ip. See Tell Tamamo to trust the proxy.
Why are search engines blocked?
Pages drop out of search results, or results show Just a moment…. Check these causes in order:
- A rule above
allow-search-enginesmatches first. Rules run top to bottom. Test a Googlebot user agent in the rule tester. See rules. - The default rules changed. Restore them as described in default rules.
- The crawler is on no list. Add its name to an allow rule. See rules.
Statistics
Why are the statistics empty?
Statistics are off by default, and visits made while they are off are not counted. Turn them on as described in statistics.
