LeadingEdgeForum / atlas2

A new mapping tool, this time by LEF
Apache License 2.0
168 stars 34 forks source link

docker-compose up fails #323

Open twhiston opened 6 years ago

twhiston commented 6 years ago

Currently with a fresh checkout running docker-compose up will fail on the npm step.

Step 5/6 : RUN npm install --quiet
 ---> Running in 0d16a75a6eb2
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated sendgrid@5.2.3: Please see v6.X+ at https://www.npmjs.com/org/sendgrid
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mailparser@0.6.2: This project is unmaintained
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm ERR! code ETARGET
npm ERR! notarget No matching version found for socket.io-client@2.1.4
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'Atlas2'
npm ERR! notarget 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-07-18T11_51_01_769Z-debug.log
ERROR: Service 'web' failed to build: The command '/bin/sh -c npm install --quiet' returned a non-zero code: 1
mmatijas commented 6 years ago

I just had that happen too. If you get a reply how to fix this would you be kind enough to let me know too? :-)

mmatijas commented 6 years ago

ME again. Its a version of socket.io-client@2.1.4 that is wrong. The latest is 2.1.1. This implies the developer had early access to a newer version :-) So we gotta go check out wheresocket.io-client@2.1.4 is hiding... any ideas

cdaniel commented 6 years ago

I'm travelling at the moment. What you may want to do is to switch to the branch https://github.com/LeadingEdgeForum/atlas2/tree/v2-service-branch and try to run docker there.

Master contains some work in progress.

mmatijas commented 6 years ago

All cool. I’ll have another go and let you know.

Best Regards Mladen

Sent from M's iPhone. I blame my phone for any spelling mistakes

On 25 Jul 2018, at 21:31, Chris notifications@github.com wrote:

I'm travelling at the moment. What you may want to do is to switch to the branch https://github.com/LeadingEdgeForum/atlas2/tree/v2-service-branch and try to run docker there.

Master contains some work in progress.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

leigit commented 6 years ago

@mmatijas if you open the package.json file you can change "socket.io-client": "2.1.4" to "socket.io-client": "2.1.1" that fixed it for me.

cdaniel commented 6 years ago

@leigit @mmatijas please be adviced that master is some unfinished work in progress. It will not work. Following command list got me the tool running:

 git clone https://github.com/LeadingEdgeForum/atlas2.git
 cd atlas2/
 git checkout v2-service-branch
 docker-compose up

However, I managed to reproduce the issue after updating Docker deamon to 18.06 and trying to build from master immediately. After resetting docker (removing all data), the new build from the v2-service-branch worked fine.

I suspect this is a problem with cached docker images, but I do not have sufficient command of docker to propose anything beyond docker reset (Docker icon -> Preferences -> Reset -> Reset disk image).