docker-taiga / taiga

docker-compose.yml for simple taiga setup
215 stars 75 forks source link

Cannot run using apple M1 #59

Closed loranger closed 1 year ago

loranger commented 1 year ago

Hi, I'm trying to run taiga using docker-compose on my Mac M1, but rabbit seems to fail

docker-compose output ``` Attaching to d9c94f1dbd11_taiga-rabbit, taiga-back, taiga-db, taiga-events, taiga-front taiga-front | 2022/10/11 19:50:14 [notice] 1#1: using the "epoll" event method taiga-front | 2022/10/11 19:50:14 [notice] 1#1: nginx/1.21.1 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424) taiga-front | 2022/10/11 19:50:14 [notice] 1#1: OS: Linux 5.10.124-linuxkit taiga-front | 2022/10/11 19:50:14 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker processes taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker process 16 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker process 18 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker process 19 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker process 20 taiga-front | 2022/10/11 19:50:14 [notice] 1#1: start worker process 22 taiga-front | 2022/10/11 19:50:14 [emerg] 16#16: io_setup() failed (38: Function not implemented) taiga-front | 2022/10/11 19:50:14 [emerg] 19#19: io_setup() failed (38: Function not implemented) taiga-front | 2022/10/11 19:50:14 [emerg] 22#22: io_setup() failed (38: Function not implemented) taiga-front | 2022/10/11 19:50:14 [emerg] 20#20: io_setup() failed (38: Function not implemented) taiga-front | 2022/10/11 19:50:14 [emerg] 18#18: io_setup() failed (38: Function not implemented) taiga-back | Waiting for database to become ready... d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | trying to connect: host='db' dbname='taiga' user='postgres' password='password'... taiga-back | Running database update... d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | Operations to perform: taiga-back | Apply all migrations: admin, attachments, auth, bitbucket, contact, contenttypes, custom_attributes, djmail, easy_thumbnails, epics, external_apps, feedback, github, gitlab, gogs, history, issues, likes, milestones, notifications, projects, references, sessions, settings, tasks, timeline, users, userstorage, userstories, votes, webhooks, wiki taiga-back | Running migrations: taiga-back | No migrations to apply. d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | taiga-back | 999 static files copied to '/srv/taiga/back/static'. taiga-back | Installing cron jobs... taiga-back | mkdir: can't create directory '/run/nginx': File exists taiga-back | [2022-10-11 19:51:07 +0000] [43] [INFO] Starting gunicorn 20.1.0 taiga-back | [2022-10-11 19:51:07 +0000] [43] [INFO] Listening at: http://127.0.0.1:8000 (43) taiga-back | [2022-10-11 19:51:07 +0000] [43] [INFO] Using worker: sync taiga-back | [2022-10-11 19:51:07 +0000] [70] [INFO] Booting worker with pid: 70 taiga-back | [2022-10-11 19:51:07 +0000] [72] [INFO] Booting worker with pid: 72 taiga-back | [2022-10-11 19:51:07 +0000] [74] [INFO] Booting worker with pid: 74 taiga-back | [2022-10-11 19:51:07 +0000] [75] [INFO] Booting worker with pid: 75 d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | taiga-back | -------------- celery@0c807ff45e83 v5.2.3 (dawn-chorus) taiga-back | --- ***** ----- taiga-back | -- ******* ---- Linux-5.10.124-linuxkit-x86_64-with 2022-10-11 19:51:25 taiga-back | - *** --- * --- taiga-back | - ** ---------- [config] taiga-back | - ** ---------- .> app: taiga:0x400d9a4d30 taiga-back | - ** ---------- .> transport: amqp://taiga:**@rabbit:5672/taiga taiga-back | - ** ---------- .> results: disabled:// taiga-back | - *** --- * --- .> concurrency: 4 (prefork) taiga-back | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker) taiga-back | --- ***** ----- taiga-back | -------------- [queues] taiga-back | .> tasks exchange=tasks(topic) key=task.default taiga-back | taiga-back | taiga-back | [tasks] taiga-back | . djmail.tasks.retry_send_messages taiga-back | . djmail.tasks.send_messages taiga-back | . taiga.export_import.tasks.delete_project_dump taiga-back | . taiga.export_import.tasks.dump_project taiga-back | . taiga.export_import.tasks.load_project_dump taiga-back | . taiga.projects.contact.services.send_contact_email taiga-back | . taiga.projects.notifications.tasks.send_bulk_email taiga-back | . taiga.projects.services.projects.delete_project taiga-back | . taiga.projects.services.projects.delete_projects taiga-back | . taiga.projects.userstories.services._async_tasks_after_backlog_or_sprint_order_change taiga-back | . taiga.projects.userstories.services._async_tasks_after_kanban_order_change taiga-back | . taiga.timeline.service.push_to_timelines taiga-back | . taiga.webhooks.tasks.change_webhook taiga-back | . taiga.webhooks.tasks.create_webhook taiga-back | . taiga.webhooks.tasks.delete_webhook taiga-back | . taiga.webhooks.tasks.resend_webhook taiga-back | . taiga.webhooks.tasks.test_webhook taiga-back | taiga-back | [2022-10-11 19:51:25,988: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 2.00 seconds... (1/100) taiga-back | taiga-back | [2022-10-11 19:51:28,032: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 4.00 seconds... (2/100) taiga-back | taiga-back | [2022-10-11 19:51:32,079: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 6.00 seconds... (3/100) taiga-back | taiga-back | [2022-10-11 19:51:38,099: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 8.00 seconds... (4/100) taiga-back | taiga-back | [2022-10-11 19:51:46,140: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 10.00 seconds... (5/100) taiga-back | taiga-back | [2022-10-11 19:51:56,200: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 12.00 seconds... (6/100) taiga-back | d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | [2022-10-11 19:52:08,241: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 14.00 seconds... (7/100) taiga-back | taiga-back | [2022-10-11 19:52:22,281: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 16.00 seconds... (8/100) taiga-back | taiga-back | [2022-10-11 19:52:38,328: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 18.00 seconds... (9/100) taiga-back | taiga-back | [2022-10-11 19:52:56,421: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 20.00 seconds... (10/100) taiga-back | d9c94f1dbd11_taiga-rabbit | qemu: uncaught target signal 11 (Segmentation fault) - core dumped d9c94f1dbd11_taiga-rabbit | Segmentation fault d9c94f1dbd11_taiga-rabbit exited with code 0 taiga-back | [2022-10-11 19:53:16,495: ERROR/MainProcess] consumer: Cannot connect to amqp://taiga:**@rabbit:5672/taiga: failed to resolve broker hostname. taiga-back | Trying again in 22.00 seconds... (11/100) taiga-back | ```

I tried to enforce the platform, using the following directive, but it still fails

  rabbit:
    image: dockertaiga/rabbit
    container_name: taiga-rabbit
    platform: linux/amd64
    restart: unless-stopped
...

What can I do ?

Thanks

Bodo-von-Greif commented 1 year ago

Hi loranger,

i guess there is the same issue as i had to face when i tried to run Taiga on a raspi aarch64 architecture. I found that Taiga container where compiled for Intel/AMD only. See https://hub.docker.com/search?q=taiga There is only x86-64 not arm or something else. My error message was: exec /entrypoint.sh: exec format error

loranger commented 1 year ago

Hi,

You're right, it seems the issue, but that's the reason why I forced the platform on linux/amd64, but it does seems to work…

w1ck3dg0ph3r commented 1 year ago

Hi! dockertaiga/rabbit is just rabbitmq:alpine with some variables set, could you try running that directly and if that segfaults as well - try the default ubuntu variant of rabbitmq?

loranger commented 1 year ago

Thanks for your reply. Unfortunately, I just tried with rabbitmq:alpine and rabbitmq:latest and it failed with the exact same segfault.

I search a bit and found it's a qemu issue with the latest versions so I rollback to image: rabbitmq:3.10 and it works