RBAC migration keeps running every restart but fails to complete

1 minute readKnowledge base

Issue

Startup is slow. There is an error that looks like below before "Jenkins is fully up and running" message.

2023-03-11 06:27:21.329+0000 [id=59]    WARNING jenkins.model.Jenkins$5#runTask: ProxyGroupContainersMigrator.migrate failed perhaps due to plugin dependency issues
java.lang.AbstractMethodError
    at nectar.plugins.rbac.groups.ProxyGroupContainersMigrator.migrateGroupsMemberAmbiguity(ProxyGroupContainersMigrator.java:88)
    at nectar.plugins.rbac.groups.ProxyGroupContainersMigrator.migrate(ProxyGroupContainersMigrator.java:51)
Caused: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
Caused: java.lang.Error
    at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
    at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1158)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

Resolution

As warning says, there is probably an issue with plugins. Please check that Beekeeper Upgrade Assistant shows no warnings about the plugin versions.

Another possibility is that CloudBees Update Center plugin, which is designed for operations center is installed on the controller. Because it is designed for operations center controller’s Beekeeper Upgrade Assistant does not update it automatically, so you can end up with old version causing the RBAC migration failure with warning message as above. Please uninstall the "CloudBees Update Center" plugin to resolve the issue.

Tested product/plugin versions