Failed deployment message, what does it mean

I get the following failed task when deploying. If I deactivate the Ultimate Member plugin, I don’t get the failed task and then I can go in through the WordPress admin and activate the plugin and everything appears to be working correctly.

I’d like to understand what’s causing this task to fail. Any ideas?

TASK: [deploy | Update WP theme paths] ****************************************
failed: [0.0.0.0] => {“changed”: true, “cmd”: [“wp”, “eval”, “wp_clean_themes_cache(); switch_theme(get_stylesheet());”], “delta”: “0:00:00.476222”, “end”: “2015-11-30 03:05:52.269986”, “rc”: 255, “start”: “2015-11-30 03:05:51.793764”, “warnings”: []}
stderr: PHP Fatal error: Call to a member function get_roles() on null in /srv/www/domainname.com/releases/20151130030515/web/app/plugins/ultimate-member/core/um-builtin.php on line 526
Fatal error: Call to a member function get_roles() on null in /srv/www/domainname.com/releases/20151130030515/web/app/plugins/ultimate-member/core/um-builtin.php on line 526

Well that plugin seems to have a problem when the WP function wp_clean_themes_cache is called. Beyond that you’d have to start debugging the plugin itself.

We call that function as part of deploys so that any cached paths in WP correctly refer to the newly deployed release path.