This is what I do to reproduce this consistently
## Deploy with storage
juju deploy postgresql juju deploy ./nextcloud_ubuntu-20.04-amd64_ubuntu-18.04-amd64.charm --storage datadir=ebs,1G juju relate nextcloud:db postgresql:db
## Remove unit and reattach storage juju remove-unit nextcloud/0 juju add-unit nextcloud --attach-storage datadir/0
This is what I do to reproduce this consistently
## Deploy with storage
juju deploy postgresql ubuntu- 20.04-amd64_ ubuntu- 18.04-amd64. charm --storage datadir=ebs,1G
juju deploy ./nextcloud_
juju relate nextcloud:db postgresql:db
## Remove unit and reattach storage
juju remove-unit nextcloud/0
juju add-unit nextcloud --attach-storage datadir/0