mailcow / mailcow-dockerized

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

update.sh broke arm64 #5596

Closed woodfairy closed 11 months ago

woodfairy commented 11 months ago

Contribution guidelines

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

Description

Hello, I just ran the update.sh script but now some containers do not have arm64e builds anymore and I cant get mailcow running again. How can I do a rollback fast?

Logs:

Cant post the logs here, is too long.

 ! 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
 ! 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 

 ! 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
 ! 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

 ! 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 ed0.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 ed0.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 requ[+] Running 28/28

 ! 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 ed0.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 ed0.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 requ[+] Running 28/28

 ! 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 ed0.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 ed0.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 requ[+] Running 28/28

 ! 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 ed0.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 ed0.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 requ[+] Running 28/28

 ! 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 ed0.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 ed0.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 requ[+] Running 28/28

Steps to reproduce:

Run update.sh on a previously working arm64 branch

Which branch are you using?

master

Operating System:

AlmaLinux 9

Server/VM specifications:

4 CPUs, 8GB RAM

Is Apparmor, SELinux or similar active?

no

Virtualization technology:

KVM

Docker version:

24.0.7

docker-compose version or docker compose version:

v2.21.0

mailcow version:

2023-11a

Reverse proxy:

Nginx

Logs of git diff:

no

Logs of iptables -L -vn:

no IP issues

Logs of ip6tables -L -vn:

no IP issues

Logs of iptables -L -vn -t nat:

no IP issues

Logs of ip6tables -L -vn -t nat:

no IP issues

DNS check:

DNS is fine
woodfairy commented 11 months ago

I manually changed the image versions to the latest tag supporting arm64, now netfilter has the following exception:

Clearing all bans
Traceback (most recent call last):
  File "/server.py", line 558, in <module>
    clear()
  File "/server.py", line 296, in clear
    filter4_table = iptc.Table(iptc.Table.FILTER)
  File "/usr/lib/python3.10/site-packages/iptc/ip4tc.py", line 1582, in __new__
    obj._init(name, autocommit)
  File "/usr/lib/python3.10/site-packages/iptc/ip4tc.py", line 1598, in _init
    self.refresh()
  File "/usr/lib/python3.10/site-packages/iptc/ip4tc.py", line 1634, in refresh
    raise IPTCError("can't initialize %s: %s" % (self.name,
iptc.ip4tc.IPTCError: can't initialize filter: b'iptables who? (do you need to insmod?)'

I cannot send and receive mails atm, even though the web UI works

iamnhx commented 11 months ago

Use the nightly branch for arm64 support.

woodfairy commented 11 months ago

How do I do this? I used the feature branch but now the update broke everything, how can I safely migrate to the nightly branch without data loss?

woodfairy commented 11 months ago

Fixed it by backing up my data volume and checking out nightly branch, thanks @iamnhx

MAGICCC commented 11 months ago

You can use the --nightly flag using the update scipt

MAGICCC commented 11 months ago

Ay, closing this since it's fixed :)

woodfairy commented 11 months ago

You can use the --nightly flag using the update scipt

This is nice for future update, thanks :)

bi-v commented 10 months ago

+1