{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3359","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3359/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3359/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3359/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3359","id":132833169,"number":3359,"title":"pnext: ScErrUnexpMetadata (SCERR7035): Internal error in unmanaged meta-data population","user":{"login":"dan31","id":7162535,"avatar_url":"https://avatars.githubusercontent.com/u/7162535?v=3","gravatar_id":"","url":"https://api.github.com/users/dan31","html_url":"https://github.com/dan31","followers_url":"https://api.github.com/users/dan31/followers","following_url":"https://api.github.com/users/dan31/following{/other_user}","gists_url":"https://api.github.com/users/dan31/gists{/gist_id}","starred_url":"https://api.github.com/users/dan31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan31/subscriptions","organizations_url":"https://api.github.com/users/dan31/orgs","repos_url":"https://api.github.com/users/dan31/repos","events_url":"https://api.github.com/users/dan31/events{/privacy}","received_events_url":"https://api.github.com/users/dan31/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"alexanderstc","id":12279020,"avatar_url":"https://avatars.githubusercontent.com/u/12279020?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderstc","html_url":"https://github.com/alexanderstc","followers_url":"https://api.github.com/users/alexanderstc/followers","following_url":"https://api.github.com/users/alexanderstc/following{/other_user}","gists_url":"https://api.github.com/users/alexanderstc/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderstc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderstc/subscriptions","organizations_url":"https://api.github.com/users/alexanderstc/orgs","repos_url":"https://api.github.com/users/alexanderstc/repos","events_url":"https://api.github.com/users/alexanderstc/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderstc/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59","html_url":"https://github.com/Starcounter/Starcounter/milestones/pnext","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59/labels","id":1449205,"number":59,"title":"pnext","description":"","creator":{"login":"dan31","id":7162535,"avatar_url":"https://avatars.githubusercontent.com/u/7162535?v=3","gravatar_id":"","url":"https://api.github.com/users/dan31","html_url":"https://github.com/dan31","followers_url":"https://api.github.com/users/dan31/followers","following_url":"https://api.github.com/users/dan31/following{/other_user}","gists_url":"https://api.github.com/users/dan31/gists{/gist_id}","starred_url":"https://api.github.com/users/dan31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan31/subscriptions","organizations_url":"https://api.github.com/users/dan31/orgs","repos_url":"https://api.github.com/users/dan31/repos","events_url":"https://api.github.com/users/dan31/events{/privacy}","received_events_url":"https://api.github.com/users/dan31/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":53,"state":"open","created_at":"2015-12-08T04:55:49Z","updated_at":"2016-02-14T12:39:58Z","due_on":"2015-12-18T08:00:00Z","closed_at":null},"comments":22,"created_at":"2016-02-10T22:21:24Z","updated_at":"2016-02-15T06:45:36Z","closed_at":null,"body":"After starting and stopping some apps, but not changing the class schemas, the database is in the following state at an attempt to start a database with no apps autostarted:\r\n```\r\nSystem.Exception: ScErrUnexpMetadata (SCERR7035): Internal error in unmanaged meta-data population.\r\nVersion: 2.3.797.\r\nHelp page: https://github.com/Starcounter/Starcounter/wiki/SCERR7035.\r\n   at Starcounter.SqlProcessor.SqlProcessor.MetalayerThrowIfError(UInt32 err) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Starcounter\\SqlProcessor\\SqlProcessor.cs:line 282\r\n   at Starcounter.SqlProcessor.SqlProcessor.PopulateRuntimeMetadata() in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Starcounter\\SqlProcessor\\SqlProcessor.cs:line 181\r\n   at Starcounter.Hosting.StarcounterPackage.UpdateDatabaseSchemaAndRegisterTypes(String fullAppId, TypeDef[] unregisteredTypeDefs, TypeDef[] allTypeDefs) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Hosting\\Starcounter.Hosting\\StarcounterPackage.cs:line 43\r\n   at Starcounter.Hosting.Package.ProcessWithinCurrentApplication(Application application) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 261\r\n   at Starcounter.Hosting.Package.Process() in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 143\r\n   at Starcounter.Hosting.Package.Process(IntPtr hPackage) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 56\r\n   at StarcounterInternal.Hosting.Processor.RunMessageLoop(Void* hsched) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-53\\Level1\\src\\Hosting\\Starcounter.Hosting\\Processor.cs:line 90\r\nHResult=-2146233088\r\nHelpLink=https://github.com/Starcounter/Starcounter/wiki/SCERR7035\r\n```\r\nUploaded are three apps used and a database entire repository: http://rghost.net/8nsVw2qnC\r\nCC @eriohl @k-rus @bigwad "},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/184083202","html_url":"https://github.com/Starcounter/Starcounter/issues/3359#issuecomment-184083202","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3359","id":184083202,"user":{"login":"k-rus","id":1726044,"avatar_url":"https://avatars.githubusercontent.com/u/1726044?v=3","gravatar_id":"","url":"https://api.github.com/users/k-rus","html_url":"https://github.com/k-rus","followers_url":"https://api.github.com/users/k-rus/followers","following_url":"https://api.github.com/users/k-rus/following{/other_user}","gists_url":"https://api.github.com/users/k-rus/gists{/gist_id}","starred_url":"https://api.github.com/users/k-rus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-rus/subscriptions","organizations_url":"https://api.github.com/users/k-rus/orgs","repos_url":"https://api.github.com/users/k-rus/repos","events_url":"https://api.github.com/users/k-rus/events{/privacy}","received_events_url":"https://api.github.com/users/k-rus/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T06:45:36Z","updated_at":"2016-02-15T06:45:36Z","body":"@dan31 \r\nYour code cannot affect meta-data population, since it is executed afterwords. The only directions I can think of are restarting broken database, or refactoring of application schema or both."}}