首页 > 编程知识 正文

restorehealth失败,error connect econnrefused

时间:2023-05-04 14:20:24 阅读:35201 作者:1210

前几天,使用基于mono的dnx的dnu restore命令安装nuget软件包时,遇到了“Cannot handle address family”错误。 错误的详细情况如下。 cannothandleaddressfamily 61712堆栈跟踪: at unknown0xffffff fat (wrapper managed-to-native )系统. net.DNS.get hooood string[] 0 xfffffatsystem.net.DNS.gethostbyname (string )0x 00054 at system.net.service point.get _ host entry0x 0219 at system ebRequest )0x 001 D4 at system.net.web connection.init0x 002 eaat system.net.web connection.web connectionm _0(对象连接a aging0x 00058 at system.threading.execution context.run internal (system.threading.execution context, system.threading.coon text bool (0x 001 C6 at system.threading.execution context.run (system.threading.execution cution contentent ) BOL (0x 00020 at system.runtime.remoting.messaging.async result.asyncresultm _ _0(object ) 0022 at ) wrapperrunnn ject、intptr、intptr、 intptr )0xffffffnativestacktrace : mono ([0x 4a1ce8]/lib/x86 _ 64-Linux-GNU/libpthread.so.0 (0x 10340 libc ) x86_64-Linux-GNU/libc.so.6 ) Abort0x148 )0x 7f 96 c8ae 30 [0x 631769 ] mono ([0x 62b 0b5] mono ) [0x 57 a5 e6] [0x 449 debuginfofromgdb :=========================ariesusedbyyourapplication.=========================有关详细信息,请参阅use ' DNS.gethostentry ' or ' DNS.gethostbyname ',Soonsxxxxx

'。

当时错误不断,怎么也没能完成dnu restore。 之后,过了一会儿再操作,突然就好了。

在那之后,我遇到了好几次这个问题,但是出了错误之后,过了一会儿就好了。

今天再次相遇,突然想到,是因为dns缓存吗? 请尝试清除dns缓存。

当service nscd restart重新启动nscd时,错误会立即消失。

为了进一步验证这是真的原因,后来我找到了一种方法,可以重现问题——,删除~/.dnx/packages文件夹,然后重新编译dnx。

在dnx编译期间运行dnu restore会多次出现“Cannot handle address family”问题,每次都可以在service nscd restart中解决。

转载于:https://www.cn blogs.com/DuDu/p/4610577.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。