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": "https://version.storj.io"}
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": "https://github.com/storj/storj/releases/download/v1.56.4/storagenode_linux_arm64.zip", "To": "/tmp/storagenode_linux_arm64.913664633.zip"}
2022-06-15T07:37:27.481Z	INFO	Download finished.	{"Process": "storagenode-updater", "From": "https://github.com/storj/storj/releases/download/v1.56.4/storagenode_linux_arm64.zip", "To": "/tmp/storagenode_linux_arm64.913664633.zip"}
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": "https://github.com/storj/storj/releases/download/v1.56.4/storagenode-updater_linux_arm64.zip", "To": "/tmp/storagenode-updater_linux_arm64.2550076120.zip"}
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\tstorj.io/common/sync2.(*Cycle).Run:152\n\tmain.cmdRun:136\n\tstorj.io/private/process.cleanup.func1.4:372\n\tstorj.io/private/process.cleanup.func1:390\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomConfigAndLogger:93\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