Jenkins is not starting

36 views
Skip to first unread message

Mai Waly

unread,
May 10, 2020, 10:57:06 AM5/10/20
to Jenkins Users
Hi All,

Please advise what happen as Jenkins is no longer starting and showing error, there is no gui any more.


ay 10, 2020 7:48:13 AM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read /jenkins/config.xml
        at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read /jenkins/config.xml
        at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
        at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
        at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
        at jenkins.model.Jenkins.<init>(Jenkins.java:877)
        at hudson.model.Hudson.<init>(Hudson.java:85)
        at hudson.model.Hudson.<init>(Hudson.java:81)
        at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Unable to read /jenkins/config.xml
        at hudson.XmlFile.unmarshal(XmlFile.java:165)
        at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
        at jenkins.model.Jenkins.access$700(Jenkins.java:324)
        at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
        at jenkins.model.Jenkins$7.runTask(Jenkins.java:998)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.security.ProjectMatrixAuthorizationStrategy : hudson.security.ProjectMatrixAuthorizationStrategy
---- Debugging information ----
message             : hudson.security.ProjectMatrixAuthorizationStrategy
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : hudson.security.ProjectMatrixAuthorizationStrategy
class               : hudson.model.Hudson
required-type       : hudson.model.Hudson
converter-type      : hudson.util.RobustReflectionConverter
path                : /hudson/authorizationStrategy
line number         : 8
version             : not available


Thanks & BRs,
Mai Saleh

Daniel Beck

unread,
May 10, 2020, 1:15:04 PM5/10/20
to jenkins...@googlegroups.com
The configuration references the matrix-auth plugin, but it is disabled or failed to load.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e571e5d3-4510-4683-952e-fb30f46dfec5%40googlegroups.com.

D'raj

unread,
May 11, 2020, 1:01:13 AM5/11/20
to Jenkins Users
check permissions of ..jenkins/config.xml file
and check for available disk space on the file system where jenkins is installed.

Mai Waly

unread,
May 11, 2020, 3:26:22 AM5/11/20
to Jenkins Users
I believe its there not sure why its failing to load, please advise



[jenkins@jenkins-01 /jenkins]$
[jenkins@jenkins-01 /jenkins]$ cd plugins/
[jenkins@jenkins-01 plugins]$ ls -lart | grep matrix
drwxr-xr-x  5 jenkins poppers    4096 Sep 30  2016 matrix-auth
drwxr-xr-x  6 jenkins poppers    4096 Sep 30  2016 matrix-project
[jenkins@jenkins-01 plugins]$ cd matrix-auth
[jenkins@jenkins-01 matrix-auth]$ ls -lart
total 28
drwxr-xr-x  3 jenkins poppers  4096 May 24  2016 WEB-INF
drwxr-xr-x  2 jenkins poppers  4096 May 24  2016 images
-rw-r--r--  1 jenkins poppers     0 Sep 30  2016 .timestamp2
drwxr-xr-x  3 jenkins poppers  4096 Sep 30  2016 META-INF
drwxr-xr-x  5 jenkins poppers  4096 Sep 30  2016 .
drwxr-xr-x 71 jenkins poppers 12288 Nov 28 01:52 ..
[jenkins@jenkins-01 matrix-auth]$ cd WEB-INF/
[jenkins@jenkins-01 WEB-INF]$ ls -lart
total 16
-rw-r--r-- 1 jenkins poppers  568 May 24  2016 licenses.xml
drwxr-xr-x 2 jenkins poppers 4096 May 24  2016 lib
drwxr-xr-x 3 jenkins poppers 4096 May 24  2016 .
drwxr-xr-x 5 jenkins poppers 4096 Sep 30  2016 ..
[jenkins@svr-ies-jenkins-pro-01 WEB-INF]$ cd li
lib/          licenses.xml
[jenkins@jenkins-01 WEB-INF]$ cd lib
[jenkins@jenkins-01 lib]$ ls -lart
total 104
-rw-r--r-- 1 jenkins poppers 91690 May 24  2016 matrix-auth.jar
drwxr-xr-x 3 jenkins poppers  4096 May 24  2016 ..
drwxr-xr-x 2 jenkins poppers  4096 May 24  2016 .





