Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tor Langlo 191 posts 554 karma points
    Apr 25, 2024 @ 19:16
    Tor Langlo
    0

    Unable to create new Umbraco projects or restore packages

    Is anyone else having troubles communicating with Nuget related to Umbraco projects at the moment? I'm completely stuck, cannot restore/build my Umbraco sites. I have been troubleshooting all day, but cannot get to the root of it. Googling doesn't help.

    I'm on Windows 10 and Visual Studio 17.9.6.

    The simplest way to reproduce the issue for me is to use the instructions from https://our.umbraco.com/download and run the first two dotnet commands:

    dotnet new install Umbraco.Templates
    dotnet new umbraco -n MyProject
    

    The first command completes successfully, but the second one fails. Here's what it looks like (there's a lot more following the first two errors):

    C:\Dev\Umbraco\Playgrounds\Triaging-240425>dotnet new install Umbraco.Templates
    The following template packages will be installed:
       Umbraco.Templates
    
    Umbraco.Templates (version 13.3.0) is already installed, it will be replaced with latest version.
    Umbraco.Templates::13.3.0 was successfully uninstalled.
    Success: Umbraco.Templates::13.3.0 installed the following templates:
    Template Name        Short Name          Language  Tags
    -------------------  ------------------  --------  --------------------------------------------------
    Umbraco Package      umbracopackage      [C#]      Web/CMS/Umbraco/Package/Plugin
    Umbraco Package RCL  umbracopackage-rcl  [C#]      Web/CMS/Umbraco/Package/Plugin/Razor Class Library
    Umbraco Project      umbraco             [C#]      Web/CMS/Umbraco
    
    
    C:\Dev\Umbraco\Playgrounds\Triaging-240425>dotnet new umbraco -n MyProject
    The template "Umbraco Project" was created successfully.
    
    Processing post-creation actions...
    Restoring C:\Dev\Umbraco\Playgrounds\Triaging-240425\MyProject\MyProject.csproj:
      Determining projects to restore...
      Failed to download package 'Lucene.Net.4.8.0-beta00016' from 'https://api.nuget.org/v3-flatcontainer/lucene.net/4.8.0-beta00016/lucene.net.4.8.0-beta00016.nupkg'.
      The download of 'https://api.nuget.org/v3-flatcontainer/lucene.net/4.8.0-beta00016/lucene.net.4.8.0-beta00016.nupkg' timed out because no data was received for 60000ms.
        Exception of type 'System.TimeoutException' was thrown.
      Failed to download package 'Newtonsoft.Json.10.0.1' from 'https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.1/newtonsoft.json.10.0.1.nupkg'.
      The download of 'https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.1/newtonsoft.json.10.0.1.nupkg' timed out because no data was received for 60000ms.
        Exception of type 'System.TimeoutException' was thrown.
    

    I have also tried other scenarios, but they all fail with "Failed to download package". For instance, I have tried installing the template from the UmBootstrap project using the following command (with same result):

    dotnet new install Umbraco.Community.Templates.UmBootstrap
    
  • Tor Langlo 191 posts 554 karma points
    Apr 27, 2024 @ 21:50
    Tor Langlo
    100

    Things started improving yesterday afternoon, and seems to have been an issue with Nuget and/or CDN networks. Strange though, that nothing was reported on their status page or otherwise. For me it meant two days of not being able to work on most of my projects.

Please Sign in or register to post replies

Write your reply to:

Draft