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

File-Access error while calling paket install #1152

Closed
BADF00D opened this issue Oct 19, 2015 · 0 comments
Closed

File-Access error while calling paket install #1152

BADF00D opened this issue Oct 19, 2015 · 0 comments

Comments

@BADF00D
Copy link

BADF00D commented Oct 19, 2015

From time to time and recently more often I got an error that looks like the following:

$ paket install
Paket version 2.15.1.0
Skipping resolver for group LegacyApps since it is already up-to-date
Skipping resolver for group Main since it is already up-to-date
c:\somepath\paket.lock is already up-to-date
Downloading FAKE 4.3.4
Something went wrong while downloading FAKE 4.3.4 - Trying again.
Downloading FAKE 4.3.4
Paket failed with:
        Could not download FAKE 4.3.4 from http://path-to-klondike:8080/api/packages/FAKE/4.3.4/content.
    Der Prozess kann nicht auf die Datei "C:\Users\account\AppData\Local\NuGet\Cache\FAKE.4.3.4.nupkg" zugreifen, da sie von ein

When I repeat the call the error is gone, at least sometimes. Sometime the error is gone if I simply delete all files that start with the paket FAKE.4.3.4* and repeat the call.

The error occurs with different nuget packages, FAKE is only the example that causes the problem at the moment.

This error even stays if I restart Windows and do nothing but calling paket install in git bash.

By the way, the nuget package seems to be successfully downloaded.

Content of the *failed file:
System.IO.IOException: Der Prozess kann nicht auf die Datei "C:\Users\account\AppData\Local\NuGet\Cache\FAKE.4.3.4.s547206449.json" zugreifen, da sie von einem anderen Prozess verwendet wird. bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) bei System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) bei System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) bei System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) bei [email protected](Tuple2 _arg1)
bei [email protected](a a)`

@forki forki closed this as completed in 66c774f Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant