Buenos días:
Les comento que estamos tratando de actualizar la versión de sudocu en instancia de prueba. Siguiendo la documentación y corriendo
docker run --rm --env SUDOCU_DB_HOST=db-sudocu --env SUDOCU_DB_NAME=sudocu --env SUDOCU_DB_PORT=5432 --env SUDOCU_DB_USER=postgres --env SUDOCU_DB_PASSWORD=postgres ungs/sudocu-db-instalador:1.0.9 saltó la siguiente respuesta.
Unable to find image 'ungs/sudocu-db-instalador:1.0.9' locally
1.0.9: Pulling from ungs/sudocu-db-instalador
cbdbe7a5bc2a: Already exists
3808f804be2a: Already exists
753b302f10c0: Already exists
3bb8ec292c38: Already exists
2a62574f550f: Already exists
5e2886fdba4f: Already exists
3942ecde8b04: Already exists
29e3dc37fa98: Pull complete
Digest: sha256:523451976e5673c5bde6b810f14b8d9cba3f32ad4f93c368bd20f469451af88a
Status: Downloaded newer image for ungs/sudocu-db-instalador:1.0.9
[INFO] Processed migration 20200616160530-v101
[INFO] Processed migration 20200616160550-v102
[INFO] Processed migration 20200708161716-v103
[INFO] Processed migration 20200708221940-v104
[INFO] Processed migration 20200713175024-v105
[INFO] Processed migration 20200717140044-v106
[INFO] Processed migration 20200721201111-v107
[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: llave duplicada viola restricción de unicidad «documentos_tipos_pkey»
at /usr/local/lib/node_modules/db-migrate/lib/commands/on-complete.js:15:14
at tryCatcher (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/nodeify.js:22:30)
at Promise._settlePromise (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/promise.js:601:21)
at Promise._settlePromiseCtx (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/db-migrate-pg/node_modules/bluebird/js/release/async.js:15:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at Parser.parseErrorMessage (/usr/local/lib/node_modules/db-migrate-pg/node_modules/pg-protocol/dist/parser.js:241:15)
at Parser.handlePacket (/usr/local/lib/node_modules/db-migrate-pg/node_modules/pg-protocol/dist/parser.js:89:29)
at Parser.parse (/usr/local/lib/node_modules/db-migrate-pg/node_modules/pg-protocol/dist/parser.js:41:38)
at Socket.stream.on (/usr/local/lib/node_modules/db-migrate-pg/node_modules/pg-protocol/dist/index.js:8:42)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Revisando la base de datos la tabla documentos_tipos (la que dice que tiene el error de clave duplicada) tiene el id como clave primaria.
Estará bien el comando que corrimos? o le faltará algún parámetro?
Desde ya muchas gracias por su atención.
Saludos,
Marcelo.