hcengineering / hcengineering/platform

`create-workspace` script produces `rush bundle` error

Open
#7,108 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

### 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.