Hello,
I installed taiga via the source code Install Taiga in Production
I have several problems:
First, I have a problem with the permissions of /home/taiga, nginx cannot access files in /home/taiga-front-dist/dist/.
If I chown -R www-data /home/taiga/ it works, but then the services are unable to restart:
Jan 13 10:15:57 DC1RBY01 (gunicorn)[1195]: taiga.service: Changing to the requested working directory failed: Permission denied
Jan 13 10:15:57 DC1RBY01 (gunicorn)[1195]: taiga.service: Failed at step CHDIR spawning /home/taiga/taiga-back/.venv/bin/gunicorn: Permission denied
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-async.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-async.service: Failed with result 'exit-code'.
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-events.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-events.service: Failed with result 'exit-code'.
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-protected.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga-protected.service: Failed with result 'exit-code'.
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:15:57 DC1RBY01 systemd[1]: taiga.service: Failed with result 'exit-code'.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-async.service: Scheduled restart job, restart counter is at 12.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga.service: Scheduled restart job, restart counter is at 12.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-events.service: Scheduled restart job, restart counter is at 12.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-protected.service: Scheduled restart job, restart counter is at 12.
Jan 13 10:16:00 DC1RBY01 systemd[1]: Stopped taiga-async.service - taiga_async.
Jan 13 10:16:00 DC1RBY01 systemd[1]: Started taiga-async.service - taiga_async.
Jan 13 10:16:00 DC1RBY01 systemd[1]: Stopped taiga-events.service - taiga_events.
Jan 13 10:16:00 DC1RBY01 (celery)[1197]: taiga-async.service: Changing to the requested working directory failed: Permission denied
Jan 13 10:16:00 DC1RBY01 (celery)[1197]: taiga-async.service: Failed at step CHDIR spawning /home/taiga/taiga-back/.venv/bin/celery: Permission denied
Jan 13 10:16:00 DC1RBY01 systemd[1]: Started taiga-events.service - taiga_events.
Jan 13 10:16:00 DC1RBY01 systemd[1]: Stopped taiga-protected.service - taiga_protected.
Jan 13 10:16:00 DC1RBY01 (npm)[1198]: taiga-events.service: Changing to the requested working directory failed: Permission denied
Jan 13 10:16:00 DC1RBY01 (npm)[1198]: taiga-events.service: Failed at step CHDIR spawning npm: Permission denied
Jan 13 10:16:00 DC1RBY01 systemd[1]: Started taiga-protected.service - taiga_protected.
Jan 13 10:16:00 DC1RBY01 systemd[1]: Stopped taiga.service - taiga_back.
Jan 13 10:16:00 DC1RBY01 (gunicorn)[1199]: taiga-protected.service: Changing to the requested working directory failed: Permission denied
Jan 13 10:16:00 DC1RBY01 (gunicorn)[1199]: taiga-protected.service: Failed at step CHDIR spawning /home/taiga/taiga-protected/.venv/bin/gunicorn: Permission denied
Jan 13 10:16:00 DC1RBY01 systemd[1]: Started taiga.service - taiga_back.
Jan 13 10:16:00 DC1RBY01 (gunicorn)[1200]: taiga.service: Changing to the requested working directory failed: Permission denied
Jan 13 10:16:00 DC1RBY01 (gunicorn)[1200]: taiga.service: Failed at step CHDIR spawning /home/taiga/taiga-back/.venv/bin/gunicorn: Permission denied
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-async.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-async.service: Failed with result 'exit-code'.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-events.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-events.service: Failed with result 'exit-code'.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-protected.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga-protected.service: Failed with result 'exit-code'.
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga.service: Main process exited, code=exited, status=200/CHDIR
Jan 13 10:16:00 DC1RBY01 systemd[1]: taiga.service: Failed with result 'exit-code'.
Second problem, I have this error in the taiga-async service:
> Jan 13 10:18:43 DC1RBY01 celery[1262]: Trying again in 20.00 seconds... (10/100)
> Jan 13 10:18:54 DC1RBY01 celery[1439]: [2024-01-13 10:18:54,173: ERROR/Beat] beat: Connection error: [Errno -2] Name or service not known. Trying again in 22.0 seconds...
> Jan 13 10:19:03 DC1RBY01 celery[1262]: [2024-01-13 10:19:03,597: ERROR/MainProcess] consumer: Cannot connect to amqp://rabbitmquser:**@rabbitmq:5672/taiga: [Errno -2] Name or service not known.
And thirdly, while I was still able to access the site, I’m having trouble with cors :
I thought I’d followed the installation procedure correctly, but obviously not.
If anyone has any ideas, I’d love to hear them.
Thanks in advance