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

create-workspace script produces rush bundle error #7108

Open
uinstinct opened this issue Nov 5, 2024 · 2 comments
Open

create-workspace script produces rush bundle error #7108

uinstinct opened this issue Nov 5, 2024 · 2 comments

Comments

@uinstinct
Copy link

Description of the issue

I was trying to run the repo locally on my machine.
I am unable login into the ws1 workspace with user1 credentials. It gives an error "account not found" when trying to login.
It is because create-workspace command had failed

Your environment

  • Version of Huly: latest
  • Browser (and version): Chrome 131
  • Your operating system (and version): macos 15

Steps to reproduce

  1. install rush and clone and cd into the repo
  2. sh ./scripts/presetup-rush.sh
  3. sh ./scripts/build.sh
  4. sh ./scripts/create-workspace.sh
  5. check the output for the errors

Expected behaviour

It should create the desired workspace and user

Actual behaviour

Upon running the rushx run-local create-workspace ws1 -w DevWorkspace command, I get the following error:

Found configuration in /Users/instinct/Desktop/huly-platform/rush.json

Rush Multi-Project Build Tool 5.134.0 - Node.js 20.5.1 (pre-LTS)
Your version of Node.js (20.5.1) is not a Long-Term Support (LTS) release. These versions frequently have bugs. Please consider installing a stable release.

> "rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost MONGO_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service ELASTIC_URL=http://localhost:9200 REKONI_URL=http://localhost:4004 MODEL_VERSION=$(node ../../common/scripts/show_version.js) GIT_REVISION=$(git describe --all --long) node --expose-gc --max-old-space-size=18000 ./bundle/bundle.js create-workspace ws1 -w DevWorkspace"

Your version of Node.js (20.5.1) is not a Long-Term Support (LTS) release. These versions frequently have bugs. Please consider installing a stable release.

Your version of Node.js (20.5.1) is not a Long-Term Support (LTS) release. These versions frequently have bugs. Please consider installing a stable release.

"@hcengineering/model-all (bundle)" completed with warnings in 1.21 seconds.
Your version of Node.js (20.5.1) is not a Long-Term Support (LTS) release. These versions frequently have bugs. Please consider installing a stable release.

"@hcengineering/tool (bundle)" completed with warnings in 1.14 seconds.
Operations succeeded with warnings.

Error: Failed calling rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost MONGO_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service ELASTIC_URL=http://localhost:9200 REKONI_URL=http://localhost:4004 MODEL_VERSION=$(node ../../common/scripts/show_version.js) GIT_REVISION=$(git describe --all --long) node --expose-gc --max-old-space-size=18000 ./bundle/bundle.js create-workspace ws1 -w DevWorkspace.  Exit code: 1

Possible solutions

(Not obligatory)
If you know how to fix the bug, please describe your solution here.

@haiodo
Copy link
Member

haiodo commented Nov 5, 2024

Hi @uinstinct it is because of Node version, our scripts are not expect to have any extra output, could you please try update to more fresh version. We use v20.13.

@uinstinct
Copy link
Author

uinstinct commented Nov 6, 2024

Thanks @haiodo! That worked!
There is a problem with create-workspace script which seems to hang after running. (I restarted from the presetup-rush script)
Diving deeper, I found the reason was the rushx run-local configure ws1 --list --enable '*' command which is actually hanging.

Here is the output I am seeing:

Found configuration in /Users/instinct/Desktop/huly-platform/rush.json

Rush Multi-Project Build Tool 5.134.0 - Node.js 20.13.1 (LTS)
> "rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost MONGO_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service ELASTIC_URL=http://localhost:9200 REKONI_URL=http://localhost:4004 MODEL_VERSION=$(node ../../common/scripts/show_version.js) GIT_REVISION=$(git describe --all --long) node --expose-gc --max-old-space-size=18000 ./bundle/bundle.js configure ws1 --list --enable *"

{"enable":"*","disable":"","list":true}

Any thoughts what the problem could be?

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

2 participants