Device doesn't appear into the devices list

Hi,

I recently discoverd OpenBalena and I’m trying to setup everything to understand if it’s able to answer my needs.

Everything seems to be working well but I can’t see my device into my device list after booting it up.

The only thing which may be problematic is that my device is a RAK7244.

Here is what I did and what is the configuration right now :

  • I installed openbalena to a brand fresh VPS with Ubuntu 18.04
  • I followed the basic instructions from the tutorial
  • I configured the DNS entries as : openbalena.mydomain.com and a CNAME “*.openbalena” that redirects everything to openbalena.mydomain.com (Cloudflare)
  • I registred my openbalena account from the VPS with “-d openbalena.mydomain.com -c”
  • I can dig all the DNS entries and they are all redirected to the right VPS IP address
  • the curl command “curl https://api.openbalena.mydomain.com/ping” returns “OK”
  • I installed the BalenaCLI on my Mac and i’m able to login to the open balena instance installed on the VPS, create an app and “os configure” the Rpi4 dev img downloaded in ethernet mode enabled
  • I flashed the img and introduce it into the RAK7244.
  • I can ping the device from my LAN, SSH into it and ping 8.8.8.8 and all the DNS records from my domain

Can I force the registration from the device in SSH to find where the issue comes from ?

Thanks for your help!

Hi, a few questions

Could you confirm that the device is connecting to your server? You can do this by SSHing into the device and looking at the file /mnt/boot/config.json. The apiEndpoint configuration key should show the correct address to your server

A quick way to do this is with the command cat /mnt/boot/config.json | jq '.apiEndpoint'.

If that shows the correct address, could you take a look at the supervisor logs and share some of the output with us?

If the apiEndpoint shows a different address you can move it to your balena server by using https://www.balena.io/docs/learn/more/masterclasses/advanced-cli/#2-moving-devices-between-applications-and-environments

Please let us know how that works for you
Felipe

Thanks for the answer @pipex.

The apiEndpoint is well configured :

"apiEndpoint": "https://api.openbalena.mydomain.com"

Here is the supervisor log output get by the command journalctl --follow --unit=resin-supervisor:

root@3ae97dc:~# journalctl --follow --unit=resin-supervisor -- Logs begin at Mon 2020-05-11 13:18:42 UTC. -- Jul 15 22:52:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:52:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:52:42 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:52:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:53:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:53:12 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:53:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:53:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:53:42 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:53:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:54:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:54:12 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:54:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:54:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:54:42 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:54:42 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}} Jul 15 22:55:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap {} Jul 15 22:55:12 3ae97dc resin-supervisor[2047]: [info] New device detected. Provisioning... Jul 15 22:55:12 3ae97dc resin-supervisor[2047]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"User ID must be a valid integer","stack":"Error: User ID must be a valid integer\n at /usr/src/app/dist/[app.js:2:2630094](http://app.js:2:2630094/)\n at [PassThroughHandlerContext.finallyHandler](http://passthroughhandlercontext.finallyhandler/) (/usr/src/app/dist/[app.js:2:1748917)](http://app.js:2:1748917)/)\n at [PassThroughHandlerContext.tryCatcher](http://passthroughhandlercontext.trycatcher/) (/usr/src/app/dist/[app.js:2:220284)](http://app.js:2:220284)/)\n at [Promise._settlePromiseFromHandler](http://promise._settlepromisefromhandler/) (/usr/src/app/dist/[app.js:2:1708447)](http://app.js:2:1708447)/)\n at [Promise._settlePromise](http://promise._settlepromise/) (/usr/src/app/dist/[app.js:2:1709730)](http://app.js:2:1709730)/)\n at [Promise._settlePromise0](http://promise._settlepromise0/) (/usr/src/app/dist/[app.js:2:1710770)](http://app.js:2:1710770)/)\n at [Promise._settlePromises](http://promise._settlepromises/) (/usr/src/app/dist/[app.js:2:1712478)](http://app.js:2:1712478)/)\n at _drainQueueStep (/usr/src/app/dist/[app.js:2:1715412)](http://app.js:2:1715412)/)\n at _drainQueue (/usr/src/app/dist/[app.js:2:1715308)](http://app.js:2:1715308)/)\n at [Async._drainQueues](http://async._drainqueues/) (/usr/src/app/dist/[app.js:2:1716625)](http://app.js:2:1716625)/)\n at [Immediate.Async.drainQueues](http://immediate.async.drainqueues/) [as _onImmediate] (/usr/src/app/dist/[app.js:2:1715217)](http://app.js:2:1715217)/)\n at processImmediate (internal/[timers.js:456:21)](http://timers.js:456:21)/)"}}

I’m currently checking these two topics because I found the “User ID must be a valid integer” sentence into :

I’m currenlty finding how to downgrade supervisor because it seems to resolve the issue : open-balena-api v0.76.3 sql migrations - #32 by mad666

