This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Unable to establish connection to compilation daemon

1 reply
olo
Joined: 2011-05-11,
User offline. Last seen 1 year 25 weeks ago.

I had this error message on Debian with scala 2.8.1, which prevented
me from runing scala scripts in terminal. (ex. scala hello.scala)
After some research I found this solution to fix the problem

Scala-Unable to establish connection to compilation daemon
– MY SOLUTION –
add this line to /etc/hosts:
0.0.0.0 MY_HOST_NAME
this fixed the problem for me. other solutions with adding '127.0.0.1
YOUR_HOST_NAME' didn’t work. MY_HOST_NAME is to be replaced with the
output of ‘hostname’ command run in the termanal. I also removed
MY_HOST_NAME from other lines in /etc/hosts

I spent a couple of hours finding this out, so I hope this will be
helpful to others who encountered this obstacle :)

olo
Joined: 2011-05-11,
User offline. Last seen 1 year 25 weeks ago.
Re: Unable to establish connection to compilation daemon

one more remark, for this to work don't use -
Djava.net.preferIPv4Stack=true' option when running fsc (which I also
tried out, as a possible fix)

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland