{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-emacs/issues/245","labels_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/245/comments","events_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/245/events","html_url":"https://github.com/ensime/ensime-emacs/issues/245","id":107758045,"number":245,"title":"Can't connect to ensime server","user":{"login":"albertmichaelj","id":5385923,"avatar_url":"https://avatars.githubusercontent.com/u/5385923?v=3","gravatar_id":"","url":"https://api.github.com/users/albertmichaelj","html_url":"https://github.com/albertmichaelj","followers_url":"https://api.github.com/users/albertmichaelj/followers","following_url":"https://api.github.com/users/albertmichaelj/following{/other_user}","gists_url":"https://api.github.com/users/albertmichaelj/gists{/gist_id}","starred_url":"https://api.github.com/users/albertmichaelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertmichaelj/subscriptions","organizations_url":"https://api.github.com/users/albertmichaelj/orgs","repos_url":"https://api.github.com/users/albertmichaelj/repos","events_url":"https://api.github.com/users/albertmichaelj/events{/privacy}","received_events_url":"https://api.github.com/users/albertmichaelj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-22T17:07:08Z","updated_at":"2015-09-22T17:24:11Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI'm on OS X Yosemite 10.10.5, using Emacs 24.5.1, ensime version 20150915.1240 from elpa, and sbt version 0.13.7 from macports.\r\n\r\nI used to be able to connect to the ensime server fine from my setup, but I haven't tried in about half a year, and now when I try to connect to the ensime server using `M-x ensime`, I get the following: \r\n\r\n```\r\nStarting ENSIME server: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/lib/tools.jar:/Users/Michael/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.4.jar:/Users/Michael/.ivy2/cache/org.ensime/ensime_2.11/jars/ensime_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.ensime/server_2.11/jars/server_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.ensime/core_2.11/jars/core_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.4.jar:/Users/Michael/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.4.jar:/Users/Michael/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar:/Users/Michael/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.2.jar:/Users/Michael/.ivy2/cache/org.ensime/api_2.11/jars/api_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.scalariform/scalariform_2.11/jars/scalariform_2.11-0.1.7.jar:/Users/Michael/.ivy2/cache/com.github.stacycurl/pimpathon-core_2.11/jars/pimpathon-core_2.11-1.5.0.jar:/Users/Michael/.ivy2/cache/org.ensime/sexpress_2.11/jars/sexpress_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.parboiled/parboiled-scala_2.11/jars/parboiled-scala_2.11-1.1.7.jar:/Users/Michael/.ivy2/cache/org.parboiled/parboiled-core/jars/parboiled-core-1.1.7.jar:/Users/Michael/.ivy2/cache/com.chuusai/shapeless_2.11/bundles/shapeless_2.11-2.2.5.jar:/Users/Michael/.ivy2/cache/com.h2database/h2/jars/h2-1.4.188.jar:/Users/Michael/.ivy2/cache/com.typesafe.slick/slick_2.11/bundles/slick_2.11-2.1.0.jar:/Users/Michael/.ivy2/cache/com.typesafe/config/bundles/config-1.2.1.jar:/Users/Michael/.ivy2/cache/com.jolbox/bonecp/bundles/bonecp-0.8.0.RELEASE.jar:/Users/Michael/.ivy2/cache/com.google.guava/guava/bundles/guava-15.0.jar:/Users/Michael/.ivy2/cache/org.apache.commons/commons-vfs2/jars/commons-vfs2-2.0.jar:/Users/Michael/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/Users/Michael/.ivy2/cache/org.apache.maven.scm/maven-scm-api/jars/maven-scm-api-1.4.jar:/Users/Michael/.ivy2/cache/org.codehaus.plexus/plexus-utils/jars/plexus-utils-1.5.6.jar:/Users/Michael/.ivy2/cache/org.apache.maven.scm/maven-scm-provider-svnexe/jars/maven-scm-provider-svnexe-1.4.jar:/Users/Michael/.ivy2/cache/org.apache.maven.scm/maven-scm-provider-svn-commons/jars/maven-scm-provider-svn-commons-1.4.jar:/Users/Michael/.ivy2/cache/regexp/regexp/jars/regexp-1.3.jar:/Users/Michael/.ivy2/cache/org.apache.lucene/lucene-core/jars/lucene-core-4.7.2.jar:/Users/Michael/.ivy2/cache/org.apache.lucene/lucene-analyzers-common/jars/lucene-analyzers-common-4.7.2.jar:/Users/Michael/.ivy2/cache/org.ow2.asm/asm-commons/jars/asm-commons-5.0.4.jar:/Users/Michael/.ivy2/cache/org.ow2.asm/asm-tree/jars/asm-tree-5.0.4.jar:/Users/Michael/.ivy2/cache/org.ow2.asm/asm/jars/asm-5.0.4.jar:/Users/Michael/.ivy2/cache/org.ow2.asm/asm-util/jars/asm-util-5.0.4.jar:/Users/Michael/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.11.4.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.12.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.11/jars/akka-slf4j_2.11-2.3.12.jar:/Users/Michael/.ivy2/cache/org.scala-refactoring/org.scala-refactoring.library_2.11/jars/org.scala-refactoring.library_2.11-0.6.2.jar:/Users/Michael/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.6.jar:/Users/Michael/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.3.jar:/Users/Michael/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.3.jar:/Users/Michael/.ivy2/cache/org.slf4j/jul-to-slf4j/jars/jul-to-slf4j-1.7.12.jar:/Users/Michael/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.12.jar:/Users/Michael/.ivy2/cache/org.slf4j/jcl-over-slf4j/jars/jcl-over-slf4j-1.7.12.jar:/Users/Michael/.ivy2/cache/org.ensime/swank_2.11/jars/swank_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/org.ensime/jerk_2.11/jars/jerk_2.11-0.9.10-SNAPSHOT.jar:/Users/Michael/.ivy2/cache/com.github.fommil/spray-json-shapeless_2.11/jars/spray-json-shapeless_2.11-1.1.0.jar:/Users/Michael/.ivy2/cache/io.spray/spray-json_2.11/bundles/spray-json_2.11-1.3.2.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-stream-experimental_2.11/jars/akka-stream-experimental_2.11-1.0.jar:/Users/Michael/.ivy2/cache/org.reactivestreams/reactive-streams/jars/reactive-streams-1.0.0.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-http-core-experimental_2.11/jars/akka-http-core-experimental_2.11-1.0.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-parsing-experimental_2.11/jars/akka-parsing-experimental_2.11-1.0.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-http-experimental_2.11/jars/akka-http-experimental_2.11-1.0.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-http-spray-json-experimental_2.11/jars/akka-http-spray-json-experimental_2.11-1.0.jar:/Users/Michael/.ivy2/cache/com.typesafe.akka/akka-http-xml-experimental_2.11/jars/akka-http-xml-experimental_2.11-1.0.jar -Xss2m -XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8 -Densime.config=/Users/Michael/Documents/Projects/hello/.ensime org.ensime.server.Server\r\nJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0\r\n11:53:38.464 INFO  None a.e.s.Slf4jLogger - Slf4jLogger started\r\n11:53:38.474 DEBUG EventStream(akka://ENSIME) a.e.EventStream - logger log1-Slf4jLogger started\r\n11:53:38.477 DEBUG EventStream(akka://ENSIME) a.e.EventStream - Default Loggers started\r\n11:53:38.512 INFO  None o.a.c.v.i.StandardFileSystemManager - Using \"/var/folders/zg/kt02lt3s3pg61fws3gc4jn780000gn/T/vfs_cache\" as temporary files store.\r\n11:53:38.544 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/0 a.i.TcpListener - Successfully bound to /127.0.0.1:49827\r\n11:53:38.546 INFO  None o.e.s.PortUtil$ - creating portfile /Users/Michael/Documents/Projects/hello/.ensime_cache/port\r\n11:53:38.546 INFO  akka://ENSIME/user/ensime-main/tcp-server o.e.s.t.TCPServer - Bound server on port 49827\r\n11:53:39.096 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/1 a.i.TcpListener - Successfully bound to /127.0.0.1:49828\r\n11:53:39.097 INFO  akka://ENSIME/user/ensime-main o.e.s.ServerActor - Environment:\r\n  OS : Mac OS X\r\n  Java : Java HotSpot(TM) 64-Bit Server VM 25.60-b23, Java(TM) SE Runtime Environment 1.8.0_60-b27\r\n  Scala : version 2.11.4\r\n  Ensime : 0.9.10-SNAPSHOT\r\n11:53:39.101 INFO  akka://ENSIME/user/ensime-main o.e.s.ServerActor - ENSIME HTTP on /127.0.0.1\r\n11:53:39.102 ERROR None Server - Shutdown requested due to internal error: http endpoint failed to initialise: An ENSIME server might be open already for this project. If you are sure this is not the case, please delete /Users/Michael/Documents/Projects/hello/.ensime_cache/http and \r\n11:53:39.102 INFO  None Server - Shutting down the ActorSystem\r\n11:53:39.102 INFO  None Server - Awaiting actor system termination\r\n11:53:39.113 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/1 a.i.TcpListener - Unbinding endpoint /127.0.0.1:49828\r\n11:53:39.115 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/1 a.i.TcpListener - Unbound endpoint /127.0.0.1:49828, stopping listener\r\n11:53:39.116 INFO  akka://ENSIME/system/IO-TCP-STREAM/server-1-%2F127.0.0.1%3A0 a.a.LocalActorRef - Message [akka.io.Tcp$Unbound$] from Actor[akka://ENSIME/system/IO-TCP/selectors/$a/1#-604674877] to Actor[akka://ENSIME/system/IO-TCP-STREAM/server-1-%2F127.0.0.1%3A0#-649292646] was not delivered. [1] dead letters encountered. This logging can be tu\r\n11:53:39.177 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/0 a.i.SelectionHandler - Monitored actor [Actor[akka://ENSIME/user/ensime-main/tcp-server#1452529907]] terminated\r\n11:53:39.178 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/0 a.i.TcpListener - Closing serverSocketChannel after being stopped\r\n11:53:40.023 DEBUG EventStream a.e.EventStream - shutting down: StandardOutLogger started\r\n11:53:40.047 INFO  None Server - Shutdown complete\r\n\r\nProcess *inferior-ensime-server-root*<2> exited abnormally with code 1\r\n```\r\n\r\nI've looked through other issues, but I haven't been able to solve this. Anybody have any ideas? Sbt is on my exec-path for emacs, and I've defined JDK_HOME.\r\n\r\nThanks for any help.\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26873142-can-t-connect-to-ensime-server?utm_campaign=plugin&utm_content=tracker%2F3469453&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3469453&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/ensime/ensime-emacs/issues/comments/142355276","html_url":"https://github.com/ensime/ensime-emacs/issues/245#issuecomment-142355276","issue_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/245","id":142355276,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T17:24:11Z","updated_at":"2015-09-22T17:24:11Z","body":"I think it is connecting, but maybe the client is dropping some message."}}