Added better documentation for fixing my own broken installs, and updated the install script to patch issues
Container image / image (push) Successful in 4m40s
Container image / image (push) Successful in 4m40s
This commit is contained in:
@@ -70,6 +70,15 @@ What it does:
|
||||
`/etc/systemd/system/quptime.service` (hardened — matches the unit
|
||||
in [systemd.md](deployment/systemd.md)). Enables but does not start
|
||||
the service, so you can configure identity before first boot.
|
||||
5. Repairs ownership and modes under `/etc/quptime/` to the canonical
|
||||
layout (`0750` on the dir, `0700` on `keys/`, `0600` on
|
||||
`node.yaml` / `cluster.yaml` / `trust.yaml` / `keys/private.pem`,
|
||||
`0644` on `keys/public.pem` / `keys/cert.pem`). This makes the
|
||||
installer idempotent for permission damage — if something
|
||||
tightened or loosened modes (a stray `chmod -R`, a misguided
|
||||
backup restore, an accidental `sudo qu init`), re-running
|
||||
`install.sh` puts everything back without touching the contents
|
||||
of those files.
|
||||
|
||||
## Build from source
|
||||
|
||||
|
||||
@@ -172,7 +172,9 @@ still see this error, the most likely causes are:
|
||||
|
||||
- The data directory is read-only or owned by a different user — the
|
||||
bootstrap can't write `node.yaml`. Fix permissions on
|
||||
`$QUPTIME_DIR`.
|
||||
`$QUPTIME_DIR`. The fastest fix on a standard install is just to
|
||||
re-run `install.sh` — it reasserts the canonical ownership and
|
||||
modes on the whole tree without touching your config.
|
||||
- Something else removed `node.yaml` mid-run (a config-management
|
||||
tool, a misconfigured volume). Re-run `qu serve` and it will
|
||||
rebuild from env, or run `qu init` manually with the flags you
|
||||
@@ -197,7 +199,9 @@ load private key: ...
|
||||
```
|
||||
|
||||
Permissions on `keys/private.pem` are wrong — should be 0600 and owned
|
||||
by the daemon user. Fix and restart.
|
||||
by the daemon user. Fix and restart. Re-running `install.sh` on a
|
||||
standard install is the easiest path: it repairs ownership and modes
|
||||
on the entire data dir.
|
||||
|
||||
## Probes look much slower than expected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user