zitadel: Quickstart not working on Linux
Describe the bug
Cannot get started using the quickstart
To Reproduce
Steps to reproduce the behavior:
I am following: https://github.com/caos/zitadel/blob/main/guides/quickstart.md
My assumption with the quickstart is that, after running the command:
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 \
&& docker-compose -f ./build/local/docker-compose-local.yml --profile database -p zitadel up --exit-code-from db-migrations \
&& sleep 5 \
&& docker-compose -f ./build/local/docker-compose-local.yml --profile database --profile init-backend --profile init-frontend --profile backend --profile frontend --profile setup -p zitadel up -d
Expected behavior
I would see two things:
- the following text appears:
++=========++
|| ZITADEL ||
|| STARTED ||
++=========++
- At that point, I will be be able to go to http://localhost:4200/
Is this correct?
Desktop (please complete the following information):
- OS: Ubuntu 20.04
- Browser: Chrome, cURL
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 48 (29 by maintainers)
After some debugging:
Docker Buildkit
In the docker
daemon.jsonthe { “buildkit”: true } is important to activateHostname
The name
host.docker.internaldoes not work withlinuxThis relates to https://github.com/caos/zitadel/pull/2076
yes on it
The frontend is definitely running, so something must be strange with the go part of the project
i. The zitadel_zitadel-setted-up will output zitadel started.
ii. It looks to me like the zitadel_db_1 container crashed if youre using an mac m1. If not I would check if i can connect to the database and if zitadel can connect to the database
Appreciate the writeup. Let’s close this and make a note that additional work needs to be done: https://github.com/caos/zitadel/issues/2081
OK, DM’s at https://gitter.im/fforootd
This is really strange, you are running an Ubuntu there? Because all the outputs from your CLI don’t look like
BuildkitHow about placing the settings in your docker daemon.json?
You can use my keys here https://github.com/fforootd.keys
Most of us use bash on MacOS or Ubuntu
Hm it looks like it resets the
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1to0again after the first command is runWhat happens when you input
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 && docker-compose -f ./build/local/docker-compose-local.yml --profile database --profile init-backend --profile init-frontend --profile backend --profile frontend --profile setup -p zitadel upNow trying:
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 && docker-compose -f ./build/local/docker-compose-local.yml --profile database -p zitadel up --exit-code-from db-migrations && sleep 5 && docker-compose -f ./build/local/docker-compose-local.yml --profile database --profile init-backend --profile init-frontend --profile backend --profile frontend --profile setup -p zitadel upI guess you are missing
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1I tried it once more
docker system prune -aworked on the first approach 🤷
After a stop and restart it works with me 😁
@gc-ss do you have the same problem?
It defaults to version 2 btw. 😁
The setup looks working
so it must be something when zitadel starts
I did use your exact command
Well I think that is not necessary with a fresh setup it get the following:
Let me dig in why this happens
@gc-ss hm, let me cross check what happens on a “fresh” machine. I will try it ASAP on a
WSL2 Ubuntu