• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • 2.326

      After updating from 2.324 to 2.325 Jenkins does not start anymore. The only visible web page states that the root directory /jenkins could not be created.

      Surely /jenkins already exists. It is a symbolic link to another directory.

          [JENKINS-67372] Jenkins fails to start after update to 2.325

          Basil Crow added a comment -

          Hi alexanderv, sorry for the trouble. Can you please provide the complete stack trace and the steps to reproduce if possible?

          Basil Crow added a comment - Hi alexanderv , sorry for the trouble. Can you please provide the complete stack trace and the steps to reproduce if possible?

          Meanwhile we've restored 2.324 by renaming back the jenkins.war.bak to jenkins.war. The logs seem not to contain any related error messages.

          The step that caused the error was probably the update which is done automatically every time a new Jenkins version is released. The problem occurred on at least two Jenkins installations.

          Alexander Veit added a comment - Meanwhile we've restored 2.324 by renaming back the jenkins.war.bak to jenkins.war . The logs seem not to contain any related error messages. The step that caused the error was probably the update which is done automatically every time a new Jenkins version is released. The problem occurred on at least two Jenkins installations.

          Zbynek Konecny added a comment - - edited
          java.nio.file.FileAlreadyExistsException: /var/lib/jenkins
                  at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
                  at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
                  at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
                  at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
                  at java.nio.file.Files.createDirectory(Files.java:674)
                  at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
                  at java.nio.file.Files.createDirectories(Files.java:727)
                  at hudson.WebAppMain.contextInitialized(WebAppMain.java:193)
          Caused: hudson.util.NoHomeDir
                  at hudson.WebAppMain.contextInitialized(WebAppMain.java:195)
                  at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067)
                  at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
                  at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:996)
                  at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746)
                  at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
                  at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
                  at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
                  at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
                  at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
                  at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
                  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
                  at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
                  at org.eclipse.jetty.server.Server.start(Server.java:423)
                  at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
                  at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
                  at org.eclipse.jetty.server.Server.doStart(Server.java:387)
                  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
                  at winstone.Launcher.<init>(Launcher.java:192)
                  at winstone.Launcher.main(Launcher.java:369)
                  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 Main._main(Main.java:307)
                  at Main.main(Main.java:111)
          

          Zbynek Konecny added a comment - - edited java.nio.file.FileAlreadyExistsException: / var /lib/jenkins at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) at java.nio.file.Files.createDirectory(Files.java:674) at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) at java.nio.file.Files.createDirectories(Files.java:727) at hudson.WebAppMain.contextInitialized(WebAppMain.java:193) Caused: hudson.util.NoHomeDir at hudson.WebAppMain.contextInitialized(WebAppMain.java:195) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572) at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:996) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.server.Server.start(Server.java:423) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) at org.eclipse.jetty.server.Server.doStart(Server.java:387) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at winstone.Launcher.<init>(Launcher.java:192) at winstone.Launcher.main(Launcher.java:369) 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 Main._main(Main.java:307) at Main.main(Main.java:111)

          Basil Crow added a comment -

          Incremental build 2.326-rc31853.88893d10b0a2 is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.326-rc31853.88893d10b0a2/

          alexanderv zbynek Can you please test the incremental build and confirm the issue is resolved?

          Basil Crow added a comment - Incremental build 2.326-rc31853.88893d10b0a2 is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.326-rc31853.88893d10b0a2/ alexanderv zbynek Can you please test the incremental build and confirm the issue is resolved?

          I ran into same issue on two different Ubuntu 18.04 servers. Same basic log error. 

          2021-12-16 01:18:35.850+0000 [id=1] SEVERE hudson.util.BootFailure#publish: Failed to initialize Jenkins

          java.nio.file.FileAlreadyExistsException: /var/lib/jenkins

          at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)

          at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)

          at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)

          at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)

          at java.base/java.nio.file.Files.createDirectory(Files.java:690)

          at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797)

          at java.base/java.nio.file.Files.createDirectories(Files.java:743)

          at hudson.WebAppMain.contextInitialized(WebAppMain.java:193)

          I can confirm that incremental build 2.326-rc31853.88893d10b0a2 fixed it for us. 

          Connor Graydon added a comment - I ran into same issue on two different Ubuntu 18.04 servers. Same basic log error.  2021-12-16 01:18:35.850+0000 [id=1] SEVERE hudson.util.BootFailure#publish: Failed to initialize Jenkins java.nio.file.FileAlreadyExistsException: /var/lib/jenkins at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) at java.base/java.nio.file.Files.createDirectory(Files.java:690) at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797) at java.base/java.nio.file.Files.createDirectories(Files.java:743) at hudson.WebAppMain.contextInitialized(WebAppMain.java:193) I can confirm that incremental build 2.326-rc31853.88893d10b0a2 fixed it for us. 

          With Jenkins 2.326-rc31853.88893d10b0a2 the problem is gone.

          Alexander Veit added a comment - With Jenkins 2.326-rc31853.88893d10b0a2 the problem is gone.

            basil Basil Crow
            alexanderv Alexander Veit
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: