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

[Bug]: Scripts won't work #1364

Closed
LedyBacer opened this issue Dec 15, 2023 · 4 comments · Fixed by #1365
Closed

[Bug]: Scripts won't work #1364

LedyBacer opened this issue Dec 15, 2023 · 4 comments · Fixed by #1365
Labels
bug Something isn't working

Comments

@LedyBacer
Copy link
Contributor

LedyBacer commented Dec 15, 2023

What happened?

Scripts dosen't work on 0958db3.

Steps to Reproduce

  1. git clone https://github.com/danny-avila/LibreChat.git
  2. docker-compose up -d
  3. sudo docker exec -ti LibreChat sh
  4. npm run create-user

Relevant log output

root@netherlandspower:~/LibreChat# sudo docker exec -ti LibreChat sh
/app # npm run create-user

> LibreChat@0.6.1 create-user
> node config/create-user.js

node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '~/strategies/validators'
Require stack:
- /app/api/server/services/AuthService.js
- /app/config/create-user.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object.<anonymous> (/app/api/server/services/AuthService.js:3:44)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/api/server/services/AuthService.js',
    '/app/config/create-user.js'
  ]
}

Node.js v19.9.0
@LedyBacer LedyBacer added the bug Something isn't working label Dec 15, 2023
@fuegovic
Copy link
Collaborator

Same for me. create-user, add-balance and ban-user were working a couple of days ago but now return an error

@LedyBacer
Copy link
Contributor Author

LedyBacer commented Dec 15, 2023

Yeah. I think ea1dd59 breaks this after change relative path to home relative path.

@LedyBacer
Copy link
Contributor Author

LedyBacer commented Dec 15, 2023

Tested it, scripts works fine on this 49571ac commit.

@danny-avila
Copy link
Owner

@LedyBacer #1365 fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants