Not able to start the docker-compose file

Hi,

I am trying to set up Camunda 8 in my system, and I have downloaded docker ,and the docker-compose.yaml file, but when I am running this command “docker-compose -f docker-compose.yaml up -d” in the command prompt to start all the processes, it is throwing an error as shown below:

E:\Camunda 8>docker-compose -f docker-compose.yaml up -d
time=“” level=warning msg=“The "ZEEBE_CLIENT_ID" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_SECRET" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "RESOURCE_AUTHORIZATIONS_ENABLED" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "CAMUNDA_PLATFORM_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "CAMUNDA_CONNECTORS_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_ID" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_SECRET" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "CAMUNDA_OPTIMIZE_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_ID" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "RESOURCE_AUTHORIZATIONS_ENABLED" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_SECRET" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "CAMUNDA_PLATFORM_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "CAMUNDA_PLATFORM_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_AUTHENTICATION_MODE" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "POSTGRES_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "KEYCLOAK_SERVER_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ELASTIC_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ELASTIC_VERSION" variable is not set. Defaulting to a blank string.”
time=" level=warning msg=“The "CAMUNDA_PLATFORM_VERSION" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_ID" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "ZEEBE_CLIENT_SECRET" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "HOST" variable is not set. Defaulting to a blank string.”
time=“” level=warning msg=“The "RESOURCE_AUTHORIZATIONS_ENABLED" variable is not set. Defaulting to a blank string.”
Failed to load E:\Camunda 8\connector-secrets.txt: open E:\Camunda 8\connector-secrets.txt: The system cannot find the file specified.

What can be done to resolve this issue, because every related video I have seen is using the same file and running it directly as well.

Thanks!

Hi, @ThomasShelby
Hope you have cloned the repository and have all the files and folders as present in the remote repository, like this,


The docker-compose file derives the values for the variables from the .env file. Whatever variables you have shown will be declared in the .env file as below

Make sure these are all present and then docker compose up the specific compose file as per your requirement. Refer this link for the camunda-platform repository.

Hope this solves your issue.

1 Like

I did this and it started everything including, zeebe, tasklist etc on docker console, but when clicking on the related port number, it is not opening and showing error on browser.

If all the containers of the compose file are up and running, it should properly work. Otherwise try restarting the containers. Also, try launching the containers like operate (localhost:8081) and tasklist (localhost:8082), as zeebe on the port 26500 will not render anything visually in the browser. And even if you want to access Keycloak, you have to go for (localhost:18080/auth/). All te ports that I have specified here are the defaut ones in the compose file. If you have made any changes in the port mapping, accomodate to that.

Hope this helps.

1 Like

Hello my friend!
Are the environment variables set correctly?

Is the connector-secrets.txt file in the correct path? (in case E:\Camunda 8)

Are the docker images downloaded correctly? Run a docker images to check and if they are not, create or download the image you need.

Also try cleaning docker cash with docker system prune -a, it might help too.

In parallel to this, make sure there are no blank spaces after the file name. There have been cases in my company where it took a few days to discover the error, and when they discovered it, it was just an extra space at the end of the file name. :hot_face:

William Robert Alves