Storagenode failed to start after auto update

So I wake up this morning and found that one of my nodes have been offline for hours.
This is the relevant part of the logs:

2022-06-15T07:37:22.416Z	INFO	Downloading versions.	{"Process": "storagenode-updater", "Server Address": ""}
2022-06-15T07:37:22.765Z	INFO	Current binary version	{"Process": "storagenode-updater", "Service": "storagenode", "Version": "v1.55.1"}
2022-06-15T07:37:22.773Z	INFO	Download started.	{"Process": "storagenode-updater", "From": "", "To": "/tmp/"}
2022-06-15T07:37:27.481Z	INFO	Download finished.	{"Process": "storagenode-updater", "From": "", "To": "/tmp/"}
2022-06-15T07:37:28.795Z	INFO	Restarting service.	{"Process": "storagenode-updater", "Service": "storagenode"}
2022-06-15T07:37:30.221Z	INFO	Service restarted successfully.	{"Process": "storagenode-updater", "Service": "storagenode"}
2022-06-15T07:37:30.272Z	INFO	Current binary version	{"Process": "storagenode-updater", "Service": "storagenode-updater", "Version": "v1.55.1"}
2022-06-15T07:37:30.273Z	INFO	Download started.	{"Process": "storagenode-updater", "From": "", "To": "/tmp/"}
2022-06-15 07:37:30,324 INFO exited: storagenode (exit status 0; expected)
2022-06-15 07:37:31,335 INFO spawned: 'storagenode' with pid 6943
2022-06-15 07:37:31,377 WARN received SIGQUIT indicating exit request
2022-06-15 07:37:31,379 INFO waiting for storagenode, processes-exit-eventlistener, storagenode-updater to die
2022-06-15T07:37:31.380Z	INFO	Got a signal from the OS: "terminated"	{"Process": "storagenode-updater"}
2022-06-15T07:37:31.406Z	ERROR	Error updating service.	{"Process": "storagenode-updater", "Service": "storagenode-updater", "error": "context canceled; context canceled", "errorVerbose": "context canceled; context canceled\n\tmain.downloadBinary:59\n\tmain.update:39\n\tmain.loopFunc:32\n\*Cycle).Run:152\n\tmain.cmdRun:136\n\\n\\n\*Command).execute:852\n\*Command).ExecuteC:960\n\*Command).Execute:897\n\\n\tmain.main:20\n\truntime.main:255"}
2022-06-15 07:37:31,419 INFO stopped: storagenode-updater (exit status 0)
2022-06-15 07:37:31,429 INFO stopped: storagenode (terminated by SIGTERM)
2022-06-15 07:37:31,431 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)
2022-06-15T07:37:30.121Z	INFO	piecedeleter	delete piece sent to trash	{"Process": "storagenode", "Satellite ID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S", "Piece ID": "P647JPBYQKSR3O5NI2GIE5B2FEDCZK7EWG4DQ4T3VN3ZGGEPEFIA"}
2022-06-15T07:37:30.221Z	INFO	Got a signal from the OS: "interrupt"	{"Process": "storagenode"}
2022-06-15T07:37:30.232Z	INFO	piecestore	upload canceled	{"Process": "storagenode", "Piece ID": "R2BXYVISYFKXMLQCXCNGSDX5GEZCQXCJHGFNARFJEPJBPBVEJSNA", "Satellite ID": "12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB", "Action": "PUT_REPAIR", "Size": 1318912}

it seem that it tried to upgrade from v1.55.1 to v1.56.4 and failed somehow.
what should I do to avoid this?.

Add the restart unless stopped policy to your docker run command

right, thank you

20 characters