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 · 2 comments
Open

BuildKit problems #1339

1tac11 opened this issue Feb 2, 2023 · 2 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@domain.com",
      "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": "kampino"
  },
  "proxy": {
    "domains": "subdomain.subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "email@domain.com",
      "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.

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