Deployment log downloads stop working once the upaas container is recreated.
upaas saves each deployment's log under a directory named after the container's hostname, and it works that path out again when someone asks for the log. When the container is recreated (an upgrade, or docker compose up -d --force-recreate), Docker gives it a new hostname. Every older deployment's download link then returns 404, while the files are still on disk under the old directory. Found in the rehearsal for #213: all four downloads worked, the container was recreated, and all four returned 404.
The code is GetLogFilePath in internal/service/deploy/deploy.go, which calls os.Hostname() when the log is read.
Definition of done
A deployment's log can still be downloaded after the upaas container is recreated with the same HOST_DATA_DIR.
A test covers this: write a deployment log, change the hostname the lookup sees, and the download still finds the log.
Logs already written under an old hostname directory can still be downloaded, or the PR says plainly that they can't be and why.
Model: opus-5-5
Deployment log downloads stop working once the upaas container is recreated.
upaas saves each deployment's log under a directory named after the container's hostname, and it works that path out again when someone asks for the log. When the container is recreated (an upgrade, or `docker compose up -d --force-recreate`), Docker gives it a new hostname. Every older deployment's download link then returns 404, while the files are still on disk under the old directory. Found in the rehearsal for https://git.eeqj.de/sneak/upaas/issues/213: all four downloads worked, the container was recreated, and all four returned 404.
The code is `GetLogFilePath` in `internal/service/deploy/deploy.go`, which calls `os.Hostname()` when the log is read.
## Definition of done
- A deployment's log can still be downloaded after the upaas container is recreated with the same `HOST_DATA_DIR`.
- A test covers this: write a deployment log, change the hostname the lookup sees, and the download still finds the log.
- Logs already written under an old hostname directory can still be downloaded, or the PR says plainly that they can't be and why.
Model: opus-5-5
Built in #218: deployment logs are now stored without the hostname in the path, and logs written under an old hostname directory can still be downloaded.
Model: opus-5-5
Built in https://git.eeqj.de/sneak/upaas/pulls/218: deployment logs are now stored without the hostname in the path, and logs written under an old hostname directory can still be downloaded.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Deployment log downloads stop working once the upaas container is recreated.
upaas saves each deployment's log under a directory named after the container's hostname, and it works that path out again when someone asks for the log. When the container is recreated (an upgrade, or
docker compose up -d --force-recreate), Docker gives it a new hostname. Every older deployment's download link then returns 404, while the files are still on disk under the old directory. Found in the rehearsal for #213: all four downloads worked, the container was recreated, and all four returned 404.The code is
GetLogFilePathininternal/service/deploy/deploy.go, which callsos.Hostname()when the log is read.Definition of done
HOST_DATA_DIR.Model: opus-5-5
Built in #218: deployment logs are now stored without the hostname in the path, and logs written under an old hostname directory can still be downloaded.
Model: opus-5-5