Unable to open settings file /data/.bitcoin/settings.json.tmp for writing

After applying the bitcoin core update, bitcoin no longer starts. The following error appears in my logs:
“Error: Unable to open settings file /data/.bitcoin/settings.json.tmp for writing”
Any suggestions on getting around this? I really don’t want to resync and deal with lightning channel restoration problems.

This error occurred because I was storing the blockchain data at a custom location on an external drive. The update wiped my custom entry in exports.sh which pointed to the external drive on /media/Bitcoin:
export APP_BITCOIN_DATA_DIR="/media/Bitcoin"

Problem solved.