hauler
hauler copied to clipboard
[BUG] `hauler` erroring when serving the `registry` and `fileserver`
Environmental Info:
Linux hauler-deployment-664dfb5879-9jmk2 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 8 17:36:32 UTC 2023 x86_64 GNU/Linux
Hauler Version:
zackbradys@Zacks-MBP hauler % hauler version
__ __ ___ __ __ __ _______ .______
| | | | / \ | | | | | | | ____|| _ \
| |__| | / ^ \ | | | | | | | |__ | |_) |
| __ | / /_\ \ | | | | | | | __| | /
| | | | / _____ \ | `--' | | `----.| |____ | |\ \----.
|__| |__| /__/ \__\ \______/ |_______||_______|| _| `._____|
hauler: Airgap Swiss Army Knife
GitVersion: 1.0.1
GitCommit: bb2a8bf
GitTreeState: clean
BuildDate: 2024-02-27T16:30:03Z
GoVersion: go1.21.7
Compiler: gc
Platform: darwin/arm64
Describe the Bug:
- When serving the
registry
andfileserver
at the same time,hauler
errors due to an issue withcosign
- See the command and error below:
(./hauler store serve fileserver & echo 'hauler fileserver completed') && (./hauler store serve registry & echo 'hauler registry completed')
2024-03-25T02:25:02.731540057Z Error: fork/exec /root/.hauler/cosign: text file busy
2024-03-25T02:25:02.731815470Z Usage:
2024-03-25T02:25:02.731826940Z hauler store serve registry [flags]
Flags:
2024-03-25T02:25:02.731835598Z -c, --config string Path to a config file, will override all other configs
--directory string Directory to use for backend. Defaults to $PWD/registry (default "registry")
2024-03-25T02:25:02.731840278Z 2:25AM ERR fork/exec /root/.hauler/cosign: text file busy
2024-03-25T02:25:02.731842794Z -h, --help help for registry
2024-03-25T02:25:02.731852380Z -p, --port int Port to listen on. (default 5000)
2024-03-25T02:25:02.731854967Z
2024-03-25T02:25:02.731857530Z Global Flags:
2024-03-25T02:25:02.731860451Z --cache string Location of where to store cache data (defaults to $XDG_CACHE_DIR/hauler)
2024-03-25T02:25:02.731863487Z -l, --log-level string (default "info")
2024-03-25T02:25:02.731866638Z -s, --store string Location to create store at (default "store")
Steps to Reproduce:
- Add a few artifacts to the
store
then try to serve theregistry
andfileserver
at the same time using a command like the one below:
(./hauler store serve fileserver & echo 'hauler fileserver completed') && (./hauler store serve registry & echo 'hauler registry completed')
Expected Behavior:
- For
hauler
to be able to serve theregistry
andfileserver
at the same time
Actual Behavior:
-
Hauler
is unable to serve theregistry
andfileserver
at the same time
Additional Context:
- N/A