openbalena api service index.js exits suddenly :
– Logs begin at Thu 2019-02-28 17:54:14 UTC. –
Feb 28 18:22:19 986d619be1ae api[1830]: resin: Parsing GET /resin/device?$select=id&$filter=uuid eq ‘a40bd2149d456174f3235d62c51fe82d’
Feb 28 18:22:20 986d619be1ae api[1830]: resin: Running GET /resin/device?$filter=startswith(uuid,%27a40bd2149d456174f3235d62c51fe82d%27)
Feb 28 18:22:20 986d619be1ae api[1830]: resin: Running GET /resin/device?$select=id&$filter=uuid eq ‘a40bd2149d456174f3235d62c51fe82d’
Feb 28 18:22:20 986d619be1ae api[1830]: Auth: Running GET /Auth/permission?$select=name&$filter=(is_of__user/any(uhp:(uhp/user eq 2) and ((uhp/expiry_date eq null) or (uhp/expiry_date gt now())))) or (is_of__role/any(rhp:rhp/role/any(r:r/is_of__user/any(uhr:(uhr/user eq 2) and ((uhr/expiry_date eq null) or (uhr/expiry_date gt now()))))))&$orderby=name asc
Feb 28 18:22:20 986d619be1ae api[1830]: resin: SELECT “device”.“created at” AS “created_at”, “device”.“id”, “device”.“actor”, “device”.“uuid”, “device”.“local id” AS “local_id”, “device”.“device name” AS “device_name”, “device”.“note”, “device”.“device type” AS “device_type”, “device”.“belongs to-application” AS “belongs_to__application”, “device”.“is online” AS “is_online”, “device”.“last connectivity event” AS “last_connectivity_event”, “device”.“is connected to vpn” AS “is_connected_to_vpn”, “device”.“last vpn event” AS “last_vpn_event”, “device”.“is locked until-date” AS “is_locked_until__date”, “device”.“logs channel” AS “logs_channel”, “device”.“public address” AS “public_address”, “device”.“vpn address” AS “vpn_address”, “device”.“ip address” AS “ip_address”, “device”.“is on-commit” AS “is_on__commit”, “device”.“download progress” AS “download_progress”, “device”.“status”, “device”.“os version” AS “os_version”, “device”.“os variant” AS “os_variant”, “device”.“supervisor version” AS “supervisor_version”, “device”.“provisioning progress” AS “provisioning_progress”, “device”.“provisioning state” AS “provisioning_state”, “device”.“api port” AS “api_port”, “device”.“api secret” AS “api_secret”, “device”.“is managed by-service instance” AS “is_managed_by__service_instance”, “device”.“should be running-release” AS “should_be_running__release”, “device”.“is managed by-device” AS “is_managed_by__device”
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “device”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “device”.“uuid” LIKE (REPLACE(REPLACE(REPLACE($1, ‘’, ‘\’), ‘_’, ‘_’), ‘%’, ‘%’) || ‘%’) [ ‘a40bd2149d456174f3235d62c51fe82d’ ]
Feb 28 18:22:20 986d619be1ae api[1830]: resin: SELECT “device”.“id”
Feb 28 18:22:20 986d619be1ae api[1830]: FROM (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT “device”.“created at”, “device”.“id”, “device”.“actor”, “device”.“uuid”, “device”.“local id”, “device”.“device name”, “device”.“note”, “device”.“device type”, “device”.“belongs to-application”, “device”.“is online”, “device”.“last connectivity event”, “device”.“is connected to vpn”, “device”.“last vpn event”, “device”.“is locked until-date”, “device”.“logs channel”, “device”.“public address”, “device”.“vpn address”, “device”.“ip address”, “device”.“is on-commit”, “device”.“download progress”, “device”.“status”, “device”.“os version”, “device”.“os variant”, “device”.“supervisor version”, “device”.“provisioning progress”, “device”.“provisioning state”, “device”.“api port”, “device”.“api secret”, “device”.“is managed by-service instance”, “device”.“should be running-release”, “device”.“is managed by-device”
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “device”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE (“device”.“actor” = $1
Feb 28 18:22:20 986d619be1ae api[1830]: OR EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “application” AS “device.belongs to-application”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “device”.“belongs to-application” = “device.belongs to-application”.“id”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “application” AS “device.belongs to-application.depends on-application”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “device.belongs to-application”.“depends on-application” = “device.belongs to-application.depends on-application”.“id”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “device” AS “dev.belongs to-application.depends on-application.owns-device”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “device.belongs to-application.depends on-application”.“id” = “dev.belongs to-application.depends on-application.owns-device”.“belongs to-application”
Feb 28 18:22:20 986d619be1ae api[1830]: AND “dev.belongs to-application.depends on-application.owns-device”.“actor” = $1
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: ))
Feb 28 18:22:20 986d619be1ae api[1830]: ) AS “device”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “device”.“uuid” = $2 [ 18, ‘a40bd2149d456174f3235d62c51fe82d’ ]
Feb 28 18:22:20 986d619be1ae api[1830]: Auth: SELECT “permission”.“name”
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE (EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “user-has-permission” AS “permission.user-has-permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission”.“id” = “permission.user-has-permission”.“permission”
Feb 28 18:22:20 986d619be1ae api[1830]: AND “permission.user-has-permission”.“user” = $1
Feb 28 18:22:20 986d619be1ae api[1830]: AND (“permission.user-has-permission”.“expiry date” IS NULL
Feb 28 18:22:20 986d619be1ae api[1830]: OR “permission.user-has-permission”.“expiry date” > CURRENT_TIMESTAMP)
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: OR EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “role-has-permission” AS “permission.role-has-permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission”.“id” = “permission.role-has-permission”.“permission”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “role” AS “permission.role-has-permission.role”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission.role-has-permission”.“role” = “permission.role-has-permission.role”.“id”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “user-has-role” AS “permission.role-has-permission.role.user-has-role”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission.role-has-permission.role”.“id” = “permission.role-has-permission.role.user-has-role”.“role”
Feb 28 18:22:20 986d619be1ae api[1830]: AND “permission.role-has-permission.role.user-has-role”.“user” = $2
Feb 28 18:22:20 986d619be1ae api[1830]: AND (“permission.role-has-permission.role.user-has-role”.“expiry date” IS NULL
Feb 28 18:22:20 986d619be1ae api[1830]: OR “permission.role-has-permission.role.user-has-role”.“expiry date” > CURRENT_TIMESTAMP)
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: ))
Feb 28 18:22:20 986d619be1ae api[1830]: ORDER BY “permission”.“name” ASC [ 2, 2 ]
Feb 28 18:22:20 986d619be1ae api[1830]: Auth: SELECT “permission”.“name”
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE (EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “user-has-permission” AS “permission.user-has-permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission”.“id” = “permission.user-has-permission”.“permission”
Feb 28 18:22:20 986d619be1ae api[1830]: AND “permission.user-has-permission”.“user” = $1
Feb 28 18:22:20 986d619be1ae api[1830]: AND (“permission.user-has-permission”.“expiry date” IS NULL
Feb 28 18:22:20 986d619be1ae api[1830]: OR “permission.user-has-permission”.“expiry date” > CURRENT_TIMESTAMP)
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: OR EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “role-has-permission” AS “permission.role-has-permission”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission”.“id” = “permission.role-has-permission”.“permission”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “role” AS “permission.role-has-permission.role”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission.role-has-permission”.“role” = “permission.role-has-permission.role”.“id”
Feb 28 18:22:20 986d619be1ae api[1830]: AND EXISTS (
Feb 28 18:22:20 986d619be1ae api[1830]: SELECT 1
Feb 28 18:22:20 986d619be1ae api[1830]: FROM “user-has-role” AS “permission.role-has-permission.role.user-has-role”
Feb 28 18:22:20 986d619be1ae api[1830]: WHERE “permission.role-has-permission.role”.“id” = “permission.role-has-permission.role.user-has-role”.“role”
Feb 28 18:22:20 986d619be1ae api[1830]: AND “permission.role-has-permission.role.user-has-role”.“user” = $2
Feb 28 18:22:20 986d619be1ae api[1830]: AND (“permission.role-has-permission.role.user-has-role”.“expiry date” IS NULL
Feb 28 18:22:20 986d619be1ae api[1830]: OR “permission.role-has-permission.role.user-has-role”.“expiry date” > CURRENT_TIMESTAMP)
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: )
Feb 28 18:22:20 986d619be1ae api[1830]: ))
Feb 28 18:22:20 986d619be1ae api[1830]: ORDER BY “permission”.“name” ASC [ 2, 2 ]
Feb 28 18:22:48 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:22:51 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:22:56 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:23:04 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:23:37 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:23:55 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:24:22 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:24:53 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:25:23 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:25:56 986d619be1ae api[1830]: resin: Parsing GET /resin/user(2)?$select=actor,jwt_secret
Feb 28 18:27:27 986d619be1ae api[1830]: resin: Parsing GET /resin/device/$count?$filter=uuid eq ‘a40bd2149d456174f3235d62c51fe82d’
Feb 28 18:42:32 986d619be1ae api[1830]: Program node index.js exited with code null