configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20190228055907.GA2945%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20190228181816.GA2643%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20190228183259.GA2927%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
moving jenkins to a new RH server
Hello, We run jenkins on a RH 7.9 server in version 2.164.1-1.1 and are on the way to setup a newer version on jenkins on a new RH server 8.7. What would be the best way to move all the configuration and jobs to the new server after installing jenkins? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZKJonrV%2BXkciLg%2BT%40c720-r368166.
Re: moving jenkins to a new RH server
El día lunes, julio 03, 2023 a las 08:28:30a. m. +0200, Thomas Markus escribió: > > > for me it was sufficient to clone jenkins home. In detail I copied folders > fingerprints, plugins, secrets, users, jenkins-jobs, jobs > > hth > Thomas Thomas, Thanks for your reply. When I use your dir list as user 'root' with tar: # tar chzf jenkinsHome.tar.gz fingerprints plugins secrets users jenkins-jobs jobs and I have to use the flag 'h' because some of the dirs are symlinks, I get a lot of messages like this: ... tar: jobs/SLNPBasic-V7.1/builds/lastStableBuild: File removed before we read it tar: jobs/SLNPBasic-V7.1/builds/lastFailedBuild: File removed before we read it tar: jobs/SLNPBasic/builds/lastUnstableBuild: File removed before we read it ... and these symlinks all point to nowhere: # ls -l jobs/SLNPBasic-V7.1/builds/lastStableBuild lrwxrwxrwx 1 jenkins jenkins 2 Jul 30 2020 jobs/SLNPBasic-V7.1/builds/lastStableBuild -> -1 What does this mean (the symlink to '-1') and how to deal with this? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZKUNiJMawEATFp5I%40c720-r368166.
Re: moving jenkins to a new RH server
El día miércoles, julio 05, 2023 a las 08:37:15 +0200, Thomas Markus escribió: > > tar: jobs/SLNPBasic-V7.1/builds/lastStableBuild: File removed before we > > read it > > tar: jobs/SLNPBasic-V7.1/builds/lastFailedBuild: File removed before we > > read it > > tar: jobs/SLNPBasic/builds/lastUnstableBuild: File removed before we read it > > ... > > and these symlinks all point to nowhere: > > > > # ls -l jobs/SLNPBasic-V7.1/builds/lastStableBuild > > lrwxrwxrwx 1 jenkins jenkins 2 Jul 30 2020 > > jobs/SLNPBasic-V7.1/builds/lastStableBuild -> -1 > > > > ... > It means these files are removed/changed while tar is running. Looks like > your jenkins instance is running and a build job was executed so symlink for > last build changes. > Personally I use rsync for sync to remote location. To overcome this you can > use snapshots on filesystem support or block any filesystem modification > while tar is running I looked into the build directory (and Jenkins was not running): # ls -l jobs/SunRise-WMS-Migration-Tools/builds/ ... drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 998 drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 999 lrwxrwxrwx 1 jenkins jenkins4 21. Okt 2021 lastFailedBuild -> 1361 lrwxrwxrwx 1 jenkins jenkins4 23. Jan 15:01 lastStableBuild -> 5583 lrwxrwxrwx 1 jenkins jenkins4 23. Jan 15:01 lastSuccessfulBuild -> 5583 lrwxrwxrwx 1 jenkins jenkins2 22. Apr 2021 lastUnstableBuild -> -1 lrwxrwxrwx 1 jenkins jenkins4 21. Okt 2021 lastUnsuccessfulBuild -> 1361 it looks like the symlink 'lastUnstableBuild' -> -1 just means, no information available; as well it is not shown in the dashboard of the job; there are only: Permalinks Last build (#5583), 5 mo 12 days ago Last stable build (#5583), 5 mo 12 days ago Last successful build (#5583), 5 mo 12 days ago Last failed build (#1361), 1 yr 8 mo ago Last unsuccessful build (#1361), 1 yr 8 mo ago Last completed build (#5583), 5 mo 12 days ago I will just ignore the errors. As well the following cmd shows that all 'lastUnstableBuild' are symlinks to -1: find -L jobs -name lastUnstableBuild -exec ls -l {} \; | grep -v -- '-1' Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZKUi1Fl53R4DHJ3Q%40pureos.
fresh Jenkins installation does not present the dashboard
Hello, I've installed a fresh Jenkins jenkins-2.401.2-1.1.noarch.rpm on a RH8 server without the old jobs and config (not moved from the old server). The server starts fine and when I connect with the browser to port 8080, I'm asked for a first administrator password from the file /var/lib/jenkins/secrets/initialAdminPassword When I provide it, the page in the browser only presents some ongoing pattern, three small vertical bars which are moving up and down, but nothing more. The configured log shows: ... Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 74565d94443f4ed08790bf86da7953fd This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword * * * 2023-07-24 11:04:09.232+ [id=34]INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 2023-07-24 11:04:09.251+ [id=23]INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running 2023-07-24 11:05:32.147+ [id=17]WARNING h.i.i.InstallUncaughtExceptionHandler#handleException java.lang.IllegalStateException: Response is committed at org.eclipse.jetty.server.Request.getSession(Request.java:1549) at org.eclipse.jetty.server.Request.getSession(Request.java:1531) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ... at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) at java.base/java.lang.Thread.run(Thread.java:829) (end of log) What is missing or what I could have done wrong? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZL5g7s6pqSUJMSAr%40pureos.
Jenkins && DEBUG logging
Hello, This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8. I'm in the need to debug the start of Jenkins, but get only INFO messages. I'm using as config: # grep -- -D /usr/lib/systemd/system/jenkins.service Environment="JAVA_OPTS=-Dlog4j.debug -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties -Djava.awt.headless=true" # cat /var/lib/jenkins/logging.properties .level=TRACE handlers=java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=FINEST java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter The started Jenkins runs with the correct -D... flags: # ps ax | grep java 2666762 ?Ssl0:27 /usr/bin/java -Dlog4j.debug -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 But the file /var/log/jenkins/jenkins.log does not contain any DEBUG log lines, only the lines shown below. What I do wrong? matthias Jul 25, 2023 2:53:35 PM winstone.Logger logInternal INFO: Beginning extraction from war file Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath WARNING: Empty contextPath Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.Server doStart INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 17.0.7+7-LTS Jul 25, 2023 2:53:36 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart INFO: Session workerName=node0 Jul 25, 2023 2:53:36 PM hudson.WebAppMain contextInitialized INFO: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.handler.ContextHandler doStart INFO: Started w.@5ca17ab0{Jenkins v2.401.2,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war} Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.AbstractConnector doStart INFO: Started ServerConnector@33b37288{HTTP/1.1, (http/1.1)}{0.0.0.0:8080} Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.Server doStart INFO: Started Server@6b1274d2{STARTING}[10.0.13,sto=0] @1686ms Jul 25, 2023 2:53:36 PM winstone.Logger logInternal INFO: Winstone Servlet Engine running: controlPort=disabled Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: System config loaded Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: System config adapted Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Configuration for all jobs updated Jul 25, 2023 2:53:38 PM jenkins.install.SetupWizard init INFO: * * * Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 74565d94443f4ed08790bf86da7953fd This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword * * * Jul 25, 2023 2:53:51 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Jul 25, 2023 2:53:51 PM hudson.lifecycle.Lifecycle onReady INFO: Jenkins is fully up and running -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZL/J6kYrC2/z0lLE%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día Monday, July 24, 2023 a las 01:30:56PM +0200, Matthias Apitz escribió: > > Hello, > > I've installed a fresh Jenkins jenkins-2.401.2-1.1.noarch.rpm on a RH8 > server without the old jobs and config (not moved from the old server). > > The server starts fine and when I connect with the browser to port 8080, > I'm asked for a first administrator password from the file > /var/lib/jenkins/secrets/initialAdminPassword > When I provide it, the page in the browser only presents some ongoing > pattern, three small vertical bars which are moving up and down, but > nothing more. > > ... UPDATE: I spent a lot of time in tracing with tcpdump and Linux' strace to understand what is going on between the browser and Jenkins, and also between Jenkins and resources in Internet: After providing the initial admin password from the browser to Jenkins, there is some HTTP dialog between the browser and Jenkins server; the browser sends a lot of all the same requests of the form GET /updateCenter/connectionStatus?siteId=default... # egrep 'HTTP: GET /update' tcp2 | wc -l 2283 i.e. thousands of such requests! The jenkins server itself is requesting data from two servers in Internet: # grep 142.250.181.228 tcp2 | grep '\[S' 10:51:26.222340 IP 10.201.64.28.48674 > 142.250.181.228.https: Flags [S], seq 2438595054, win 29200, options [mss 1460,sackOK,TS val 1475725650 ecr 0,nop,wscale 7], length 0 # grep 52.202.51.185 tcp2 | grep '\[S' 10:51:26.236951 IP 10.201.64.28.41834 > 52.202.51.185.https: Flags [S], seq 3893898537, win 29200, options [mss 1460,sackOK,TS val 1476244307 ecr 0,nop,wscale 7], length 0 10:51:26.327508 IP 52.202.51.185.https > 10.201.64.28.41834: Flags [S.], seq 351494233, ack 3893898538, win 62643, options [mss 1460,sackOK,TS val 3802601119 ecr 1476244307,nop,wscale 7], length 0 11:07:24.055143 IP 10.201.64.28.46718 > 52.202.51.185.https: Flags [S], seq 3933852832, win 29200, options [mss 1460,sackOK,TS val 1477202126 ecr 0,nop,wscale 7], length 0 11:07:24.146115 IP 52.202.51.185.https > 10.201.64.28.46718: Flags [S.], seq 2048943343, ack 3933852833, win 62643, options [mss 1460,sackOK,TS val 3803558940 ecr 1477202126,nop,wscale 7], length 0 The latter is to be configured in the file: # cat hudson.model.UpdateCenter.xml default https://updates.jenkins.io/update-center.json The first I have no idea, where is this configured. The box is sitting in some data center and is not fully connected to Internet... How could those external request to Internet be switched off? The browser is still sending those GET requests, already 3181 for 30 minutes or so. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMDll1OgbasQDa7d%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > ... > > > > The box is sitting in some data center and is not fully connected to > > Internet... How could those external request to Internet be switched off? > > > > This looks like a bug. The setup wizard should identify that the requests > fail, and offer to configure a proxy, or let you skip plugin installation. > Do some of the requests pass? If so, it might be different from a basic "no > networking" situation in ways not anticipated. Thanks for your kind and helping reply. Jenkins tries more servers with HTTPS (grepped from a tcpdump file): 142.250.186.100.https: Flags [S] 162.159.140.26.https: Flags [S] 193.149.136.101.https: Flags [S] 193.149.136.134.https: Flags [S] 193.149.136.16.https: Flags [S] 193.149.136.168.https: Flags [S] 34.226.68.35.https: Flags [S] 34.236.161.191.https: Flags [S] 52.202.51.185.https: Flags [S] 52.203.25.223.https: Flags [S] 54.183.140.32.https: Flags [S] 54.241.197.58.https: Flags [S] 54.67.26.184.https: Flags [S] 54.67.54.116.https: Flags [S] 54.67.92.206.https: Flags [S] >From the TCP/IP it looks like the connections get established and data is >coming down. Due to HTTPS I can say what's in the packages. In any case, the directory plugins remains empty. Because I spent some time reading the tcpdump, I see now that the browser shows a page saying: Offline Offline This Jenkins instance appears to be offline. For information about installing Jenkins without an internet connection, see the Offline Jenkins Installation Documentation. You may choose to continue by configuring a proxy or skipping plugin installation. ... Is there a way to see in logs what is missing? I have already level set to 9. The last line in the log is: [2023-07-26 14:14:16][INFO ][hudson.lifecycle.Lifecycle onReady] Jenkins is fully up and running before typing in the password into the browser. I'd need this to talk to Internal IT Departement. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMEZ1OMTzjRIaBYt%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > That's google.com, something set up long ago as an attempt to determine > whether there's any internet connectivity. See > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414 > or > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437 > (the amount of unused/legacy code in this area makes it difficult to tell > at a glance which is called) or an equivalent field in the JSON data > retrieved from updates.jenkins.io. If I look into the above Java files, they have a lot of log statements, like LOGGER.log(Level.FINE, "Failed to parse releaseTimestamp for " I don't get why I'm not able to get all logs into the configured file /var/log/jenkins/jenkins.log; my used log configuration is: cat logging.properties .level=DEBUG handlers=java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=ALL # java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format = [%1$tF %1$tT][%4$-6s][%2$s] %5$s %6$s %n hudson.security.csrf.CrumbFilter.level = DEBUG hudson.plugins.git.GitStatus.level = DEBUG and for 'FINE' I only see: grep FINE /var/log/jenkins/jenkins.log [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Using JAVA_HOME=/usr/lib/jvm/java-17-openjdk-17.0.7.0.7-1.el8_7.x86_64 [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] No common lib folder found [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Deploying host found at default [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] ArgumentsRealm initialised: users: 0 [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] The webroot supplied already exists - overwriting where newer (/var/cache/jenkins/war) [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Access logging disabled - no logger class defined [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Initialized 1 webapps: prefixes - [/] [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Initialized in non-virtual-host mode Something must be missing in the log config. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMInkXRNj1EgGxYE%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día jueves, julio 27, 2023 a las 11:00:12 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Thu, Jul 27, 2023 at 10:15 AM Matthias Apitz wrote: > > > I don't get why I'm not able to get all logs into the configured file > > /var/log/jenkins/jenkins.log; my used log configuration is: > > > > cat logging.properties > > .level=DEBUG > > > > DEBUG isn't a legal level. There should be a corresponding error logged. What would be a legal level? matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMI3JGXlf2JW3oUU%40pureos.
Re: fresh Jenkins installation does not present the dashboard
I used the moment when Jenkins in the browser said to me, that I'm offline and if I want to continue without updating the plugins. I created an account and when I now update plugins manually, some work fine, sometimes it fails with a message in the log file, like: [2023-07-28 09:50:31][SEVERE][hudson.model.UpdateCenter$DownloadJob run] Failed to install scm-api java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2204) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1850) ... It even says sometimes in the browser (like right now) that the update of a given plugin was successful, but that a test to Google.com failed: Download progress Preparation Checking internet connectivity Checking update center connectivity Success Failed to connect to https://www.google.com/. Perhaps you need to configure HTTP proxy? Mina SSHD API :: Core Downloaded Successfully. Will be activated during the next boot When I watch such a plugin update with tcpdump for all traffic to/from port 443 such fetch is very slow and lazy. I looked in the file for the update: the JSON file in https://updates.jenkins.io/update-center.json it has 3413 URLs for downloading and I understand now why this took always so long in the first initialization of Jenkins. What should I do. Our IT department will say: 443 outbound is all open ... Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMN8geHLnjhh1NAx%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día viernes, julio 28, 2023 a las 10:37:54 +0200, 'Daniel Beck' via Jenkins Users escribió: > > Our IT department will say: 443 outbound is all open > > > > Can you curl from the Jenkins controller system to e.g. google.com? > > Any exceptions getting logged? Please be more specific what you want me to test from the Jenkins controller. When I curl from the Linux cmd line: $ curl --verbose https://www.google.com/bla * Trying 142.250.186.100... * TCP_NODELAY set * Connected to www.google.com (142.250.186.100) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): it hangs. Sould it says '404 bla not found" the JSON is downloaded fine and fast: $ curl https://updates.jenkins.io/current/update-center.json | wc -c % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 2770k 100 2770k0 0 2823k 0 --:--:-- --:--:-- --:--:-- 2820k 2836543 matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMOIgkB2dSnaoPGr%40pureos.
Re: fresh Jenkins installation does not present the dashboard
At the end of the day it turned out that IT had to enable a service "app google-base" to let curl and openssl to www.google.com working as they should, dont know what the diff is between HTTPS and "google-base" is and dont have access to the firewall. Daniel, thanks for your helping hints; -- Matthias Apitz E-mail: g...@unixarea.de WWW: http://www.unixarea.de/ phone: +49-170-4527211 Am 28.07.2023 12:32, schrieb 'Daniel Beck' via Jenkins Users: On Fri, Jul 28, 2023 at 11:21 AM Matthias Apitz wrote: * TLSv1.3 (OUT), TLS handshake, Client hello (1): it hangs. Sould it says '404 bla not found" This indicates that something other than Jenkins is broken, so it's a system/environment issue. Fix that first, then try again with 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2Bx9SKZcEifv4JPOJBNBd1WydQYcaMGcrXfBiNGwKWi%2Bg%40mail.gmail.com [1]. Links: -- [1] https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2Bx9SKZcEifv4JPOJBNBd1WydQYcaMGcrXfBiNGwKWi%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2b47a1482f742fb78a1beb623cd911bf%40unixarea.de.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51a. m. +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > That's google.com, something set up long ago as an attempt to determine > whether there's any internet connectivity. See > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414 > or > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437 > (the amount of unused/legacy code in this area makes it difficult to tell > at a glance which is called) or an equivalent field in the JSON data > retrieved from updates.jenkins.io. I've pulled the sources from github.com because I was curious and because the Java code uses HTTP, while the problem was with HTTPS. It must come from this entry in the JSON file: updateCenter.post( {"connectionCheckUrl":"https://www.google.com/","core":{"buildDate":"Jul 24, 2023","name":"core","sha1":"U9iGDX21CIj9lQ1P/ejIS1F/GRY=","sha256":"zrPBceJXKLR2RYSNriY+QaEsSRGscRVJhfBlPn+iEcg=","size":89541474, ... matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZMiZThMEoDc2zkDT%40c720-r368166.
Jenkins && access to ant and maven disappeared
Hello, This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8. We have configured in the tools the access to ant and maven. For some unknown reason, the jobs failed since last week because they couldn't access these two tools anymore. I could not see any reason and just restarted jenkins again and all was file (without any change in jenkins or jobs!). What could be the reason for this and where I could find any messages from jenkins about this problem. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZNDQNglgO1u8Gp4B%40pureos.
Re: Jenkins && access to ant and maven disappeared
El día lunes, agosto 07, 2023 a las 02:55:39 +0200, Thomas Markus escribió: > > What could be the reason for this and where I could find any messages > > from jenkins about this problem. > > > > matthias > > > > > have you checked your tools configuration? Are mvn and ant available at > specified location on slave node and executable? I'm sure you checked this > but to be sure ... > For automatic download they should appear in $HOME/tools/ The tools configuration in Jenkins is fine. ant and mvn are installed as packages with 'yum install' and are these versions: root@srrp02dxr1:/appdata/sisis/jenkins# which mvn /usr/bin/mvn root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/mvn -version Apache Maven 3.5.4 (Red Hat 3.5.4-5) Maven home: /usr/share/maven Java version: 1.8.0_382, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.18.0-425.19.2.el8_7.x86_64", arch: "amd64", family: "unix" root@srrp02dxr1:/appdata/sisis/jenkins# which ant /usr/bin/ant root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/ant -version Apache Ant(TM) version 1.10.5 compiled on December 13 2018 In jenkins HOME tools is only this: root@srrp02dxr1:/appdata/sisis/jenkins# ls -l tools total 4 drwxr-xr-x 3 jenkins jenkins 4096 Jul 31 10:27 hudson.tasks.Ant_AntInstallation As I said, they worked fine last week and again after a jenkins restart, without any config change. Thanks for your feedback. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZNHho5rUSs/lmlKD%40pureos.
java.io.IOException: error=2, No such file or directory
Hello, We're facing the problem that jobs are failing with such errors: ... [SLNPBasicMvn] $ mvn clean install findbugs:findbugs pmd:pmd checkstyle:checkstyle FATAL: command execution failed java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) Caused: java.io.IOException: Cannot run program "mvn" (in directory "/appdata/sisis/jenkins/workspace/SLNPBasicMvn"): error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at hudson.Proc$LocalProc.(Proc.java:254) at hudson.Proc$LocalProc.(Proc.java:223) at hudson.Launcher$LocalLauncher.launch(Launcher.java:997) at hudson.Launcher$ProcStarter.start(Launcher.java:509) at hudson.Launcher$ProcStarter.join(Launcher.java:520) at hudson.tasks.Maven.perform(Maven.java:369) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1900) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Build step 'Invoke top-level Maven targets' marked build as failure [FindBugsPMDCheckStyle] Skipping execution of recorder since overall result is 'FAILURE' Sending e-mails to: g...@oclc.org thomas.glom...@oclc.org clemens.rein...@oclc.org Finished: FAILURE A jenkins restart fixes the issue without any other changes. There is nothing visible in /var/log/jenkins/jenkins.log. This is with version 2.401.3 on RH 8.9 (Ootpa). Any ideas? matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland. -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ZemIPOpvaG5bmHw9%40pureos.
from time to time Jenkins forgets where 'mvn' is
Hello, This is with Red Hat: # cat /etc/os-release ... NAME="Red Hat Enterprise Linux" VERSION="8.10 (Ootpa)" ... and Jenkins: # dnf info jenkins Name : jenkins Version : 2.401.3 Release : 1.1 ... >From time to time Jenkis forgets where mvn is installed on the server and jobs are failing with 'mvn not found'. A restart of Jenkins with # systemctl stop jenkins # systemctl start jenkins make the world fine again. How can I nail this down? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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-users+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/aBnv/pFywIbBq%2BOF%40pureos.