BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

Build COSMOS error: Service 'cosmos-init' failed to build #1758

Closed vincent-li-1960 closed 2 years ago

vincent-li-1960 commented 2 years ago

I am following the instructions here to build COSMOS v5.0.5 on a Centos 7 system. I have completed the steps to install docker, docker-compose, and have extracted the sources files on my system. When running the following command from the RUN section:

. cosmos-control.sh start

at this build step the following error appears:

Step 26/76 : RUN yarn config set registry $NPM_URL && yarn --network-timeout 600000
 ---> Running in e8a06412e1f9
yarn config v1.22.17
success Set "registry" to "https://registry.npmjs.org".
Done in 0.05s.
yarn install v1.22.17
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find package "vue@2.6.14" required by "widgets_src@5.0.6-beta0" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Couldn't find package "vue@2.6.14" required by "@cosmosc2/tool-admin@5.0.6-beta0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/share/node_modules/yarn/lib/cli.js:721:66)
    at new MessageError (/usr/share/node_modules/yarn/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/share/node_modules/yarn/lib/cli.js:36582:17)
    at Generator.throw (<anonymous>)
    at step (/usr/share/node_modules/yarn/lib/cli.js:310:30)
    at /usr/share/node_modules/yarn/lib/cli.js:323:13
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
.
.
.

followed by many repeated errors for each of the packages that were not found, and then concluded by:

ERROR: Service 'cosmos-init' failed to build: The command '/bin/sh -c yarn config set registry $NPM_URL && yarn --network-timeout 600000' returned a non-zero code: 1

I believe I have set my system proxy settings appropriately, and have referenced:

https://stackoverflow.com/questions/54218632/how-to-use-local-proxy-settings-in-docker-compose

https://stackoverflow.com/questions/54218632/how-to-use-local-proxy-settings-in-docker-compose/57714235#57714235

to set those proxies.

Are there any other configs or settings I need to change to fix this issue?

vincent-li-1960 commented 2 years ago

There are new instructions on how to install and run COSMOS here. Using these instructions: image

worked as expected, with no issue.

jmthomas commented 2 years ago

Sorry you had issues building. Please look for future releases on OpenC3.