# Get Stuck at \`Installing Service app ......\` with multiple Named Volumes

**URL:** <https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689>\
**Category:** balenaOS\
**Created:** [April 3, 2020, 7:50am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689 "2020-04-03T07:50:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarlyon](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@scarlyon](https://forums.balena.io/u/scarlyon)\
**Post date:** [April 3, 2020, 7:50am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/1 "2020-04-03T07:50:47Z")

</div>

Here is my simple `docker-compose.yml` file:

```auto
version: "2.1"

volumes:
  resin-data:
  docker-data:
  app-data:

services:
  app:
    image: eclipse-mosquitto
    restart: always
    privileged: true
    network_mode: host
    volumes:
      - 'resin-data:/data'
      - 'docker-data:/var/lib/docker'
      - 'app-data: /var/lib/app'

```

As you could see, I have defined a couple of new named volumes: `docker-data` & `app-data`.  
But the built service is not started:

```auto
$ balena push 192.168.137.242 --nocache
[Info] Starting build on device 192.168.137.242

[Live] Waiting for device state to settle...
[Info] Streaming device logs...
[Live] Watching for file changes...
[Logs] [2020-4-3 00:46:47] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'
[Logs] [2020-4-3 00:46:47] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'
[Logs] [2020-4-3 00:46:50] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'
[Logs] [2020-4-3 00:46:54] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'
[Logs] [2020-4-3 00:47:03] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'
[Logs] [2020-4-3 00:47:19] Installing service 'app sha256:e2f58db07ce196428b91294a323d35c75dc477505296b9bc97093dd2ac36ebd9'

```

Here is the balena version on hostOS:

```auto
root@balena:~# balena --version
Docker version 18.09.10-dev, build 7cb464a406748016f2df0c31a9851d20456a3d31

```

And balena-cli:

```auto
$ balena --version
11.28.11

```

Cheers

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 3, 2020, 8:37am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/4 "2020-04-03T08:37:00Z")

</div>

Hi there, I just tried this on a device and everything seems to be working fine. I first pushed the DC file with only the `resin-data` volume, then modified the DC file to also have the two added volumes, pushed again, and I got:

```auto
[Live] Watching for file changes...
[Live] Waiting for device state to settle...
[Logs] [4/3/2020, 10:35:11 AM] Creating volume 'docker-data'
[Logs] [4/3/2020, 10:35:11 AM] Creating volume 'app-data'
[Logs] [4/3/2020, 10:35:11 AM] Killing service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:11 AM] [app] 1585902911: mosquitto version 1.6.9 terminating
[Logs] [4/3/2020, 10:35:12 AM] Service exited 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:12 AM] Killed service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:13 AM] Installing service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:15 AM] Installing service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:17 AM] Installing service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'
[Logs] [4/3/2020, 10:35:22 AM] Installing service 'app sha256:1f0df9de6d002f4a82a14b8a6b10a599ca212edd169a2a047f89151bb0d6d948'

```

Which indicated that the new volumes were created as expected. What exactly do you expect to see in this case?

---

<div class="post-metadata">

**Author:** ![scarlyon](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@scarlyon](https://forums.balena.io/u/scarlyon)\
**Post date:** [April 3, 2020, 8:44am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/5 "2020-04-03T08:44:39Z")

</div>

Hey, @sradevski

Can you see anything else except `Installing service`?

It should be installed saying `Installed service` , and `Starting service`, `Started service`.

Then we are good to go…

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 3, 2020, 8:48am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/6 "2020-04-03T08:48:38Z")

</div>

I see, I actually cancelled the process because you were talking about the build not starting due to the changes to the dockerfile. I’ll have a look now.

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 3, 2020, 9:29am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/8 "2020-04-03T09:29:58Z")

</div>

Hi there, so the issue you are getting is due to the fact that there is an empty space after `app-data` in `- 'app-data: /var/lib/app'`. If you remove that, it should work as expected. We already opened an issue [https://github.com/balena-io/balena-supervisor/issues/1247](https://github.com/balena-io/balena-supervisor/issues/1247) so cases like this are handled more gracefully.

---

<div class="post-metadata">

**Author:** ![scarlyon](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@scarlyon](https://forums.balena.io/u/scarlyon)\
**Post date:** [April 3, 2020, 9:31am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/9 "2020-04-03T09:31:21Z")

</div>

Yikes. Thanks a lot, mate! 👍

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 3, 2020, 9:32am UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/10 "2020-04-03T09:32:03Z")

</div>

You are welcome 🙂

---

<div class="post-metadata">

**Author:** ![srlowe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/srlowe/32/2638_2.png) [@srlowe](https://forums.balena.io/u/srlowe)\
**Post date:** [April 7, 2020, 12:27pm UTC](https://forums.balena.io/t/get-stuck-at-installing-service-app-with-multiple-named-volumes/89689/12 "2020-04-07T12:27:01Z")

</div>

Just a note that this issue has now been resolved, and spaces in volume definitions should no longer cause problems in supervisor versions \>=11.0.3
