Skip to content

"balena os configure" induces hundreds of AccessDenied errors in api container and crashes #165

@justinasjaronis

Description

@justinasjaronis

If device is to be configured first time, client side "balena os configure" command induces a hundreds if not thousands of such errors in API container:

Mar 15 19:26:05 1b8ea8a621f5 api[1214]: Failed to get device type build data for ccon-01/2.102.0 Access Denied AccessDenied: Access Denied
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at Request.extractError (/usr/src/app/node_modules/aws-sdk/lib/services/s3.js:711:35)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at Request.callListeners (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/request.js:686:14)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at Request.transition (/usr/src/app/node_modules/aws-sdk/lib/request.js:22:10)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at AcceptorStateMachine.runTo (/usr/src/app/node_modules/aws-sdk/lib/state_machine.js:14:12)
Mar 15 19:26:05 1b8ea8a621f5 api[1214]: at /usr/src/app/node_modules/aws-sdk/lib/state_machine.js:26:10

and 4 from 5 times "balena os configure" ends with "ECONNRESET" error. But, sometimes (1 from 5 times) this command succeeds.

I'm using versions from master branch:
OPENBALENA_API_VERSION_TAG=v0.209.2
OPENBALENA_DB_VERSION_TAG=v5.1.2
OPENBALENA_MDNS_PUBLISHER_VERSION_TAG=v1.9.2
OPENBALENA_REGISTRY_VERSION_TAG=v2.25.3
OPENBALENA_S3_VERSION_TAG=v2.13.10
OPENBALENA_VPN_VERSION_TAG=v11.4.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions