Closed db with immutable tip - shutting down

On starting my cardano node and shuts down immediately - any ideas? thanks

[ec2-user@ip-172-31-39-158 relay]$ cardano-node run \
> --topology testnet-topology.json \
> --database-path db \
> --socket-path db/node.socket \
> --host-addr x.x.x.x \
> --port 3001 \
> --config testnet-config.json
Listening on http://127.0.0.1:12798
[ip-172-3:cardano.node.networkMagic:Notice:5] [2021-02-28 00:03:17.00 UTC] NetworkMagic 1097911063
[ip-172-3:cardano.node.basicInfo.protocol:Notice:5] [2021-02-28 00:03:17.00 UTC] Byron; Shelley
[ip-172-3:cardano.node.basicInfo.version:Notice:5] [2021-02-28 00:03:17.00 UTC] 1.24.2
[ip-172-3:cardano.node.basicInfo.commit:Notice:5] [2021-02-28 00:03:17.00 UTC] 400d18092ce604352cf36fe5f105b0d7c78be074
[ip-172-3:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-02-28 00:03:17.00 UTC] 2021-02-28 00:03:17.003287061 UTC
[ip-172-3:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-02-28 00:03:17.00 UTC] 2019-07-24 20:20:16 UTC
[ip-172-3:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-02-28 00:03:17.00 UTC] 20s
[ip-172-3:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-02-28 00:03:17.00 UTC] 21600
[ip-172-3:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-02-28 00:03:17.00 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-02-28 00:03:17.00 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-02-28 00:03:17.00 UTC] 129600
[ip-172-3:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-02-28 00:03:17.00 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-02-28 00:03:17.00 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-02-28 00:03:17.00 UTC] 129600
[ip-172-3:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-02-28 00:03:17.00 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-02-28 00:03:17.00 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-02-28 00:03:17.00 UTC] 129600
[ip-172-3:cardano.node.addresses:Notice:5] [2021-02-28 00:03:17.02 UTC] [SocketInfo 18.133.33.139:3001]
[ip-172-3:cardano.node.diffusion-mode:Notice:5] [2021-02-28 00:03:17.02 UTC] InitiatorAndResponderDiffusionMode
[ip-172-3:cardano.node.dns-producers:Notice:5] [2021-02-28 00:03:17.02 UTC] [DnsSubscriptionTarget {dstDomain = "relays-new.cardano-testnet.iohkdev.io", dstPort = 3001, dstValency = 2}]
[ip-172-3:cardano.node.ip-producers:Notice:5] [2021-02-28 00:03:17.02 UTC] IPSubscriptionTarget {ispIps = [], ispValency = 0}
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:17.45 UTC] Opened imm db with immutable tip at 82b268f007848c3206ac15698c4f9243ce7d9597f67b25f07c614099eb0bba49 at slot 1440357 and chunk 66
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:18.87 UTC] Opened vol db
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:18.91 UTC] Replaying ledger from snapshot DiskSnapshot {dsNumber = 1440357, dsSuffix = Nothing} at 82b268f007848c3206ac15698c4f9243ce7d9597f67b25f07c614099eb0bba49 at slot 1440357
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:18.91 UTC] Opened lgr db
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:19.61 UTC] Opened db with immutable tip at 82b268f007848c3206ac15698c4f9243ce7d9597f67b25f07c614099eb0bba49 at slot 1440357 and tip e0cee2a99bc91a7184e8ef456c9059166bf52725b686d0d70624e637c99c36ff at slot 1442517
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-02-28 00:03:19.61 UTC] Closed db with immutable tip at 82b268f007848c3206ac15698c4f9243ce7d9597f67b25f07c614099eb0bba49 at slot 1440357 and tip e0cee2a99bc91a7184e8ef456c9059166bf52725b686d0d70624e637c99c36ff at slot 1442517

Looks like this is the actual error

Network.Socket.bind: unsupported operation (Cannot assign requested address)[ec2-user@ip-172-31-39-158 relay]$

The solution: start node using 0.0.0.0 which makes the node bind to any available IP address

cardano-node run \
--topology testnet-topology.json \
--database-path db \
--socket-path db/node.socket \
--host-addr 0.0.0.0 \
--port 3001 \
--config testnet-config.json