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

BuildKit problems #1339

Open
1tac11 opened this issue Feb 2, 2023 · 9 comments
Open

BuildKit problems #1339

1tac11 opened this issue Feb 2, 2023 · 9 comments

Comments

@1tac11
Copy link

1tac11 commented Feb 2, 2023

Mup version (mup --version): 1.5.10

Mup config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true,
      "buildLocation": "/var/folders/n_/f65_lk99031_9yt9n8mgdd7h0000gn/T/mup-meteor-b99c0841-82a4-4553-a230-38f583053a1a",
      "cleanBuildLocation": true
    },
    "env": {
      "ROOT_URL": "https://subdomain.subdomain.host.com",
      "MONGO_URL": "mongodb://mongodb:27017/my-app",
      "MONGO_OPLOG_URL": "mongodb://mongodb/local",
      "VIRTUAL_HOST": "subdomain.subdomain.host.com",
      "HTTPS_METHOD": "redirect",
      "LETSENCRYPT_HOST": "subdomain.subdomain.host.com",
      "LETSENCRYPT_EMAIL": "[email protected]",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "docker": {
      "image": "zodern/meteor:root",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000,
      "args": [
        "--link=mongodb:mongodb"
      ]
    },
    "enableUploadProgressBar": true,
    "type": "meteor"
  },
  "mongo": {
    "version": "4.4.12",
    "servers": {
      "one": {}
    },
    "dbName": "name"
  },
  "proxy": {
    "domains": "subdomain.subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "[email protected]",
      "forceSSL": true
    }
  }
}
 Config is valid

Output of command

 mup deploy --verbose
Cleaning Up Previous Builds
Building App Bundle Locally
Browserslist: caniuse-lite is outdated. Please run:                         
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
   Building the application                
                                           
Started TaskList: Pushing Meteor App
[142.93.173.192] - Pushing Meteor App Bundle to the Server
[142.93.173.192] - Pushing Meteor App Bundle to the Server: SUCCESS

Started TaskList: Prepare App Bundle
[142.93.173.192] - Prepare Bundle
Updating base image
latest: Pulling from zodern/meteor
c229119241af: Already exists
82109f39a838: Already exists
761e6bdfdcc9: Already exists
3e7c7c729275: Already exists
a4de995a276f: Already exists
b381152adb49: Already exists
38ace5e5e938: Already exists
33a6027b9a78: Already exists
825014427837: Already exists
Digest: sha256:38852ea96f0e430fda9dcb95eff30ef6a903c71310e67eef32c63064756f3ae3
Status: Downloaded newer image for zodern/meteor:latest
docker.io/zodern/meteor:latest
Preparing for docker build
Creating Dockerfile
Finished creating Dockerfile
Building image
ERROR: BuildKit is enabled but the buildx component is missing or broken.
       Install the buildx component to build images with BuildKit:
       https://docs.docker.com/go/buildx/

real	0m0.059s
user	0m0.043s
sys	0m0.015s
[142.93.173.192] x Prepare Bundle: FAILED
	
	      ------------------------------------STDERR------------------------------------
	      
	      ------------------------------------STDOUT------------------------------------
	      Updating base image
	latest: Pulling from zodern/meteor
	c229119241af: Already exists
	82109f39a838: Already exists
	761e6bdfdcc9: Already exists
	3e7c7c729275: Already exists
	a4de995a276f: Already exists
	b381152adb49: Already exists
	38ace5e5e938: Already exists
	33a6027b9a78: Already exists
	825014427837: Already exists
	Digest: sha256:38852ea96f0e430fda9dcb95eff30ef6a903c71310e67eef32c63064756f3ae3
	Status: Downloaded newer image for zodern/meteor:latest
	docker.io/zodern/meteor:latest
	Preparing for docker build
	Creating Dockerfile
	Finished creating Dockerfile
	Building image
	ERROR: BuildKit is enabled but the buildx component is missing or broken.
	       Install the buildx component to build images with BuildKit:
	       https://docs.docker.com/go/buildx/
	
	real	0m0.059s
	user	0m0.043s
	sys	0m0.015s
	
	      ------------------------------------------------------------------------------```
@1tac11
Copy link
Author

1tac11 commented Feb 2, 2023

hi there,
so without buildkit it goes but it says deprecated and buildkit should be used in the future, but with buildkit i get above error.

any idea how to debug this?
kind regards

@zodern
Copy link
Owner

zodern commented Feb 2, 2023

@1seck could you please run mup docker status? I'm wondering if an old version of docker is installed on the servers. You can update with mup docker update.

@arggh
Copy link

arggh commented Sep 8, 2024

I ran "apt upgrade" on my Ubuntu server, and now mup deploys fail with this exact same error message:

Status: Image is up to date for zodern/meteor:latest
	docker.io/zodern/meteor:latest
	Preparing for docker build
	Creating Dockerfile
	Finished creating Dockerfile
	Building image
	ERROR: BuildKit is enabled but the buildx component is missing or broken.
	       Install the buildx component to build images with BuildKit:
	       https://docs.docker.com/go/buildx/

@1tac11
Copy link
Author

1tac11 commented Sep 8, 2024

Hi there
Can't quite remember how I solved the issue but what node version are you running?
Should be 14.x so if you are on nvm respectively
nvm use v14.x.x
Some LTS version etc.
Greets, plz feedback

@1tac11
Copy link
Author

1tac11 commented Sep 8, 2024

Ah, since u updated with apt probably u have an Ubuntu version of node (which is not recommended but anyway) maybe try downgrading node.
I guess that was the problem but not sure here.

@1tac11
Copy link
Author

1tac11 commented Sep 8, 2024

Would be the first I would try ...

@arggh
Copy link

arggh commented Sep 8, 2024

Oh, I just thought I'd share what caused the error to appear in my case. I got it solved immediately just by installing docker-buildx.

@zodern
Copy link
Owner

zodern commented Sep 8, 2024

@arggh could you please show me the output of mup docker status? It would be helpful to know which docker version you are using.

@arggh
Copy link

arggh commented Sep 8, 2024

mup docker status

Sure! 24.0.7. Used to be 20.10.21 before I upgraded Docker.

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

3 participants