Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error extracting foundation-sites 6.4.3 package due to zip file conflicts. #7239

Open
livarcocc opened this issue Aug 24, 2018 · 11 comments
Open
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Install The install command in VS/nuget.exe Functionality:Restore help wanted Considered good issues for community contributions. Priority:2 Issues for the current backlog. Type:Bug
Milestone

Comments

@livarcocc
Copy link

From @Miclebrick on June 29, 2018 21:6

Steps to reproduce

dotnet new razor
dotnet add package foundation-sites

Expected behavior

installs package

Actual behavior

miclebrick@micles-workshop:~/Web/starlegacy.net$ dotnet add package foundation-sites
Writing /tmp/tmp74iiKh.tmp
info : Adding PackageReference for package 'foundation-sites' into project '/home/miclebrick/Web/starlegacy.net/starlegacy.net.csproj'.
log : Restoring packages for /home/miclebrick/Web/starlegacy.net/starlegacy.net.csproj...
info : CACHE https://api.nuget.org/v3-flatcontainer/foundation-sites/index.json
info : CACHE https://api.nuget.org/v3-flatcontainer/foundation-sites/6.4.3/foundation-sites.6.4.3.nupkg
log : Installing foundation-sites 6.4.3.
error: Access to the path '/home/miclebrick/.nuget/packages/foundation-sites/6.4.3/foundation-sites.nuspec' is denied.
error: Permission denied

Environment data

dotnet --info output:
miclebrick@micles-workshop:~$ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.1.301
Commit: 59524873d6

Runtime Environment:
OS Name: zorin
OS Version: 12
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.1.301/

Host (useful for support):
Version: 2.1.1
Commit: 6985b9f684

.NET Core SDKs installed:
2.1.301 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Copied from original issue: dotnet/cli#9594

@livarcocc
Copy link
Author

From @peterhuene on July 3, 2018 3:2

Hi @Miclebrick. Thanks for reporting this to us!

Are you having this issue only with this particular package? Could you check to see if ~/.nuget or '~/.nuget/packages has some weird permissions, such as having root as the owner rather than miclebrick?

@livarcocc
Copy link
Author

From @Miclebrick on July 4, 2018 11:47

Huh, it seems to. But I tried it with a new folder and it still didn't work. I'll try fixing the permissions and then doing it.

@livarcocc
Copy link
Author

From @Miclebrick on July 4, 2018 11:51

miclebrick@micles-workshop:~/Documents/starlegacy.net$ sudo chown miclebrick ~/.nuget -R
miclebrick@micles-workshop:~/Documents/starlegacy.net$ dotnet add package foundation-sites
  Writing /tmp/tmpuHj4Ut.tmp
info : Adding PackageReference for package 'foundation-sites' into project '/home/miclebrick/Documents/starlegacy.net/starlegacy.net.csproj'.
log  : Restoring packages for /home/miclebrick/Documents/starlegacy.net/starlegacy.net.csproj...
info :   CACHE https://api.nuget.org/v3-flatcontainer/foundation-sites/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/foundation-sites/6.4.3/foundation-sites.6.4.3.nupkg
log  : Installing foundation-sites 6.4.3.
error: Access to the path '/home/miclebrick/.nuget/packages/foundation-sites/6.4.3/content/Scripts' is denied.
error:   Permission denied

Using chown didn't work. The permissions for the folder it can't access seem fine https://i.snag.gy/b69nBt.jpg

@livarcocc
Copy link
Author

From @Miclebrick on July 4, 2018 11:59

I tried it with nhibernate, and it worked fine, so it only happens with this package

@livarcocc
Copy link
Author

From @Miclebrick on July 4, 2018 12:16

I ended up using bootstrap anyway, so I don't really need help with this anymore, but I will leave the issue open in case someone else has the issue... unless nobody else can reproduce it and it's just on my end

@livarcocc
Copy link
Author

From @ChrisK91 on August 24, 2018 15:56

I'm experiencing the exact same issue on Windows, running Visual Studio 2017. Might be something funky with the package, as other packages install fine:

PM> Install-Package foundation-sites
Restoring packages for d:\Daten\Dokumente\Visual Studio 2017\Projects\Memelyzer\Memelyzer\Memelyzer.csproj...
  GET https://api.nuget.org/v3-flatcontainer/foundation-sites/index.json
  OK https://api.nuget.org/v3-flatcontainer/foundation-sites/index.json 558ms
  GET https://api.nuget.org/v3-flatcontainer/foundation-sites/6.4.3/foundation-sites.6.4.3.nupkg
  OK https://api.nuget.org/v3-flatcontainer/foundation-sites/6.4.3/foundation-sites.6.4.3.nupkg 455ms
Installing foundation-sites 6.4.3.
Install-Package : Access to the path 'C:\Users\USERNAME\.nuget\packages\foundation-sites\6.4.3\content\Scripts' is denied.
At line:1 char:1
+ Install-Package foundation-sites
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

@nkolev92
Copy link
Member

nkolev92 commented Aug 28, 2018

This is only a problem with 6.4.3 version of this package.

I have tried to repro it 6.4.1 and 6.4.0 versions and there are no issues there.

@nkolev92
Copy link
Member

The root cause of this is that in the content folder in the package there's both a folder and a file with the Scripts name.
Then NuGet has trouble extracting this.

Namely:

foundation-sites-6 4 3

I'd suggest you reach out to the package authors and ask them to fix their package.

https://www.nuget.org/packages/foundation-sites/6.4.3/ContactOwners

@skofman1 Should this be a validation that's caught by nuget.org on ingestion?

On the client side we can probably look into improving this message.

@nkolev92 nkolev92 changed the title add package foundation-sites gives error Error extracting foundation-sites 6.4.3 package due to zip file conflicts. Aug 28, 2018
@nkolev92 nkolev92 added Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Restore Functionality:Install The install command in VS/nuget.exe labels Aug 28, 2018
@nkolev92 nkolev92 added this to the Backlog milestone Aug 28, 2018
@PatoBeltran PatoBeltran added the help wanted Considered good issues for community contributions. label Jan 25, 2019
@DanielRuf
Copy link

See foundation/foundation-sites#11438 (comment)

zipinfo does not show these files (anymore).

@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. and removed Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. labels Dec 2, 2021
@aortiz-msft
Copy link
Contributor

aortiz-msft commented Feb 2, 2022

@nkolev92 - Can we close this issue now? If not, what is the correct Type:?

@nkolev92
Copy link
Member

nkolev92 commented Feb 2, 2022

I think our action is:

On the client side we can probably look into improving this message.

Type:Bug is correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Install The install command in VS/nuget.exe Functionality:Restore help wanted Considered good issues for community contributions. Priority:2 Issues for the current backlog. Type:Bug
Projects
None yet
Development

No branches or pull requests

6 participants