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

Fix workspace creation after fresh start #7913

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

agalitsyn
Copy link

@agalitsyn agalitsyn commented Feb 4, 2025

Can't start project after fresh start.

Steps to reproduce:

cd ./dev
docker compose down --volumes
cd ../
./scripts/fast-start.sh

Error 1 - cmd create-workspace fails:

$ rushx run-local create-workspace ws1 -w DevWorkspace
Found configuration in /Users/agalitsyn/src/github.com/hcengineering/platform/rush.json

Rush Multi-Project Build Tool 5.148.0 - Node.js 20.18.2 (LTS)
> "rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret FULLTEXT_URL=http://localhost:4700 ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost ACCOUNT_DB_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service 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"

error: unknown option '-w'
Error: Failed calling rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret FULLTEXT_URL=http://localhost:4700 ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost ACCOUNT_DB_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service 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

Error 2 - cmd confirm-email not found

$ rushx run-local confirm-email user1 
Found configuration in /Users/agalitsyn/src/github.com/hcengineering/platform/rush.json

Rush Multi-Project Build Tool 5.148.0 - Node.js 20.18.2 (LTS)
> "rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret FULLTEXT_URL=http://localhost:4700 ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost ACCOUNT_DB_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service 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 confirm-email user1"

error: unknown command 'confirm-email'
Error: Failed calling rush bundle --to @hcengineering/tool >/dev/null && cross-env SERVER_SECRET=secret FULLTEXT_URL=http://localhost:4700 ACCOUNTS_URL=http://localhost:3000 TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost ACCOUNT_DB_URL=mongodb://localhost:27017 DB_URL=mongodb://localhost:27017 TELEGRAM_DATABASE=telegram-service 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 confirm-email user1.  Exit code: 1

Seems that it was broken in #7573

Copy link

Connected to Huly®: UBERF-9392

@agalitsyn
Copy link
Author

agalitsyn commented Feb 4, 2025

@lexiv0re pls take a look

@agalitsyn agalitsyn changed the title Fix workspace creation for fresh start Fix workspace creation after fresh start Feb 4, 2025
@agalitsyn agalitsyn force-pushed the fix-fresh-repo-start branch from 84ecb02 to 2080fa3 Compare February 4, 2025 16:24
@haiodo
Copy link
Member

haiodo commented Feb 4, 2025

@agalitsyn Hi, please use staging or main branches instead, right now develop is in partial working state.

@agalitsyn
Copy link
Author

@haiodo sure, didn't know this :) If this PR is not needed feel free to close it

@haiodo haiodo requested a review from lexiv0re February 5, 2025 02:10
rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account
rushx run-local create-workspace ws1 email:user1 -b DevWorkspace # Create workspace
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branding option is not needed here

rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account
rushx run-local create-workspace ws1 -b DevWorkspace # Create workspace
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Branding option is not needed here
  2. Workspace owner is required but missing

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

Successfully merging this pull request may close these issues.

3 participants