💥 [DevOps] Fix `ocelotsocialnetwork/webapp:latest` And `ocelotsocialnetwork/backend:latest` On Start In Cluster
Created by: Tirokk
💥 DevOps Ticket
Fix ocelotsocialnetwork/webapp:latest
and ocelotsocialnetwork/backend:latest
on start in cluster, see https://github.com/Ocelot-Social-Community/Ocelot-Social/issues/5065#issuecomment-1179732798
relates #5065 (closed)
Additiona Information
Dig For Image Informations And File Structure
Install Dive for Docker: https://github.com/wagoodman/dive
$ dive <image ID or image name>
Errors
Docker image ocelotsocialnetwork/webapp:latest
on start in cluster errors with:
yarn run v1.22.5
$ nuxt start
FATAL Cannot find module './constants/manifest.js'
Require stack:
- /app/nuxt.config.js
- /app/node_modules/@nuxt/config/dist/config.js
- /app/node_modules/@nuxt/cli/dist/cli-index.js
- /app/node_modules/@nuxt/cli/dist/cli.js
- /app/node_modules/nuxt/bin/nuxt.js
Error: Cannot find module './constants/manifest.js'
Require stack:
- nuxt.config.js
- node_modules/@nuxt/config/dist/config.js
- node_modules/@nuxt/cli/dist/cli-index.js
- node_modules/@nuxt/cli/dist/cli.js
- node_modules/nuxt/bin/nuxt.js
at Object.<anonymous> (nuxt.config.js:1)
7[r[999;999H[6n8
╭─────────────────────────────────────────────────────────╮
│ │
│ ✖ Nuxt Fatal Error │
│ │
│ Error: Cannot find module './constants/manifest.js' │
│ Require stack: │
│ - /app/nuxt.config.js │
│ - /app/node_modules/@nuxt/config/dist/config.js │
│ - /app/node_modules/@nuxt/cli/dist/cli-index.js │
│ - /app/node_modules/@nuxt/cli/dist/cli.js │
│ - /app/node_modules/nuxt/bin/nuxt.js │
│ │
╰─────────────────────────────────────────────────────────╯
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Docker image ocelotsocialnetwork/backend:latest
on start in cluster errors with:
yarn run v1.22.5
$ node dist/
internal/modules/cjs/loader.js:834
throw err;
^
Error: Cannot find module 'express'
Require stack:
- /app/dist/server.js
- /app/dist/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/dist/server.js:8:39)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:903:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/dist/server.js', '/app/dist/index.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.