citusdata / docker

:ship: Docker images and configuration for Citus
Apache License 2.0
249 stars 100 forks source link

official docker hub images don't work on apple silicon #224

Open tucosaurus opened 3 years ago

tucosaurus commented 3 years ago

I am facing all the issues that have been mentioned here https://github.com/docker/buildx/issues/595

sbarlabanov commented 2 years ago

~~They do work but they work under Rosetta. Would be nice to have arm64 images to run them natively on M1 macs.~~

sbarlabanov commented 2 years ago

Sorry, I was wrong. Somehow it works on my Mac but not on the Macs of my collegues. It fails with the following error:

2022-01-24 12:36:16.345 UTC [255] CONTEXT:  Citus maintenance daemon for database 16384 user 10
UPDATE 1
2022-01-24 12:38:31.082 UTC [255] PANIC:  stuck spinlock detected at LWLockWaitListLock, ./build/../src/backend/storage/lmgr/lwlock.c:913
2022-01-24 12:38:31.082 UTC [255] CONTEXT:  Citus maintenance daemon for database 16384 user 10
qemu: uncaught target signal 6 (Aborted) - core dumped
2022-01-24 12:38:31.096 UTC [122] LOG:  background worker "Citus Maintenance Daemon: 16384/10" (PID 255) was terminated by signal 6: Aborted
2022-01-24 12:38:31.097 UTC [122] LOG:  terminating any other active server processes
psql:/docker-entrypoint-initdb.d/001-create-citus-extension.sql:7: WARNING:  terminating connection because of crash of another server process

:(

tucosaurus commented 2 years ago

@sbarlabanov When I looked at this last time in mid 2021, citus didn't have arm64 packages I could use. Could you point me to them if they are available now?

sbarlabanov commented 2 years ago

@tucosaurus seems that they are not - https://github.com/citusdata/citus/issues/5063

sbarlabanov commented 2 years ago

@tucosaurus Latest update: Citus amd64 images seem to work under the newest MacOS Monterey (remark: after having upgraded to Monterey also had to purge all existing postgres containers and images).

sbarlabanov commented 2 years ago

Update: there are still problems even with Monterey. On some machines work and on some not. So a native arm64 image would be really helpful.