You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`FAMILYCLAW_DATABASE_URL`| PostgreSQL connection string | Docker auto-generates a random password on first start and stores it in `/data/runtime/secrets/db-password`|
607
-
|`FAMILYCLAW_HOME_ASSISTANT_BASE_URL`| Home Assistant URL |`http://127.0.0.1:8123`|
608
-
|`FAMILYCLAW_HOME_ASSISTANT_TOKEN`| Home Assistant long-lived access token | Must be set manually |
609
-
|`FAMILYCLAW_AI_DEFAULT_PROVIDER_CODE`| Default AI provider |`local-ollama`|
603
+
|`FAMILYCLAW_DATABASE_URL`| PostgreSQL connection string | Docker syncs the effective database password to `/data/runtime/secrets/db-password`; if you customize it, prefer `FAMILYCLAW_DB_PASSWORD` and keep it consistent with the password inside the URL |
Copy file name to clipboardExpand all lines: docs/Documentation/en/getting-started/quick-start.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ docker run -d \
36
36
37
37
This documentation uses `latest` as the default install entry. Only pin a concrete tag when you need precise rollback, issue reproduction, or a fixed release target.
38
38
39
-
3. On first start, the container generates a random database password and voice gateway token, then stores them under `/srv/familyclaw-data/runtime/secrets/`. About one minute later, open `http://<server-ip>:8080` in a browser. If the login page appears, the system is up.
39
+
3. On first start, the container generates a random database password and voice gateway token, then stores them under `/srv/familyclaw-data/runtime/secrets/`. If you customize the database password, prefer `FAMILYCLAW_DB_PASSWORD`; when `FAMILYCLAW_DATABASE_URL` is also present, the password in both places must stay consistent. About one minute later, open `http://<server-ip>:8080` in a browser. If the login page appears, the system is up.
40
40
4. The initial account is `user` / `user`. After login, follow the setup flow to change the account and password.
41
41
42
42
Placeholder for screenshot: login page after Docker startup
Copy file name to clipboardExpand all lines: docs/Documentation/en/installation-deployment/docker-installation.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ On first start, the container auto-generates a random database password and a ra
46
46
-`/data/runtime/secrets/voice-gateway-token`
47
47
48
48
If you want to take over either value yourself, you can still pass `FAMILYCLAW_DB_PASSWORD` or `FAMILYCLAW_VOICE_GATEWAY_TOKEN`. The container will use your value and sync it back into the same secrets files.
49
+
If you also pass `FAMILYCLAW_DATABASE_URL`, the container now syncs the password inside that URL to the same canonical secret. Do not keep different passwords in `FAMILYCLAW_DB_PASSWORD` and the URL, because older images can fail to start that way.
49
50
50
51
## Verify after startup
51
52
@@ -59,7 +60,8 @@ If you want to take over either value yourself, you can still pass `FAMILYCLAW_D
59
60
60
61
- Cannot reach port 8080: check your firewall or whether another service already uses the port.
61
62
- The container does not start: make sure the image pulled successfully, or remove the old container first with `docker rm -f familyclaw`.
62
-
- Login shows database errors: confirm `/data/runtime/secrets/db-password` was created and the mounted data volume is writable.
63
+
- Login shows database errors: confirm `/data/runtime/secrets/db-password` was created and the mounted data volume is writable. If you customized the database connection, verify that `FAMILYCLAW_DB_PASSWORD` matches the password embedded in `FAMILYCLAW_DATABASE_URL`.
64
+
- Fresh Unraid or NAS deployment still shows `password authentication failed for user "familyclaw"`: this is usually not stale data. Older images can hit a first-start race while generating the database password. Update to an image with the fix; if you must stay on the older image for now, explicitly pass the same value in both `FAMILYCLAW_DB_PASSWORD` and `FAMILYCLAW_DATABASE_URL`.
63
65
- Voice-related errors while you do not use voice: you can skip the `4399` port mapping and ignore voice gateway logs.
- Unraid / NAS 上全新部署仍然报 `password authentication failed for user "familyclaw"`:这通常不是旧数据没删干净,而是旧镜像在首次启动时撞上了数据库密码初始化竞态。更新到包含修复的镜像;如果暂时只能用旧镜像,先显式传同一个 `FAMILYCLAW_DB_PASSWORD` 与 `FAMILYCLAW_DATABASE_URL` 规避。
0 commit comments