After I changed API version in compose file and applied compose up -d, new API started and failed:
ay 29 01:13:13 b58d2dc157d6 api[999]: Running node-supervisor with
May 29 01:13:13 b58d2dc157d6 api[999]: program ‘index.js’
May 29 01:13:13 b58d2dc157d6 api[999]: --watch ‘src’
May 29 01:13:13 b58d2dc157d6 api[999]: --extensions ‘js,node,coffee,sbvr,json,sql,pegjs,ts’
May 29 01:13:13 b58d2dc157d6 api[999]: --exec ‘node’
May 29 01:13:13 b58d2dc157d6 api[999]: Starting child process with ‘node index.js’
May 29 01:13:13 b58d2dc157d6 api[999]: Watching directory ‘/usr/src/app/src’ for changes.
May 29 01:13:13 b58d2dc157d6 api[999]: Press rs for restarting the process.
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “11.0.0-modified-at”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “11.0.0-modified-at”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “11.0.1-modified-at”
May 29 01:13:16 b58d2dc157d6 api[999]: Successfully executed standard models.
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “11.0.0-modified-at”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “11.0.1-modified-at”
May 29 01:13:16 b58d2dc157d6 api[999]: Successfully executed migrations model.
May 29 01:13:16 b58d2dc157d6 api[999]: Loading application config
May 29 01:13:16 b58d2dc157d6 api[999]: Parsing GET /Auth/permission?$select=id&$filter=name eq ‘resin.device_type.get’
May 29 01:13:16 b58d2dc157d6 api[999]: Parsing GET /Auth/user?$select=id&$filter=username eq ‘guest’
May 29 01:13:16 b58d2dc157d6 api[999]: Running GET /Auth/permission?$select=id&$filter=name eq ‘resin.device_type.get’
May 29 01:13:16 b58d2dc157d6 api[999]: Running GET /Auth/user?$select=id&$filter=username eq ‘guest’
May 29 01:13:16 b58d2dc157d6 api[999]: SELECT “permission”.“id”
May 29 01:13:16 b58d2dc157d6 api[999]: FROM “permission”
May 29 01:13:16 b58d2dc157d6 api[999]: WHERE (“permission”.“name”) IS NOT NULL AND (“permission”.“name”) = ($1) [ ‘resin.device_type.get’ ]
May 29 01:13:16 b58d2dc157d6 api[999]: SELECT “user”.“id”
May 29 01:13:16 b58d2dc157d6 api[999]: FROM “user”
May 29 01:13:16 b58d2dc157d6 api[999]: WHERE (“user”.“username”) IS NOT NULL AND (“user”.“username”) = ($1) [ ‘guest’ ]
May 29 01:13:16 b58d2dc157d6 api[999]: Parsing POST /Auth/permission?returnResource=false
May 29 01:13:16 b58d2dc157d6 api[999]: Running POST /Auth/permission?returnResource=false
May 29 01:13:16 b58d2dc157d6 api[999]: INSERT INTO “permission” (“name”)
May 29 01:13:16 b58d2dc157d6 api[999]: VALUES ($1) [ ‘resin.device_type.get’ ]
May 29 01:13:16 b58d2dc157d6 api[999]: Insert ID: permission 73
May 29 01:13:16 b58d2dc157d6 api[999]: Parsing GET /Auth/user__has__permission?$select=id&$filter=(user eq 1) and (permission eq 73)
May 29 01:13:16 b58d2dc157d6 api[999]: Running GET /Auth/user__has__permission?$select=id&$filter=(user eq 1) and (permission eq 73)
May 29 01:13:16 b58d2dc157d6 api[999]: SELECT “user-has-permission”.“id”
May 29 01:13:16 b58d2dc157d6 api[999]: FROM “user-has-permission”
May 29 01:13:16 b58d2dc157d6 api[999]: WHERE (“user-has-permission”.“user”) IS NOT NULL AND (“user-has-permission”.“user”) = ($1)
May 29 01:13:16 b58d2dc157d6 api[999]: AND (“user-has-permission”.“permission”) IS NOT NULL AND (“user-has-permission”.“permission”) = ($2) [ 1, 73 ]
May 29 01:13:16 b58d2dc157d6 api[999]: Parsing POST /Auth/user__has__permission?returnResource=false
May 29 01:13:16 b58d2dc157d6 api[999]: Running POST /Auth/user__has__permission?returnResource=false
May 29 01:13:16 b58d2dc157d6 api[999]: INSERT INTO “user-has-permission” (“user”, “permission”)
May 29 01:13:16 b58d2dc157d6 api[999]: VALUES ($1, $2) [ 1, 73 ]
May 29 01:13:16 b58d2dc157d6 api[999]: Insert ID: user__has__permission 1
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00006”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00007”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00008”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00009”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00010”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00011”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00012”
May 29 01:13:16 b58d2dc157d6 api[999]: Running migration “00013”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00014”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00015”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00016”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00017”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00018”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00019”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00020”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00021”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00022”
May 29 01:13:17 b58d2dc157d6 api[999]: Running migration “00023”
May 29 01:13:17 b58d2dc157d6 api[999]: Error while executing migrations, rolled back
May 29 01:13:17 b58d2dc157d6 api[999]: /usr/src/app/node_modules/@resin/pinejs/out/database-layer/db.js:44
May 29 01:13:17 b58d2dc157d6 api[999]: throw new DatabaseError(err);
May 29 01:13:17 b58d2dc157d6 api[999]: ^
May 29 01:13:17 b58d2dc157d6 api[999]: DatabaseError: current transaction is aborted, commands ignored until end of transaction block
May 29 01:13:17 b58d2dc157d6 api[999]: at wrapDatabaseError (/usr/src/app/node_modules/@resin/pinejs/out/database-layer/db.js:44:15)
May 29 01:13:17 b58d2dc157d6 api[999]: From previous event:
May 29 01:13:17 b58d2dc157d6 api[999]: at PostgresTx.executeSql (/usr/src/app/node_modules/@resin/pinejs/out/database-layer/db.js:156:19)
May 29 01:13:17 b58d2dc157d6 api[999]: at /usr/src/app/node_modules/@resin/pinejs/out/migrator/migrator.js:122:10
May 29 01:13:17 b58d2dc157d6 api[999]: From previous event:
May 29 01:13:17 b58d2dc157d6 api[999]: at lockMigrations (/usr/src/app/node_modules/@resin/pinejs/out/migrator/migrator.js:120:6)
May 29 01:13:17 b58d2dc157d6 api[999]: at /usr/src/app/node_modules/@resin/pinejs/out/migrator/migrator.js:53:31
May 29 01:13:17 b58d2dc157d6 api[999]: From previous event:
May 29 01:13:17 b58d2dc157d6 api[999]: at Object.exports.run (/usr/src/app/node_modules/@resin/pinejs/out/migrator/migrator.js:47:51)
May 29 01:13:17 b58d2dc157d6 api[999]: at /usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/sbvr-utils.js:216:20
May 29 01:13:17 b58d2dc157d6 api[999]: From previous event:
May 29 01:13:17 b58d2dc157d6 api[999]: at Object.exports.executeModels (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/sbvr-utils.js:213:54)
May 29 01:13:17 b58d2dc157d6 api[999]: at Object.exports.executeModel (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/sbvr-utils.js:212:47)
May 29 01:13:17 b58d2dc157d6 api[999]: at /usr/src/app/node_modules/@resin/pinejs/out/config-loader/config-loader.js:86:37
May 29 01:13:17 b58d2dc157d6 api[999]: at processImmediate (internal/timers.js:456:21)
May 29 01:13:17 b58d2dc157d6 api[999]: at process.topLevelDomainCallback (domain.js:137:15)
May 29 01:13:17 b58d2dc157d6 api[999]: From previous event:
May 29 01:13:17 b58d2dc157d6 api[999]: at /usr/src/app/node_modules/@resin/pinejs/out/config-loader/config-loader.js:82:24
May 29 01:13:17 b58d2dc157d6 api[999]: Program node index.js exited with code 1