[SOLVED] Issue with mup after upgrade to 1.9

I just updated one project to Meteor 1.9 and got errors updating the project. I did a clean server install and then got this:

=> Starting meteor app on port:80
Meteor requires Node v12.0.0 or later.

Do you know if meteor-up is receiving a update for this?

1 Like

You need to use a node 12 docker image. I dont have my setup here, but you can try finding the abernix docker images on google.

4 Likes

I didnt know about this part before, thanks a lot. Now its working perfectly.

Awesome. No problem.

Thanks, saved me here!

2 Likes

That docker image, in mup.js, save my day. Thnx @pmogollon.

    docker: {      
      image: 'abernix/meteord:node-12.14.0-base',
    },

I dont know if needed, but Im rebuild npm node_modules folder in my meteor project, deleting node_modules and calling meteor npm install and meteor npm rebuild.

2 Likes

Saved me. Thanks! Wish I found this sooner!

by the way, we use this simple script in our CI to have always the correct image for meteor:

function ensureDockerfile() {
  if [ ! -f Dockerfile ]; then
    echo "Creating Dockerfile"
    NODE_VERSION_FULL=$(cat bundle/.node_version.txt)
    NODE_VERSION=${NODE_VERSION_FULL/v} # remove v
      
    cat > Dockerfile <<EOF
FROM node:$NODE_VERSION
ADD . /src
RUN cd /src && rm -rf node_modules
RUN cd /src/bundle/programs/server && npm install

WORKDIR /src/bundle
EXPOSE 8888
CMD ["node", "main.js"]
EOF

 fi

this is a bash function and could be called before doing a docker build. Make sure to adjust paths, etc.
We add the whole src code in this example because of some obscure reason. You can of course just add the bundle.

2 Likes

Perfect for me as well. Thanks!

I’ve upgraded Meteor to 1.10.1 and updated my mup.js

    app: {
        ...
        docker: {
          image: 'abernix/meteord:node-12.16.1-base'
        }
    }

But still the configuration in EBS is saying Node.js version: 10.15.1

Any ideas, what I’ve might have done wrong?

Ther app is running fine. I use mup-aws-beanstalk.