openBalena v4.1.+ rebooting device crashes balena API

Hi everybody

recently update openBalena deployment ot version 4.1.170

the problem is that command balena device reboot crashes the open balena api:

: 2025-11-25T16:29:07.816Z ::ffff:73.231.250.57 a/399 PATCH /device/v2/13e4a716e3bcd779f799ae422e6955d4/state 200 115.597ms -
[23420.541046] api[1302]: /usr/src/app/node_modules/tunnel-agent/index.js:177
[23420.541523] api[1302]:     var error = new Error('tunneling socket could not be established, ' + 'cause=' + cause.message)
[23420.541659] api[1302]:                 ^
[23420.543739] api[1302]: OperationalError: tunneling socket could not be established, cause=connect ECONNREFUSED 172.18.0.8:3128
[23420.543800] api[1302]:     at ClientRequest.onError (/usr/src/app/node_modules/tunnel-agent/index.js:177:17)
[23420.543846] api[1302]:     ... 9 lines matching cause stack trace ...
[23420.544489] api[1302]:     at processTicksAndRejections (node:internal/process/task_queues:90:21)
[23420.544543] api[1302]: From previous event:
[23420.544601] api[1302]:     at file:///usr/src/app/src/features/device-proxy/device-proxy.ts:183:26
[23420.544651] api[1302]:     at throttledForEach (file:///usr/src/app/src/lib/utils.ts:61:23)
[23420.544703] api[1302]:     at requestDevices (file:///usr/src/app/src/features/device-proxy/device-proxy.ts:176:25)
[23420.545162] api[1302]:     at processTicksAndRejections (node:internal/process/task_queues:105:5)
[23420.545249] api[1302]:     at async proxy (file:///usr/src/app/src/features/device-proxy/device-proxy.ts:87:27) {
[23420.545329] api[1302]:   cause: Error: tunneling socket could not be established, cause=connect ECONNREFUSED 172.18.0.8:3128
[23420.545373] api[1302]:       at ClientRequest.onError (/usr/src/app/node_modules/tunnel-agent/index.js:177:17)
[23420.545415] api[1302]:       at Object.onceWrapper (node:events:634:26)
[23420.545487] api[1302]:       at ClientRequest.emit (node:events:519:28)
[23420.545876] api[1302]:       at ClientRequest.emit (node:domain:488:12)
[23420.545929] api[1302]:       at emitErrorEvent (node:_http_client:103:11)
[23420.545975] api[1302]:       at Socket.socketErrorListener (node:_http_client:506:5)
[23420.546036] api[1302]:       at Socket.emit (node:events:519:28)
[23420.546084] api[1302]:       at Socket.emit (node:domain:488:12)
[23420.546130] api[1302]:       at emitErrorNT (node:internal/streams/destroy:170:8)
[23420.546172] api[1302]:       at emitErrorCloseNT (node:internal/streams/destroy:129:3)
[23420.546760] api[1302]:       at processTicksAndRejections (node:internal/process/task_queues:90:21) {
[23420.546950] api[1302]:     code: 'ECONNRESET'
[23420.547019] api[1302]:   },
[23420.547067] api[1302]:   isOperational: true,
[23420.547109] api[1302]:   code: 'ECONNRESET'
[23420.547146] api[1302]: }
[23420.618793] api[1293]: Program node --enable-source-maps --require ts-node/register --loader ts-node/esm/transpile-only index.js exited with code 1

balenaOS version: 2.95.8

what could cause the crash?