Monerod sync crashes my Ubuntu server

0
0
I am running a server with btcpay following this guide: https://sethforprivacy.com/guides/accepting-monero-via-btcpay-server/
However the docker process Monerod keeps killing my server. When I restart the server the monerod process is unable to start again (this has happened twice before, I deleted the monero database, it begins to sync again then errors out and kills my server like this):
{"log":"2023-03-18 17:16:35.647\u0009I Synced 1302824/2844804 (45%, 1541980 left)\n","stream":"stdout","time":"2023-03-18T17:16:35.680164374Z"}
{"log":"2023-03-18 18:18:18.164\u0009I Monero 'Fluorine Fermi' (v0.18.1.1-release)\n","stream":"stdout","time":"2023-03-18T18:18:18.165482498Z"}
{"log":"2023-03-18 18:18:18.164\u0009I Initializing cryptonote protocol...\n","stream":"stdout","time":"2023-03-18T18:18:18.1655154Z"}
{"log":"2023-03-18 18:18:18.164\u0009I Cryptonote protocol initialized OK\n","stream":"stdout","time":"2023-03-18T18:18:18.165521161Z"}
{"log":"2023-03-18 18:18:18.211\u0009I Initializing core...\n","stream":"stdout","time":"2023-03-18T18:18:18.213577136Z"}
{"log":"2023-03-18 18:18:18.217\u0009I Loading blockchain from folder /home/monero/.bitmonero/lmdb ...\n","stream":"stdout","time":"2023-03-18T18:18:18.246095385Z"}
{"log":"2023-03-18 18:18:18.245\u0009W The blockchain is on a rotating drive: this will be very slow, use an SSD if possible\n","stream":"stdout","time":"2023-03-18T18:18:18.258450691Z"}
{"log":"2023-03-18 18:18:18.323\u0009F Existing lmdb database is incompatible with this version.\n","stream":"stdout","time":"2023-03-18T18:18:18.34812763Z"}
{"log":"2023-03-18 18:18:18.323\u0009F Please delete the existing database and resync.\n","stream":"stdout","time":"2023-03-18T18:18:18.348150192Z"}
{"log":"2023-03-18 18:18:18.357\u0009I Stopping cryptonote protocol...\n","stream":"stdout","time":"2023-03-18T18:18:18.365120085Z"}
{"log":"2023-03-18 18:18:18.357\u0009I Cryptonote protocol stopped successfully\n","stream":"stdout","time":"2023-03-18T18:18:18.365135334Z"}
{"log":"2023-03-18 18:18:18.357\u0009E Exception in main! Failed to initialize core\n","stream":"stdout","time":"2023-03-18T18:18:18.365138389Z"}
{"log":"2023-03-18 18:18:22.718\u0009I Monero 'Fluorine Fermi' (v0.18.1.1-release)\n","stream":"stdout","time":"2023-03-18T18:18:22.723736331Z"}
{"log":"2023-03-18 18:18:22.718\u0009I Initializing cryptonote protocol...\n","stream":"stdout","time":"2023-03-18T18:18:22.723757401Z"}
{"log":"2023-03-18 18:18:22.718\u0009I Cryptonote protocol initialized OK\n","stream":"stdout","time":"2023-03-18T18:18:22.723760266Z"}
{"log":"2023-03-18 18:18:22.719\u0009I Initializing core...\n","stream":"stdout","time":"2023-03-18T18:18:22.723762641Z"}
{"log":"2023-03-18 18:18:22.719\u0009I Loading blockchain from folder /home/monero/.bitmonero/lmdb ...\n","stream":"stdout","time":"2023-03-18T18:18:22.723765025Z"}
{"log":"2023-03-18 18:18:22.719\u0009W The blockchain is on a rotating drive: this will be very slow, use an SSD if possible\n","stream":"stdout","time":"2023-03-18T18:18:22.72376777Z"}
{"log":"2023-03-18 18:18:22.719\u0009F Existing lmdb database is incompatible with this version.\n","stream":"stdout","time":"2023-03-18T18:18:22.723770185Z"}
{"log":"2023-03-18 18:18:22.719\u0009F Please delete the existing database and resync.\n","stream":"stdout","time":"2023-03-18T18:18:22.723772539Z"}
Also some configs for the monerod docker process
"ID": "fcebf9051033125ec24c2713a145084850d9d1c4be0bbe634715ecb79c7300ff",
"Created": "2023-03-18T04:20:06.452818531Z",
"Managed": false,
"Path": "monerod",
"Args": [
"--rpc-bind-ip=0.0.0.0",
"--confirm-external-bind",
"--rpc-bind-port=18081",
"--non-interactive",
"--block-notify=/bin/sh ./scripts/notifier.sh -X GET http://btcpayserver:49392/monerolikedaemoncallback/block?cryptoCode=xmr&hash=%s",
"--hide-my-port",
"--prune-blockchain",
"--enable-dns-blocklist"
],
"Config": {
"Hostname": "fcebf9051033",
"Domainname": "",
"User": "monero",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"18080/tcp": {},
"18081/tcp": {},
"18082/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"FILE=monero-linux-x64-v0.18.1.1.tar.bz2",
"FILE_CHECKSUM=937dfcc48d91748dd2e8f58714dfc45d17a0959dff33fc7385bbe06344ff2c16"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"curl --fail http://localhost:18081/get_info || exit 1"
],
"Interval": 5000000000,
"Timeout": 3000000000
},
"Image": "btcpayserver/monero:0.18.1.1",
"Volumes": {
"/home/monero/.bitmonero": {},
"/wallet": {}
},
"WorkingDir": "",
"Entrypoint": [
"monerod",
"--rpc-bind-ip=0.0.0.0",
"--confirm-external-bind",
"--rpc-bind-port=18081",
"--non-interactive",
"--block-notify=/bin/sh ./scripts/notifier.sh -X GET http://btcpayserver:49392/monerolikedaemoncallback/block?cryptoCode=xmr&hash=%s",
"--hide-my-port",
"--prune-blockchain",
"--enable-dns-blocklist"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "e6a7ee99cc3ccf25da476ce4c07fb7a4d443261188cf40ed85fc2cadd618bb1e",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "generated",
"com.docker.compose.project.config_files": "/root/BTCPayServer/btcpayserver-docker/Generated/docker-compose.generated.yml",
"com.docker.compose.project.working_dir": "/root/BTCPayServer/btcpayserver-docker/Generated",
"com.docker.compose.service": "monerod",
"com.docker.compose.version": "1.28.6"
}
},
I am pretty stumped at this point and would appreciate any advice.
Ram 16 GB
CPU: 8 Cores
Disk: 150 GB NVMe SSD