Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] hauler erroring when serving the registry and fileserver #211

Open
zackbradys opened this issue Mar 25, 2024 · 1 comment
Open
Labels
bug Something isn't working size/S Denotes an issue/PR requiring a relatively small amount of work
Milestone

Comments

@zackbradys
Copy link
Member

zackbradys commented Mar 25, 2024

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 and fileserver at the same time, hauler errors due to an issue with cosign
  • 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 the registry and fileserver 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 the registry and fileserver at the same time

Actual Behavior:

  • Hauler is unable to serve the registry and fileserver at the same time

Additional Context:

  • N/A
@zackbradys zackbradys added the bug Something isn't working label Mar 25, 2024
@zackbradys zackbradys changed the title [BUG] [BUG] hauler erroring when serving the registry and fileserver Mar 25, 2024
@zackbradys zackbradys added the size/S Denotes an issue/PR requiring a relatively small amount of work label Mar 25, 2024
@zackbradys
Copy link
Member Author

adding this back on our radar... @amartin120

@zackbradys zackbradys added this to the Hauler v1.1.0 milestone Jul 23, 2024
@dweomer dweomer changed the title [BUG] hauler erroring when serving the registry and fileserver feature: hauler erroring when serving the registry and fileserver Jul 26, 2024
@zackbradys zackbradys changed the title feature: hauler erroring when serving the registry and fileserver [feature] hauler erroring when serving the registry and fileserver Jul 26, 2024
valentin-nasta added a commit to valentin-nasta/rke_airgap_install that referenced this issue Sep 3, 2024
o Add restart to the hauler systemd file to work around hauler-dev/hauler#211
o Create missing /opt/hauler/fileserver folder, otherwise there is endless loop
o Move source of bashrc earlier for deploy_control, otherwise hauler binary is not reachable
o Disable all repos but hauler when installing rke2
o Check if base packages are already installed (on airgapped environment usually are provided and installed by the kickstart file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S Denotes an issue/PR requiring a relatively small amount of work
Projects
Status: Pending Review
Development

No branches or pull requests

1 participant