{"action":"created","issue":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/461","repository_url":"https://api.github.com/repos/kyuupichan/electrumx","labels_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/461/comments","events_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/461/events","html_url":"https://github.com/kyuupichan/electrumx/issues/461","id":318656686,"number":461,"title":"Can't Start/Connect Electrumx","user":{"login":"Rspigler","id":24482484,"avatar_url":"https://avatars0.githubusercontent.com/u/24482484?v=4","gravatar_id":"","url":"https://api.github.com/users/Rspigler","html_url":"https://github.com/Rspigler","followers_url":"https://api.github.com/users/Rspigler/followers","following_url":"https://api.github.com/users/Rspigler/following{/other_user}","gists_url":"https://api.github.com/users/Rspigler/gists{/gist_id}","starred_url":"https://api.github.com/users/Rspigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rspigler/subscriptions","organizations_url":"https://api.github.com/users/Rspigler/orgs","repos_url":"https://api.github.com/users/Rspigler/repos","events_url":"https://api.github.com/users/Rspigler/events{/privacy}","received_events_url":"https://api.github.com/users/Rspigler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-28T18:00:42Z","updated_at":"2018-04-29T03:43:18Z","closed_at":"2018-04-29T02:55:36Z","author_association":"NONE","body":"When starting electrum, I can't find my .onion advertised on the server list even though PEER_ANNOUNCE is set to non 0.  (PEER_ANNOUNCE = 1).  Specifically, all my environmental variables are:\r\n\r\nCOIN = BitcoinSegwit\r\nDB_DIRECTORY = /root/electrum\r\nDAEMON_URL = (not released for obvious reasons)\r\nELECTRUMX = /root/electrumx/electrumx_server.py\r\nUSERNAME = rspigler\r\nALLOW_ROOT = 1\r\nNET = mainnet\r\nDB_ENGINE = leveldb\r\nHOST = localhost\r\nSSL_PORT = 50002\r\nBANNER_FILE = /root/electrumx/ElectrumBannerFile.txt\r\nANON_LOGS = 1\r\nMAX_SUBS = 500,000\r\nMAX_SESSION_SUBS = 100,000\r\nPEER_DISCOVERY = on\r\nPEER_ANNOUNCE = 1\r\nFORCE_PROXY = 1\r\nTOR_PROXY_HOST = localhost\r\nTOR_PROXY_PORT = 9050\r\nREPORT_TCP_PORT = 0\r\nREPORT_SSL_PORT = 0\r\nREPORT_HOST_TOR = 7ebps47wb7mr3s5d.onion\r\nREPORT_TCP_PORT_TOR = 0\r\nREPORT_SSL_PORT_TOR = 50002\r\nSSL_CERTFILE = /root/electrumx/server.crt\r\nSSL_KEYFILE = /root/electrumx/server.key\r\n\r\n\r\nI am running Debian 9.4\r\n\r\nWhen I open electrum as root, under 'Connection', I check 'Use SSL\", 'Use Tor proxy at port 9050', and 'Use proxy' - where SOCKS5 127.0.0.1 9050 is filled.\r\n\r\nUnder the server tab however, my .onion (7ebps47wb7mr3s5d.onion) is never visible, even though my bitcoin full node is fully synced (I have incoming and outgoing connections with port 8333 open) and electrum is connected to 10 nodes, all with the same height as my bitcoin node.\r\n\r\nWhen I check the log output, I get the following:\r\n\r\nroot@debian2:~# journalctl -u electrumx -f\r\n-- Logs begin at Fri 2018-04-27 18:26:00 EDT. --\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:   File \"<frozen importlib._bootstrap_external>\", line 1104, in _legacy_get_spec\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:   File \"<frozen importlib._bootstrap>\", line 444, in spec_from_loader\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:   File \"<frozen importlib._bootstrap_external>\", line 541, in spec_from_file_location\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:   File \"/usr/local/lib/python3.5/dist-packages/electrumx-ElectrumX.1.4.3-py3.5.egg/lib/util.py\", line 44\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:     return f'[{conn_id}] {msg}', kwargs\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]:                               ^\r\nApr 28 01:03:30 debian2 electrumx_server.py[8122]: SyntaxError: invalid syntax\r\nApr 28 01:03:30 debian2 systemd[1]: electrumx.service: Main process exited, code=exited, status=1/FAILURE\r\nApr 28 01:03:30 debian2 systemd[1]: electrumx.service: Unit entered failed state.\r\nApr 28 01:03:30 debian2 systemd[1]: electrumx.service: Failed with result 'exit-code'.\r\n\r\nThank you for any help"},"comment":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/comments/385223391","html_url":"https://github.com/kyuupichan/electrumx/issues/461#issuecomment-385223391","issue_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/461","id":385223391,"user":{"login":"Rspigler","id":24482484,"avatar_url":"https://avatars0.githubusercontent.com/u/24482484?v=4","gravatar_id":"","url":"https://api.github.com/users/Rspigler","html_url":"https://github.com/Rspigler","followers_url":"https://api.github.com/users/Rspigler/followers","following_url":"https://api.github.com/users/Rspigler/following{/other_user}","gists_url":"https://api.github.com/users/Rspigler/gists{/gist_id}","starred_url":"https://api.github.com/users/Rspigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rspigler/subscriptions","organizations_url":"https://api.github.com/users/Rspigler/orgs","repos_url":"https://api.github.com/users/Rspigler/repos","events_url":"https://api.github.com/users/Rspigler/events{/privacy}","received_events_url":"https://api.github.com/users/Rspigler/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T03:43:18Z","updated_at":"2018-04-29T03:43:18Z","author_association":"NONE","body":"Ah, that is exactly my issue, yes, thank you!\r\n\r\nSo, I have deleted my electrumx directory in order to re-do the install by:\r\n`rm -r electrumx`\r\n\r\nThen, started the install:\r\n\r\n`git clone https://github.com/kyuupichan/electrumx.git\r\ncd electrumx\r\npython3.6 setup.py install`\r\n\r\nThis leads to lots of log output, but most importantly ending with:\r\n\r\nSearching for aiohttp>=1\r\nReading https://pypi.python.org/simple/aiohttp/\r\nDownload error on https://pypi.python.org/simple/aiohttp/: unknown url type: https -- Some packages may not be found!\r\nCouldn't find index page for 'aiohttp' (maybe misspelled?)\r\nScanning index of all packages (this may take a while)\r\nReading https://pypi.python.org/simple/\r\nDownload error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!\r\nNo local packages or working download links found for aiohttp>=1\r\nerror: Could not find suitable distribution for Requirement.parse('aiohttp>=1')\r\n\r\nObviously, when I installed the required Python3.6 dependencies, I messed up in the same way and really used Python3.5  I can confirm this by running, again:\r\n\r\n`pip3 install --upgrade pip setuptools wheel`\r\nRequirement already up-to-date: pip in /usr/local/lib/python3.5/dist-packages (10.0.1)\r\nRequirement already up-to-date: setuptools in /usr/local/lib/python3.5/dist-packages (39.1.0)\r\nRequirement already up-to-date: wheel in /usr/local/lib/python3.5/dist-packages (0.31.0)\r\n\r\nand\r\n\r\n`pip3 install aiohttp pylru leveldb plyvel aiorpcx`\r\nRequirement already satisfied: aiohttp in /usr/local/lib/python3.5/dist-packages (3.1.3)\r\nRequirement already satisfied: pylru in /usr/local/lib/python3.5/dist-packages (1.0.9)\r\nRequirement already satisfied: leveldb in /usr/lib/python3/dist-packages (0.1)\r\nRequirement already satisfied: plyvel in /usr/local/lib/python3.5/dist-packages (1.0.4)\r\nRequirement already satisfied: aiorpcx in /usr/local/lib/python3.5/dist-packages/aiorpcX-0.5.5-py3.5.egg (0.5.5)\r\naiorpcX requires Python '>=3.6' but the running Python is 3.5.3\r\n\r\n\r\nHowever, I can not seem to figure out how to install these dependencies on Python3.6.\r\n`python3.6 -m pip install --upgrade pip setuptools wheel`\r\npip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\r\nCache entry deserialization failed, entry ignored\r\nCould not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping\r\nRequirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages\r\nCache entry deserialization failed, entry ignored\r\nCould not fetch URL https://pypi.python.org/simple/setuptools/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping\r\nRequirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages\r\nCollecting wheel\r\n  Cache entry deserialization failed, entry ignored\r\n  Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping\r\n  Could not find a version that satisfies the requirement wheel (from versions: )\r\nNo matching distribution found for wheel\r\n\r\nand\r\n\r\n`python3.6 -m pip install aiohttp pylru leveldb plyvel aiorpcx`\r\npip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\r\nCollecting aiohttp\r\n  Could not fetch URL https://pypi.python.org/simple/aiohttp/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping\r\n  Could not find a version that satisfies the requirement aiohttp (from versions: )\r\nNo matching distribution found for aiohttp\r\n"}}
{"actor":{"display_login":"Rspigler"}}