Skip to content

docker-compose.yaml jenkins deployment silently fails when running build #3

@Zeitsperre

Description

@Zeitsperre

Hi there,

I've been following the LFS261 and have come to a bit of a wall. I can't seem to figure which permissions or settings may be missing in order to ensure that Jenkins can run builds.

Using the docker-relevant files present in the master branch under setup, I can run and configure a local instance of Jenkins, but the instance will silently restart when I attempt to run a configured build (see: LFS 261; Section 6).

Logs

jenkins-1  | 2025-05-20 20:19:05.233+0000 [id=34]       INFO    hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
jenkins-1 exited with code 0
jenkins-1  | Running from: /usr/share/jenkins/jenkins.war
jenkins-1  | webroot: /var/jenkins_home/war
jenkins-1  | 2025-05-20 20:19:37.731+0000 [id=1]        INFO    winstone.Logger#logInternal: Beginning extraction from war file
jenkins-1  | 2025-05-20 20:19:37.849+0000 [id=1]        WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
jenkins-1  | 2025-05-20 20:19:37.915+0000 [id=1]        INFO    org.eclipse.jetty.server.Server#doStart: jetty-10.0.20; built: 2024-01-29T20:46:45.278Z; git: 3a745c71c23682146f262b99f4ddc4c1bc41630c; jvm 21.0.3+9-LTS
jenkins-1  | 2025-05-20 20:19:38.142+0000 [id=1]        INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
jenkins-1  | 2025-05-20 20:19:38.188+0000 [id=1]        INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
jenkins-1  | 2025-05-20 20:19:38.573+0000 [id=1]        INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins-1  | 2025-05-20 20:19:38.656+0000 [id=1]        INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@4917d36b{Jenkins v2.452.3,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
jenkins-1  | 2025-05-20 20:19:38.666+0000 [id=1]        INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@770d3326{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
jenkins-1  | 2025-05-20 20:19:38.678+0000 [id=1]        INFO    org.eclipse.jetty.server.Server#doStart: Started Server@793be5ca{STARTING}[10.0.20,sto=0] @1448ms
jenkins-1  | 2025-05-20 20:19:38.681+0000 [id=35]       INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
jenkins-1  | 2025-05-20 20:19:38.840+0000 [id=41]       INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
jenkins-1  | 2025-05-20 20:19:38.974+0000 [id=43]       INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
jenkins-1  | 2025-05-20 20:19:41.940+0000 [id=47]       INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
jenkins-1  | 2025-05-20 20:19:41.986+0000 [id=42]       INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
jenkins-1  | 2025-05-20 20:19:42.006+0000 [id=44]       INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
jenkins-1  | 2025-05-20 20:19:42.395+0000 [id=43]       INFO    h.p.b.g.GlobalTimeOutConfiguration#load: global timeout not set
jenkins-1  | 2025-05-20 20:19:43.334+0000 [id=46]       INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
jenkins-1  | 2025-05-20 20:19:43.336+0000 [id=46]       INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
jenkins-1  | 2025-05-20 20:19:43.416+0000 [id=41]       INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
jenkins-1  | 2025-05-20 20:19:43.447+0000 [id=40]       INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
jenkins-1  | 2025-05-20 20:19:43.528+0000 [id=41]       INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
jenkins-1  | 2025-05-20 20:19:43.660+0000 [id=34]       INFO    hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running

I will also need to re-login as the instance has reset itself. Are there any steps missing on my end that could be added to the LFS261 material?

Relevant information

OS: openSUSE Tumbleweed
Docker version: 28.1.1-ce
Docker Compose version: 2.36.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions