I am an openbalena user (v2.0.0), and balenacli v12.2.2, I have encountered an error while checking the ‘device information’ of a device (rpi4 with balenaOS 2.44.0+rev3):
command
balena device <short-uuid>
stacktrace
BalenaDeviceNotFound: Device not found: <short-uuid>
at /usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:349:35
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:126:23)
From previous event:
at /usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:347:26
From previous event:
at Object.get (/usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:336:31)
at Object.get (/usr/local/lib/balena-cli/node_modules/balena-sdk/build/util/callbacks.js:19:27)
at DeviceCmd.run (/usr/local/lib/balena-cli/build/actions-oclif/device/index.js:14:38)
at DeviceCmd._run (/usr/local/lib/balena-cli/node_modules/@oclif/command/lib/command.js:44:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
but when i try the
balena device <long-uuid>
it correctly works.
I have tried others command like balena logs and still doesn’t work with the short uuid, any idea where the problem could be? Or I should stop using the short version?
I don’t see anything related to short-uuid handling in CLI/SDK versions around the time, so I would suspect it’s due to some sort of interaction between the client and the backend. Can you check the API logs? That is, SSH into the API, tail logs with journalctl -fn100 and try the command again.
Parsing GET /resin/device(<short-uuid>)?$select=overall_status
Failed to translate url: {
"resource": "device",
"key": {
"bind": 0
},
"options": {
"$select": {
"properties": [
{
"name": "overall_status",
"property": null
}
]
}
}
} GET SyntaxError: Could not resolve relationship mapping
at OData2AbstractSQL.ResolveRelationship (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:514:19)
at OData2AbstractSQL.ReferencedField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:562:46)
at OData2AbstractSQL.AliasSelectField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:546:38)
at AddSelectFields._.reject.map.field (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:532:36)
at arrayMap (/usr/src/app/node_modules/lodash/lodash.js:639:23)
at Function.map (/usr/src/app/node_modules/lodash/lodash.js:9556:14)
at interceptor (/usr/src/app/node_modules/lodash/lodash.js:16993:35)
at thru (/usr/src/app/node_modules/lodash/lodash.js:8797:14)
at /usr/src/app/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/usr/src/app/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4373:14)
at LazyWrapper.lazyValue [as value] (/usr/src/app/node_modules/lodash/lodash.js:1859:16)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4371:25)
at LodashWrapper.wrapperValue (/usr/src/app/node_modules/lodash/lodash.js:9052:14)
at OData2AbstractSQL.AddSelectFields (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:533:18)
at OData2AbstractSQL.PathSegment (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:351:18)
at OData2AbstractSQL.match (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:177:32)
at memoizeWeak (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:55:51)
at /usr/src/app/node_modules/es5-ext/function/#/partial.js:14:16
at /usr/src/app/node_modules/memoizee/lib/configure-map.js:61:24
at /usr/src/app/node_modules/memoizee/lib/weak.js:87:21
at memoizedOdata2AbstractSQL (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:78:56)
at exports.translateUri (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:184:34)
at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at MappingPromiseArray.PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:101:18)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Holder$2._callFunction (<anonymous>:19:29)
at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
SyntaxError: Could not resolve relationship mapping
at OData2AbstractSQL.ResolveRelationship (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:514:19)
at OData2AbstractSQL.ReferencedField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:562:46)
at OData2AbstractSQL.AliasSelectField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:546:38)
at AddSelectFields._.reject.map.field (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:532:36)
at arrayMap (/usr/src/app/node_modules/lodash/lodash.js:639:23)
at Function.map (/usr/src/app/node_modules/lodash/lodash.js:9556:14)
at interceptor (/usr/src/app/node_modules/lodash/lodash.js:16993:35)
at thru (/usr/src/app/node_modules/lodash/lodash.js:8797:14)
at /usr/src/app/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/usr/src/app/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4373:14)
at LazyWrapper.lazyValue [as value] (/usr/src/app/node_modules/lodash/lodash.js:1859:16)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4371:25)
at LodashWrapper.wrapperValue (/usr/src/app/node_modules/lodash/lodash.js:9052:14)
at OData2AbstractSQL.AddSelectFields (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:533:18)
at OData2AbstractSQL.PathSegment (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:351:18)
at OData2AbstractSQL.match (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:177:32)
at memoizeWeak (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:55:51)
at /usr/src/app/node_modules/es5-ext/function/#/partial.js:14:16
at /usr/src/app/node_modules/memoizee/lib/configure-map.js:61:24
at /usr/src/app/node_modules/memoizee/lib/weak.js:87:21
at memoizedOdata2AbstractSQL (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:78:56)
at exports.translateUri (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:184:34)
at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at MappingPromiseArray.PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:101:18)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Holder$2._callFunction (<anonymous>:19:29)
at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
Yeah, I see now. The last supported CLI version for open-balena v2.X is in fact v12.2.1. I now see the note we had about this was quite confusing, in that it said “<12.2.2” which means “less than but not equal”. CLI v12.2.2 introduced the breaking change. Everything should work fine if you downgrade to v12.2.1, or upgrade openBalena to v3.X. Apologies for the confusion.
now both the commands with short/long uuid give an error, but only with the ‘balena device’ command (balena logs now works)
balena device <long-uuid>
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,device, <long-uuid>] length=4
[debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,device, <long-uuid>] length=4
BalenaRequestError: Request error: Internal Server Error
BalenaRequestError: Request error: Internal Server Error
at /usr/local/lib/balena-cli/node_modules/balena-request/build/request.js:189:17
From previous event:
at /usr/local/lib/balena-cli/node_modules/balena-request/build/request.js:181:62
From previous event:
at Object.exports.send (/usr/local/lib/balena-cli/node_modules/balena-request/build/request.js:180:8)
at /usr/local/lib/balena-cli/node_modules/balena-sdk/node_modules/balena-pine/es5/index.js:37:22
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:126:23)
From previous event:
at BalenaPine._request (/usr/local/lib/balena-cli/node_modules/balena-sdk/node_modules/balena-pine/es5/index.js:29:34)
at BalenaPine.PinejsClientCoreFactory.PinejsClientCore.request (/usr/local/lib/balena-cli/node_modules/pinejs-client-core/es5/index.js:982:29)
at BalenaPine.PinejsClientCoreTemplate.get (/usr/local/lib/balena-cli/node_modules/pinejs-client-core/es5/index.js:749:21)
at /usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:355:26
From previous event:
at Object.get (/usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:336:31)
at Object.getStatus (/usr/local/lib/balena-cli/node_modules/balena-sdk/build/models/device.js:2167:18)
at Object.getStatus (/usr/local/lib/balena-cli/node_modules/balena-sdk/build/util/callbacks.js:19:27)
at DeviceCmd.run (/usr/local/lib/balena-cli/build/actions-oclif/device/index.js:14:61)
server:
Parsing GET /resin/device?$filter=startswith(uuid,%<longuuid>%27)&$select=overall_status
Failed to translate url: {
"resource": "device",
"options": {
"$filter": [
"call",
{
"args": [
{
"name": "uuid",
"property": null
},
{
"bind": 0
}
],
"method": "startswith"
}
],
"$select": {
"properties": [
{
"name": "overall_status",
"property": null
}
]
}
}
} GET SyntaxError: Could not resolve relationship mapping
at OData2AbstractSQL.ResolveRelationship (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:514:19)
at OData2AbstractSQL.ReferencedField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:562:46)
at OData2AbstractSQL.AliasSelectField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:546:38)
at AddSelectFields._.reject.map.field (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:532:36)
at arrayMap (/usr/src/app/node_modules/lodash/lodash.js:639:23)
at Function.map (/usr/src/app/node_modules/lodash/lodash.js:9556:14)
at interceptor (/usr/src/app/node_modules/lodash/lodash.js:16993:35)
at thru (/usr/src/app/node_modules/lodash/lodash.js:8797:14)
at /usr/src/app/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/usr/src/app/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4373:14)
at LazyWrapper.lazyValue [as value] (/usr/src/app/node_modules/lodash/lodash.js:1859:16)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4371:25)
at LodashWrapper.wrapperValue (/usr/src/app/node_modules/lodash/lodash.js:9052:14)
at OData2AbstractSQL.AddSelectFields (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:533:18)
at OData2AbstractSQL.PathSegment (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:351:18)
at OData2AbstractSQL.match (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:177:32)
at memoizeWeak (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:55:51)
at /usr/src/app/node_modules/es5-ext/function/#/partial.js:14:16
at /usr/src/app/node_modules/memoizee/lib/configure-map.js:61:24
at /usr/src/app/node_modules/memoizee/lib/weak.js:87:21
at memoizedOdata2AbstractSQL (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:78:56)
at exports.translateUri (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:184:34)
at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at MappingPromiseArray.PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:101:18)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Holder$2._callFunction (<anonymous>:19:29)
at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
SyntaxError: Could not resolve relationship mapping
at OData2AbstractSQL.ResolveRelationship (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:514:19)
at OData2AbstractSQL.ReferencedField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:562:46)
at OData2AbstractSQL.AliasSelectField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:546:38)
at AddSelectFields._.reject.map.field (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:532:36)
at arrayMap (/usr/src/app/node_modules/lodash/lodash.js:639:23)
at Function.map (/usr/src/app/node_modules/lodash/lodash.js:9556:14)
at interceptor (/usr/src/app/node_modules/lodash/lodash.js:16993:35)
at thru (/usr/src/app/node_modules/lodash/lodash.js:8797:14)
at /usr/src/app/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/usr/src/app/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4373:14)
at LazyWrapper.lazyValue [as value] (/usr/src/app/node_modules/lodash/lodash.js:1859:16)
at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4371:25)
at LodashWrapper.wrapperValue (/usr/src/app/node_modules/lodash/lodash.js:9052:14)
at OData2AbstractSQL.AddSelectFields (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:533:18)
at OData2AbstractSQL.PathSegment (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:351:18)
at OData2AbstractSQL.match (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:177:32)
at memoizeWeak (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:55:51)
at /usr/src/app/node_modules/es5-ext/function/#/partial.js:14:16
at /usr/src/app/node_modules/memoizee/lib/configure-map.js:61:24
at /usr/src/app/node_modules/memoizee/lib/weak.js:87:21
at memoizedOdata2AbstractSQL (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:78:56)
at exports.translateUri (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:184:34)
at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at MappingPromiseArray.PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:101:18)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
at Holder$2._callFunction (<anonymous>:19:29)
at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
Can you clarify how you downgraded the CLI and provide the result of balena version please? Version v12.2.1 shouldn’t be referencing the faulty overall_status field at all, so perhaps something went wrong in your downgrade.
Hi Matteo. It’s possible that the downgrade left behind some files from the newest version. Could you try removing the /usr/local/lib/balena-cli/ folder and installing v12.2.1 of the CLI again?