[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-02-25 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier updated  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 Wadeck Follonier  
 
 
Status: 
 In  Progress  Review  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6105.1582636323726%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-02-25 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Symptom correction proposal: https://github.com/jenkinsci/jenkins/pull/4525  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6107.1582636323754%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-02-25 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier started work on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Wadeck Follonier  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6083.1582636323352%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-02-25 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier assigned an issue to Wadeck Follonier  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 Wadeck Follonier  
 
 
Assignee: 
 Wadeck Follonier  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6094.1582636323513%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-02-12 Thread satheeshkumar...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Satheesh Kumar commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 If you have the backup of the Plugins folder before you did the upgrade of the plugin. Restore the backup folder into the Jenkins home directory and restart the instance, it would work  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.7941.1581507120397%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-01-13 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 First analysis explained in https://issues.jenkins-ci.org/browse/JENKINS-59992?focusedCommentId=379193=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-379193 about a potential root cause. No plan to work more on this from my side.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6959.1578903120507%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-01-13 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 Wadeck Follonier  
 
 
Assignee: 
 Wadeck Follonier  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6946.1578902880389%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-01-10 Thread etho...@inbox.lv (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 ethorsa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 ethorsa  
 
 
Attachment: 
 instance-errors.log  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.6131.1578647760777%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2020-01-10 Thread etho...@inbox.lv (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 ethorsa commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Since my Upgrade from Oracle Java 8 to AdoptOpenJDK 11 I run into this problem too. The Jenkins log fills with following error, eventually crashing the server:   

 
WARNING	o.e.jetty.server.HttpChannel#handleException: ERROR dispatch failed
Also:   java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
		at jenkins.model.Jenkins.get(Jenkins.java:773)
		at hudson.security.TokenBasedRememberMeServices2.autoLogin(TokenBasedRememberMeServices2.java:164)
		at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104)
		at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
[...] 

 (Full log excerpt of this error attached) After first appearance of this error it's no longer possible to start Jenkins. Executing a full reboot of the host brings it up again.   The Windows event log does not contain any useful information (only "exited with 1"). Jenkins Master: 
 
Jenkins v2.190.3 
AdoptOpenJDK 11.0.4 
Windows 7 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2019-10-30 Thread craig.lut...@cybersecureips.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Craig Lutgen commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 It is the exact same symptom and the exactly the same stack trace that was never resolved and forgotten about. So, one should consider it the same bug. And who is to say that other users aren't regularly seeing this problem. All the same, please reference new issue JENKINS-59992. We cannot supply full logs for security reason. But, let me know if there are specific items that could be provied.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.5809.1572474542325%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2019-10-30 Thread db...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Beck commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Craig Lutgen It's almost a year later, and you haven't previously been involved in this issue. It's also not a problem users regularly encounter. It's therefore possible, perhaps likely, that your problem is not the exact same, so please file a new issue and provide as much information about your setup as possible (see guidelines linked from Create Issue form).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.5787.1572472320437%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2019-10-30 Thread craig.lut...@cybersecureips.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Craig Lutgen commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 This still happens. Every restart from an upgrade or otherwise gets stuck with the Jenkins.instance is missing exception and requires a service restart.   Jenkins v 2.202 Windows Server 2016 Java 1.8.0_221-b11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196122.154417045.5660.1572466140229%40Atlassian.JIRA.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum edited a comment on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 No, but _maybe_ if the problem is inbound HTTP requests hitting the servlet/Stapler layer while Jenkins is shutting down/restarting then blocking all HTTP traffic to Jenkins while the restart is happening might help (only really possible if you have some kind of reverse proxy in front of Jenkins or something, and I am not sure what kind of configuration would be needed). Edit: [~mcardenasblanco] thinking about it some more, I think you could also work around the issue by passing {{-Dhudson.model.UsageStatistics.disabled=true}} as a system property when starting Jenkins so that [this comparison|https://github.com/jenkinsci/jenkins/blob/1398df93a48bf275d396c4a4a5e3525e763d214a/core/src/main/java/jenkins/telemetry/impl/StaplerDispatches.java#L105] short circuits before it gets to the {{Jenkins.get()}} call.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 No, but maybe if the problem is inbound HTTP requests hitting the servlet/Stapler layer while Jenkins is shutting down/restarting then blocking all HTTP traffic to Jenkins while the restart is happening might help (only really possible if you have some kind of reverse proxy in front of Jenkins or something, and I am not sure what kind of configuration would be needed).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread cardenas....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Manuel Cardenas commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Devin Nusbaum are you aware of any potential workaround for this?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 I think the problem in Manuel Cardenas's case would be fixed by https://github.com/jenkinsci/jenkins/pull/3712 which made it into the 2.150 LTS line but not 2.138. Even so, it's not clear to me why that issue would happen consistently during a restart.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread cardenas....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Manuel Cardenas commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Thank you for your analysis Wadeck Follonier, we will try to dig a little bit more on what is happening as it is preventing us from applying a security upgrade.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-12 Thread wfollon...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wadeck Follonier commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Manuel Cardenas From my PoV, you are not affected by the same exception (rememberMe) but another introduced in previous release. It seems very likely that the code in rememberMe is not the culprit. In your case the full stacktrace shows: 

 

Caused by: java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:758)
at jenkins.telemetry.impl.StaplerDispatches$StaplerTrace.record(StaplerDispatches.java:105)
at org.kohsuke.stapler.EvaluationTrace$ApplicationTracer.trace(EvaluationTrace.java:77)
at org.kohsuke.stapler.Dispatcher.anonymizedTraceEval(Dispatcher.java:76)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:870)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
at com.cloudbees.jenkins.ha.HAHealthCheckFilter.doFilter(HAHealthCheckFilter.java:35)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:64)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:169)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-11 Thread cardenas....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Manuel Cardenas edited a comment on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 [~danielbeck] , we have seen this issue in a non windows installation, Centos 7.x * OpenJDK 64-Bit Server VM 25.161-b14 The complete context: We are upgrading Jenkins from 2.138.3.1 to 2.138.4.3 using a war file. Once that we use the new war file, the service is not able to start. We can see the trace below.  {code:java}Dec 11, 2018 3:22:10 PM org.eclipse.jetty.server.HttpChannel handleException WARNING: /login java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:758) ... ec Dec  11, 2018 3:22:42 PM org.eclipse.jetty.server.HttpChannel handleException WARNING: /tcpSlaveAgentListener/ java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:758) at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36) at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:58) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:531) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-11 Thread cardenas....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Manuel Cardenas edited a comment on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 [~danielbeck] , we have seen this issue in a non windows installation, Centos 7.x  * OpenJDK 64-Bit Server VM 25.161-b14    {code:java}Dec 11, 2018 3:22:10 PM org.eclipse.jetty.server.HttpChannel handleException WARNING: /login java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:758) ...ec 11, 2018 3:22:42 PM org.eclipse.jetty.server.HttpChannel handleException WARNING: /tcpSlaveAgentListener/ java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:758) at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36) at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:58) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:531) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) at 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-11 Thread cardenas....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Manuel Cardenas commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Daniel Beck , we have seen this issue in a non windows installation, Centos 7.x   

 

