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

Error pulling docker images #11

Closed
keyboardsamurai opened this issue Apr 6, 2023 · 2 comments
Closed

Error pulling docker images #11

keyboardsamurai opened this issue Apr 6, 2023 · 2 comments

Comments

@keyboardsamurai
Copy link

At some point during startup, docker compose seems to have problems pulling images.

command line output:

➜  hocus git:(main) HOCUS_HOSTNAME="localhost" ops/bin/local-up.sh
Building docker images πŸ‘·πŸ“¦
Building vm-builder done in 1,84 s βœ…
Building db-autosetup done in 0,95 s βœ…
Building keycloak done in 1,12 s βœ…
Building temporal-codec done in 1,93 s βœ…
Building ui done in 1,29 s βœ…
Building agent done in 1,54 s βœ…
Pulling docker images πŸ“₯ - ❌ in 0,08

I tried to track down the error which led me to believe that the --ignore-buildable flag might be misplaced (compose says "unknown flag: --ignore-buildable") - if I remove this flag though, I get the following error


➜  hocus git:(main) βœ— HOCUS_HOSTNAME="localhost" ops/bin/local-up.sh
Building docker images πŸ‘·πŸ“¦
Building vm-builder done in 2,13 s βœ…
Building db-autosetup done in 0,88 s βœ…
Building keycloak done in 1,05 s βœ…
Building temporal-codec done in 11,73 s βœ…
Building ui done in 8,67 s βœ…
Building agent done in 10,64 s βœ…
Pulling docker images πŸ“₯WARN[0000] The "AGENT_DEV_CREATE_HOCUS_PROJECTS" variable is not set. Defaulting to a blank string.
WARN[0000] The "AGENT_DEV_CREATE_DEVELOPEMENT_PROJECTS" variable is not set. Defaulting to a blank string.
WARN[0000] The "HOCUS_REPO_PRIVATE_KEY" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITHUB_APP_HOCUS_DEV_CLIENT_SECRET" variable is not set. Defaulting to a blank string.
[+] Running 10/10
 β Ώ hocus-agent Skipped                                                                                                                                                                          0.0s
 β Ώ setup-keycloak Skipped                                                                                                                                                                       0.0s
 β Ώ temporal-hocus-codec Skipped                                                                                                                                                                 0.0s
 β Ώ setup-vm-images Skipped                                                                                                                                                                      0.0s
 β Ώ hocus-ui Skipped                                                                                                                                                                             0.0s
 β Ώ keycloak Skipped                                                                                                                                                                             0.0s
 β Ώ temporal Pulled                                                                                                                                                                              1.2s
 β Ώ db Pulled                                                                                                                                                                                    1.0s
 β Ώ temporal-ui Pulled                                                                                                                                                                           1.1s
 β Ώ temporal-admin-tools Pulled                                                                                                                                                                  1.2s
Pulling docker images πŸ“₯ - βœ… in 1,29 s
Building MicroVMs πŸ‘·πŸ–₯️ - βœ… in 6,43 s
Seeding the DB 🌱 - βœ… in 0,99 s
Starting the DB πŸ“™ - ❌ in 0,10

no such service: setup-keycloak

Above you will find the logs
Please report this problem here
πŸ™πŸ™πŸ™  https://github.com/hocus-dev/hocus/issues/new/choose  πŸ™πŸ™πŸ™
We will get you a 🦝 to help you as quickly as possible

Environment

  • Hocus version (commit hash): f8dd7db
  • OS: Ubuntu Jammy LTS 22.2
@hugodutka
Copy link
Member

hugodutka commented Apr 6, 2023

It seems like your docker-compose version may be too low since it doesn't support the --ignore-buildable flag. It's been introduced only recently - docker/compose#10134. Can you try upgrading and see if that helps?

@keyboardsamurai
Copy link
Author

You are right. The latest Ubuntu LTS (Jammy) is stuck on docker-compose 1.29.2. Thank you for taking a look at this.
After upgrading to 2.17.2 it worked like a charm. For anyone with a similar problem, here are the steps I took to upgrade:

sudo apt-get remove docker-compose
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/
chmod +x ~/.docker/cli-plugins/docker-compose
docker compose version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants