I have reinstalled Ubuntu 16 LTS. Previously I had ElectrumX working, but with unexplained downtime and unreliable fee estimates. Hence I reinstalled Ubuntu server. I have reinstalled Ubuntu a few times after failing. At one point, I symbolically linked /usr/bin/python3 to /usr/bin/python3.6 which broke the package management. Now I have /usr/local/bin/python3 -> /usr/bin/python3.6 which seems to work; although, I have an error which may or may not be related to package management/dependencies:
Dec 14 16:26:05 icarus electrumx_server.py[2534]: Traceback (most recent call last):
...
Dec 14 16:26:05 icarus electrumx_server.py[2534]: File "/usr/local/lib/python3.6/dist-packages/electrumx-1.2.1-py3.6.egg/server/block_processor.py", line 148, in __init__
Dec 14 16:26:05 icarus electrumx_server.py[2534]: self.cancel_history_compaction()
Dec 14 16:26:05 icarus electrumx_server.py[2534]: AttributeError: 'BlockProcessor' object has no attribute 'cancel_history_compaction'
I have no clue whether the issue is with dependencies such as leveldb or something else entirely.