Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

docker image in scicatproject/backend:stable does not seem to work for SciCat-live #677

Open
linupi opened this issue Jun 1, 2022 · 1 comment

Comments

@linupi
Copy link

linupi commented Jun 1, 2022

Issue Name

Trouble with docker image scicatproject/backend:stable

Summary

docker-compose fails during backend boot

Steps to Reproduce

have a look at SciCatProject/scicatlive#10

Current Behaviour

when using the backend image scicatproject/backend:stable (30/05/2022, DIGEST 33eb7d45ba02) I get the following error message when launching docker-compose -u

catamel_1        | node:internal/modules/cjs/loader:936
catamel_1        |   throw err;
catamel_1        |   ^
catamel_1        | 
catamel_1        | Error: Cannot find module './config.local'
catamel_1        | Require stack:
catamel_1        | - /usr/src/app/server/server.js
catamel_1        |     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
catamel_1        |     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
catamel_1        |     at Module.require (node:internal/modules/cjs/loader:1005:19)
catamel_1        |     at require (node:internal/modules/cjs/helpers:102:18)
catamel_1        |     at Object.<anonymous> (/usr/src/app/server/server.js:7:19)
catamel_1        |     at Module._compile (node:internal/modules/cjs/loader:1105:14)
catamel_1        |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
catamel_1        |     at Module.load (node:internal/modules/cjs/loader:981:32)
catamel_1        |     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
catamel_1        |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
catamel_1        |     at node:internal/main/run_main_module:17:47 {
catamel_1        |   code: 'MODULE_NOT_FOUND',
catamel_1        |   requireStack: [ '/usr/src/app/server/server.js' ]
catamel_1        | }

using the old image dacat/catamel:latest things still seem to work fine.

@belfhi
Copy link

belfhi commented Aug 15, 2022

The mountpaths need to be adjusted, the current version of the scicat image has all the code in /home/node/app.
So change the paths in the docker-compose.yml file accordingly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants