{"action":"closed","issue":{"url":"https://api.github.com/repos/openshift/jenkins/issues/339","repository_url":"https://api.github.com/repos/openshift/jenkins","labels_url":"https://api.github.com/repos/openshift/jenkins/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/openshift/jenkins/issues/339/comments","events_url":"https://api.github.com/repos/openshift/jenkins/issues/339/events","html_url":"https://github.com/openshift/jenkins/issues/339","id":246767277,"number":339,"title":"Rebuilt Jenkins master image (2.46.3 -> 2.60.1) causes fatal errors during startup with JENKINS_HOME persistent volume","user":{"login":"scoheb","id":3596711,"avatar_url":"https://avatars1.githubusercontent.com/u/3596711?v=4","gravatar_id":"","url":"https://api.github.com/users/scoheb","html_url":"https://github.com/scoheb","followers_url":"https://api.github.com/users/scoheb/followers","following_url":"https://api.github.com/users/scoheb/following{/other_user}","gists_url":"https://api.github.com/users/scoheb/gists{/gist_id}","starred_url":"https://api.github.com/users/scoheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoheb/subscriptions","organizations_url":"https://api.github.com/users/scoheb/orgs","repos_url":"https://api.github.com/users/scoheb/repos","events_url":"https://api.github.com/users/scoheb/events{/privacy}","received_events_url":"https://api.github.com/users/scoheb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-31T14:07:21Z","updated_at":"2017-07-31T15:45:22Z","closed_at":"2017-07-31T15:45:22Z","body":"> OPENSHIFT_JENKINS_JVM_ARCH is set to i386 so using 32 bit Java\r\n> mkdir: cannot create directory ‘/var/lib/jenkins/logs’: File exists\r\n> Running from: /usr/lib/jenkins/jenkins.war\r\n> webroot: EnvVars.masterEnvVars.get(\"JENKINS_HOME\")\r\n> Jul 31, 2017 1:56:55 PM Main deleteWinstoneTempContents\r\n> WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war\r\n> Jul 31, 2017 1:56:55 PM org.eclipse.jetty.util.log.JavaUtilLog info\r\n> INFO: Logging initialized @619ms\r\n> Jul 31, 2017 1:56:55 PM winstone.Logger logInternal\r\n> INFO: Beginning extraction from war file\r\n> Jul 31, 2017 1:56:55 PM winstone.Logger logInternal\r\n> INFO: Winstone shutdown successfully\r\n> Jul 31, 2017 1:56:55 PM winstone.Logger logInternal\r\n> SEVERE: Container startup failed\r\n> java.io.FileNotFoundException: /var/lib/jenkins/war/WEB-INF/lib/commons-collections-3.2.2.jar (Permission denied)\r\n> \tat java.io.FileOutputStream.open0(Native Method)\r\n> \tat java.io.FileOutputStream.open(FileOutputStream.java:270)\r\n> \tat java.io.FileOutputStream.<init>(FileOutputStream.java:213)\r\n> \tat java.io.FileOutputStream.<init>(FileOutputStream.java:162)\r\n> \tat winstone.HostConfiguration.getWebRoot(HostConfiguration.java:280)\r\n> \tat winstone.HostConfiguration.<init>(HostConfiguration.java:83)\r\n> \tat winstone.HostGroup.initHost(HostGroup.java:66)\r\n> \tat winstone.HostGroup.<init>(HostGroup.java:45)\r\n> \tat winstone.Launcher.<init>(Launcher.java:144)\r\n> \tat winstone.Launcher.main(Launcher.java:352)\r\n> \tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n> \tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n> \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n> \tat java.lang.reflect.Method.invoke(Method.java:498)\r\n> \tat Main._main(Main.java:264)\r\n> \tat Main.main(Main.java:112)\r\n> \r\n\r\nHere is a snapshot of the permissions in the above directory.\r\n\r\n![lib-jenkins](https://user-images.githubusercontent.com/3596711/28781298-9ec08a26-75d7-11e7-9957-92c6db770721.png)\r\n![lib2](https://user-images.githubusercontent.com/3596711/28781419-fc51adbe-75d7-11e7-9a65-e71f618498d0.png)\r\n\r\nIn addition, after rollback (using previous version) these errors are seen:\r\n\r\n> WARNING: exception while collecting data: java.io.IOException: JavaMelody directory can't be created: /var/lib/jenkins/monitoring/_jenkins-11-t00f7\r\n> java.io.IOException: JavaMelody directory can't be created: /var/lib/jenkins/monitoring/_jenkins-11-t00f7\r\n> \r\n> Jul 29, 2017 10:28:00 PM jenkins.metrics.api.Metrics$HealthChecker$3 run\r\n> SEVERE: jenkins.metrics.api.Metrics$HealthChecker could not create listener\r\n> java.io.FileNotFoundException: /var/lib/jenkins/logs/health-checker.log (Permission denied)\r\n> \tat java.io.FileOutputStream.open0(Native Method)\r\n> \tat java.io.FileOutputStream.open(FileOutputStream.java:270)\r\n> \tat java.io.FileOutputStream.<init>(FileOutputStream.java:213)\r\n> \tat java.io.FileOutputStream.<init>(FileOutputStream.java:162)\r\n> \tat hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)\r\n> \tat hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)\r\n> \tat jenkins.metrics.api.Metrics$HealthChecker$3.run(Metrics.java:564)\r\n> \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n> \tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n> \tat java.lang.Thread.run(Thread.java:748)\r\n> \r\n> Jul 29, 2017 10:08:30 PM com.cloudbees.plugins.credentials.SystemCredentialsProvider <init>\r\n> SEVERE: Failed to read the existing credentials\r\n> java.io.IOException: Unable to read /var/lib/jenkins/credentials.xml\r\n> \tat hudson.XmlFile.unmarshal(XmlFile.java:161)\r\n> \r\n> org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/jenkins/war/WEB-INF/lib/jenkins-core-2.46.3.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> java.io.IOException: Failed to create a temporary file in /var/lib/jenkins/secrets\r\n> \r\n\r\nI am wondering a **complete** _fix-permissions_ call should be made instead of the piece-meal approach today."}}
{"actor":{"display_login":"scoheb"}}