zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.28k stars 279 forks source link

BuildKit problems #1339

Open 1tac11 opened 1 year ago

1tac11 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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.