question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

paket restore - file creation issues

See original GitHub issue

Description

A paket restore cannot extract / copy certain files to the packages folder

Repro steps

Please provide the steps required to reproduce the problem

  1. Have paket.dependencies file from here: git@github.com:Flohack74/paket-issuetracking.git

  2. Do a paket restore with latest version 5.239, or one version below 5.238.2

Expected behavior

All packages are downloaded and installed

Actual behavior

paket restore breaks with

  ==> Last trial
Downloading Microsoft.Extensions.DependencyInjection 3.1
Not moving as 'C:\Users\flole\.nuget\packages\microsoft.extensions.dependencyinjection\3.1.0\microsoft.extensions.dependencyinjection.3.1.0.nupkg' already exists (maybe some other instance downloaded it as well)
Download of Microsoft.Extensions.DependencyInjection 3.1 done in 28 milliseconds. (50758 kbit/s, 0 MB)
Performance:
 - Disk IO: 23 seconds
 - Average Download Time: 180 milliseconds
 - Number of downloads: 216
 - Average Request Time: 177 milliseconds
 - Number of Requests: 234
 - Runtime: 56 seconds
Paket omitted 4 warnings similar to the ones above. You can see them in verbose mode.
Paket failed with
-> Error during extraction of C:\USERDATA\DEVEL\packages\Microsoft.Extensions.DependencyInjection\microsoft.extensions.dependencyinjection.3.1.0.nupkg.

    In rare cases a firewall might have blocked the download. Please look into the file and see if it contains text with further information.
-> IOException: The file 'C:\USERDATA\DEVEL\packages\Microsoft.Extensions.DependencyInjection\packageIcon.png' already exists.

It breaks on either Microsoft.Extensions.DependencyInjection or Microsoft.Extensions.DependencyInjection.Abstractions…

Also, paket restore --force breaks on various packages with

Paket failed with
-> Error during cleaning of C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client
     - Access to the path 'C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client\lib\net45' is denied.
-> UnauthorizedAccessException: Access to the path 'C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client\lib\net45' is denied.

But this is a random race condition. Every time this appears its a different package.

Known workarounds

None

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:27 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
forkicommented, Dec 4, 2019

ok please test 5.240.0. thanks

1reaction
forkicommented, Dec 4, 2019

@dracan please retry with latest Paket

Read more comments on GitHub >

github_iconTop Results From Across the Web

paket restore
paket restore fails with an error if the paket.lock file does not exist. No packages are downloaded in that case. Please see paket...
Read more >
NuGet Package Restore
NuGet Package Restore restores all of a project's dependencies that are listed in either a project file or a packages.config file.
Read more >
Paket Issues - Steve Ellwood - Medium
I'm using Paket in my C# libraries and applications. I like the format and find it much simpler than some alternatives.
Read more >
Can't get paket to work for the simplest case : r/fsharp
I think you need to run `dotnet paket restore`; this will ensure that the package is actually restored and available to your app....
Read more >
Paket error: "Package was referenced, but it was not found ...
Option 1. The easiest way to fix this error is to delete the file paket.lock , and force Paket to regenerate this file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found