Can't push to remote

Hi,
I haven’t been able to deploy updates for the last hour or two. I checked status.balena.io but nothing reported here.

$ git push balena
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1008 bytes | 1008.00 KiB/s, done.
Total 6 (delta 1), reused 0 (delta 0)

[Error]    An error occurred: ESOCKETTIMEDOUT
[Error]    Not deploying release.

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:***/***.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '***@git.balena-cloud.com:***/***.git'

I also get other errors sometime:

[Error]    An error occurred: The API cannot handle your request right now
[Error]    Not deploying release.

or even :

Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1008 bytes | 504.00 KiB/s, done.
Total 6 (delta 1), reused 0 (delta 0)

Error: Authorization failed. Status code: 503, body: The API cannot handle your request right now
remote: authorization request failed Error: Authorization failed. Status code: 503, body: The API cannot handle your request right now
remote:   at /usr/src/app/node_modules/@resin/resin-jwt/index.js:110:15
remote:   at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
remote:   at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:509:35)
remote:   at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
remote:   at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
remote:   at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
remote:   at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
remote:   at PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
remote:   at PromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:144:14)
remote:   at PromiseArray._iterate (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:114:31)
remote:   at PromiseArray.init [as _init] (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:78:10)
remote:   at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:566:21)
remote:   at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
remote:   at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
remote:   at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
remote:   at Request._callback (/usr/src/app/node_modules/bluebird/js/release/nodeback.js:45:21)
remote:   at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
remote:   at emitTwo (events.js:126:13)
remote:   at Request.emit (events.js:214:7)
remote:   at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1161:10)
remote:   at emitOne (events.js:116:13)
remote:   at Request.emit (events.js:211:7)
remote:   at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1083:12)
remote:   at Object.onceWrapper (events.js:313:30)
remote:   at emitNone (events.js:111:20)
remote:   at IncomingMessage.emit (events.js:208:7)
remote:   at endReadableNT (_stream_readable.js:1064:12)
remote:   at _combinedTickCallback (internal/process/next_tick.js:139:11)
remote:   at process._tickCallback (internal/process/next_tick.js:181:9)
remote:  Authorization failed. Status code: 503, body: The API cannot handle your request right now Error: Authorization failed. Status code: 503, body: The API cannot handle your request right now
remote:   at /usr/src/app/node_modules/@resin/resin-jwt/index.js:110:15
remote:   at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
remote:   at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:509:35)
remote:   at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
remote:   at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
remote:   at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
remote:   at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
remote:   at PromiseArray._resolve (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:126:19)
remote:   at PromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:144:14)
remote:   at PromiseArray._iterate (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:114:31)
remote:   at PromiseArray.init [as _init] (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:78:10)
remote:   at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:566:21)
remote:   at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
remote:   at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:694:18)
remote:   at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
remote:   at Request._callback (/usr/src/app/node_modules/bluebird/js/release/nodeback.js:45:21)
remote:   at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
remote:   at emitTwo (events.js:126:13)
remote:   at Request.emit (events.js:214:7)
remote:   at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1161:10)
remote:   at emitOne (events.js:116:13)
remote:   at Request.emit (events.js:211:7)
remote:   at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1083:12)
remote:   at Object.onceWrapper (events.js:313:30)
remote:   at emitNone (events.js:111:20)
remote:   at IncomingMessage.emit (events.js:208:7)
remote:   at endReadableNT (_stream_readable.js:1064:12)
remote:   at _combinedTickCallback (internal/process/next_tick.js:139:11)
remote:   at process._tickCallback (internal/process/next_tick.js:181:9)
remote:

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:***/***.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '***@git.balena-cloud.com:***/***.git'
1 Like

Seems like I also get API errors over at dashboard.balena-cloud.com:
image
image

1 Like

We are experiencing the same issues on the dashboard and trying to access the Host SSH.

Hello @edorgeville and @mattrunchey,

Thank you for your contacts, we had an issue with unexpectedly high database load.
The issue is resolved, please let us know if you are still having issues.

Cheers