{"action":"created","issue":{"url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7303","repository_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues","labels_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7303/labels{/name}","comments_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7303/comments","events_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7303/events","html_url":"https://github.com/StrangeLoopGames/EcoIssues/issues/7303","id":316094587,"number":7303,"title":"Game.db in use by other process?  ","user":{"login":"pamduncan","id":26786843,"avatar_url":"https://avatars3.githubusercontent.com/u/26786843?v=4","gravatar_id":"","url":"https://api.github.com/users/pamduncan","html_url":"https://github.com/pamduncan","followers_url":"https://api.github.com/users/pamduncan/followers","following_url":"https://api.github.com/users/pamduncan/following{/other_user}","gists_url":"https://api.github.com/users/pamduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/pamduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamduncan/subscriptions","organizations_url":"https://api.github.com/users/pamduncan/orgs","repos_url":"https://api.github.com/users/pamduncan/repos","events_url":"https://api.github.com/users/pamduncan/events{/privacy}","received_events_url":"https://api.github.com/users/pamduncan/received_events","type":"User","site_admin":false},"labels":[{"id":403489090,"url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/labels/High%20Priority","name":"High Priority","color":"e95f00","default":false}],"state":"open","locked":false,"assignee":{"login":"johnkslg","id":3536496,"avatar_url":"https://avatars3.githubusercontent.com/u/3536496?v=4","gravatar_id":"","url":"https://api.github.com/users/johnkslg","html_url":"https://github.com/johnkslg","followers_url":"https://api.github.com/users/johnkslg/followers","following_url":"https://api.github.com/users/johnkslg/following{/other_user}","gists_url":"https://api.github.com/users/johnkslg/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkslg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkslg/subscriptions","organizations_url":"https://api.github.com/users/johnkslg/orgs","repos_url":"https://api.github.com/users/johnkslg/repos","events_url":"https://api.github.com/users/johnkslg/events{/privacy}","received_events_url":"https://api.github.com/users/johnkslg/received_events","type":"User","site_admin":false},"assignees":[{"login":"johnkslg","id":3536496,"avatar_url":"https://avatars3.githubusercontent.com/u/3536496?v=4","gravatar_id":"","url":"https://api.github.com/users/johnkslg","html_url":"https://github.com/johnkslg","followers_url":"https://api.github.com/users/johnkslg/followers","following_url":"https://api.github.com/users/johnkslg/following{/other_user}","gists_url":"https://api.github.com/users/johnkslg/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkslg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkslg/subscriptions","organizations_url":"https://api.github.com/users/johnkslg/orgs","repos_url":"https://api.github.com/users/johnkslg/repos","events_url":"https://api.github.com/users/johnkslg/events{/privacy}","received_events_url":"https://api.github.com/users/johnkslg/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-20T01:31:33Z","updated_at":"2018-05-09T21:50:54Z","closed_at":null,"author_association":"MEMBER","body":"Can find no other process using the stats.db and stats are actually turned off\r\n\r\nThe server is crashing now ever few minutes on this issue.  Stats are disabled.  What could be trying to write to Game.db?\r\n\r\n--BEGIN DUMP--\r\nDump Time\r\n04/19/2018 18:44:11\r\n\r\nException\r\nSystem.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Gameplay.Stats.PlayerActions' threw an exception. ---> System.IO.IOException: The process cannot access the file 'D:\\TCAFiles\\Users\\PamelaD\\2531\\Storage\\Game.db' because it is being used by another process.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\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\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n   at LiteDB.FileDiskService.Initialize(Logger log, String password)\r\n   at LiteDB.LiteEngine..ctor(IDiskService disk, String password, Nullable`1 timeout, Int32 cacheSize, Logger log, Boolean utcDate)\r\n   at LiteDB.LiteDatabase.<>c__DisplayClass11_0.<.ctor>b__0()\r\n   at LiteDB.LazyLoad`1.get_Value()\r\n   at LiteDB.LiteCollection`1.EnsureIndex(String field, String expression, Boolean unique)\r\n   at Eco.Stats.StatDatabase.EnsureIndex[T](IEnumerable`1 fieldNames)\r\n   at Eco.Gameplay.Stats.ConcretePlayerActions.AcceptContractPlayerStatManager..ctor()\r\n   at Eco.Gameplay.Stats.PlayerActions..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Eco.Gameplay.Stats.PlayerActions.get_ActionManagers()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Clauses.PreventableActionDropDown.DisplayedManagersStatic()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.get_UnsortedOptions()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.IdToDisplayName(String id)\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.RefreshDisplayName()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.Init()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.Items.Law.Initialize()\r\n   at Eco.Gameplay.Legislation..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)\r\n   at System.Activator.CreateInstance(Type type, Object[] args)\r\n   at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p)\r\n   at Eco.Server.PluginManager.<.ctor>b__10_3()\r\n   at System.Threading.Tasks.Task.Execute()\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at Eco.Server.PluginManager..ctor()\r\n   at Eco.Server.Startup.Start(String[] args)\r\n   at Eco.Server.MainClass.Main(String[] args)\r\n---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Gameplay.Stats.PlayerActions' threw an exception. ---> System.IO.IOException: The process cannot access the file 'D:\\TCAFiles\\Users\\PamelaD\\2531\\Storage\\Game.db' because it is being used by another process.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\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\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n   at LiteDB.FileDiskService.Initialize(Logger log, String password)\r\n   at LiteDB.LiteEngine..ctor(IDiskService disk, String password, Nullable`1 timeout, Int32 cacheSize, Logger log, Boolean utcDate)\r\n   at LiteDB.LiteDatabase.<>c__DisplayClass11_0.<.ctor>b__0()\r\n   at LiteDB.LazyLoad`1.get_Value()\r\n   at LiteDB.LiteCollection`1.EnsureIndex(String field, String expression, Boolean unique)\r\n   at Eco.Stats.StatDatabase.EnsureIndex[T](IEnumerable`1 fieldNames)\r\n   at Eco.Gameplay.Stats.ConcretePlayerActions.AcceptContractPlayerStatManager..ctor()\r\n   at Eco.Gameplay.Stats.PlayerActions..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Eco.Gameplay.Stats.PlayerActions.get_ActionManagers()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Clauses.PreventableActionDropDown.DisplayedManagersStatic()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.get_UnsortedOptions()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.IdToDisplayName(String id)\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.RefreshDisplayName()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.Init()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.Items.Law.Initialize()\r\n   at Eco.Gameplay.Legislation..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)\r\n   at System.Activator.CreateInstance(Type type, Object[] args)\r\n   at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p)\r\n   at Eco.Server.PluginManager.<.ctor>b__10_3()\r\n   at System.Threading.Tasks.Task.Execute()<---\r\n\r\n\r\nInner Exception\r\nSystem.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Gameplay.Stats.PlayerActions' threw an exception. ---> System.IO.IOException: The process cannot access the file 'D:\\TCAFiles\\Users\\PamelaD\\2531\\Storage\\Game.db' because it is being used by another process.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\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\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n   at LiteDB.FileDiskService.Initialize(Logger log, String password)\r\n   at LiteDB.LiteEngine..ctor(IDiskService disk, String password, Nullable`1 timeout, Int32 cacheSize, Logger log, Boolean utcDate)\r\n   at LiteDB.LiteDatabase.<>c__DisplayClass11_0.<.ctor>b__0()\r\n   at LiteDB.LazyLoad`1.get_Value()\r\n   at LiteDB.LiteCollection`1.EnsureIndex(String field, String expression, Boolean unique)\r\n   at Eco.Stats.StatDatabase.EnsureIndex[T](IEnumerable`1 fieldNames)\r\n   at Eco.Gameplay.Stats.ConcretePlayerActions.AcceptContractPlayerStatManager..ctor()\r\n   at Eco.Gameplay.Stats.PlayerActions..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Eco.Gameplay.Stats.PlayerActions.get_ActionManagers()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Clauses.PreventableActionDropDown.DisplayedManagersStatic()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.get_UnsortedOptions()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.IdToDisplayName(String id)\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.RefreshDisplayName()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.Init()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.Items.Law.Initialize()\r\n   at Eco.Gameplay.Legislation..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)\r\n   at System.Activator.CreateInstance(Type type, Object[] args)\r\n   at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p)\r\n   at Eco.Server.PluginManager.<.ctor>b__10_3()\r\n   at System.Threading.Tasks.Task.Execute()\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at Eco.Server.PluginManager..ctor()\r\n   at Eco.Server.Startup.Start(String[] args)\r\n   at Eco.Server.MainClass.Main(String[] args)\r\n---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Gameplay.Stats.PlayerActions' threw an exception. ---> System.IO.IOException: The process cannot access the file 'D:\\TCAFiles\\Users\\PamelaD\\2531\\Storage\\Game.db' because it is being used by another process.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\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\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n   at LiteDB.FileDiskService.Initialize(Logger log, String password)\r\n   at LiteDB.LiteEngine..ctor(IDiskService disk, String password, Nullable`1 timeout, Int32 cacheSize, Logger log, Boolean utcDate)\r\n   at LiteDB.LiteDatabase.<>c__DisplayClass11_0.<.ctor>b__0()\r\n   at LiteDB.LazyLoad`1.get_Value()\r\n   at LiteDB.LiteCollection`1.EnsureIndex(String field, String expression, Boolean unique)\r\n   at Eco.Stats.StatDatabase.EnsureIndex[T](IEnumerable`1 fieldNames)\r\n   at Eco.Gameplay.Stats.ConcretePlayerActions.AcceptContractPlayerStatManager..ctor()\r\n   at Eco.Gameplay.Stats.PlayerActions..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Eco.Gameplay.Stats.PlayerActions.get_ActionManagers()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Clauses.PreventableActionDropDown.DisplayedManagersStatic()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.get_UnsortedOptions()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.BaseActionDropDown.IdToDisplayName(String id)\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.RefreshDisplayName()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.Fields.DropDown`1.Init()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.LegislationSystem.LawLogic.LawLogicNode.InitializeAndValidate()\r\n   at Eco.Gameplay.Items.Law.Initialize()\r\n   at Eco.Gameplay.Legislation..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)\r\n   at System.Activator.CreateInstance(Type type, Object[] args)\r\n   at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p)\r\n   at Eco.Server.PluginManager.<.ctor>b__10_3()\r\n   at System.Threading.Tasks.Task.Execute()<---\r\n\r\n\r\n--END DUMP--\r\n"},"comment":{"url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/comments/387886552","html_url":"https://github.com/StrangeLoopGames/EcoIssues/issues/7303#issuecomment-387886552","issue_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7303","id":387886552,"user":{"login":"metachronism","id":3150561,"avatar_url":"https://avatars1.githubusercontent.com/u/3150561?v=4","gravatar_id":"","url":"https://api.github.com/users/metachronism","html_url":"https://github.com/metachronism","followers_url":"https://api.github.com/users/metachronism/followers","following_url":"https://api.github.com/users/metachronism/following{/other_user}","gists_url":"https://api.github.com/users/metachronism/gists{/gist_id}","starred_url":"https://api.github.com/users/metachronism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metachronism/subscriptions","organizations_url":"https://api.github.com/users/metachronism/orgs","repos_url":"https://api.github.com/users/metachronism/repos","events_url":"https://api.github.com/users/metachronism/events{/privacy}","received_events_url":"https://api.github.com/users/metachronism/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T21:50:54Z","updated_at":"2018-05-09T21:50:54Z","author_association":"NONE","body":"seems contracts related"}}
{"actor":{"display_login":"metachronism"}}