Problem with uploading packages when all are deleted

I had a problem in version “2.4.5.46” of OD. I was unable to upload packages because of this error listed below. It was fixed by restarting the box. But reproducible by deleting all the packages from the feed.

2014-05-19 15:33:24.7681  ERROR  Unhandled error on request: http://octopus/nuget/packages/ : Access to the path 'D:\Octopus\OctopusServer\Repository\Packages\Package.Name' is denied.
System.UnauthorizedAccessException: Access to the path 'D:\Octopus\OctopusServer\Repository\Packages\Package.Name' is denied.
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at NuGet.Lucene.LucenePackageRepository.<AddPackageAsync>d__5.MoveNext()

Thanks for the report; I believe this is the same issue: https://github.com/OctopusDeploy/Issues/issues/900

We’ll follow up via the GitHub ticket, thanks.