server terminated abnormally immediately after starting
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 568
- Forks
- 447
- PR merge metrics
- No merged PRs in 30d
Description
After building electrumx in ~, and systemctl enable/start the server terminates abnormally with the following:
Jul 31 01:29:52 home71 systemd[1]: Started Electrumx.
Jul 31 01:29:52 home71 electrumx_server[28652]: INFO:electrumx:ElectrumX server starting
Jul 31 01:29:52 home71 electrumx_server[28652]: ERROR:electrumx:ElectrumX server terminated abnormally
Jul 31 01:29:52 home71 electrumx_server[28652]: Traceback (most recent call last):
Jul 31 01:29:52 home71 electrumx_server[28652]: File "~/electrumx/electrumx_server", line 31, in main
Jul 31 01:29:52 home71 electrumx_server[28652]: env = Env()
Jul 31 01:29:52 home71 electrumx_server[28652]: File "~/electrumx/electrumx/server/env.py", line 50, in __init__
Jul 31 01:29:52 home71 electrumx_server[28652]: self.coin = Coin.lookup_coin_class(coin_name, network)
Jul 31 01:29:52 home71 electrumx_server[28652]: ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
Jul 31 01:29:52 home71 electrumx_server[28652]: File "~/electrumx/electrumx/lib/coins.py", line 65, in lookup_coin_class
Jul 31 01:29:52 home71 electrumx_server[28652]: raise CoinError('unknown coin {} and network {} combination'
Jul 31 01:29:52 home71 electrumx_server[28652]: .format(name, net))
Jul 31 01:29:52 home71 electrumx_server[28652]: electrumx.lib.coins.CoinError: unknown coin Bitcoin and network mainnet combination
Jul 31 01:29:52 home71 systemd[1]: electrumx.service: Deactivated successfully.
in /etc/electrumx.conf I have COIN = Bitcoin which seemed to be a common param for COIN in several howtos I looked at for reference.
Any ideas what could be the issue or what to look at? Thks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the traceback in electrumx/server/env.py and electrumx/lib/coins.py, then inspect the COIN and network values loaded from /etc/electrumx.conf. Reproduce the systemd start and verify that the configured combination is accepted and the ElectrumX server remains running without the CoinError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100