I've got a freshly installed Ubuntu 24.04 with 21.0.2 openjdk.
Sys has 32gb ram, 16 core, 500 gb storage.
jenkins user already exist.
Tried to install Jenkins via 'apt install jenkins' but its failed at ~60%.
rerun says:
root@jenkins:/home/jenkins# apt install jenkins
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jenkins is already the newest version (2.440.2).
listening on port, but hanging..
x.x.x.x:8080/login?from=%2F
'Please wait while Jenkins is getting ready to work ...'
systemctl status:
root@jenkins:/home/jenkins# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: enabled)
Active: activating (start) since Thu 2024-04-04 15:13:20 UTC; 4min 7s ago
Main PID: 28509 (java)
Tasks: 102 (limit: 38470)
Memory: 267.1M (peak: 268.9M)
CPU: 11.536s
CGroup: /system.slice/jenkins.service
└─28509 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
Apr 04 15:13:23 jenkins jenkins[28509]: Jenkins initial setup is required. An admin user has been created and a password generated.
Apr 04 15:13:23 jenkins jenkins[28509]: Please use the following password to proceed to installation:
Apr 04 15:13:23 jenkins jenkins[28509]: e4512fd73337478fa73f266adc7c7846
Apr 04 15:13:23 jenkins jenkins[28509]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
Apr 04 15:13:23 jenkins jenkins[28509]: *************************************************************
journalctl:
Apr 04 15:08:20 jenkins systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 28.
Apr 04 15:08:20 jenkins systemd[1]: Starting jenkins.service - Jenkins Continuous Integration Server...
Apr 04 15:08:20 jenkins jenkins[28251]: Running from: /usr/share/java/jenkins.war
Apr 04 15:08:20 jenkins jenkins[28251]: 2024-04-04 15:08:20.536+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Apr 04 15:08:20 jenkins jenkins[28251]: 2024-04-04 15:08:20.622+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Apr 04 15:08:20 jenkins jenkins[28251]: 2024-04-04 15:08:20.689+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.20; built: 2024-01-29T20:46:45.278Z; git: 3a745c71c23682146f262b99f4ddc4c1bc41630c; jvm 2>
Apr 04 15:08:20 jenkins jenkins[28251]: 2024-04-04 15:08:20.934+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Apr 04 15:08:20 jenkins jenkins[28251]: 2024-04-04 15:08:20.982+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.364+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.456+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@7d373bcf{Jenkins v2.440.2,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/w>
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.466+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@45afc369{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.475+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@f0f2775{STARTING}[10.0.20,sto=0] @1363ms
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.476+0000 [id=55] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.717+0000 [id=64] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Apr 04 15:08:21 jenkins jenkins[28251]: 2024-04-04 15:08:21.720+0000 [id=85] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.493+0000 [id=95] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.498+0000 [id=65] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.503+0000 [id=80] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.708+0000 [id=92] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.709+0000 [id=88] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.709+0000 [id=88] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.711+0000 [id=70] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.732+0000 [id=109] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Apr 04 15:08:22 jenkins jenkins[28251]: 2024-04-04 15:08:22.765+0000 [id=90] INFO jenkins.install.SetupWizard#init:
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:08:22 jenkins jenkins[28251]: Jenkins initial setup is required. An admin user has been created and a password generated.
Apr 04 15:08:22 jenkins jenkins[28251]: Please use the following password to proceed to installation:
Apr 04 15:08:22 jenkins jenkins[28251]: e4512fd73337478fa73f266adc7c7846
Apr 04 15:08:22 jenkins jenkins[28251]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:08:22 jenkins jenkins[28251]: *************************************************************
Apr 04 15:13:20 jenkins systemd[1]: jenkins.service: start operation timed out. Terminating.
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.320+0000 [id=56] INFO winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.322+0000 [id=56] INFO org.eclipse.jetty.server.Server#doStop: Stopped Server@f0f2775{STOPPING}[10.0.20,sto=0]
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.326+0000 [id=56] INFO o.e.j.server.AbstractConnector#doStop: Stopped ServerConnector@45afc369{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.329+0000 [id=56] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.337+0000 [id=56] INFO jenkins.model.Jenkins$16#onAttained: Started termination
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.345+0000 [id=56] INFO jenkins.model.Jenkins$16#onAttained: Completed termination
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.346+0000 [id=56] INFO jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.350+0000 [id=56] INFO jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.350+0000 [id=56] INFO jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.362+0000 [id=56] INFO jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.362+0000 [id=56] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.363+0000 [id=56] INFO hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up
Apr 04 15:13:20 jenkins jenkins[28251]: java.lang.Throwable: reason
Apr 04 15:13:20 jenkins jenkins[28251]: at hudson.WebAppMain.contextDestroyed(WebAppMain.java:407)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:1059)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:636)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.ContextHandler.contextDestroyed(ContextHandler.java:1016)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:306)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:412)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:413)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:497)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:1039)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:399)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1311)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:1087)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:312)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.server.Server.doStop(Server.java:517)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
Apr 04 15:13:20 jenkins jenkins[28251]: at winstone.Launcher.shutdown(Launcher.java:442)
Apr 04 15:13:20 jenkins jenkins[28251]: at winstone.ShutdownHook.run(ShutdownHook.java:28)
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.365+0000 [id=56] INFO o.e.j.s.handler.ContextHandler#doStop: Stopped w.@7d373bcf{Jenkins v2.440.2,/,null,STOPPED}{/var/cache/jenkins/war}
Apr 04 15:13:20 jenkins jenkins[28251]: 2024-04-04 15:13:20.365+0000 [id=52] SEVERE h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (Jenkins initialization thread/52) died >
Apr 04 15:13:20 jenkins jenkins[28251]: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad
Apr 04 15:13:20 jenkins jenkins[28251]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.webapp.WebAppClassLoader.foundClass(WebAppClassLoader.java:594)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.webapp.WebAppClassLoader.loadAsResource(WebAppClassLoader.java:567)
Apr 04 15:13:20 jenkins jenkins[28251]: at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:502)
Apr 04 15:13:20 jenkins jenkins[28251]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
Apr 04 15:13:20 jenkins jenkins[28251]: Caused: java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad
Apr 04 15:13:20 jenkins jenkins[28251]: at hudson.WebAppMain$3.run(WebAppMain.java:276)
Apr 04 15:13:20 jenkins systemd[1]: jenkins.service: Failed with result 'timeout'.
Apr 04 15:13:20 jenkins systemd[1]: Failed to start jenkins.service - Jenkins Continuous Integration Server.
Apr 04 15:13:20 jenkins systemd[1]: jenkins.service: Consumed 10.006s CPU time.
Apr 04 15:13:20 jenkins systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 29.
tried to collect jstack, attached to the ticket
root@jenkins:/home/jenkins# sudo dpkg --configure -a
Setting up jenkins (2.440.2) ...
Job for jenkins.service failed because a timeout was exceeded.
See "systemctl status jenkins.service" and "journalctl -xeu jenkins.service"for details.
invoke-rc.d: initscript jenkins, action "start" failed.
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: enabled)
Active: activating (auto-restart) (Result: timeout) since Thu 2024-04-04 16:23:44 UTC; 9ms ago
Process: 36357 ExecStart=/usr/bin/jenkins (code=exited, status=143)
Main PID: 36357 (code=exited, status=143)
Status: "Jenkins stopped"
CPU: 11.487s
dpkg: error processing package jenkins (--configure):
installed jenkins package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
jenkins
shall I increase "JENKINS_DEBUG_LEVEL=5" to 10 or higher to get debug logs?
L
added a comment - Basil thanks for the quick reply!
Just increased to TimeoutStartSec=900.
also just modified to logging into var/log
Let me share the results after 10 min:
root@jenkins:/ var /log/jenkins# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: enabled)
Active: activating (start) since Fri 2024-04-05 05:55:07 UTC; 10min ago
Main PID: 1886 (java)
Tasks: 95 (limit: 38470)
Memory: 267.0M (peak: 286.2M)
CPU: 13.224s
CGroup: /system.slice/jenkins.service
└─1886 /usr/bin/java -Djava.awt.headless= true -jar /usr/share/java/jenkins.war --webroot=/ var /cache/jenkins/war --logfile=/ var /log/jenkins/jenkins.log --httpPort=8080Apr 05 05:55:07 jenkins systemd[1]: Starting jenkins.service - Jenkins Continuous Integration Server...
Apr 05 05:55:07 jenkins jenkins[1886]: Running from: /usr/share/java/jenkins.war
root@jenkins:/ var /log/jenkins# jstack 1886 > jstack_10min.txt
collected:
j jstack_10min.txt
jenkins.log from var/log
jenkins.service actual systemd configuration
shall I increase "JENKINS_DEBUG_LEVEL=5" to 10 or higher to get debug logs?
Looks like it's stuck on hudson.model.DownloadService.loadJSON(DownloadService.java:122) presumably trying to fetch https://updates.jenkins.io/update-center.json. Is your server unable to reach the Update Center or unable to download a 3 MiB JSON file?
Basil Crow
added a comment - Looks like it's stuck on hudson.model.DownloadService.loadJSON(DownloadService.java:122) presumably trying to fetch https://updates.jenkins.io/update-center.json . Is your server unable to reach the Update Center or unable to download a 3 MiB JSON file?
Think so the connection is ok, I need proxy to reach the external network - maybe it was failed last time
jstack dump seems different now jenkins_v2.log
L
added a comment - - edited Think so the connection is ok, I need proxy to reach the external network - maybe it was failed last time
jstack dump seems different now
jenkins_v2.log
jstack_11min.txt
root@jenkins:/ var /log/jenkins# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: enabled)
Active: activating (start) since Fri 2024-04-05 06:45:33 UTC; 11min ago
Main PID: 7299 (java)
Tasks: 95 (limit: 38470)
Memory: 279.9M (peak: 286.0M)
CPU: 14.422s
CGroup: /system.slice/jenkins.service
└─7299 /usr/bin/java -Djava.awt.headless= true -jar /usr/share/java/jenkins.war --webroot=/ var /cache/jenkins/war --logfile=/ var /log/jenkins/jenkins.log --httpPort=8080 --debug=9Apr 05 06:45:33 jenkins systemd[1]: Starting jenkins.service - Jenkins Continuous Integration Server...
Apr 05 06:45:33 jenkins jenkins[7299]: Running from: /usr/share/java/jenkins.war
root@jenkins:/ var /log/jenkins# jstack 7299 > jstack_11min.txt
The stack trace is the same. You somehow need to configure Java and/or Jenkins to use your proxy. I don't think there is a Jenkins core bug here.
Basil Crow
added a comment - The stack trace is the same. You somehow need to configure Java and/or Jenkins to use your proxy. I don't think there is a Jenkins core bug here.
Basil, I searched over the internet how to setup proxy for Java or Jenkins, but I found only that if I set global proxy to use like this:
export https_proxy=http://87.254.212.120:8080
System will use it. (And this was already done..) So don't really know what to do with this situation.
L
added a comment - - edited Basil, I searched over the internet how to setup proxy for Java or Jenkins, but I found only that if I set global proxy to use like this:
export https_proxy=http: //87.254.212.120:8080
System will use it. (And this was already done..) So don't really know what to do with this situation.
This is normally configured via the GUI in Manage Jenkins > System, but if you can't complete the setup wizard you can try manually creating a proxy.xml file in $JENKINS_HOME:
Basil Crow
added a comment - This is normally configured via the GUI in Manage Jenkins > System, but if you can't complete the setup wizard you can try manually creating a proxy.xml file in $JENKINS_HOME :
<?xml version='1.1' encoding='UTF-8'?>
<proxy>
<name>proxy.example.com</name>
<port>8080</port>
<userName></userName>
<noProxyHost></noProxyHost>
<secretPassword></secretPassword>
<testUrl></testUrl>
</proxy>
but there is something I could not understand.. the same command not working if the daemon starts it.
I 've modified the daemon (cat /usr/lib/systemd/system/jenkins.service)
in ps aux its clearly visible the daemon executes the same, but jenkins does not start properly.
any idea why is it not working from via the daemon?
L
added a comment - found a way to start it
/usr/bin/java
-Djava.awt.headless= true -Dhttp.proxyHost=87.254.212.120 -Dhttp.proxyPort=8080
-jar /usr/share/java/jenkins.war --webroot=/ var /cache/jenkins/war
--logfile=/ var /log/jenkins/jenkins.log --httpPort=8080 --debug=9 > /dev/ null
2>&1 & echo $!
but there is something I could not understand.. the same command not working if the daemon starts it.
I 've modified the daemon (cat /usr/lib/systemd/system/jenkins.service)
Environment= "JAVA_OPTS=-Djava.awt.headless= true -Dhttp.proxyHost=87.254.212.120 -Dhttp.proxyPort=8080"
in ps aux its clearly visible the daemon executes the same, but jenkins does not start properly.
any idea why is it not working from via the daemon?
Basil Crow
added a comment - Not sure, maybe some quoting issue.
Unassigned
L
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Created:
Updated:
{"searchers":{"groups":[{"searchers":[{"name":"Project","id":"project","key":"issue.field.project","isShown":true,"lastViewed":1740822136676},{"name":"Summary","id":"summary","key":"issue.field.summary","isShown":true},{"name":"Type","id":"issuetype","key":"issue.field.issuetype","isShown":true,"lastViewed":1740822136677},{"name":"Status","id":"status","key":"issue.field.status","isShown":true,"lastViewed":1740822136689},{"name":"Priority","id":"priority","key":"issue.field.priority","isShown":true},{"name":"Resolution","id":"resolution","key":"issue.field.resolution","isShown":true},{"name":"Creator","id":"creator","key":"issue.field.creator","isShown":true},{"name":"Component","id":"component","key":"issue.field.components","isShown":true},{"name":"% Limits","id":"workratio","key":"issue.field.workratio","isShown":true},{"name":"Link types","id":"issue_link_type","key":"issue.field.issuelinks","isShown":true},{"name":"Environment","id":"environment","key":"issue.field.environment","isShown":true},{"name":"Description","id":"description","key":"issue.field.description","isShown":true},{"name":"Comment","id":"comment","key":"issue.field.comment","isShown":true},{"name":"Label","id":"labels","key":"issue.field.labels","isShown":true,"lastViewed":1740822136696},{"name":"Query","id":"text","key":"text","isShown":true},{"name":"Bonfire Browser","id":"customfield_10229","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Bonfire Operating System","id":"customfield_10231","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Bonfire Screen Resolution","id":"customfield_10244","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Bonfire URL","id":"customfield_10237","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Bonfire User Agent","id":"customfield_10226","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Bonfire jQuery Version","id":"customfield_10252","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Business Value","id":"customfield_10333","key":"com.atlassian.jira.plugin.system.customfieldtypes:float","isShown":false},{"name":"Development","id":"customfield_10720","key":"com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary","isShown":true},{"name":"Epic Color","id":"customfield_10328","key":"com.pyxis.greenhopper.jira:gh-epic-color","isShown":false},{"name":"Epic Link","id":"customfield_10325","key":"com.pyxis.greenhopper.jira:gh-epic-link","isShown":true},{"name":"Epic Name","id":"customfield_10327","key":"com.pyxis.greenhopper.jira:gh-epic-label","isShown":true},{"name":"Epic Status","id":"customfield_10326","key":"com.pyxis.greenhopper.jira:gh-epic-status","isShown":false},{"name":"Epic/Theme","id":"customfield_10331","key":"com.atlassian.jira.plugin.system.customfieldtypes:labels","isShown":true},{"name":"Flagged","id":"customfield_10330","key":"com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes","isShown":true},{"name":"GitHub Users to Authorize as Committers","id":"customfield_10323","key":"com.atlassian.jira.plugin.system.customfieldtypes:textarea","isShown":true},{"name":"Issue Tracker","id":"customfield_11320","key":"com.atlassian.jira.plugin.system.customfieldtypes:select","isShown":true},{"name":"JIRA Capture Browser","id":"customfield_10228","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Browser","id":"customfield_10230","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Document Mode","id":"customfield_10258","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10232","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10233","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10234","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10236","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10238","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Operating System","id":"customfield_10239","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10245","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10246","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10247","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10248","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10249","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture Screen Resolution","id":"customfield_10250","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture URL","id":"customfield_10240","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture URL","id":"customfield_10241","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture URL","id":"customfield_10242","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture URL","id":"customfield_10243","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture User Agent","id":"customfield_10225","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture User Agent","id":"customfield_10227","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10251","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10253","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10254","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10255","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10256","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"JIRA Capture jQuery Version","id":"customfield_10257","key":"com.atlassian.bonfire.plugin:bonfire-text","isShown":true},{"name":"Meeting minutes URL","id":"customfield_10020","key":"com.atlassian.jira.plugin.system.customfieldtypes:url","isShown":false},{"name":"New Repository Name","id":"customfield_10321","key":"com.atlassian.jira.plugin.system.customfieldtypes:textfield","isShown":true},{"name":"Original story points","id":"customfield_11423","key":"com.atlassian.jpo:jpo-custom-field-original-story-points","isShown":true},{"name":"Parent Link","id":"customfield_11420","key":"com.atlassian.jpo:jpo-custom-field-parent","isShown":false},{"name":"Plugin Description","id":"customfield_10322","key":"com.atlassian.jira.plugin.system.customfieldtypes:textarea","isShown":true},{"name":"Raised During","id":"customfield_10220","key":"com.atlassian.bonfire.plugin:bonfire-session-cft","isShown":false},{"name":"Raised During","id":"customfield_10221","key":"com.atlassian.bonfire.plugin:bonfire-session-cft","isShown":false},{"name":"Rank","id":"customfield_10324","key":"com.pyxis.greenhopper.jira:gh-lexo-rank","isShown":true},{"name":"Released As","id":"customfield_10620","key":"com.atlassian.jira.plugin.system.customfieldtypes:textfield","isShown":true},{"name":"Repository URL","id":"customfield_10320","key":"com.atlassian.jira.plugin.system.customfieldtypes:url","isShown":true},{"name":"Similar Issues","id":"customfield_10520","key":"com.suggestimate:similar-issues-custom-field","isShown":true},{"name":"Sprint","id":"customfield_10329","key":"com.pyxis.greenhopper.jira:gh-sprint","isShown":true},{"name":"Story Points","id":"customfield_10332","key":"com.atlassian.jira.plugin.system.customfieldtypes:float","isShown":false},{"name":"Team","id":"customfield_11424","key":"com.atlassian.teams:rm-teams-custom-field-team","isShown":true},{"name":"Test Sessions","id":"customfield_10222","key":"com.atlassian.bonfire.plugin:bonfire-multi-session-cft","isShown":false},{"name":"Test Sessions","id":"customfield_10223","key":"com.atlassian.bonfire.plugin:bonfire-multi-session-cft","isShown":false},{"name":"Test Sessions","id":"customfield_10224","key":"com.atlassian.bonfire.plugin:bonfire-multi-session-cft","isShown":false},{"name":"Testing Status","id":"customfield_10259","key":"com.atlassian.bonfire.plugin:bonfire-testing-status-cft","isShown":false},{"name":"URL","id":"customfield_10000","key":"com.atlassian.jira.plugin.system.customfieldtypes:url","isShown":true}],"type":"DETAILS","title":"Details"},{"searchers":[{"name":"Created Date","id":"created","key":"issue.field.created","isShown":true},{"name":"Updated Date","id":"updated","key":"issue.field.updated","isShown":true},{"name":"Resolution Date","id":"resolutiondate","key":"issue.field.resolution.date","isShown":true},{"name":"Target end","id":"customfield_11422","key":"com.atlassian.jpo:jpo-custom-field-baseline-end","isShown":true},{"name":"Target start","id":"customfield_11421","key":"com.atlassian.jpo:jpo-custom-field-baseline-start","isShown":true}],"type":"DATES","title":"Dates"},{"searchers":[{"name":"Assignee","id":"assignee","key":"issue.field.assignee","isShown":true,"lastViewed":1740822136690},{"name":"Reporter","id":"reporter","key":"issue.field.reporter","isShown":true}],"type":"PEOPLE","title":"People"}]},"values":{"issuetype":{"name":"Type","editHtml":"\n\n\n\n <div class=\"field-group aui-field-issuetype\" >\n <label for=\"searcher-type\">Type</label> <select class=\"select js-default-checkboxmultiselect\"\n id=\"searcher-type\"\n multiple=\"multiple\"\n name=\"type\"\n data-max-inline-results-displayed=\"100\"\n data-placeholder-text=\"Find Issue Types...\">\n <optgroup>\n \n <option class=\" \"\n id=\"type_-2\"\n title=\"All Standard Issue Types\"\n value=\"-2\">All Standard Issue Types</option>\n </optgroup>\n\n <optgroup label=\"Standard Issue Types\">\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14673&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_1\"\n title=\"Bug\"\n value=\"1\">Bug</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/images/icons/issuetypes/epic.png\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_10001\"\n title=\"Epic\"\n value=\"10001\">Epic</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14680&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_4\"\n title=\"Improvement\"\n value=\"4\">Improvement</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14681&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_2\"\n title=\"New Feature\"\n value=\"2\">New Feature</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14670&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_5\"\n title=\"Patch\"\n value=\"5\">Patch</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14685&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_10002\"\n title=\"Story\"\n value=\"10002\">Story</option>\n \n <option class=\" imagebacked 10730 \"\n data-icon=\"/secure/viewavatar?size=xsmall&avatarId=14688&avatarType=issuetype\"\n data-fallback-icon=\"/images/icons/issuetypes/blank.png\"\n id=\"type_3\"\n title=\"Task\"\n value=\"3\">Task</option>\n </optgroup>\n\n <optgroup label=\"Sub-Task Issue Types\">\n </optgroup>\n </select>\n </div>\n ","validSearcher":true,"isShown":true},"project":{"name":"Project","editHtml":" \n <div class=\"field-group aui-field-project\" >\n <label for=\"searcher-pid\">Project</label> <select class=\"js-project-checkboxmultiselect\"\n data-placeholder-text=\"Find Projects...\"\n id=\"searcher-pid\"\n multiple=\"multiple\"\n name=\"pid\">\n <optgroup label=\"Recent Projects\">\n </optgroup>\n <optgroup label=\"All Projects\" >\n \n <option data-icon=\"/secure/projectavatar?pid=10172&size=small\"\n title=\"Jenkins\"\n value=\"10172\">\n Jenkins (JENKINS)\n </option>\n <option data-icon=\"/secure/projectavatar?pid=10050&size=small\"\n title=\"test\"\n value=\"10050\">\n test (TEST)\n </option>\n </optgroup>\n </select>\n </div>\n \n\n","validSearcher":true,"isShown":true},"assignee":{"name":"Assignee","editHtml":"\n \n <div class=\"field-group aui-field-userlist\" >\n <label for=\"searcher-assigneeSelect\">Assignee</label> <fieldset rel=\"assignee\" class=\"hidden user-group-searcher-params\">\n </fieldset>\n <select class=\"js-usergroup-checkboxmultiselect\" multiple=\"multiple\" id=\"assignee\" name=\"assignee\" data-placeholder-text=\"Enter username or group\">\n <optgroup>\n <option class=\"headerOption\" data-icon=\"https://issues.jenkins.io/secure/useravatar?size=xsmall&avatarId=10293\" value=\"empty\" title=\"Unassigned\">Unassigned</option>\n </optgroup>\n <optgroup>\n </optgroup>\n </select>\n <input type=\"hidden\" name=\"check_prev_assignee\" value=\"true\">\n </div>\n \n","validSearcher":true,"isShown":true},"status":{"name":"Status","editHtml":"\n <div class=\"field-group aui-field-constants\" >\n <label for=\"searcher-status\">Status</label> <select class=\"select js-default-checkboxmultiselectstatuslozenge\"\n data-placeholder-text=\"Find Statuses...\"\n id=\"searcher-status\"\n multiple=\"multiple\"\n name=\"status\"\n data-max-inline-results-displayed=\"100\"\n data-footer-text=\"-88 more options. Continue typing to refine further.\" data-status-lozenge=\"true\">\n <optgroup >\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/needinfo.png\" value=\"10001\" title=\"Untriaged\" data-simple-status=\"{"id":"10001","name":"Untriaged","description":"New issue sits in this state until a developer agrees that this is a security issue","iconUrl":"/images/icons/statuses/needinfo.png","statusCategory":{"id":2,"key":"new","colorName":"default"}}\">Untriaged</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/open.png\" value=\"1\" title=\"Open\" data-simple-status=\"{"id":"1","name":"Open","description":"The issue is open and ready for the assignee to start work on it.","iconUrl":"/images/icons/statuses/open.png","statusCategory":{"id":2,"key":"new","colorName":"default"}}\">Open</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/inprogress.png\" value=\"3\" title=\"In Progress\" data-simple-status=\"{"id":"3","name":"In Progress","description":"This issue is being actively worked on at the moment by the assignee.","iconUrl":"/images/icons/statuses/inprogress.png","statusCategory":{"id":4,"key":"indeterminate","colorName":"inprogress"}}\">In Progress</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/reopened.png\" value=\"4\" title=\"Reopened\" data-simple-status=\"{"id":"4","name":"Reopened","description":"This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.","iconUrl":"/images/icons/statuses/reopened.png","statusCategory":{"id":4,"key":"indeterminate","colorName":"inprogress"}}\">Reopened</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/information.png\" value=\"10005\" title=\"In Review\" data-simple-status=\"{"id":"10005","name":"In Review","description":"","iconUrl":"/images/icons/statuses/information.png","statusCategory":{"id":4,"key":"indeterminate","colorName":"inprogress"}}\">In Review</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/resolved.png\" value=\"10002\" title=\"Fix Prepared\" data-simple-status=\"{"id":"10002","name":"Fix Prepared","description":"A fix is implemented and is waiting for the next security release","iconUrl":"/images/icons/statuses/resolved.png","statusCategory":{"id":4,"key":"indeterminate","colorName":"inprogress"}}\">Fix Prepared</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/generic.png\" value=\"10000\" title=\"Verified\" data-simple-status=\"{"id":"10000","name":"Verified","description":"Verified","iconUrl":"/images/icons/statuses/generic.png","statusCategory":{"id":4,"key":"indeterminate","colorName":"inprogress"}}\">Verified</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/generic.png\" value=\"10203\" title=\"Fixed but Unreleased\" data-simple-status=\"{"id":"10203","name":"Fixed but Unreleased","description":"This change has been implemented and merged, but not yet released.","iconUrl":"/images/icons/statuses/generic.png","statusCategory":{"id":3,"key":"done","colorName":"success"}}\">Fixed but Unreleased</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/resolved.png\" value=\"5\" title=\"Resolved\" data-simple-status=\"{"id":"5","name":"Resolved","description":"A developer had implemented a fix and is waiting for a feedback from the reporter.","iconUrl":"/images/icons/statuses/resolved.png","statusCategory":{"id":3,"key":"done","colorName":"success"}}\">Resolved</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/closed.png\" value=\"6\" title=\"Closed\" data-simple-status=\"{"id":"6","name":"Closed","description":"The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.","iconUrl":"/images/icons/statuses/closed.png","statusCategory":{"id":3,"key":"done","colorName":"success"}}\">Closed</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/open.png\" value=\"10003\" title=\"To Do\" data-simple-status=\"{"id":"10003","name":"To Do","description":"","iconUrl":"/images/icons/statuses/open.png","statusCategory":{"id":2,"key":"new","colorName":"default"}}\">To Do</option>\n <option class=\"imagebacked\" data-icon=\"/images/icons/statuses/closed.png\" value=\"10004\" title=\"Done\" data-simple-status=\"{"id":"10004","name":"Done","description":"","iconUrl":"/images/icons/statuses/closed.png","statusCategory":{"id":3,"key":"done","colorName":"success"}}\">Done</option>\n </optgroup>\n</select>\n </div>\n \n","validSearcher":true,"isShown":true},"labels":{"name":"Label","viewHtml":" <div class=\"searcherValue\">\n \n <label class=\"fieldLabel\" for=\"fieldlabels\">Label:</label><span id=\"fieldlabels\" class=\"fieldValue\">\n \n install\n</span></div>\n","editHtml":"\n <div class=\"field-group aui-field-labels\" >\n <label for=\"searcher-labels\">Labels</label> <select class=\"js-label-checkboxmultiselect\" multiple=\"multiple\" id=\"searcher-labels\" name=\"labels\" data-placeholder-text=\"Find Labels...\">\n <option value=\"install\" title=\"install\" selected=\"selected\">install</option>\n </select>\n </div>\n \n","jql":"labels = install","validSearcher":true,"isShown":true}}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
Basil thanks for the quick reply!
Just increased to TimeoutStartSec=900.
also just modified to logging into var/log
Let me share the results after 10 min:
collected:
from var/log
actual systemd configuration
jjstack_10min.txt
jenkins.log
jenkins.service
shall I increase "JENKINS_DEBUG_LEVEL=5" to 10 or higher to get debug logs?