Can’t really find how to downgrade supervisor.
I tried with the production Rpi4 image and got same result :frowning:

Hi,
This looks like an incompatibility between the supervisor and open-balena versions.
There was a change in open-balena-api that removed the userId field from the config, but it was re-added later (in v0.72.4) to keep the compatibility.
And the supervisor does not require this field since v11.3.8.
balenaOS has this supervisor version since `v2.50.0.

Could you please confirm what open-balena-api and balenaOS versions you use (the content of /etc/os-release on the device has the necessary info about the balenaOS).

Here is the result of the command :

root@851d418:~# cat /etc/os-release
ID="balena-os"
NAME="balenaOS"
VERSION="[2.51.1+rev1](http://2.51.1+rev1/)"
VERSION_ID="[2.51.1+rev1](http://2.51.1+rev1/)"
PRETTY_NAME="balenaOS [2.51.1+rev1](http://2.51.1+rev1/)"
MACHINE="raspberrypi4-64"
VARIANT="Development"
VARIANT_ID="dev"
META_BALENA_VERSION="[2.51.1](http://2.51.0.1/)"
RESIN_BOARD_REV="7e16ff9"
META_RESIN_REV="bb055d0"
SLUG="raspberrypi4-64"

What can I do ?
Thanks for your help

Hi there,
thank you for sharing the command output, it would be also useful for us if you could share with us the open-balena-api version you are running. You should be able to do this in two ways:

  1. Take a look at what docker image is used on your deployment.
  2. Open the cloned repo code and copy - paste the contents into ./VERSION and. /compose/versions files
    Just to clarify, these are two files that should remain as they are.

Having said that if these files have not been altered, it should be enough to re-flash the device with a balenaOS version lower or equal than 2.49.0, since unfortunately currently openBalena is not compatible with versions of balenaOS higher than 2.49.0.

Oh sorry I forgot the open-balena-api version.

  1. Here is the complete list of all the images run by containers running on my VPS (dedicated to openabelana) returned by the command docker image ls :

  1. cat VERSION from the open-balena folder gave me 2.0.3 and the command cat ./compose/versions gave me this :

    export OPENBALENA_API_VERSION_TAG=v0.19.5
    export OPENBALENA_DB_VERSION_TAG=v2.0.3
    export OPENBALENA_MDNS_PUBLISHER_VERSION_TAG=v1.6.2
    export OPENBALENA_REGISTRY_VERSION_TAG=v2.11.1
    export OPENBALENA_S3_VERSION_TAG=v2.8.5
    export OPENBALENA_VPN_VERSION_TAG=v8.10.0

I didn’t modify anything.
I’m following your advice, I will re-flash the device with BalenaOS 2.49.0 and keep you updated.

Thank you @PastaGringo for this update! Keep us posted :muscle:

It’s ok :slight_smile:

Pretty much everything works well with balenaos v2.48.0 (I didn’t find any link to download the v2.49.0).

The only thing which is not working is the command balena device UUID.
It returns this error (with --debug) :

[debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,device,6750cbf] 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-pine/es2018/index.js:20: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-pine/es2018/index.js:12:34)
    at BalenaPine.request (/usr/local/lib/balena-cli/node_modules/pinejs-client-core/es2018/index.js:952:29)
    at BalenaPine.get (/usr/local/lib/balena-cli/node_modules/pinejs-client-core/es2018/index.js:701: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.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:13:55)
    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)

Additional information may be available with the `--debug` flag.
For help, visit our support forums: https://forums.balena.io
For bug reports or feature requests, see: https://github.com/balena-io/balena-cli/issues/

Is it normal ?

Another question I if may ask, I’m trying to understand if I do everything correctly.
I have now an application which works when deployed to the device.
Deployed with the command balena deploy myapp --logs --source . --build

So now I want to deploy devices which start automaticaly the application after the device startup.

So I flashed the SD card with “balena os configure balena.img --app myapp” and the device is connected to the openbalena instance but it doesn’t get the application. So from the myapp folder I did again the command balena deploy myapp and the device get and ran the application.

Do I need to deploy the application manualy from openbalena ? Or I’m missing something ?
Thanks for your help!

Hi @PastaGringo – glad to hear that the downgrade to 2.48 made things work with OpenBalena.

As far as the balena device problem goes, I don’t think that should be happening. I’d like to check a few things:

  • I assume you’re running balena device [uuid of your device] – have I got that right? Are you using a shortened UUID or the full UUID?
  • What’s the output of balena devices? Do you see the UUId of your device there?
  • What do you see in the API logs on your openBalena instance?

As for the delay in deployment, I’m not sure what’s going on there. I’m checking with my colleagues and will get back to you shortly.

All the best,
Hugh

Hi @saintaardvark,

I flashed again and now the application is well download and run at startup, cool ! I was too hurry :slight_smile:

Regarding the devices, here is the return after the command balena devices :

ID UUID    DEVICE NAME   DEVICE TYPE     APPLICATION NAME STATUS IS ONLINE SUPERVISOR VERSION OS VERSION           DASHBOARD URL
6  6750cbf floral-meadow raspberrypi4-64 helium-gtw-diy   Idle   false     10.8.0             balenaOS 2.48.0+rev1 https://dashboard.openbalena.asappli.com/devices/6750cbf57f8f469d88c29fe05727f912/summary
7  4d990ed floral-wind   raspberrypi4-64 helium-gtw-diy   Idle   true      10.8.0             balenaOS 2.48.0+rev1 https://dashboard.openbalena.asappli.com/devices/4d990ede1d6546f07c76b703ba14abcb/summary

UUID displayed is the short UUID or the full ?

When I run balena device 4d990ed :

BalenaRequestError: Request error: Internal Server Error

Additional information may be available with the `--debug` flag.
For help, visit our support forums: https://forums.balena.io
For bug reports or feature requests, see: https://github.com/balena-io/balena-cli/issues/

Here is the log from the openbalena_api_1 container get by the command docker exec -it openbalena_api_1 journalctl -u open-balena-api -fn100 when I did the command balena device 4d990ed :

api.log (223.6 KB)

Error returns GET SyntaxError: Could not resolve relationship mapping

Jul 18 13:46:27 2b3fb4495aae api[857]: } GET SyntaxError: Could not resolve relationship mapping
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.ResolveRelationship (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:514:19)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.ReferencedField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:562:46)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.AliasSelectField (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:546:38)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at AddSelectFields._.reject.map.field (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:532:36)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at arrayMap (/usr/src/app/node_modules/lodash/lodash.js:639:23)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Function.map (/usr/src/app/node_modules/lodash/lodash.js:9556:14)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at interceptor (/usr/src/app/node_modules/lodash/lodash.js:16993:35)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at thru (/usr/src/app/node_modules/lodash/lodash.js:8797:14)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at /usr/src/app/node_modules/lodash/lodash.js:4374:28
Jul 18 13:46:27 2b3fb4495aae api[857]:     at arrayReduce (/usr/src/app/node_modules/lodash/lodash.js:683:21)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4373:14)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at LazyWrapper.lazyValue [as value] (/usr/src/app/node_modules/lodash/lodash.js:1859:16)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at baseWrapperValue (/usr/src/app/node_modules/lodash/lodash.js:4371:25)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at LodashWrapper.wrapperValue (/usr/src/app/node_modules/lodash/lodash.js:9052:14)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.AddSelectFields (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:533:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.PathSegment (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:351:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at OData2AbstractSQL.match (/usr/src/app/node_modules/@resin/odata-to-abstract-sql/out/odata-to-abstract-sql.js:177:32)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at memoizeWeak (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:55:51)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at /usr/src/app/node_modules/es5-ext/function/#/partial.js:14:16
Jul 18 13:46:27 2b3fb4495aae api[857]:     at /usr/src/app/node_modules/memoizee/lib/configure-map.js:61:24
Jul 18 13:46:27 2b3fb4495aae api[857]:     at /usr/src/app/node_modules/memoizee/lib/weak.js:87:21
Jul 18 13:46:27 2b3fb4495aae api[857]:     at memoizedOdata2AbstractSQL (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:78:56)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at exports.translateUri (/usr/src/app/node_modules/@resin/pinejs/out/sbvr-api/uri-parser.js:184:34)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at MappingPromiseArray.PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:101:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:574:26)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:432:57)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Holder$2._callFunction (<anonymous>:19:29)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:142:12)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at _drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:131:9)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:147:5)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at Immediate.Async.drainQueues [as _onImmediate] (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at runCallback (timers.js:705:18)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at tryOnImmediate (timers.js:676:5)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at processImmediate (timers.js:658:5)
Jul 18 13:46:27 2b3fb4495aae api[857]:     at process.topLevelDomainCallback (domain.js:120:23)

The entirely log is too verbose to be displayed here sorry :slight_smile:

Thanks for helping!

Hello, this looks it could be caused by a newer CLI version which open-balena is not compatible with yet. What version are you currently using?

Currently the 12.9.1.
Which version do you recommand please?

Hi,
I have consulted our team and they suggest downgrading the CLI to v12.3.3, could you please try that and let us know whether that helps?
Thanks

Hi @mtoman,

I confirm with v12.3.3 it’s working good ! :slight_smile:
Thanks for the help.

I change of subject, is it possible to know the OpenBalena development roadmap ?

Hi,
glad to hear you made it work.
As for OpenBalena roadmap - there is a Roadmap section in the Github readme https://github.com/balena-io/open-balena/blob/master/README.md#roadmap and you can also get an idea from the list of issues https://github.com/balena-io/open-balena/issues . OpenBalena is still in Beta and the development goes fast so this is as close as we can get to the roadmap. I hope this answers your question.

1 Like