Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose deployment cannot run script #3041

Open
Ocyss opened this issue Nov 3, 2024 · 0 comments
Open

Docker compose deployment cannot run script #3041

Ocyss opened this issue Nov 3, 2024 · 0 comments

Comments

@Ocyss
Copy link

Ocyss commented Nov 3, 2024

Describe the Bug

I forgot my password, I need to use yarn change-password to change the password

I use docker-compose to deploy, docker compose exec -it umami sh enter, I enter yarn change-password but an error is reported, prompt

Error: Cannot find module 'prompts'
Require stack:
- /app/scripts/change-password.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/app/scripts/change-password.js:5:17)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/scripts/change-password.js' ]
}

Node.js v18.20.4

Then I tried to use yarn add -D prompts to install the missing dependencies, but it failed, Output

yarn add v1.22.19
[1/4] Resolving packages...
warning del > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning del > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning del > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning react-beautiful-dnd@13.1.1: react-beautiful-dnd is now deprecated. Context and options: https://github.com/atlassian/react-beautiful-dnd/issues/2672
warning @rollup/plugin-commonjs > glob@8.1.0: Glob versions prior to v9 are no longer supported
warning @rollup/plugin-commonjs > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning @types/cypress@1.1.6: This is a stub types definition. cypress provides its own type definitions, so you do not need this installed.
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
warning extract-react-intl-messages > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning extract-react-intl-messages > babel-plugin-react-intl@7.9.4: this package has been renamed to babel-plugin-formatjs
warning extract-react-intl-messages > babel-plugin-react-intl > intl-messageformat-parser@5.5.1: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
warning extract-react-intl-messages > babel-plugin-react-intl > @formatjs/ts-transformer > intl-messageformat-parser@6.1.2: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
warning extract-react-intl-messages > babel-plugin-react-intl > @types/schema-utils@2.4.0: This is a stub types definition. schema-utils provides its own type definitions, so you do not need this installed.
warning jest > @jest/core > @jest/reporters > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > jest-cli > jest-config > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > jest-runtime > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/transform > babel-plugin-istanbul > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning rollup-plugin-copy > globby > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning rollup-plugin-delete > del > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning rollup-plugin-delete > del > globby > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning rollup-plugin-postcss > cssnano > cssnano-preset-default > postcss-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
[2/4] Fetching packages...
warning chart.js@4.4.6: The engine "pnpm" appears to be invalid.
[3/4] Linking dependencies...
warning " > @umami/prisma-client@0.14.0" has incorrect peer dependency "@prisma/client@^4.8.0".
warning " > next-basics@0.39.0" has incorrect peer dependency "next@^13.4.0".
warning " > react-simple-maps@2.3.0" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning " > react-simple-maps@2.3.0" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
warning " > react-simple-maps@2.3.0" has unmet peer dependency "prop-types@^15.7.2".
warning " > rollup-plugin-terser@7.0.2" has incorrect peer dependency "rollup@^2.0.0".
warning "stylelint-config-css-modules > stylelint-scss@6.8.1" has incorrect peer dependency "stylelint@^16.0.2".
warning " > stylelint-config-prettier@9.0.5" has incorrect peer dependency "stylelint@>= 11.x < 15".
warning " > stylelint-config-recommended@14.0.1" has incorrect peer dependency "stylelint@^16.1.0".
warning Workspaces can only be enabled in private projects.
error Could not write file "/app/yarn-error.log": "EACCES: permission denied, open '/app/yarn-error.log'"
error An unexpected error occurred: "EACCES: permission denied, mkdir '/app/node_modules/cross-spawn/node_modules/which'".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker-compose

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

No branches or pull requests

1 participant