mailcow / mailcow-dockerized

mailcow: dockerized - ๐Ÿฎ + ๐Ÿ‹ = ๐Ÿ’•
https://mailcow.email
GNU General Public License v3.0
8.75k stars 1.17k forks source link

ARM setup fails #5384

Closed pfrancks closed 12 months ago

pfrancks commented 1 year ago

Contribution guidelines

I've found a bug and checked that ...

Description

I tried to follow the instructions from the blog post:
https://mailcow.email/de/posts/2023/arm64-open-beta/

Apparanetly, selecting the nightly branch in the installation tool does not change the git branch used:

root@mail:/opt/mailcow-dockerized# git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   data/assets/ssl-example/cert.pem
        modified:   data/assets/ssl-example/key.pem

no changes added to commit (use "git add" and/or "git commit -a")

### Logs:

```plain text
root@mail:/opt# git clone https://github.com/mailcow/mailcow-dockerized
Cloning into 'mailcow-dockerized'...
remote: Enumerating objects: 48389, done.
remote: Counting objects: 100% (1757/1757), done.
remote: Compressing objects: 100% (750/750), done.
remote: Total 48389 (delta 1167), reused 1509 (delta 995), pack-reused 46632
Receiving objects: 100% (48389/48389), 43.74 MiB | 29.18 MiB/s, done.
Resolving deltas: 100% (31673/31673), done.

root@mail:~# cd /opt/mailcow-dockerized/

root@mail:/opt/mailcow-dockerized# ./generate_config.sh
Found Docker Compose Plugin (native).
Setting the DOCKER_COMPOSE_VERSION Variable to native
Notice: Youยดll have to update this Compose Version via your Package Manager manually!
Press enter to confirm the detected value '[value]' where applicable or enter a custom value.
Mail server hostname (FQDN) - this is not your mail domain, but your mail servers hostname: mail.mydomain.tld
Timezone [Etc/UTC]:
Which branch of mailcow do you want to use?

Available Branches:
- master branch (stable updates) | default, recommended [1]
- nightly branch (unstable updates, testing) | not-production ready [2]
Choose the Branch with itยดs number [1/2] 2
Your branch is up to date with 'origin/master'.
Generating snake-oil certificate...
[REMOVED OUTPUT]
Copying snake-oil certificate...
Detecting if your IP is listed on Spamhaus Bad ASN List...
Check completed! Your IP is clean

root@mail:/opt/mailcow-dockerized# nano mailcow.conf # Changed SKIP_SOGO=y

root@mail:/opt/mailcow-dockerized# docker compose pull
[REMOVED OUTPUT]

root@mail:/opt/mailcow-dockerized# docker compose up -d
 โœ” Container mailcowdockerized-redis-mailcow-1                                                                                                                      Started1.2s
 โœ” Container mailcowdockerized-unbound-mailcow-1                                                                                                                    Started1.9s
 โœ” Container mailcowdockerized-dockerapi-mailcow-1                                                                                                                  Started1.1s
 โœ” Container mailcowdockerized-olefy-mailcow-1                                                                                                                      Started1.5s
 โœ” Container mailcowdockerized-memcached-mailcow-1                                                                                                                  Started1.2s
 โœ” Container mailcowdockerized-solr-mailcow-1                                                                                                                       Started1.1s
 โœ” Container mailcowdockerized-watchdog-mailcow-1                                                                                                                   Started1.8s
 โœ” Container mailcowdockerized-sogo-mailcow-1                                                                                                                       Started1.4s
 ! solr-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested            0.0s
 ! watchdog-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested        0.0s
 ! unbound-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested         0.0s
 ! dockerapi-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested       0.0s
 โœ” Container mailcowdockerized-php-fpm-mailcow-1                                                                                                                    Started1.7s
 ! olefy-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested           0.0s
 โœ” Container mailcowdockerized-clamd-mailcow-1                                                                                                                      Started3.1s
 โœ” Container mailcowdockerized-mysql-mailcow-1                                                                                                                      Started2.6s
 ! sogo-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested            0.0s
 ! clamd-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested           0.0s
 ! php-fpm-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested         0.0s
 โœ” Container mailcowdockerized-nginx-mailcow-1                                                                                                                      Started3.7s
 โœ” Container mailcowdockerized-postfix-mailcow-1                                                                                                                    Started4.7s
 โœ” Container mailcowdockerized-dovecot-mailcow-1                                                                                                                    Started4.8s
 ! dovecot-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested         0.0s
 โœ” Container mailcowdockerized-rspamd-mailcow-1                                                                                                                     Started6.1s
 โœ” Container mailcowdockerized-ofelia-mailcow-1                                                                                                                     Started5.9s
 ! postfix-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested         0.0s
 โœ” Container mailcowdockerized-netfilter-mailcow-1                                                                                                                  Started5.2s
 โœ” Container mailcowdockerized-acme-mailcow-1                                                                                                                       Started5.2s
 ! rspamd-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested          0.0s
 ! netfilter-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested       0.0s
 ! acme-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested            0.0s
 โœ” Container mailcowdockerized-ipv6nat-mailcow-1                                                                                                                    Started6.3s

Steps to reproduce:

see under logs.

Which branch are you using?

master

Operating System:

Debian 12

Server/VM specifications:

8 GB, 4 cores, Hetzner CAX21

Is Apparmor, SELinux or similar active?

yes

Virtualization technology:

Hetzner cloud

Docker version:

24.0.5

docker-compose version or docker compose version:

v2.20.2

mailcow version:

2023-08

Reverse proxy:

none

Logs of git diff:

no changes

Logs of iptables -L -vn:

not relevant

Logs of ip6tables -L -vn:

not relevant

Logs of iptables -L -vn -t nat:

not relevant

Logs of ip6tables -L -vn -t nat:

not relevant

DNS check:

not relevant
pfrancks commented 1 year ago

If I manually switch to the nightly branch with git checkout nightly, everything works.

l0tzi commented 1 year ago

same here. running generate_config.sh isn't enough, I had to manually switch to the nightly branch. I think it's best to update the blogpost.

Ascar699 commented 1 year ago

I am trying to deploy and test on Oracle Cloud (Ampere instance). When I clone and install from the main branch (Nightly) half of containers restart every like 20-30 seconds rendering the whole system unusable.

When I try cloning from the ARM64 branch with git clone https://github.com/mailcow/mailcow-dockerized -b /feat/arm64-cow I get error

Cloning into 'mailcow-dockerized'...
fatal: Remote branch /feat/arm64-cow not found in upstream origin

Is this temporary? Anyone knows what ARM processors are used in Hertzner?

Thanks

Ascar699 commented 1 year ago

same here. running generate_config.sh isn't enough, I had to manually switch to the nightly branch. I think it's best to update the blogpost.

@I0tzi Can you tell me how to change the branch manually? Thanks

2nistechworld commented 1 year ago

same here. running generate_config.sh isn't enough, I had to manually switch to the nightly branch. I think it's best to update the blogpost.

@I0tzi Can you tell me how to change the branch manually? Thanks

git clone -b nightly https://github.com/mailcow/mailcow-dockerized

Ascar699 commented 1 year ago

same here. running generate_config.sh isn't enough, I had to manually switch to the nightly branch. I think it's best to update the blogpost.

@I0tzi Can you tell me how to change the branch manually? Thanks

git clone -b nightly https://github.com/mailcow/mailcow-dockerized

@l0tzi Hm, why may I be getting this error message? Thanks in advance

Cloning into 'mailcow-dockerized'...
fatal: Remote branch remotes/origin/nightly not found in upstream origin
heseifert commented 1 year ago

use git checkout nightly inside /opt/mailcow-dockerized and than update the setup with ./update.sh

ptC7H12 commented 1 year ago

use git checkout nightly inside /opt/mailcow-dockerized and than update the setup with ./update.sh

This worked to set up the container, while trying to set it up like mentioned here: https://mailcow.email/posts/2023/arm64-open-beta/ didn't work (most container were restarting)

Coven82 commented 12 months ago

Hi, I installed Mailcow today on a Hetzner ARM VM according to the instructions. Some Docker containers use AMD64 architecture instead of ARM64. Is this a known problem?

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

MAGICCC commented 12 months ago

Are you sure you are using the nightly branch? The tag used in nightly for the sogo image have arm64 support: https://hub.docker.com/layers/mailcow/sogo/nightly-1.119/images/sha256-19d0e1c8b7fbac87c7e6a272acf2b1ad3285d071c5abbf8fcf9aa76a0b81d7b6?context=explore

Or am I missing something here? If yes, we can repush it

Coven82 commented 12 months ago

Hi, thank you for the quick feedback. Yes, I am using the nightly branch. Most containers are for ARM64 but not this one.

โœ” Network mailcowdockerized_mailcow-network Created 0.2s โœ” Container mailcowdockerized-redis-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-sogo-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-memcached-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-solr-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-olefy-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-dockerapi-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-unbound-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-watchdog-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-php-fpm-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-clamd-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-mysql-mailcow-1 Started 0.0s ! sogo-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s โœ” Container mailcowdockerized-nginx-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-dovecot-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-postfix-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-acme-mailcow-1 Started 0.1s โœ” Container mailcowdockerized-rspamd-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-ofelia-mailcow-1 Started 0.0s โœ” Container mailcowdockerized-netfilter-mailcow-1 Started 0.0s

EmPiFree commented 12 months ago

I am also on the nightly build. For me those images cant be started:

! watchdog-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested ! php-fpm-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested ! postfix-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested ! acme-mailcow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

ptC7H12 commented 12 months ago

When I pulled the nightly 3 weeks ago, all worked! https://github.com/mailcow/mailcow-dockerized/issues/5384#issuecomment-1725401414

EmPiFree commented 12 months ago

Works now with the latest commit 45717ccdfa8995d5eeea4bc8794cb023e4401c4c The images are now pulled correctly and every container starts up.

Thanks @DerLinkman :)

DerLinkman commented 12 months ago

Yes i've updated it as it would collide with the current staging images.

Still no ETA! So please don't get to excited.