Ozone - Docker error "* error decoding 'Volumes[0]': invalid spec: :/opt/env-substitution/files: empty section between colons"

Getting the following error using the ozone-docker image:

Screenshot 2023-02-21 at 21.31.01

@Mekom Please advise, thanks!

1 Like

This happened because I was trying to remove the containers directly, instead of using the destroy-demo.sh script with the required env variables.

1 Like

I am getting similar error when trying to install via the manual process described at Manual Setup - Docs. I am getting the following error when trying to run docker compose up. docker compose -f docker-compose-common.yml -f docker-compose-openmrs.yml -f dock er-compose-senaite.yml -f docker-compose-odoo.yml -f docker-compose-superset.yml -p $DISTRO_GROUP up 1 error(s) decoding:

  • error decoding ā€˜volumes[6]ā€™: invalid spec: :/etc/properties/: empty section between colons

@nvvnravi did you use the destroy demo script as well?

Yes i used it but getting similar errors. $ ./scripts/destroy-demo.sh ./scripts/destroy-demo.sh: line 3: utils.sh: No such file or directory ./scripts/destroy-demo.sh: line 6: setDockerComposeCLIOptions: command not found ./scripts/destroy-demo.sh: line 9: setupDirs: command not found ./scripts/destroy-demo.sh: line 12: exportPaths: command not found Destroying demo serviceā€¦ Warning: No resource found to remove for project ā€œozoneā€. Destroying proxy serviceā€¦ Warning: No resource found to remove for project ā€œozoneā€. Destroying Ozone servicesā€¦ Warning: No resource found to remove for project ā€œozoneā€. ravi@DESKTOP-T0G5D0R:/mnt/e/openmrs-ozone/ozone/ozone-docker$ docker compose -f docker-compose-common.yml -f docker-compose-openmrs.yml -f docker-compose-senaite.yml -f docker-compose-odoo.yml -f docker-compose-superset.yml -p $DISTRO_GROUP up 2 error(s) decoding:

  • error decoding ā€˜volumes[0]ā€™: invalid spec: :/config: empty section between colons
  • error decoding ā€˜volumes[1]ā€™: invalid spec: :/routes: empty section between colons

to give you some perspective; once i got my earlier error i did export OPENMRS_PROPERTIES_PATH=$DISTRO_PATH/openmrs_properties; My reasoning was: docker compose is not able to validate the path specified in the yaml file . in this case it is docker-compose-openmrs.yaml

  • ā€œ${OPENMRS_PROPERTIES_PATH}:/etc/properties/ā€ also the value of this in .env file is blank. so i thought if i give a value to it it will work. like step 6 in the manual online document. it worked for 2 such paths but for the above errors, the same trick is not working. so i donā€™t know what i am doing wrong and need some help on this. the above 2 errors are from docker-compose-senaite.yaml (i believe).
  • ā€œ${EIP_OPENMRS_SENAITE_CONFIG_PATH}:/configā€
    - ā€œ${EIP_OPENMRS_SENAITE_ROUTES_PATH}:/routesā€

Could there be a confusion due to docker and docker compose version? Can you check the docker version?

docker --version
Client: Docker Engine - Community
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:08:17 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:02 2023
  OS/Arch:          linux/amd64
  Experimental:     false
==================================================
docker compose version
Docker Compose version v2.23.3-desktop.2

Hi @nvvnravi ,

I see youā€™re looking at the Ozone Docs: Manual Setup . Following a recent refactoring on the Ozone repos those docs need to be updated - this will be done shortly.

In the mean time, you can find instructions to run Ozone in the README of the Ozone Distro repo (on main branch).

(Make sure to remove your volumes and containers beforehand).

Let me know if that doesnā€™t work.