【发布时间】:2018-01-21 03:57:04
【问题描述】:
当我运行cider-jack-in 时,我会收到一个SocketException,其中Protocol family unavailable 作为异常消息。
lein repl 在命令行上运行良好。
我在网上搜索过,没有找到同时包含“cider”和“SocketException”的匹配项,这总是令人担忧。在我写这篇文章时,在搜索 github 项目和 StackOverflow 提出的可能相关问题列表中都没有发现任何明显的问题。
无论我是否加载了项目文件,我都会收到相同的错误。
我的 Emacs 会话往往运行时间非常长(几个月),但我检查过,重启后问题仍然相同。
我想到的事情可能在起作用,但我认为我可以打折扣:
AFAIK 子网上没有主机(其中的这个主机)在任何接口上配置了 IPv6。
此 Emacs 与 Squid 代理服务器在同一主机上运行,但
(getenv "no_proxy")返回一个逗号分隔的字符串,其中包括localhost和127.0.0.0/16,因此不应连接到代理服务器请求作为连接到同一主机上的nrepl服务器的一部分。此主机具有高度自定义的
/etc/hosts文件,但未启用任何 IPv6 地址映射。
换句话说,它应该是一个“纯”的 IPv4 主机。
emacs-version: 24.5.1
cider-version: 0.15.1-snapshot
操作系统:Linux this-host 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux
堆栈跟踪头:
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.net.SocketException: Protocol family unavailable, compiling:(/tmp/form-init7765774181037314573.clj:1:73)
怎么了?
【问题讨论】: