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

[BUG] fork/exec HOME/.hauler/cosign: text file busy #361

Closed
dweomer opened this issue Nov 12, 2024 · 1 comment
Closed

[BUG] fork/exec HOME/.hauler/cosign: text file busy #361

dweomer opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dweomer
Copy link
Contributor

dweomer commented Nov 12, 2024

See #211:

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")
@zackbradys
Copy link
Member

Closing as resolved per PR #383!

[root@ip-10-0-40-166 ec2-user]# hauler version
 __    __       ___       __    __   __       _______ .______
|  |  |  |     /   \     |  |  |  | |  |     |   ____||   _  \
|  |__|  |    /  ^  \    |  |  |  | |  |     |  |__   |  |_)  |
|   __   |   /  /_\  \   |  |  |  | |  |     |   __|  |      /
|  |  |  |  /  _____  \  |  `--'  | |  `----.|  |____ |  |\  \----.
|__|  |__| /__/     \__\  \______/  |_______||_______|| _| `._____|
hauler: Airgap Swiss Army Knife

GitVersion:    1.2.0-dev.1
GitCommit:     5f5cd64
GitTreeState:  clean
BuildDate:     2025-01-11T02:57:24Z
GoVersion:     go1.23.4 X:boringcrypto
Compiler:      gc
Platform:      linux/amd64
[root@ip-10-0-40-166 ec2-user]# 
[root@ip-10-0-40-166 ec2-user]# 
[root@ip-10-0-40-166 ec2-user]# hauler store info
+--------------------------------------+-------+-----------------+----------+----------+
| REFERENCE                            | TYPE  | PLATFORM        | # LAYERS | SIZE     |
+--------------------------------------+-------+-----------------+----------+----------+
| hauler/install.sh:latest             | file  | -               |        1 | 25.0 kB  |
| index.docker.io/library/nginx:latest | image | linux/386       |        7 | 70.4 MB  |
|                                      | image | linux/amd64     |        7 | 72.1 MB  |
|                                      | image | linux/arm       |        7 | 62.4 MB  |
|                                      | image | linux/arm       |        7 | 60.7 MB  |
|                                      | image | linux/arm64     |        7 | 68.5 MB  |
|                                      | image | linux/mips64le  |        7 | 68.2 MB  |
|                                      | image | linux/ppc64le   |        7 | 76.7 MB  |
|                                      | image | linux/s390x     |        7 | 66.8 MB  |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        1 | 34.5 kB  |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
|                                      | image | unknown/unknown |        2 | 3.0 MB   |
+--------------------------------------+-------+-----------------+----------+----------+
|                                                                   TOTAL   | 566.9 MB |
+--------------------------------------+-------+-----------------+----------+----------+
[root@ip-10-0-40-166 ec2-user]# 
[root@ip-10-0-40-166 ec2-user]# 
[root@ip-10-0-40-166 ec2-user]# (hauler store serve fileserver & echo 'hauler fileserver completed') && (hauler store serve registry & echo 'hauler registry completed')
hauler fileserver completed
hauler registry completed

@github-project-automation github-project-automation bot moved this from Backlog to Resolved in Hauler Jan 11, 2025
@zackbradys zackbradys unpinned this issue Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Resolved
Development

No branches or pull requests

2 participants