parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.75k stars 1.39k forks source link

Add arm64 support #2040

Open lzzy12 opened 2 years ago

lzzy12 commented 2 years ago

New Issue Checklist

Issue Description

I am unable to run this on a 4 cores arm64 ubuntu server (pulled from dockerhub). It throws exec format error. I assume this is because there is no arm images available on dockerhub? Is there any chance, this could change?

Steps to reproduce

Run the commands to start the app in a docker container being pulled from dockerhub: docker run -d -p 4040:4040 parseplatform/parse-dashboard --dev --appId $APP_ID --masterKey $MASTER_KEY --serverURL $SERVER_URL

Actual Outcome

exec user process caused: exec format error

Expected Outcome

To run like it would on a normal x86-64 architecture cpu

Environment

ARM64 Ubuntu 20 4 cores 24GB RAM 30GB HDD

Dashboard

Server Not relevant

Database

Logs

standard_init_linux.go:228: exec user process caused: exec format error

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this issue!

mtrezza commented 2 years ago

Docker images for other platforms presumably failed to build so they have been removed in https://github.com/parse-community/parse-dashboard/pull/1781/commits/190258b3426b3d2b239628b68726f978d141a241.

The error log is unavailable but if you want to open a PR that includes that architecture (or try to build it locally) you'd see the exact error - if it still exists - and we can look into how to go about it.

davidhakki commented 2 years ago

Just to quickly chime in, you get a similar (but notably different) error message when running the dashboard on Macs with the M1 chip (ARM):

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

simpros commented 2 years ago

Any Plans on adding support for this growing platform?

JeffGuKang commented 2 years ago

AWS Graviton (t4g) has error with parse dashboard docker image.

standard_init_linux.go:228: exec user process caused: exec format error"

This answer looks having same situation.

This can happen if you're trying to run an x86 built image on an arm64/aarch64 machine. You'll need to rebuild the image using the corresponding architecture

link

mtrezza commented 2 years ago

That's interesting, I tried to reproduce this, but Parse Dashboard 5.0.0-beta.1 seems to run fine on t4g.nano with Node 16. If the dashboard itself runs fine, maybe we only need to add the arm docker image build.

I've opened #2334 so we can see which archs fail. The issue seems to be related to https://github.com/puppeteer/puppeteer/issues/7740. There are workarounds described which we could adopt until the issue is fixed, but from reading the thread it seems that any change in the puppeteer version would require a change in the fix. Maybe someone can investigate that more and we can merge a fix.