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] yarn osd bootstrap failed for downloaded tar file #324

Closed
yilintao-amzn opened this issue Apr 30, 2021 · 5 comments
Closed

[BUG] yarn osd bootstrap failed for downloaded tar file #324

yilintao-amzn opened this issue Apr 30, 2021 · 5 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@yilintao-amzn
Copy link

Describe the bug

Run command yarn osd bootstrap failed for downloaded tar file for 1.0.0-beta1 and 1.0.0-alpha2

To Reproduce
Steps to reproduce the behavior:

  1. Go to OpenSearch-Dashboards release: https://github.com/opensearch-project/OpenSearch-Dashboards/releases
  2. Download 1.0.0-beta1 source code
  3. Unzip the downloaded file
  4. Enter cd OpenSearch-Dashboards-1.0.0-beta1
  5. Run yarn osd bootstrap
  6. See error
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 128: git ls-files -dmto --exclude-standard ...
...
fatal: Not a git repository (or any of the parent directories): .git

Expected behavior
Expected behavior is no error shows up and the bootstrap can complete successfully.

OpenSearch Version
N/A

Dashboards Version
It happens to 1.0.0-beta1 and 1.0.0-alpha2

Plugins
N/A

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: macOS 10.15.7
  • Browser and version N/A

Additional context

Add any other context about the problem here.

@yilintao-amzn yilintao-amzn added the bug Something isn't working label Apr 30, 2021
@ananzh
Copy link
Member

ananzh commented Apr 30, 2021

This is because we don’t have .git file. I find our artifact is not a binary code. Please correct me: my understanding is that for developers they can run git clone to get our repo. The purpose of artifacts is for people who just want to try dashboards. Artifacts allow people download quickly and people can run directly using ./bin/opensearch-dashboards without build . Why we need an artifact still request .git and build which is same as development mode?

@mihirsoni
Copy link
Contributor

@yilintao-amzn the tag artifact download doesn't give you git meta data IMO, you would need to clone the repo and either checkout the tag / branch and try it out.

Let us know if that doesn't work.

Closing the issue as of now, feel free to re-open.

@mihirsoni mihirsoni added question Further information is requested wontfix This will not be worked on and removed bug Something isn't working labels May 24, 2021
@AMoo-Miki
Copy link
Collaborator

While cloning the repo is one way to use the latest code, it is not the only way to acquire the latest code. We should make sure that users investing time in fetching the zip archive can use the dashboards too.

@ananzh
Copy link
Member

ananzh commented Nov 19, 2021

@AMoo-Miki would you like to open a new issue for your concern?

@abdulazizAl-Jabi
Copy link

ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: C:\Users\Eng-Abdulaziz Aljabi\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js run osd:bootstrap
C:\Users\WazuhDashborad\wazuh-dashboard\node_modules\typescript\lib\tsc.js:84772
how to fix this problem

yubonluo added a commit to yubonluo/OpenSearch-Dashboards that referenced this issue Apr 11, 2024
… fetch (opensearch-project#6364) (opensearch-project#324)

* Improve dynamic config

Signed-off-by: Tianle Huang <tianleh@amazon.com>

* reset yml

Signed-off-by: Tianle Huang <tianleh@amazon.com>

* bring back previous changes

Signed-off-by: Tianle Huang <tianleh@amazon.com>

---------

Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
# Conflicts:
#	CHANGELOG.md
#	src/plugins/application_config/server/types.ts
#	src/plugins/csp_handler/server/csp_handlers.test.ts
#	src/plugins/csp_handler/server/csp_handlers.ts

Co-authored-by: Tianle Huang <60111637+tianleh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants