zodern / meteor-up

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

tar: bundle: Cannot mkdir: Permission denied (possible issue with docker image) #1324

Open programthis opened 2 years ago

programthis commented 2 years ago

I am using a custom docker image which I suspect may be the cause of this error (possibly a permission issue?). I've pasted it below:

FROM zodern/meteor:latest

USER root
RUN apt-get update && apt-get install -y \
    graphicsmagick \
    graphicsmagick-imagemagick-compat \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER app

Meteor version: 2.7.3 Mup version: 1.5.9

Mup config

  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root",
      "password": "password"
    }
  },
  "proxy": {
    "domains": "host.com,subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "email@domain.com",
      "forceSSL": true
    }
  },
  "mongo": {
    "version": "3.6",
    "servers": {
      "one": {}
    },
    "dbName": "photo_app"
  },
  "app": {
    "name": "my-app",
    "path": "../photo_app",
    "volumes": {
      "/images": "/images"
    },
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true,
      "buildLocation": "/tmp/mup-meteor-46532786-03a5-4a6f-b9ab-8aac9105b59a",
      "cleanBuildLocation": true
    },
    "env": {
      "ROOT_URL": "https://host.com",
      "MONGO_URL": "mongodb://mongodb:27017/my-app",
      "VIRTUAL_HOST": "host.com,subdomain.host.com",
      "HTTPS_METHOD": "redirect",
      "LETSENCRYPT_HOST": "host.com,subdomain.host.com",
      "LETSENCRYPT_EMAIL": "email@domain.com",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "docker": {
      "image": "programthis/meteor-gm",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000,
      "args": [
        "--link=mongodb:mongodb"
      ]
    },
    "enableUploadProgressBar": true,
    "type": "meteor"
  }
}

Output of command

Removing images
Error: No such image: mup-photo_app:latest
REPOSITORY                               TAG                 IMAGE ID            CREATED             SIZE
programthis/meteor-gm                    latest              c47b0e103957        16 hours ago        481MB
zodern/nginx-proxy                       v1.1.0              d4229f72112e        4 months ago        157MB
mup-photo_app                         build               1436d60e4a6c        6 months ago        696MB
jwilder/nginx-proxy                      latest              224d5a03ed7e        6 months ago        157MB
jrcs/letsencrypt-nginx-proxy-companion   latest              f5f49fbee09a        6 months ago        25.1MB
mongo                                    3.6                 2f21415cb85f        15 months ago       453MB
zodern/nginx-proxy                       1.0.0               317189ac38ce        18 months ago       165MB
zodern/meteor                            latest              40a50443c22c        19 months ago       372MB
<none>                                   <none>              20745fb4b083        21 months ago       745MB
jwilder/nginx-proxy                      0.8.0               003e2900151d        21 months ago       165MB
jrcs/letsencrypt-nginx-proxy-companion   v1.13.1             684a50dcf80f        22 months ago       94.1MB
programthis/meteor-gm                    <none>              0052c0b448bb        2 years ago         712MB
abernix/meteord                          node-12-base        5a12601e3f09        2 years ago         587MB
mongo                                    latest              26d5e4f5070d        4 years ago         367MB
abernix/meteord                          base                9d1d8b1b94b2        4 years ago         509MB
joshjoe/meteor-graphicsmagick            latest              63e0ee36ad08        4 years ago         608MB
<none>                                   <none>              119671b0f99f        4 years ago         572MB
<none>                                   <none>              b5c2469b8041        4 years ago         573MB
<none>                                   <none>              3e3db6960e32        4 years ago         566MB
abernix/meteord                          node-8.4.0-base     b0d5fbc89b76        4 years ago         519MB
mongo                                    3.4.1               0dffc7177b06        5 years ago         402MB
ianmartorell/meteord-graphicsmagick      latest              724bbcd37576        6 years ago         418MB
Error: No such image: mup-photo_app:latest
using bundle
Error: No such image: mup-photo_app:previous
Error: No such image: mup-photo_app:previous
Error: No such image: mup-photo_app:latest
Image programthis/meteor-gm
Volume --volume=/opt/photo_app/current:/bundle
Removing docker containers. Errors about nonexistent endpoints and containers are normal.
photo_app
Error response from daemon: endpoint photo_app not found
Error: No such container: photo_app-frontend
Error response from daemon: endpoint photo_app-frontend not found
Error: No such container: photo_app-nginx-letsencrypt
Error response from daemon: endpoint photo_app-nginx-letsencrypt not found
Error: No such container: photo_app-nginx-proxy
Error response from daemon: endpoint photo_app-nginx-proxy not found
Finished removing docker containers
Using default tag: latest
latest: Pulling from programthis/meteor-gm
Digest: sha256:d1f587a1f24454a6fe63d9b9313d349a5a45dbe02cd5aadd2e08f10a78a336cf
Status: Image is up to date for programthis/meteor-gm:latest
docker.io/programthis/meteor-gm:latest
Pulled programthis/meteor-gm
f3d0edf52bd565bf9c8729dc571027005d1fb016c13665500354f186b4e51770
Ran programthis/meteor-gm
[159.203.61.14] - Start Meteor: SUCCESS
[159.203.61.14] - Verifying Deployment

159.203.61.14] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
          ectory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-buffer-native.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-buffer-view-core.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-buffer.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-copy-within.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-fill.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-for-each.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-from.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-includes.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-iteration-from-last.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-iteration.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-last-index-of.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-method-has-species-support.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-method-is-strict.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-reduce.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-sort.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-species-create.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/array-unique-by.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/async-iterator-create-proxy.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied
    tar: bundle/programs/server/npm/node_modules/meteor/url/node_modules/.core-js-garbage-1wlo1bs.67bn/internals/async-iterator-iteration.js: Cannot open: No such file or directory
    tar: bundle: Cannot mkdir: Permission denied

    => Redeploying previous version of the app