question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to configure globalMatrix authorization strategy

See original GitHub issue

Jenkins version: 2.113 Plugin version: 0.5-alpha

Looks like smth with findDescribableBySymbol method.

Exception:

java.lang.IllegalArgumentException: No hudson.security.AuthorizationStrategy implementation found for globalMatrix
	at org.jenkinsci.plugins.casc.HeteroDescribableConfigurator.findDescribableBySymbol(HeteroDescribableConfigurator.java:95)
	at org.jenkinsci.plugins.casc.HeteroDescribableConfigurator.configure(HeteroDescribableConfigurator.java:71)
	at org.jenkinsci.plugins.casc.HeteroDescribableConfigurator.configure(HeteroDescribableConfigurator.java:30)
	at org.jenkinsci.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:188)
	at org.jenkinsci.plugins.casc.JenkinsConfigurator.configure(JenkinsConfigurator.java:49)
	at org.jenkinsci.plugins.casc.JenkinsConfigurator.configure(JenkinsConfigurator.java:27)
	at org.jenkinsci.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:223)
	at org.jenkinsci.plugins.casc.ConfigurationAsCode._configureWithPaths(ConfigurationAsCode.java:165)
	at org.jenkinsci.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:127)
	at org.jenkinsci.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:110)
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:104)
Caused: java.lang.Error
	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
	at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1064)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	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)
Caused: org.jvnet.hudson.reactor.ReactorException
	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
	at jenkins.InitReactorRunner.run(InitReactorRunner.java:48)
	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1098)
	at jenkins.model.Jenkins.<init>(Jenkins.java:900)
	at hudson.model.Hudson.<init>(Hudson.java:85)
	at hudson.model.Hudson.<init>(Hudson.java:81)
	at hudson.WebAppMain$3.run(WebAppMain.java:233)
Caused: hudson.util.HudsonFailedToLoad
	at hudson.WebAppMain$3.run(WebAppMain.java:250)

jenkins.yml

jenkins:
    authorizationStrategy:
     globalMatrix:
      grantedPermissions:
        - group:
            name: "anonymous"
            permissions:
              - "Job/Discover"
              - "Job/ViewStatus"
        - group:
            name: "authenticated"
            permissions:
              - "Overall/Read"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
jetersencommented, May 8, 2018

@sshepel did you install the matrix-auth plugin? 😅

1reaction
sshepelcommented, May 8, 2018

OMG, looks like missed it in plugins list 😦 good catch @casz and thanks for help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I unable to add users in Global Configuration when ...
We are not able to add users in 'Configure Global Security' under 'Project-based Matrix Authorization Strategy'. We are getting. javax.servlet.
Read more >
Matrix Authorization Strategy - Jenkins Plugins
With project-based matrix authorization, permissions are by inherited from the global configuration and any parent entities (e.g. the folder ...
Read more >
How to enable Project-Based Matrix Authorization Strategy in ...
kkjavatutorials #JenkinsAbout this Video:In this video, We will learn How to enable Project-Based Matrix Authorization Strategy in Jenkins?
Read more >
Jenkins Project-based Matrix Authorization won't grant Admin ...
I figured out the that the problem was with Jenkins' config.xml file which Jenkins uses to configure global security.
Read more >
How to Setup User Security on Jenkins with Project Matrix ...
From the Manage Jenkins, click on “Configure Global Security Option”, ... Jenkins Project Based Matrix Authorization Strategy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found