{"action":"closed","issue":{"url":"https://api.github.com/repos/litecoin-project/litecoin/issues/450","repository_url":"https://api.github.com/repos/litecoin-project/litecoin","labels_url":"https://api.github.com/repos/litecoin-project/litecoin/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/litecoin-project/litecoin/issues/450/comments","events_url":"https://api.github.com/repos/litecoin-project/litecoin/issues/450/events","html_url":"https://github.com/litecoin-project/litecoin/issues/450","id":302259223,"number":450,"title":"Failed to connect to testnet","user":{"login":"LanfordCai","id":10380321,"avatar_url":"https://avatars2.githubusercontent.com/u/10380321?v=4","gravatar_id":"","url":"https://api.github.com/users/LanfordCai","html_url":"https://github.com/LanfordCai","followers_url":"https://api.github.com/users/LanfordCai/followers","following_url":"https://api.github.com/users/LanfordCai/following{/other_user}","gists_url":"https://api.github.com/users/LanfordCai/gists{/gist_id}","starred_url":"https://api.github.com/users/LanfordCai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LanfordCai/subscriptions","organizations_url":"https://api.github.com/users/LanfordCai/orgs","repos_url":"https://api.github.com/users/LanfordCai/repos","events_url":"https://api.github.com/users/LanfordCai/events{/privacy}","received_events_url":"https://api.github.com/users/LanfordCai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-05T11:10:05Z","updated_at":"2018-03-06T03:36:34Z","closed_at":"2018-03-06T03:36:34Z","author_association":"NONE","body":"### Describe the issue\r\n\r\nLitecoin **testnet** cann't connect to peers.\r\n\r\nI tried to run litecoind 0.14.2 with the command below on Ubuntu 16.04\r\n\r\n```\r\nlitecoind -testnet -datadir=/mnt -server -txindex -rpcbind=x.x.x.x -rest -rpcallowip=x.x.x.x/x -rpcport=9332 -rpcuser=xxxx -rpcpassword=xxxx -printtoconsole -disablewallet\r\n```\r\n\r\nBut it just print the errors below:\r\n\r\n```\r\n2018-03-05 06:57:45 connect() to 173.209.44.34:19335 failed after select(): Connection refused (111)\r\n2018-03-05 06:57:46 connect() to 66.178.182.35:19335 failed after select(): Connection refused (111)\r\n2018-03-05 06:57:46 connect() to 104.236.211.206:19335 failed after select(): Connection refused (111)\r\n```\r\n\r\nAccording to the comment in [#393](https://github.com/litecoin-project/litecoin/issues/393), I added the connect params:\r\n\r\n```\r\nlitecoind -testnet -datadir=/mnt -server -txindex -rpcbind=x.x.x.x -rest -rpcallowip=x.x.x.x/x -rpcport=9332 -rpcuser=xxxx -rpcpassword=xxxx -printtoconsole -disablewallet -connect=104.131.161.171\r\n```\r\n\r\nBut it wasn't work:\r\n\r\n```\r\n2018-03-05 10:46:19 connect() to 104.131.161.171:19335 failed after select(): Connection refused (111)\r\n2018-03-05 10:46:19 connect() to 104.131.161.171:19335 failed after select(): Connection refused (111)\r\n2018-03-05 10:46:20 connect() to 104.131.161.171:19335 failed after select(): Connection refused (111)\r\n```\r\n\r\nThen I guess it might the network problem of the cloud server, so I compiled litecoin source code in my Macbook, but problem was still there.\r\n\r\nWithout `-connect`, the errors on my macOS 10.13.2 are:\r\n\r\n```\r\n2018-03-05 10:43:59 msghand thread start\r\n2018-03-05 10:43:59 Loading addresses from DNS seeds (could take a while)\r\n2018-03-05 10:43:59 3 addresses found from DNS seeds\r\n2018-03-05 10:43:59 dnsseed thread exit\r\n2018-03-05 10:44:00 socket recv error Connection reset by peer (54)\r\n2018-03-05 10:44:00 socket recv error Connection reset by peer (54)\r\n2018-03-05 10:44:03 socket recv error Connection reset by peer (54)\r\n```\r\n\r\nWith `-connect`, it just froze at `init message: Done loading`:\r\n\r\n```\r\n2018-03-05 10:47:01 Loaded 3 addresses from peers.dat  0ms\r\n2018-03-05 10:47:01 init message: Loading banlist...\r\n2018-03-05 10:47:01 init message: Starting network threads...\r\n2018-03-05 10:47:01 net thread start\r\n2018-03-05 10:47:01 dnsseed thread start\r\n2018-03-05 10:47:01 addcon thread start\r\n2018-03-05 10:47:01 init message: Done loading\r\n```\r\n\r\n### Addtional Information\r\n\r\nMainnet works fine, if I deleted `-testnet`, it would begin syncing blocks."}}
{"actor":{"display_login":"LanfordCai"}}