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

does not start on arm64 #10

Open
derEremit opened this issue Nov 15, 2023 · 8 comments
Open

does not start on arm64 #10

derEremit opened this issue Nov 15, 2023 · 8 comments

Comments

@derEremit
Copy link

This is used in plausible analytics docker compose

version: "3.3"
services:
  mail:
    image: bytemark/smtp
    restart: always

it restarts with

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

I am running on oracle cloud arm

Linux instance-20221026-0418 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
@Nereuxofficial
Copy link

Nereuxofficial commented Nov 25, 2023

Having the same problem here on a hetzner Ampere server. Maybe there is a way to build the underlying code for arm64?

The Readme mentions it runs on any architecture with this package but the package actually does support arm64

@Nereuxofficial
Copy link

https://github.com/sverzegnassi/docker-smtp
This repo seems to build on arm64. Here is the docker hub link:
https://hub.docker.com/r/sverzegnassi/smtp

@wreidlinger
Copy link

Having the same problem on my arm64 server here at netcup.

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

Docker logs of the mail container:

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

Any chances to fix this issue for arm64 architecture?

@Nereuxofficial
Copy link

Nereuxofficial commented Mar 30, 2024

Having the same problem on my arm64 server here at netcup.

Any chances to fix this issue for arm64 architecture?

Given that the last commit in this repository was 6 years ago I would say that it is unlikely. There are some forks which support arm64(like this one, Github) and there is also the possibility of qemu emulation

@wreidlinger
Copy link

@Nereuxofficial thanks for the hint. i wasn't that fare to check out the last commit. you are totally right, worth checking first!
I come across this docker via the plausible docker compose . interestingly enough that they are still use it!?

Do you know if your smtp docker suggestion supports this environment variables like they describe it in the plausible docs? Can't see them on the docs. Probably I will just test it...

MAILER_EMAIL | [email protected] | The email id to use for as from address of all communications from Plausible.
MAILER_NAME | -- | The display name for the sender (from).
SMTP_HOST_ADDR | localhost | The host address of your SMTP server.
SMTP_HOST_PORT | 25 | The port of your SMTP server.
SMTP_USER_NAME | -- | The username/email in case SMTP auth is enabled.
SMTP_USER_PWD | -- | The password in case SMTP auth is enabled.
SMTP_HOST_SSL_ENABLED | false | If SSL is enabled for SMTP connection
SMTP_RETRIES | 2 | Number of retries to make until mailer gives up.

Funny, the plausible stack just send out emails via the image: bytemark/smtp. So the docker works even the log says different.

@Nereuxofficial
Copy link

@Nereuxofficial thanks for the hint. i wasn't that fare to check out the last commit. you are totally right, worth checking first!
I come across this docker via the plausible docker compose . interestingly enough that they are still use it!?

Do you know if your smtp docker suggestion supports this environment variables like they describe it in the plausible docs? Can't see them on the docs. Probably I will just test it...

MAILER_EMAIL | [email protected] | The email id to use for as from address of all communications from Plausible.
MAILER_NAME | -- | The display name for the sender (from).
SMTP_HOST_ADDR | localhost | The host address of your SMTP server.
SMTP_HOST_PORT | 25 | The port of your SMTP server.
SMTP_USER_NAME | -- | The username/email in case SMTP auth is enabled.
SMTP_USER_PWD | -- | The password in case SMTP auth is enabled.
SMTP_HOST_SSL_ENABLED | false | If SSL is enabled for SMTP connection
SMTP_RETRIES | 2 | Number of retries to make until mailer gives up.

Funny, the plausible stack just send out emails via the image: bytemark/smtp. So the docker works even the log says different.

Funnily enough I made a PR to use an docker container for the mailserver that runs on arm, however Plausible plans to remove the smtp image completely in the next version.

@wreidlinger
Copy link

Oh cool, looks like we are playing in the same team! Thanks for the PR.
Locking forward to the new plausible version then.

@abhranil26
Copy link

abhranil26 commented Oct 12, 2024

This is another one that works! Tested by me.
https://hub.docker.com/r/navanchauhan/smtp
I don't think plausible remove the need to mail container yet.
Works on Hetzner arm. Tested it.

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

4 participants