{"action":"opened","issue":{"url":"https://api.github.com/repos/anchore/anchore-engine/issues/51","repository_url":"https://api.github.com/repos/anchore/anchore-engine","labels_url":"https://api.github.com/repos/anchore/anchore-engine/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/anchore/anchore-engine/issues/51/comments","events_url":"https://api.github.com/repos/anchore/anchore-engine/issues/51/events","html_url":"https://github.com/anchore/anchore-engine/issues/51","id":328328309,"node_id":"MDU6SXNzdWUzMjgzMjgzMDk=","number":51,"title":"Found a condition where user records are not re-populated in the DB","user":{"login":"nurmi","id":1760736,"node_id":"MDQ6VXNlcjE3NjA3MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1760736?v=4","gravatar_id":"","url":"https://api.github.com/users/nurmi","html_url":"https://github.com/nurmi","followers_url":"https://api.github.com/users/nurmi/followers","following_url":"https://api.github.com/users/nurmi/following{/other_user}","gists_url":"https://api.github.com/users/nurmi/gists{/gist_id}","starred_url":"https://api.github.com/users/nurmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurmi/subscriptions","organizations_url":"https://api.github.com/users/nurmi/orgs","repos_url":"https://api.github.com/users/nurmi/repos","events_url":"https://api.github.com/users/nurmi/events{/privacy}","received_events_url":"https://api.github.com/users/nurmi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nurmi","id":1760736,"node_id":"MDQ6VXNlcjE3NjA3MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1760736?v=4","gravatar_id":"","url":"https://api.github.com/users/nurmi","html_url":"https://github.com/nurmi","followers_url":"https://api.github.com/users/nurmi/followers","following_url":"https://api.github.com/users/nurmi/following{/other_user}","gists_url":"https://api.github.com/users/nurmi/gists{/gist_id}","starred_url":"https://api.github.com/users/nurmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurmi/subscriptions","organizations_url":"https://api.github.com/users/nurmi/orgs","repos_url":"https://api.github.com/users/nurmi/repos","events_url":"https://api.github.com/users/nurmi/events{/privacy}","received_events_url":"https://api.github.com/users/nurmi/received_events","type":"User","site_admin":false},"assignees":[{"login":"nurmi","id":1760736,"node_id":"MDQ6VXNlcjE3NjA3MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1760736?v=4","gravatar_id":"","url":"https://api.github.com/users/nurmi","html_url":"https://github.com/nurmi","followers_url":"https://api.github.com/users/nurmi/followers","following_url":"https://api.github.com/users/nurmi/following{/other_user}","gists_url":"https://api.github.com/users/nurmi/gists{/gist_id}","starred_url":"https://api.github.com/users/nurmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurmi/subscriptions","organizations_url":"https://api.github.com/users/nurmi/orgs","repos_url":"https://api.github.com/users/nurmi/repos","events_url":"https://api.github.com/users/nurmi/events{/privacy}","received_events_url":"https://api.github.com/users/nurmi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-31T23:14:01Z","updated_at":"2018-05-31T23:14:01Z","closed_at":null,"author_association":"MEMBER","body":"If the anchore-manager is invoked before any anchore tables exist, both the 'anchore' and 'user' tables are created, but only the 'system' user record is populated.  Then, during regular anchore-engine startup, the code path for populating the other users defined in config.yaml is skipped (anchore record indicates no upgrade, all tables exist).  \r\n\r\nFix is an update to the db init process in anchore-manager, to include a 'db_post_actions' section, which runs every time the service starts.  This will avoid the above condition, if it occurs due to a process as described or similiar.\r\n"}}
{"actor":{"display_login":"nurmi"}}