{"action":"closed","issue":{"url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/1752","labels_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/1752/labels{/name}","comments_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/1752/comments","events_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/1752/events","html_url":"https://github.com/OctopusDeploy/Issues/issues/1752","id":96777469,"number":1752,"title":"Apply retention policy fails because cannot access the file 'C:\\Octopus\\DeploymentJournal.xml' ","user":{"login":"clain23","id":7008231,"avatar_url":"https://avatars.githubusercontent.com/u/7008231?v=3","gravatar_id":"","url":"https://api.github.com/users/clain23","html_url":"https://github.com/clain23","followers_url":"https://api.github.com/users/clain23/followers","following_url":"https://api.github.com/users/clain23/following{/other_user}","gists_url":"https://api.github.com/users/clain23/gists{/gist_id}","starred_url":"https://api.github.com/users/clain23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clain23/subscriptions","organizations_url":"https://api.github.com/users/clain23/orgs","repos_url":"https://api.github.com/users/clain23/repos","events_url":"https://api.github.com/users/clain23/events{/privacy}","received_events_url":"https://api.github.com/users/clain23/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/priority","name":"priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"zentron","id":1830666,"avatar_url":"https://avatars.githubusercontent.com/u/1830666?v=3","gravatar_id":"","url":"https://api.github.com/users/zentron","html_url":"https://github.com/zentron","followers_url":"https://api.github.com/users/zentron/followers","following_url":"https://api.github.com/users/zentron/following{/other_user}","gists_url":"https://api.github.com/users/zentron/gists{/gist_id}","starred_url":"https://api.github.com/users/zentron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentron/subscriptions","organizations_url":"https://api.github.com/users/zentron/orgs","repos_url":"https://api.github.com/users/zentron/repos","events_url":"https://api.github.com/users/zentron/events{/privacy}","received_events_url":"https://api.github.com/users/zentron/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-23T10:10:25Z","updated_at":"2015-08-20T01:47:43Z","closed_at":"2015-08-20T01:47:43Z","body":"```\r\nSystem.IO.IOException: The process cannot access the file 'C:\\Octopus\\DeploymentJournal.xml' because it is being used by another process.\r\n12:54:29Error\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n12:54:29Error\r\n   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)\r\n12:54:29Error\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)\r\n12:54:29Error\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)\r\n12:54:29Error\r\n   at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.OpenFile(String path, FileMode mode, FileAccess access, FileShare share) in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Integration\\FileSystem\\CalamariPhysicalFileSystem.cs:line 178\r\n12:54:29Error\r\n   at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.OpenFile(String path, FileAccess access, FileShare share) in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Integration\\FileSystem\\CalamariPhysicalFileSystem.cs:line 173\r\n12:54:29Error\r\n   at Calamari.Deployment.Journal.DeploymentJournal.<Read>d__b.MoveNext() in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Deployment\\Journal\\DeploymentJournal.cs:line 83\r\n12:54:29Error\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n12:54:29Error\r\n   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()\r\n12:54:29Error\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n12:54:29Error\r\n   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()\r\n12:54:29Error\r\n   at System.Linq.Enumerable.<SkipWhileIterator>d__52`1.MoveNext()\r\n12:54:29Error\r\n   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n12:54:29Error\r\n   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n12:54:29Error\r\n   at Calamari.Deployment.Retention.RetentionPolicy.ApplyRetentionPolicy(String retentionPolicySet, Nullable`1 days, Nullable`1 releases) in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Deployment\\Retention\\RetentionPolicy.cs:line 36\r\n12:54:29Error\r\n   at Calamari.Commands.CleanCommand.Execute(String[] commandLineArguments) in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Commands\\CleanCommand.cs:line 47\r\n12:54:29Error\r\n   at Calamari.Program.Main(String[] args) in y:\\work\\b1fd300731d5f2fc\\source\\Calamari\\Program.cs:line 18\r\n```\r\n\r\nhttp://d.pr/i/1bz1N/5w81JMbo\r\n\r\nhttps://www.dropbox.com/s/nvxin2teaj1atkf/ServerTasks-1819.log.txt?dl=0"}}