On Sunday, May 10, 2020 at 7:15:04 PM UTC+2, Daniel Beck wrote:
The configuration references the matrix-auth plugin, but it is disabled or failed to load.

> To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.

Mai Waly

unread,
May 11, 2020, 3:29:25 AM5/11/20
to Jenkins Users

Permission and disk space looks OK.

[jenkins@jenkins-01 /jenkins]$ df -h
Filesystem                                              Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root                                    99G   81G   13G  87% /

[jenkins@jenkins-01 ~]$ cd /jenkins/
[jenkins@jenkins-01 /jenkins]$ df -h .
Filesystem                                              Size  Used Avail Use% Mounted on
xxxxx:/xxx/xxx/xxxx                               100G   25G   76G  25% /jenkins


[jenkins@jenkins-01 /jenkins]$ ls -lart | grep config.xml
-rw-r--r--    1 jenkins  poppers     63290 Apr  8 07:32 config.xml

Mai Waly

unread,
May 11, 2020, 3:38:42 AM5/11/20
to Jenkins Users
Permission and disk space looks OK.

[jenkins@jenkins-01 /jenkins]$ df -h
Filesystem                                              Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root                                    99G   81G   13G  87% /

[jenkins@jenkins-01 ~]$ cd /jenkins/
[jenkins@jenkins-01 /jenkins]$ df -h .
Filesystem                                              Size  Used Avail Use% Mounted on
xxxxx:/xxx/xxx/xxxx                               100G   25G   76G  25% /jenkins


[jenkins@jenkins-01 /jenkins]$ ls -lart | grep config.xml
-rw-r--r--    1 jenkins  poppers     63290 Apr  8 07:32 con


On Monday, May 11, 2020 at 7:01:13 AM UTC+2, D'raj wrote:

Mahima Mishra

unread,
May 11, 2020, 3:41:55 AM5/11/20
to Jenkins Users

1. Try modifying the security tag to false in the config.xml and restart.

2. Validate your config.xml using a xml validator.

3. Try setting Jenkins_home env variable.

Mai Waly

unread,
May 11, 2020, 4:07:16 AM5/11/20
to Jenkins Users
Tried the env variable no help :(


/jenkins > export JENKINS_HOME=/jenkins
root [jenkins--01] /jenkins > echo $JENKINS_HOME
/jenkins
root [jenkins-01] /jenkins > systemctl start jenkins
root [jenkins-01] /jenkins > ps -ef | grep jenkins
jenkins  11231     1 99 08:58 ?        00:00:09 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -Xms1g -Xmx4g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/jenkins/heapdump.hprof -DJENKINS_HOME=/jenkins -jar /jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --prefix=/jenkins


XML Validator says valid xml


changing security from true to false will make loss all permissions right?

Mahima Mishra

unread,
May 11, 2020, 6:47:01 AM5/11/20
to Jenkins Users
You can always keep a backup of the config file.

Also I suggest you to do this in your test environment and no production. If you don't have one, you can easily create it by copying Jenkins_home folder to a different location.

Dnyanraj Mali

unread,
May 11, 2020, 1:03:30 PM5/11/20
to jenkins...@googlegroups.com
try giving 755 permission to config file
and restart jenkins





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a44663e1-b00c-43cf-89c1-841dfb1e4dbf%40googlegroups.com.

Mai Waly

unread,
May 11, 2020, 4:21:51 PM5/11/20
to Jenkins Users
Do you know what is jpi files as I see my plugin folder has no jpi files only folder for each plugin?

I checked all my other servers it has a jpi + folder for each plugin.

Thanks,
Mai

Mahima Mishra

unread,
May 11, 2020, 5:11:15 PM5/11/20
to Jenkins Users
The *.jpi or *.hpi are nothing but plugins which are downloaded when you install to load your plugin. Ideally present under JENKINS_HOME/plugins directory.

Mai Waly

unread,
May 11, 2020, 11:41:26 PM5/11/20
to Jenkins Users
Yes its not there I mean I can see foleder for matrix_auth but no .jpi file for it.

While on my test server for each plugin there is a folder and jpi file.

Would that missing jpi files is the reason.

Reply all
Reply to author
Forward
0 new messages