payload: {"action":"created","issue":{"url":"https://api.github.com/repos/tidusjar/Ombi/issues/2750","repository_url":"https://api.github.com/repos/tidusjar/Ombi","labels_url":"https://api.github.com/repos/tidusjar/Ombi/issues/2750/labels{/name}","comments_url":"https://api.github.com/repos/tidusjar/Ombi/issues/2750/comments","events_url":"https://api.github.com/repos/tidusjar/Ombi/issues/2750/events","html_url":"https://github.com/tidusjar/Ombi/issues/2750","id":401526796,"node_id":"MDU6SXNzdWU0MDE1MjY3OTY=","number":2750,"title":"SQLite Error 5: 'database is locked'.","user":{"login":"xp-1000","id":2693213,"node_id":"MDQ6VXNlcjI2OTMyMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/2693213?v=4","gravatar_id":"","url":"https://api.github.com/users/xp-1000","html_url":"https://github.com/xp-1000","followers_url":"https://api.github.com/users/xp-1000/followers","following_url":"https://api.github.com/users/xp-1000/following{/other_user}","gists_url":"https://api.github.com/users/xp-1000/gists{/gist_id}","starred_url":"https://api.github.com/users/xp-1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xp-1000/subscriptions","organizations_url":"https://api.github.com/users/xp-1000/orgs","repos_url":"https://api.github.com/users/xp-1000/repos","events_url":"https://api.github.com/users/xp-1000/events{/privacy}","received_events_url":"https://api.github.com/users/xp-1000/received_events","type":"User","site_admin":false},"labels":[{"id":331819802,"node_id":"MDU6TGFiZWwzMzE4MTk4MDI=","url":"https://api.github.com/repos/tidusjar/Ombi/labels/bug%20/%20issue","name":"bug / issue","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2019-01-21T22:11:36Z","updated_at":"2019-02-17T19:06:11Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nHello, I just tried to upgrade from 3.0.4036 to v3.0.4119 and I go this error when I started the new version. It seems similar to 2375 issue.\r\n\r\n**To Reproduce**\r\nI tried on a fresh install and the upgrade works, the database is not locked so I am afraid it will be difficult to reproduce.\r\n\r\n**Expected behavior**\r\nOmbi start and and can read database\r\n\r\n**Screenshots**\r\nnot relevant here\r\n\r\n**Logs (Logs directory where Ombi is located)**\r\n```\r\njanv. 21 22:58:08 domain.tld Ombi[58316]: Application startup exception: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlCommand(DatabaseFacade databaseFacade, RawSqlString sql, IEnumerable`1 parameters)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Ombi.Store.Context.OmbiContext.Seed() in C:\\projects\\requestplex\\src\\Ombi.Store\\Context\\OmbiContext.cs:line 91\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Ombi.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IMemoryCache cache, IServiceProvider serviceProvider) in C:\\projects\\requestplex\\src\\Ombi\\Startup.cs:line 221\r\njanv. 21 22:58:08 domain.tld Ombi[58316]: --- End of stack trace from previous location where exception was thrown ---\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()\r\njanv. 21 22:58:08 domain.tld Ombi[58316]: Unhandled Exception: Microsoft.Data.Sqlite.SqliteException: SQLite Error 5: 'database is locked'.\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlCommand(DatabaseFacade databaseFacade, RawSqlString sql, IEnumerable`1 parameters)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Ombi.Store.Context.OmbiContext.Seed() in C:\\projects\\requestplex\\src\\Ombi.Store\\Context\\OmbiContext.cs:line 91\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Ombi.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IMemoryCache cache, IServiceProvider serviceProvider) in C:\\projects\\requestplex\\src\\Ombi\\Startup.cs:line 221\r\njanv. 21 22:58:08 domain.tld Ombi[58316]: --- End of stack trace from previous location where exception was thrown ---\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String shutdownMessage)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)\r\njanv. 21 22:58:08 domain.tld Ombi[58316]:    at Ombi.Program.Main(String[] args) in C:\\projects\\requestplex\\src\\Ombi\\Program.cs:line 99\r\njanv. 21 22:58:09 domain.tld systemd[1]: ombi.service: Main process exited, code=dumped, status=6/ABRT\r\n\r\n```\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: archlinux\r\n\r\n**Ombi Version (please complete the following information):**\r\n - Version v3.0.4119\r\n- Media Server Emby\r\n\r\n**Additional context**\r\nHonnestly, I suspect the problem was present BEFORE the upgrade because I cannot connect with my account so it could not be related to the upgrade itself but rahter than a previous crash.\r\nI understand I don't provide enough information to do a real debug and I am sorry for that but I cannot give you more.\r\nI don't expect you fix an obscure bug in this situation but if you have a workaround to manually unlock the database file I could do more tests.\r\nWhen I stop ombi I can read the database from command line so the file itself seems not corrupted.\r\nSadly, Ombi restarts in loop with the same database locked error.\r\n```\r\n\r\nsqlite3 Ombi.db \r\nSQLite version 3.26.0 2018-12-01 12:34:55\r\nEnter \".help\" for usage hints.\r\nsqlite> .tables\r\nAlbumRequests                NotificationTemplates      \r\nApplicationConfiguration     NotificationUserId         \r\nAspNetRoleClaims             PlexEpisode                \r\nAspNetRoles                  PlexSeasonsContent         \r\nAspNetUserClaims             PlexServerContent          \r\nAspNetUserLogins             RadarrCache                \r\nAspNetUserRoles              RecentlyAddedLog           \r\nAspNetUserTokens             RequestLog                 \r\nAspNetUsers                  RequestQueue               \r\nAudit                        RequestSubscription        \r\nChildRequests                SeasonRequests             \r\nCouchPotatoCache             SickRageCache              \r\nEmbyContent                  SickRageEpisodeCache       \r\nEmbyEpisode                  SonarrCache                \r\nEpisodeRequests              SonarrEpisodeCache         \r\nGlobalSettings               Tokens                     \r\nIssueCategory                TvIssues                   \r\nIssueComments                TvRequests                 \r\nIssues                       UserNotificationPreferences\r\nLidarrAlbumCache             UserQualityProfiles        \r\nLidarrArtistCache            Votes                      \r\nMovieIssues                  __EFMigrationsHistory      \r\nMovieRequests    \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tidusjar/Ombi/issues/comments/464495988","html_url":"https://github.com/tidusjar/Ombi/issues/2750#issuecomment-464495988","issue_url":"https://api.github.com/repos/tidusjar/Ombi/issues/2750","id":464495988,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NDQ5NTk4OA==","user":{"login":"tidusjar","id":6642220,"node_id":"MDQ6VXNlcjY2NDIyMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/6642220?v=4","gravatar_id":"","url":"https://api.github.com/users/tidusjar","html_url":"https://github.com/tidusjar","followers_url":"https://api.github.com/users/tidusjar/followers","following_url":"https://api.github.com/users/tidusjar/following{/other_user}","gists_url":"https://api.github.com/users/tidusjar/gists{/gist_id}","starred_url":"https://api.github.com/users/tidusjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidusjar/subscriptions","organizations_url":"https://api.github.com/users/tidusjar/orgs","repos_url":"https://api.github.com/users/tidusjar/repos","events_url":"https://api.github.com/users/tidusjar/events{/privacy}","received_events_url":"https://api.github.com/users/tidusjar/received_events","type":"User","site_admin":false},"created_at":"2019-02-17T19:06:11Z","updated_at":"2019-02-17T19:06:11Z","author_association":"OWNER","body":"Yes you will need to use the lsiodev container "}}
other: {"actor":{"display_login":"tidusjar"}}