Dec 11, 2018 3:22:10 PM org.eclipse.jetty.server.HttpChannel handleException
 WARNING: /login
 java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
 at jenkins.model.Jenkins.get(Jenkins.java:758) 
...

ec 11, 2018 3:22:42 PM org.eclipse.jetty.server.HttpChannel handleException
 WARNING: /tcpSlaveAgentListener/
 java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
 at jenkins.model.Jenkins.get(Jenkins.java:758)
 at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36)
 at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77)
 at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
 at org.eclipse.jetty.server.Server.handle(Server.java:531)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
 at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
 at 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread sites+jenk...@dan.cx (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Lo Nigro edited a comment on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 {quote}Check the Windows event log, the Jenkins service log, and provide complete information how and when (what version originally) Jenkins was installed.{quote}[~danielbeck] - I originally installed Jenkins 2.138.3 via the Windows installer. The only change I've made is that I've changed the service to run as a separate Jenkins user rather than as SYSTEM  for better security  (maybe that's causing issues?).I do see some errors like this in the Event Viewer:{code:java}SIGINT to 6536 failed - Killing as fallback{code}What is the "Jenkins service log"? Is that different to the C:\Program Files (x86)\Jenkins\jenkins.err.log file I've been looking at?   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread sites+jenk...@dan.cx (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Lo Nigro edited a comment on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 > {quote}  Check the Windows event log, the Jenkins service log, and provide complete information how and when (what version originally) Jenkins was installed. {quote} [~danielbeck] - I originally installed Jenkins 2.138.3 via the Windows installer. The only change I've made is that I've changed the service to run as a separate Jenkins user rather than as SYSTEM (maybe that's causing issues?).I do see some errors like this in the Event Viewer:{code:java}SIGINT to 6536 failed - Killing as fallback{code}What is the "Jenkins service log"? Is that different to the C:\Program Files (x86)\Jenkins\jenkins.err.log file I've been looking at?   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread sites+jenk...@dan.cx (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Lo Nigro commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 > Check the Windows event log, the Jenkins service log, and provide complete information how and when (what version originally) Jenkins was installed. Daniel Beck - I originally installed Jenkins 2.138.3 via the Windows installer. The only change I've made is that I've changed the service to run as a separate Jenkins user rather than as SYSTEM (maybe that's causing issues?). I do see some errors like this in the Event Viewer: 

 

SIGINT to 6536 failed - Killing as fallback 

 What is the "Jenkins service log"? Is that different to the C:\Program Files (x86)\Jenkins\jenkins.err.log file I've been looking at?    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread db...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Beck commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 This does not look like it would affect a Jenkins restart. Note this occurred two minutes after Jenkins was stopped as part of a restart.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 The root exception is also a bug IMHO, but it existed in the code for a while 

 

java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
	at jenkins.model.Jenkins.get(Jenkins.java:758)
at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36)
 

 Instead of invoking Jenkins.get(), the code should use the Jenkins instance passed by the initializer For me it's hard to say what is a root cause, but we really need to cleanup the code a bit  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev assigned an issue to Wadeck Follonier  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Assignee: 
 Wadeck Follonier  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Labels: 
 regression  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Daniel Beck yes, I somewhat maintain it. Though I do not see evidence that the issue caused by WinSW:     

 

Caused by: java.lang.NullPointerException
		at hudson.security.TokenBasedRememberMeServices2.autoLogin(TokenBasedRememberMeServices2.java:126)
		at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104)
		at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
		at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
		at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
		at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
 

 Due to whatever reason the autoLogin() logic is invoked before Jenkins holder class is fully initialized: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/security/TokenBasedRememberMeServices2.java#L126 . This is a regression caused by the SECURITY-996 fix in this commit by Wadeck Follonier : https://github.com/jenkinsci/jenkins/commit/ef9583a24abc4de157e1570cb32d7a273d327f36         
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-08 Thread db...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Beck commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 Yep, Jenkins apparently cannot restart itself, and just stopped. Potential problem with winsw / how you run Jenkins. Check the Windows event log, the Jenkins service log, and provide complete information how and when (what version originally) Jenkins was installed. Poking Oleg Nenashev in case he's still maintaining winsw.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-07 Thread sites+jenk...@dan.cx (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Lo Nigro commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 I saw this again today while restarting after installing a plugin... I didn't see any other errors before it though. Seems like it happens after "INFO: Jenkins stopped" and then it doesn't restart properly? I did see "java.lang.IllegalStateException: Error already set" and "java.lang.NullPointerException at hudson.security.TokenBasedRememberMeServices2.autoLogin" errors in the stack of the second instance of the error though. 

 

Dec 07, 2018 9:40:48 PM jenkins.model.Jenkins$23 run
INFO: Restart in 10 seconds
Dec 07, 2018 9:40:58 PM jenkins.model.Jenkins$23 run
INFO: Restarting VM as requested by daniel15
Dec 07, 2018 9:40:58 PM jenkins.model.Jenkins cleanUp
INFO: Stopping Jenkins
Dec 07, 2018 9:40:58 PM jenkins.model.Jenkins$18 onAttained
INFO: Started termination
Dec 07, 2018 9:40:58 PM jenkins.model.Jenkins$18 onAttained
INFO: Completed termination
Dec 07, 2018 9:40:58 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
INFO: Starting node disconnection
Dec 07, 2018 9:40:59 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager
INFO: Stopping plugin manager
Dec 07, 2018 9:40:59 PM jenkins.model.Jenkins _cleanUpPersistQueue
INFO: Persisting build queue
Dec 07, 2018 9:40:59 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects
INFO: Waiting for node disconnection completion
Dec 07, 2018 9:40:59 PM jenkins.model.Jenkins cleanUp
INFO: Jenkins stopped
Dec 07, 2018 9:42:45 PM org.eclipse.jetty.server.HttpChannel handleException
WARNING: /
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
	at jenkins.model.Jenkins.get(Jenkins.java:758)
	at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36)
	at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:58)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
	at 

[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-07 Thread db...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Beck commented on  JENKINS-55070  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
 This happens after other errors. Look for those.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-55070) "Jenkins.instance is missing" error when restarting Jenkins

2018-12-07 Thread sites+jenk...@dan.cx (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Lo Nigro created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55070  
 
 
  "Jenkins.instance is missing" error when restarting Jenkins   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 core  
 
 
Created: 
 2018-12-07 08:14  
 
 
Environment: 
 Windows Server 2016  Java 1.8.0_191-b12  Jenkins 2.150.1  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Daniel Lo Nigro  
 

  
 
 
 
 

 
 Sometimes when I try to restart Jenkins (eg. after upgrading the plugins), it just starts returning HTTP 500 errors, and I need to restart the Jenkins service. When this happens, I see lots of these errors in the logs: 

 

Dec 07, 2018 12:03:45 AM org.eclipse.jetty.server.HttpChannel handleException
WARNING: /
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
 at jenkins.model.Jenkins.get(Jenkins.java:758)
 at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36)
 at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77)
 at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at