2015-07-25 14 views
5

Riprendo il codice di esempio da https://www.github.com/aspnet/home. Durante il ripristino dei pacchetti nell'ultima cartella/HelloMvc, verificato il seguente errore:dnu è sempre stato cancellato o timeout quando si ripristina la demo di vnext mvc

Warning: FindPackagesById: Microsoft.AspNet.Http.Features 
    HTTP request timed out. Retrying. 
    GET https://nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNet.Http.Features' 
Error: FindPackagesById: Microsoft.AspNet.Hosting.Server.Abstractions 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.Configuration 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.AspNet.Http 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.Configuration.CommandLine 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.DependencyInjection 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.Configuration.Ini 
    HTTP request timed out. Exiting. 
Error: FindPackagesById: Microsoft.Framework.Logging 
    HTTP request timed out. Exiting. 
---------- 
System.Threading.Tasks.TaskCanceledException: A task was canceled. 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
    at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult() [0x00000] in <filename unknown>:0 
    at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext() [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown --- 

ma io ripristinare correttamente a 'lastest/ConsoleApp', allora io uso wget per scaricare il pacakge con l'URL fallito, non c'è problemi, posso decomprimere le DLL da quel pacchetto.

Ho ripristinato 'lastest/HelloMvc' utilizzare mono 1.0.0-beta7-12274 runtime, o ripristinare '1.0.0-beta5/HellowMvc' utilizzare 1.0.0-beta5 runtime, o cambiare per usare il file docker (Microsoft/Aspnet), anche cambiare computer, l'errore è lo stesso ~

+0

Quale versione mono stai usando? –

+0

@VictorHurdugaci Mono compilatore JIT versione 4.0.2 (Stabile 4.0.2.5/c99aa0c Mer 24 giugno 10:04:37 UTC 2015) TLS: __thread SIGSEGV: altstack Notifiche: epoll Architettura: amd64 Disabilitato: nessuno Varie: softdebug LLVM: supportato, non abilitato. GC: sgen – aspark

+0

Sto usando la versione Mono 4.3.0 su CentOs 6.6 e ho lo stesso problema. – ferpega

risposta

5

hai provato a eseguire mozroots --import --sync? Ho trovato quella soluzione su https://github.com/aspnet/Docs/issues/184 e ha funzionato per me.

+0

non ha funzionato per me. ma ripristino la soluzione su Windows e copio tutti i pacchetti su Linux, quindi ripristino il successo, penso che il mono-beta7 (beta5 +) abbia il bug che causa il timeout della richiesta – aspark

+1

per me. thanx – th1rdey3

0

utilizzare il seguente comando env MONO_THREADS_PER_CPU = 2000 dnu ripristina. Questo ha funzionato per me. È inoltre possibile impostare la variabile di ambiente globale, in tal caso non sarà necessario digitare env MONO_THREADS_PER_CPU ogni volta che si esegue dnu ripristino.

Problemi correlati