DNU 恢复提供了大量的“HTTP 请求超时"; [英] DNU Restore gives lots of "HTTP request timed out"

查看:29
本文介绍了DNU 恢复提供了大量的“HTTP 请求超时";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 https://github.com/aspnet/home 运行示例.
但是我在更新参考资料时遇到了问题.恢复速度很慢,某些软件包会失败:

I'm trying to run the samples from https://github.com/aspnet/home.
But I'm having problems updating the references. The restore is very slow and fails for some packages:

  GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables'
Warning: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables
  HTTP request timed out. Retrying.
  GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables'
Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini
  HTTP request timed out. Retrying.
  GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.Ini'
Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini
  HTTP request timed out. Retrying.
  GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.Ini'
Warning: FindPackagesById: Microsoft.Framework.Logging
  HTTP request timed out. Retrying.
  GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Logging'
Warning: FindPackagesById: Microsoft.Framework.Logging
  HTTP request timed out. Retrying.
  GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Logging'
Warning: FindPackagesById: Newtonsoft.Json
  HTTP request timed out. Retrying.
  GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Newtonsoft.Json'
Warning: FindPackagesById: Newtonsoft.Json
  HTTP request timed out. Retrying.
  GET http://www.nuget.org/api/v2/FindPackagesById()?id='Newtonsoft.Json'
Error: FindPackagesById: Microsoft.AspNet.Mvc.Razor
  HTTP request timed out. Exiting.

我使用 nuget、myget、http、https 尝试了不同的 url.
我检查了我的互联网连接.dnx repo 中有一个相关问题,但没有帮助.
有什么办法可以尝试吗?

I tried with different urls using nuget, myget, http, https.
I checked my internet connection. There is a related issue in the dnx repo, but it did not help.
Any workaround to try?

我在 CentOS 上使用单声道 4.0.3.20.

I'm using mono 4.0.3.20 on CentOS.

推荐答案

这里是解决方法:

export MONO_THREADS_PER_CPU=2000

来自 http://www.mono-project.com/archived/articlethreadpool_deadlocks/

这篇关于DNU 恢复提供了大量的“HTTP 请求超时";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