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

node.js 14.21.3 download is not stable and raise 404 error #3618

Closed
ananzh opened this issue Mar 16, 2023 · 1 comment · Fixed by #3619
Closed

node.js 14.21.3 download is not stable and raise 404 error #3618

ananzh opened this issue Mar 16, 2023 · 1 comment · Fixed by #3619
Labels
enhancement New feature or request

Comments

@ananzh
Copy link
Member

ananzh commented Mar 16, 2023

Describe the bug

Currently we are seeing 404 errors when fetching the latest 14 nodejs, which is 14.21.3.

88665a51c9b6:OpenSearch-Dashboards zilongx$ yarn build --skip-os-packages --release
yarn run v1.22.18
$ node scripts/build --all-platforms --skip-os-packages --release
 info [  global  ] Verifying environment meets requirements
   │ succ Node.js version verified
   │ succ ✓ 0 sec

 info [  global  ] Cleaning artifacts from previous builds
   │ debg Deleting patterns: [
   │        '/Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/build',
   │        '/Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/target',
   │        '/Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/.node_binaries'
   │      ]
   │ debg Deleted 2 files/directories
   │ succ ✓ 0 sec

 info [  global  ] Downloading node.js builds for all platforms
   │ debg Downloading shasum values for node version 14.21.3 from https://nodejs.org/dist/v14.21.3/SHASUMS256.txt
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-darwin-x64.tar.gz a024f0dd5a4c1f951b79959c3e991b30a5919a734ab3e197ae0ef439e5a538b5
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.gz bef2685d9469058c1229cc7789e171861044fe3f70316ec744e9bf3609cd45ed
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-win-x64.zip 47cfb919bb86ab681369636a9cb925e2bd61991aad1638b2e38e61ec956796a6
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz 044b7ec3fea04cd3815d26901ee37203dcc942688b72ee6eac96f6a1ca3cc63f
   │ debg Download failed: Request failed with status code 404
   │ debg Deleting downloaded data at /Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/.node_binaries/14.21.3/node-v14.21.3-linux-arm64.tar.gz
   │ debg Retrying - 3 attempt remaining
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz 044b7ec3fea04cd3815d26901ee37203dcc942688b72ee6eac96f6a1ca3cc63f
   │ debg Download failed: Request failed with status code 404
   │ debg Deleting downloaded data at /Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/.node_binaries/14.21.3/node-v14.21.3-linux-arm64.tar.gz
   │ debg Retrying - 2 attempt remaining
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz 044b7ec3fea04cd3815d26901ee37203dcc942688b72ee6eac96f6a1ca3cc63f
   │ debg Download failed: Request failed with status code 404
   │ debg Deleting downloaded data at /Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/.node_binaries/14.21.3/node-v14.21.3-linux-arm64.tar.gz
   │ debg Retrying - 1 attempt remaining
   │ debg Attempting download of https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz 044b7ec3fea04cd3815d26901ee37203dcc942688b72ee6eac96f6a1ca3cc63f
   │ debg Download failed: Request failed with status code 404
   │ debg Deleting downloaded data at /Volumes/workplace/auto-sync/src/OpenSearch-Dashboards/.node_binaries/14.21.3/node-v14.21.3-linux-arm64.tar.gz
   │ERROR failure 1 sec
   │ERROR Request failed with status code 404

To Reproduce
Could try to pull this version locally wget https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz and see:

wget https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz 
--2023-03-15 13:43:47--  https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-arm64.tar.gz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-03-15 13:43:47 ERROR 404: Not Found.

Expected behavior
A more stable download place

@ananzh ananzh added bug Something isn't working untriaged labels Mar 16, 2023
@ananzh
Copy link
Member Author

ananzh commented Mar 16, 2023

As @AMoo-Miki suggested, we could consider using mirror server

The benefit of using a mirror server is that it can sometimes provide a more stable or faster download experience if the main server is experiencing issues or high traffic. It can also help when the main server has some temporary or permanent issues with hosting specific files.

ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this issue Mar 16, 2023
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this issue Mar 16, 2023
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this issue Mar 16, 2023
@ananzh ananzh added enhancement New feature or request and removed bug Something isn't working untriaged labels Mar 16, 2023
@ananzh ananzh changed the title [BUG] node.js 14.21.3 download is not stable and raise 404 error node.js 14.21.3 download is not stable and raise 404 error Mar 16, 2023
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this issue Mar 16, 2023
@kavilla kavilla linked a pull request Mar 16, 2023 that will close this issue
8 tasks
abbyhu2000 pushed a commit that referenced this issue Mar 20, 2023
kappassov pushed a commit to kappassov/OpenSearch-Dashboards that referenced this issue Mar 21, 2023
pjfitzgibbons pushed a commit to pjfitzgibbons/OpenSearch-Dashboards that referenced this issue Mar 22, 2023
abbyhu2000 pushed a commit that referenced this issue Mar 22, 2023
…3633)

* added prepare command

Signed-off-by: kappassov <[email protected]>

