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

[self-hosted] Monograph aarch64 architecture compatibility #6887

Closed
s0llvan opened this issue Nov 16, 2024 · 5 comments
Closed

[self-hosted] Monograph aarch64 architecture compatibility #6887

s0llvan opened this issue Nov 16, 2024 · 5 comments

Comments

@s0llvan
Copy link

s0llvan commented Nov 16, 2024

What problem are you facing?

docker run -it --rm streetwriters/monograph:latest

exec /usr/local/bin/docker-entrypoint.sh: exec format error

What's the solution you'd like to see in Notesnook?

Monograph aarch64 architecture compatibility.

What alternatives have you considered?

No response

Additional context

No response

@thecodrr
Copy link
Contributor

Feel free to open a PR. I don't have an AARCH64 system to test this on right now.

@three-b0dy
Copy link
Contributor

three-b0dy commented Feb 18, 2025

Because inside mongraph container, /usr/local/bin/bun and /bin/busybox(/bin/sh/) is x86-64 architecture file

root@builder:~/mongraph# docker inspect streetwriters/monograph:latest | grep "Architecture"
        "Architecture": "arm64",
root@builder:~/mongraph#

/home/bun/app # file /usr/local/bin/bun
/usr/local/bin/bun: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=a8a96d675d2e03ddc3289b2e06575b90ba9a2ab5, not stripped
/home/bun/app # file /bin/sh
/bin/sh: symbolic link to /bin/busybox
/home/bun/app # file /bin/busybox
/bin/busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=4f52ff80a06e1bcc377a040eecfece1f00c38df8, stripped
/home/bun/app #

But I can't PR, because I don't know where is monograph's Dockerfile.
Maybe removed --platform=$BUILDPLATFORM from the Dockerfile will fix it.

reference:
knadh/listmonk#2114
knadh/listmonk#2123

@s0llvan
Copy link
Author

s0llvan commented Feb 18, 2025

Because inside mongraph container, /usr/local/bin/bun and /bin/busybox(/bin/sh/) is x86-64 architecture file

root@builder:~/mongraph# docker inspect streetwriters/monograph:latest | grep "Architecture"
        "Architecture": "arm64",
root@builder:~/mongraph#

/home/bun/app # file /usr/local/bin/bun
/usr/local/bin/bun: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=a8a96d675d2e03ddc3289b2e06575b90ba9a2ab5, not stripped
/home/bun/app # file /bin/sh
/bin/sh: symbolic link to /bin/busybox
/home/bun/app # file /bin/busybox
/bin/busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=4f52ff80a06e1bcc377a040eecfece1f00c38df8, stripped
/home/bun/app #

But I can't PR, because I don't know where is monograph's Dockerfile. Maybe removed --platform=$BUILDPLATFORM from the Dockerfile will fix it.

reference: knadh/listmonk#2114 knadh/listmonk#2123

It's here : https://github.com/streetwriters/notesnook/blob/master/apps/monograph/Dockerfile

I had managed to fix the issue but I can't find the change I made.
If you could create a PR, that would be perfect, thank you! 😄

@three-b0dy
Copy link
Contributor

Because inside mongraph container, /usr/local/bin/bun and /bin/busybox(/bin/sh/) is x86-64 architecture file

root@builder:~/mongraph# docker inspect streetwriters/monograph:latest | grep "Architecture"
        "Architecture": "arm64",
root@builder:~/mongraph#

/home/bun/app # file /usr/local/bin/bun
/usr/local/bin/bun: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=a8a96d675d2e03ddc3289b2e06575b90ba9a2ab5, not stripped
/home/bun/app # file /bin/sh
/bin/sh: symbolic link to /bin/busybox
/home/bun/app # file /bin/busybox
/bin/busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=4f52ff80a06e1bcc377a040eecfece1f00c38df8, stripped
/home/bun/app #

But I can't PR, because I don't know where is monograph's Dockerfile. Maybe removed --platform=$BUILDPLATFORM from the Dockerfile will fix it.
reference: knadh/listmonk#2114 knadh/listmonk#2123

It's here : https://github.com/streetwriters/notesnook/blob/master/apps/monograph/Dockerfile

I had managed to fix the issue but I can't find the change I made. If you could create a PR, that would be perfect, thank you! 😄

PR created

#7622

@thecodrr
Copy link
Contributor

Merged the PR. Will release a new version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants