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

**URL:** <https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657>\
**Category:** Ozone HIS\
**Tags:** docker\
**Created:** [February 21, 2023, 8:33pm UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657 "2023-02-21T20:33:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmouhtar](https://talk.openmrs.org/user_avatar/talk.openmrs.org/hmouhtar/32/17425_2.png) [@hmouhtar](https://talk.openmrs.org/u/hmouhtar)\
**Post date:** [February 21, 2023, 8:33pm UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/1 "2023-02-21T20:33:02Z")

</div>

Getting the following error using the ozone-docker image:

![Screenshot 2023-02-21 at 21.31.01](https://talk.openmrs.org/uploads/default/original/3X/e/1/e1eaeeec941672f7a1bbd3e3339386bf6ff5bc14.png)

[@Mekom](https://talk.openmrs.org/groups/mekom) Please advise, thanks!

---

<div class="post-metadata">

**Author:** ![hmouhtar](https://talk.openmrs.org/user_avatar/talk.openmrs.org/hmouhtar/32/17425_2.png) [@hmouhtar](https://talk.openmrs.org/u/hmouhtar)\
**Post date:** [February 22, 2023, 1:13am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/2 "2023-02-22T01:13:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nvvnravi](https://talk.openmrs.org/letter_avatar/nvvnravi/32/6_449c533f586939b6e5f246632a46421f.png) [@nvvnravi](https://talk.openmrs.org/u/nvvnravi)\
**Post date:** [December 27, 2023, 10:36am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/3 "2023-12-27T10:36:30Z")

</div>

I am getting similar error when trying to install via the manual process described at [Manual Setup - Docs](https://docs.ozone-his.com/manual-setup/). 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

---

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [December 27, 2023, 11:10am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/4 "2023-12-27T11:10:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nvvnravi](https://talk.openmrs.org/letter_avatar/nvvnravi/32/6_449c533f586939b6e5f246632a46421f.png) [@nvvnravi](https://talk.openmrs.org/u/nvvnravi)\
**Post date:** [December 27, 2023, 1:38pm UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/5 "2023-12-27T13:38:19Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![ersan](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ersan/32/18137_2.png) [@ersan](https://talk.openmrs.org/u/ersan)\
**Post date:** [December 28, 2023, 10:44am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/6 "2023-12-28T10:44:32Z")

</div>

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

```auto
docker --version

```

---

<div class="post-metadata">

**Author:** ![nvvnravi](https://talk.openmrs.org/letter_avatar/nvvnravi/32/6_449c533f586939b6e5f246632a46421f.png) [@nvvnravi](https://talk.openmrs.org/u/nvvnravi)\
**Post date:** [December 28, 2023, 10:59am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/7 "2023-12-28T10:59:29Z")

</div>

```bash
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

```

---

<div class="post-metadata">

**Author:** ![mksrom](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksrom/32/20221_2.png) [@mksrom](https://talk.openmrs.org/u/mksrom)\
**Post date:** [January 2, 2024, 9:55am UTC](https://talk.openmrs.org/t/ozone-docker-error-error-decoding-volumes-0-invalid-spec-opt-env-substitution-files-empty-section-between-colons/38657/8 "2024-01-02T09:55:15Z")

</div>

Hi @nvvnravi ,

I see you’re looking at the [Ozone Docs: Manual Setup](https://docs.ozone-his.com/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](https://github.com/ozone-his/ozone-distro) repo (on `main` branch).

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

Let me know if that doesn’t work.
