question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jenkins Master fails to boot after CASC Plugin upgrade to release 1.48

See original GitHub issue

Hello,

  • Jenkins version : 2.277.3
  • Plugin version : 1.48
  • OS : Debian Docker image (jenkins/jenkins:lts)

We rebuild our own Jenkins Master from the base Jenkins LTS image, incorporating many plugins and the configuration-as-code one. Since the release of 1.48, our masters fails to boot without any relevant logs and just hangs at jenkins.InitReactorRunner$1#onAttained: System config loaded.

The only diff in our plugins list is :

  • configuration-as-code:1.48 (was 1.47)
  • caffeine-api:2.9.0-17.v79e9099a51e3

When we rebuild with version 1.47, masters boot as expected.

Please find attached our CASC YAML, full plugin list and Jenkins logs.

Kind regards,

jenkins_casc.yaml.txt jenkins_stderr.txt jenkins_stdout.txt jenkins_plugins_list.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (19 by maintainers)

github_iconTop GitHub Comments

6reactions
jglickcommented, Apr 30, 2021

(and many thanks to @ben-manes for the near-real-time tech support)

2reactions
ben-manescommented, Apr 30, 2021

Caffeine does not support recursive computations, as this is not allowed by ConcurrentHashMap. In jdk8 this will livelock, while later releases will throw an exception if detected. The faq discusses a workaround, but it is not wonderful.

Guava does not support this either, but will more often work and can detect only when the same entry is recursed to. It is susceptible to deadlocks if A=>B and B=>A. If a stack overflow occurs, it can lead to ReentrantLock being corrupted and never be released.

The alternative is to not compute through the cache and use a racy load. Even better if this recursion can be removed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jenkins Master fails to boot after CASC Plugin upgrade to ...
Since the release of 1.48, our masters fails to boot without any relevant logs and just hangs at jenkins.InitReactorRunner$1#onAttained: ...
Read more >
Jenkins instance fails to start - CloudBees Documentation
But, after installing it/upgrading it via Jenkins UI (Manage Plugins view) and then restarting, your Jenkins instance failed to start.
Read more >
CASC exception after upgrade to 2.249.1 from 2.235.5
Our master image uses CASC baked into the /usr/share/jenkins/ref folder within the image. Our redeploy process kills the old container and deletes the...
Read more >
hashicorp-vault-plugin fails on Self-Sigend Certificate after ...
`hashicorp-vault-plugin` denies self signed CA from own vault deployment on startup with CASC config. The Vault Config is passed via ...
Read more >
Configuration as Code - Jenkins Plugins
This plugin allows configuration of Jenkins based on human-readable declarative configuration files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found