Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

npm-postinstall.sh script is broken on FreeBSD #2229

Closed
zjijz opened this issue Oct 24, 2020 · 3 comments
Closed

npm-postinstall.sh script is broken on FreeBSD #2229

zjijz opened this issue Oct 24, 2020 · 3 comments
Labels
bug Something isn't working os-freebsd FreeBSD related

Comments

@zjijz
Copy link

zjijz commented Oct 24, 2020

  • Web Browser: n/a
  • Local OS: MacOS
  • Remote OS: FreeBSD
  • Remote Architecture: amd64 / x86_64
  • code-server --version: 3.6.0, 3.6.1

Install succeeded on 3.5.0.
NPM log for 3.6.0 (npm install -g code-server@3.6.0): code_server_3_6_0.log
NPM log for 3.6.1 (npm install -g code-server): code_server_3_6_1.log

The issue has to due with a recent addition (12 days ago) that always tries to download an OS-specific cloud-agent from Google Cloud: https://github.com/cdr/code-server/blob/62735da69466a444561ab9b1115dc7c4d496d455/ci/build/npm-postinstall.sh#L28

This fails with a 404 error for FreeBSD. v3.5.0 was before this addition and I did verify it works.

I think this is unrelated to #1880.

@code-asher code-asher added the bug Something isn't working label Oct 27, 2020
@mike-pt
Copy link

mike-pt commented Nov 2, 2020

Yeah this is another issue, and I get the 404 too:

% http -h https://storage.googleapis.com/coder-cloud-releases/agent/latest/freebsd/cloud-agent
HTTP/1.1 404 Not Found
Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Length: 215
Content-Type: application/xml; charset=UTF-8
Date: Mon, 02 Nov 2020 19:56:02 GMT
Expires: Mon, 02 Nov 2020 19:56:02 GMT
Server: UploadServer
X-GUploader-UploadID: ABg5-UzQ3Vxz7XIFiHNk9TLk2FAxmRm5HOqraeyZ5URRSXPtxllZk9A2UgfKSciJjye9F9SmWuZENrugCC3l7GwWKFw

this seems to only work when $OS= linux but that will ofc fail to run

code-asher added a commit that referenced this issue Nov 2, 2020
@zjijz
Copy link
Author

zjijz commented Nov 10, 2020

Thank you for the response! Love the project so far!

@nhooyr nhooyr added the os-freebsd FreeBSD related label Dec 8, 2020
@nhooyr
Copy link
Contributor

nhooyr commented Dec 8, 2020

Should be fixed in the latest release!

@nhooyr nhooyr closed this as completed Dec 8, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working os-freebsd FreeBSD related
Projects
None yet
Development

No branches or pull requests

4 participants