Can't push. Dashboard loads intermittently

It was working a moment ago. I haven’t changed anything but the code.

Pushes fail with the following error:

whmountains@git.balena-cloud.com: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Or this error:

Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 614 bytes | 614.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0)

Error: Authorization failed. Status code: 404, body: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>

remote: authorization request failed Error: Authorization failed. Status code: 404, body: <!DOCTYPE html>
remote: <html lang="en">
remote: <head>
remote: <meta charset="utf-8">
remote: <title>Error</title>
remote: </head>
remote: <body>
remote: <pre>Not Found</pre>
remote: </body>
remote: </html>
remote: 
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: 404, body: <!DOCTYPE html>
remote: <html lang="en">
remote: <head>
remote: <meta charset="utf-8">
remote: <title>Error</title>
remote: </head>
remote: <body>
remote: <pre>Not Found</pre>
remote: </body>
remote: </html>
remote:  Error: Authorization failed. Status code: 404, body: <!DOCTYPE html>
remote: <html lang="en">
remote: <head>
remote: <meta charset="utf-8">
remote: <title>Error</title>
remote: </head>
remote: <body>
remote: <pre>Not Found</pre>
remote: </body>
remote: </html>
remote: 
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:whmountains/sensorpi-staging.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'whmountains@git.balena-cloud.com:whmountains/sensorpi-staging.git'

The dashboard is showing intermittent “not found” errors.

Hi there @whm

I’ve talked with my colleagues and found that there were some database upgrades going on around the time of your post which may have caused the issues. It was a very quick upgrade though so I would have expected this to resolve itself. Can you let us know if this is still going on now?

It’s resolved. Thanks!