logicalDump: Conflict. The container name "dblab_ld_xxxxxx" is already in use by container.
Goal
Failed to run the data retrieval service: failed to create container "dblab_ld_xxxxxx": Error response from daemon: Conflict. The container name "dblab_ld_xxxxxx" is already in use by container.
From DLE log:
2022/06/06 18:22:01 dump.go:239: [INFO] Run job: logicalDump
2022/06/06 18:22:01 tools.go:402: [INFO] Docker image "postgresai/extended-postgres:14" already exists locally
2022/06/06 18:22:01 networks.go:120: [DEBUG] Container c8cic40rn5fmbqu0olo0 has been connected to dle_network_c8cic40rn5fmbqu0olo0
2022/06/06 18:22:01 tools.go:133: [DEBUG] Virtualization system: docker
2022/06/06 18:22:01 tools.go:143: [DEBUG] [{bind /var/lib/dblab/dblab_pool/dump /var/lib/dblab/dblab_pool/dump false 0xc0002410e0 <nil> <nil>} {bind /sys/kernel/debug /sys/kernel/debug false 0xc0002410f8 <nil> <nil>} {bind /lib/modules /lib/modules true 0xc000241110 <nil> <nil>} {bind /proc /host_proc true 0xc000241128 <nil> <nil>} {bind /var/run/docker.sock /var/run/docker.sock false 0xc000241140 <nil> <nil>} {bind /var/lib/dblab/dblab_pool/data /var/lib/dblab/dblab_pool/data false 0xc000241158 <nil> <nil>} {bind /home/ubuntu/.dblab/engine/configs /home/dblab/configs true 0xc000241170 <nil> <nil>} {bind /home/ubuntu/.dblab/engine/meta /home/dblab/meta false 0xc000241188 <nil> <nil>}]
2022/06/06 18:22:01 dump.go:276: [ERROR] Error response from daemon: Conflict. The container name "/dblab_ld_c8cic40rn5fmbqu0olo0" is already in use by container "6fafd1a296a2f681b013aad83f7618780fd7e13f43cbe70c8c4deec0310b09f8". You have to remove (or rename) that container to be able to reuse that name.
2022/06/06 18:22:01 main.go:179: [ERROR] Failed to run the data retrieval service: failed to create container "dblab_ld_c8cic40rn5fmbqu0olo0": Error response from daemon: Conflict. The container name "/dblab_ld_c8cic40rn5fmbqu0olo0" is already in use by container "6fafd1a296a2f681b013aad83f7618780fd7e13f43cbe70c8c4deec0310b09f8". You have to remove (or rename) that container to be able to reuse that name.
2022/06/06 18:22:01 main.go:180: [INFO] If you have problems or questions, please contact Postgres.ai: https://postgres.ai/contact
Steps to reproduce:
- start dblab server container, wait for the
logicalDump
job to start and the dblab_ld_xxxxxx container to be in running state - stop dblab_server container
- stop dblab_ld_xxxxxx container
- start dblab_server container - and see DLE log
TODO / How to implement
try to start existing container.
Acceptance criteria
the dblab_ld_xxxxxx container is used if it exists
Edited by Vitaliy Kukharik