cli: read: connection refused

I installed the cli on Ubuntu 17.04 using the install script, and configured it using my API key.

Nonetheless, whether I try to do exercism fetch javascript or exercism upgrade, no matter on which network I am, I get an error of this type:

kenny@localhost:~$ exercism fetch javascript
2017/05/11 09:21:48 Get http://x.exercism.io/v2/exercises/javascript?key=something: dial tcp: lookup x.exercism.io on 127.0.1.1:53: read udp 127.0.0.1:58608->127.0.1.1:53: read: connection refused

This “port forwarding” thing looks sketchy to me… any idea what’s going on there?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments

@kytrinyx, I updated my Ubuntu to 17.10, exercism is working now

Fixed it! It seems that my Ubuntu 17.10 was badly configured (possibly the upgrade from previous versions wasn’t perfect), and /etc/resolv.conf was not managed as it should. The solution was to remove /etc/resolv.conf (a regular file) and replace it by a symlink to /run/systemd/resolve/stub-resolv.conf.