Hello, I have setup a new Ubuntu v 20.4.6 server to host the Docker.
Docker Engine installed v 24.0.5
cloned git repo and tried running ./launch-all.sh
This returned:
exec docker compose -f docker-compose.yml -f docker-compose.penpot.yml up -d
unknown shorthand flag: ‘f’ in -f
Not sure what I am supposed to do with this since it is all fresh install and dedicated to purpose.
Should I stark hacking at it and remove the flag from the script? Should I reduce the version level of my OS or Docker Engine? Install from binary?
Well I solved part of it. I had to install docker-compose.
sudo apt install docker-compose
Then I had to edit the script changing 'exec docker compose -f ’ to 'exec docker-compose -f ’
On my system at least it required the hyphenated name for docker-compose.
I am still getting errors that I am not sure how to deal with.
RROR: The Compose file ‘./docker-compose.yml’ is invalid because:
services.taiga-async.depends_on contains an invalid type, it should be an array
services.taiga-back.depends_on contains an invalid type, it should be an array
services.taiga-events.depends_on contains an invalid type, it should be an array
I was able to get the script ./launch-all.sh to run by editing docker-compose.yml and comment-out all of the depends_on due to fact that I am seeing that Docker appears to be removing that feature.
This results in the launch_all script running but when opening the page http://myserver.mydomain.local:9000 I am greeted with a blank page. I do load the favicon though, yippy!
I can “view source” and see that it is loading something but whatever is supposed render the page isn’t functioning.
I guess I can try skipping Docker and install from scratch…
I hope someone has an idea seeing docker is the “preferred method”.
Thanks.
Well, I made some progress. The git repo and documentation needs to be updated for current versions. I had to modify the .env for it to properly launch without error.
According to Docker documentation, you must now use docker-compose not ‘docker compose’ and also it does not allow for conditions with ‘depends_on’. You have to pass conditions when you call docker-compose.
I changed launch-all script:
From
#exec docker compose docker-compose.yml docker-compose.penpot.yml up -d $@
To
exec docker-compose -f docker-compose.yml -f docker-compose.penpot.yml up -d $@
I also changed the docker-compose.yml
Everywhere it calls depends_on I changed
FROM:
Is postgres and base db included in the docker or do I need to install and set up? It doesn’t mention it in instructions.
If I check the browser console I see this error:
Uncaught (in promise) SyntaxError: Expected ‘,’ or ‘}’ after property value in JSON at position 41
Promise.then (async)
I am not seeing where to find logs for this to see what is or isn’t working.
@daniel.herrero Thanks for the input.
I started off following Taiga 30min Setup and also found Install Taiga in Production and they both just state a base requirement as “docker**: version >= 19.03.0+”. I have Docker Engine installed v 24.0.5. If I issue command ‘docker-compose version’ I get the following:
docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.8.10
When I installed I just used the repo default from Ubuntu:
sudo apt install docker
It was after trying to install that I found I had to separately install compose. I found my only choice was docker-compose and I installed with:
sudo apt install docker-compose
I can remove it all and install Docker from source rather than Ubuntu repo but that should probably be put into the documentation.
Since I have gotten past all the above errors at this point, I am not very hopeful that it will fix my issues with the blank page and json error reported by my browser (I’ve tried Chrome and Firefox so it’s not the browser).
I will try the fresh Docker install and let you know.
Thanks again.
@daniel.herrero installing Docker with the instruction from Docker rather than Ubuntu base repository corrected the issues.
I am now getting a good page and able to log in.
I guess I should have followed exactly the instruction " If you don’t have docker installed, please follow installation instructions from docker.com" as posted in Taiga 30min Setup
I’m glad you finally achieved to log in, well done!
To mark a topic solved, you just have to click on checkpoint of the reply that solves the problem, in its bottom part (first icon previous to the hear/like symbol). If you find any trouble I can do it for you.
And thank you for the support you offer to other users out there!
I can open a new thread if necessary, but I’m having the exact same problem – a blank page, but the favicon and the page source indicate that Taiga is serving successfully over my reverse proxy, yada yada.
I’ve applied all of the debugging steps from above, including the changes to the depends_on sections of docker-compose.yml. Worth noting, I’m having to use the Advanced Configuration from the installation guide. However, checking docker compose logs shows me that it is successfully connecting to PostgreSQL, RabbitMQ, etc. In fact, there aren’t even any error messages anymore.
I also installed the latest stable release of Docker two days ago according to the official Docker installation instructions mentioned above, so I have Docker Compose version v2.21.0. Beyond that, I’m running Ubuntu 22.04.
And yet, blank page with source code from Taiga when accessing either directly or through the proxy.
@CodeMouse92 I can’t tell you what you are missing but my problems resolved when I followed the instruction guide “EXACTLY” without making any assumption, which I had previously done by installing from Ubuntu apt repo rather than manually downloading and installing as mentioned in the guide(s).