* Use mirrors to download Node.js binaries to escape sporadic 404 errors (#3619)

Issue Resolved:
#3618

Signed-off-by: Anan Zhuang <[email protected]>

* Allow selecting the Node.js binary OSD uses (#3508)

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.

Signed-off-by: Miki <[email protected]>

* Clean up and rebuild @osd/pm (#3570)

* Fix the build failures
* Removed some unused packages
* Update gist url templates in Lychee's exclusion list

Signed-off-by: Miki <[email protected]>

* Refactor dev tool console to use opensearch-js client to send request (#3544)

Refactor dev tool console to use opensearch-js client to interact with OpenSearch

Signed-off-by: Su <[email protected]>

* updates after the 1st review

Signed-off-by: kappassov <[email protected]>

---------

Signed-off-by: kappassov <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Su <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this issue Mar 22, 2023
…3633)

* added prepare command

Signed-off-by: kappassov <[email protected]>

* Use mirrors to download Node.js binaries to escape sporadic 404 errors (#3619)

Issue Resolved:
#3618

Signed-off-by: Anan Zhuang <[email protected]>

* Allow selecting the Node.js binary OSD uses (#3508)

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.

Signed-off-by: Miki <[email protected]>

* Clean up and rebuild @osd/pm (#3570)

* Fix the build failures
* Removed some unused packages
* Update gist url templates in Lychee's exclusion list

Signed-off-by: Miki <[email protected]>

* Refactor dev tool console to use opensearch-js client to send request (#3544)

Refactor dev tool console to use opensearch-js client to interact with OpenSearch

Signed-off-by: Su <[email protected]>

* updates after the 1st review

Signed-off-by: kappassov <[email protected]>

---------

Signed-off-by: kappassov <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Su <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
(cherry picked from commit b0146e7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
abbyhu2000 pushed a commit that referenced this issue Mar 22, 2023
…3633) (#3651)

* added prepare command



* Use mirrors to download Node.js binaries to escape sporadic 404 errors (#3619)

Issue Resolved:
#3618



* Allow selecting the Node.js binary OSD uses (#3508)

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.



* Clean up and rebuild @osd/pm (#3570)

* Fix the build failures
* Removed some unused packages
* Update gist url templates in Lychee's exclusion list



* Refactor dev tool console to use opensearch-js client to send request (#3544)

Refactor dev tool console to use opensearch-js client to interact with OpenSearch



* updates after the 1st review



---------








(cherry picked from commit b0146e7)

Signed-off-by: kappassov <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Su <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this issue Mar 23, 2023
#3619)

Issue Resolved:
#3618

Signed-off-by: Anan Zhuang <[email protected]>
(cherry picked from commit 99a88e3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
abbyhu2000 pushed a commit that referenced this issue Mar 24, 2023
#3619) (#3664)

Issue Resolved:
#3618

Signed-off-by: Anan Zhuang <[email protected]>
(cherry picked from commit 99a88e3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
pjfitzgibbons pushed a commit to pjfitzgibbons/OpenSearch-Dashboards that referenced this issue Mar 24, 2023
…pensearch-project#3633)

* added prepare command

Signed-off-by: kappassov <[email protected]>

* Use mirrors to download Node.js binaries to escape sporadic 404 errors (opensearch-project#3619)

Issue Resolved:
opensearch-project#3618

Signed-off-by: Anan Zhuang <[email protected]>

* Allow selecting the Node.js binary OSD uses (opensearch-project#3508)

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.

Signed-off-by: Miki <[email protected]>

* Clean up and rebuild @osd/pm (opensearch-project#3570)

* Fix the build failures
* Removed some unused packages
* Update gist url templates in Lychee's exclusion list

Signed-off-by: Miki <[email protected]>

* Refactor dev tool console to use opensearch-js client to send request (opensearch-project#3544)

Refactor dev tool console to use opensearch-js client to interact with OpenSearch

Signed-off-by: Su <[email protected]>

* updates after the 1st review

Signed-off-by: kappassov <[email protected]>

---------

Signed-off-by: kappassov <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Su <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
sikhote pushed a commit to sikhote/OpenSearch-Dashboards that referenced this issue Apr 24, 2023
sikhote pushed a commit to sikhote/OpenSearch-Dashboards that referenced this issue Apr 24, 2023
…pensearch-project#3633)

* added prepare command

Signed-off-by: kappassov <[email protected]>

* Use mirrors to download Node.js binaries to escape sporadic 404 errors (opensearch-project#3619)

Issue Resolved:
opensearch-project#3618

Signed-off-by: Anan Zhuang <[email protected]>

* Allow selecting the Node.js binary OSD uses (opensearch-project#3508)

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.

Signed-off-by: Miki <[email protected]>

* Clean up and rebuild @osd/pm (opensearch-project#3570)

* Fix the build failures
* Removed some unused packages
* Update gist url templates in Lychee's exclusion list

Signed-off-by: Miki <[email protected]>

* Refactor dev tool console to use opensearch-js client to send request (opensearch-project#3544)

Refactor dev tool console to use opensearch-js client to interact with OpenSearch

Signed-off-by: Su <[email protected]>

* updates after the 1st review

Signed-off-by: kappassov <[email protected]>

---------

Signed-off-by: kappassov <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Su <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
Signed-off-by: David Sinclair <[email protected]>
sikhote pushed a commit to sikhote/OpenSearch-Dashboards that referenced this issue Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant