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

Fails to build web artifacts on ARM64 #377

Open
1 of 3 tasks
CameronNemo opened this issue Jan 3, 2021 · 6 comments
Open
1 of 3 tasks

Fails to build web artifacts on ARM64 #377

CameronNemo opened this issue Jan 3, 2021 · 6 comments
Labels
a:bug Something isn't working

Comments

@CameronNemo
Copy link

Can the issue be reproduced with the latest available release? (y/n) y

Which one is the environment gotify server is being bullt for?

  • Docker
  • Linux machine
  • Windows machine

What did you do?

Ran yarn and yarn build in the ui directory on ARM64 Linux.

What did you expect to see?

I expected yarn build to succeed in building the web ui assets.

What did you see instead? (Include screenshots, android logcat/request dumps if possible)

error /builddir/server-2.0.20/ui/node_modules/puppeteer: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /builddir/server-2.0.20/ui/node_modules/puppeteer
Output:
The chromium binary is not available for arm64:
If you are on Ubuntu, you can install with:

 apt-get install chromium-browser

/builddir/server-2.0.20/ui/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
            throw new Error();
            ^

Error
    at /builddir/server-2.0.20/ui/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
    at FSReqCallback.oncomplete (fs.js:181:21)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@CameronNemo CameronNemo added the a:bug Something isn't working label Jan 3, 2021
@jmattheis
Copy link
Member

Hey, could you retry after doing the following things:

  • remove the puppeteer dependencies from ui/package.json (both @types/puppeteer and puppeteer)
  • remove all files from ui/src/tests

@CameronNemo
Copy link
Author

That gets it building, but I have yet to test the result. Thanks for the tips.

@CameronNemo
Copy link
Author

Unfortunately, the resulting binary segfaults right when executed. That could certainly be a separate issue, though.

@jmattheis
Copy link
Member

Does the arm64 binary from https://github.com/gotify/server/releases/tag/v2.0.20 work?

@CameronNemo
Copy link
Author

CameronNemo commented Jan 6, 2021

That binary works fine on glibc but not musl. The binaries I am building behave the same (I am building the musl binary in a musl environment and glibc binary in a glibc environment, though). I get a Segmentation fault on musl.

@jmattheis
Copy link
Member

Hmm, I don't know. I tried building gotify on amd64 with musl gcc inside docker, this worked fine. I currently don't have an arm64 machine, thus, I can't really debug this issue :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Development

No branches or pull requests

2 participants