Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    The process cannot access the file. Proget

    Scheduled Pinned Locked Moved Support
    7 Posts 2 Posters 143 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tbl_5153
      last edited by

      Proget 2.2.7 Build 3 has a recurring problem with files that are being used by another process.
      see error:

      Package Indexing Error
      Feed	Staging
      Package	ifmviewer.core.1.0.0.nupkg
      
      Message	The process cannot access the file 'd:\ProGet\Packages\Staging\ifmviewer.core.1.0.0.nupkg' because it is being used by another process.
      Date	10-12-2013 16:37:46
      
      Stack Trace	 at 
      System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at 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)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
      at Inedo.NuGet.Packages.NuGetPackage.ReadFromNupkgFile(String fileName)
      at Inedo.ProGet.Extensibility.PackageStores.DirectoryPackageStore.TryReadPackage(String fileName)
      

      Proget is installed on it own dedicated server.

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This error may be caused by the ProGet service - we are currently investigating.

        Are you able to verify with Process Explorer that the file is not locked by any other executables (e.g. antivirus, Package Explorer on the server, etc.)?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Guys
          we get the same problem like Thomas

          but we have Proget 3.0.3

          The process cannot access the file 'D:\Data\test_test\test.AB.TestFrontend.Deploy.1.1.0-alpha-510.nupkg' because it is being used by another process.
          
              `at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
          at 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)
          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
          at Inedo.NuGet.Packages.NuGetPackage.ReadFromNupkgFile(String fileName)
          at Inedo.ProGet.Extensibility.PackageStores.DirectoryPackageStore.TryReadPackage(String fileName)`
          

          You have a solution?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            @Philipp - see the discussion for this question: Publishing from our build server fails intermittently

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              I fixed the problem by us I disabled the feed setting "Automatically strip PDB files when downloading packages for this feed"

              after this I had no access right problems.
              I hope that helps

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                Same problem on current ProGet Version 3.2.1 (Build 2) and was same issue on a 1-year old version before upgrade. Happens when our build adds a package and then tries to create a release out of the package 10 sec later but cannot find the package in the feed. Any ideas on resolution?

                Package Indexing Error
                Feed ProjectName
                Package PackageName.20140529.1.2.1113.53.nupkg
                Message The process cannot access the file 'D:\Packages\ProjectName\PackageName.20140529.1.2.1113.53.nupkg' because it is being used by another process.
                Date 13/11/2014 2:25:03 PM
                Stack Trace at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
                at 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)
                at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
                at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
                at Inedo.NuGet.Packages.NuGetPackage.ReadFromNupkgFile(String fileName)
                at Inedo.ProGet.Extensibility.PackageStores.DirectoryPackageStore.TryReadPackage(String fileName)
                DeleteClose
                
                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Within a few days or so we are planning to release a new version of ProGet that has a new indexing system, which should no longer lock files like this. It will require a new feed type, but it should resolve these issues, and be much more performant than the current implementation.

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation