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:
[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?
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.
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 so cases like this are handled more gracefully.