{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/10908","labels_url":"https://api.github.com/repos/owncloud/core/issues/10908/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/10908/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/10908/events","html_url":"https://github.com/owncloud/core/issues/10908","id":42092180,"number":10908,"title":"Background Jobs Sometimes Don't check if app is enabled","user":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev3-medium","name":"sev3-medium","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/11","html_url":"https://github.com/owncloud/core/milestones/backlog","labels_url":"https://api.github.com/repos/owncloud/core/milestones/11/labels","id":697149,"number":11,"title":"backlog","description":"","creator":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"open_issues":533,"closed_issues":147,"state":"open","created_at":"2014-06-20T19:52:03Z","updated_at":"2015-12-11T13:36:18Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-09-05T21:27:48Z","updated_at":"2015-12-11T13:58:00Z","closed_at":null,"body":"openSUSE\r\nMySQL\r\nApache\r\n\r\nIt seems that if you register an app with the database, and enabled it but didn't configure it - and then disable it, some background jobs still run, even if the app is no longer enabled.\r\n\r\nFor example, Enable LDAP. Then Disable it, upgrade through the 6.0.x line. It seems that this appears in the background jobs for some reason.\r\n\r\nIn the log \r\n> {\"reqId\":\"5409af4e48a03\",\"app\":\"user_ldap\",\"message\":\"bgJ\r\n\\\"updateGroups\\\" \\u2013 groups do not seem to be configured properly, aborting.\",\"level\":1,\"time\":\"2014-09-05T12:40:46+00:00\",\"method\":\"GET\",\"url\"\r\n:\"\\/owncloud\\/cron.php\"}\r\n\r\nHow can this be with the app disabled?\r\n\r\nWhilenot verified, probably it is the background job which is triggered in core and does not check whether the app is enabled. The kicked off job will need to do it itself. I did not verify it yet, but it seems most likely.\r\n\r\nQuick workaround: remove the background job from oc_jobs in the database (col class = ' OCA\\user_ldap\\lib\\Jobs').\r\n\r\n@blizzz "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/163942029","html_url":"https://github.com/owncloud/core/issues/10908#issuecomment-163942029","issue_url":"https://api.github.com/repos/owncloud/core/issues/10908","id":163942029,"user":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T13:58:00Z","updated_at":"2015-12-11T13:58:00Z","body":"I just tested this -> fixed since 7.0 https://github.com/owncloud/core/commit/437094bbfc4230ed4b8b8cc797738ddd4ef7f1aa"}}