πŸ› οΈ How I Fixed a Jenkins Build Issue on Amazon Linux After Kernel 6.12 Update

VinuthnaVinuthna
2 min read

After a kernel upgrade from 5.10 to 6.12 on Amazon Linux, Jenkins builds stopped working on t2.micro EC2 instances. Turns out, it’s due to system monitor settings and limited instance resources. Here's how I fixed it.


πŸ› The Issue

After upgrading the kernel on my Amazon EC2 instance from 5.10 to 6.12, I noticed Jenkins jobs stopped running properly.

  • Jenkins UI loaded fine.

  • But clicking "Build Now" had no effect.

  • No console logs, no errors β€” just… nothing.

This issue only occurred when running on a t2.micro instance.


πŸ” Discovery: Instance Type Matters

During testing, I tried the same setup on a t2.medium instance and everything worked perfectly.

βœ… Switching to t2.medium resolved the issue without any configuration changes.

This made it clear that the issue was related to resource availability or system behavior introduced by kernel 6.12 on smaller EC2 instance types like t2.micro.


πŸ› οΈ Fixing the Issue on t2.micro

If you’re restricted to using a t2.micro, you can still get Jenkins working by following these steps.


βœ… Step 1: Open Build Executor Status

In Jenkins Dashboard, go to:

Manage Jenkins β†’ Build Executor Status

Click on your current node (usually "master").


βœ… Step 2: Configure Monitors

In the node configuration screen, click:

Configure β†’ Configure Monitors

Enable the following system monitors:

  • Disk Space

  • Temporary Space

  • Swap Space


βœ… Step 3: Provide Source Code and Build

I tested with a basic GitHub repository:

πŸ”— https://github.com/vinuthnak12/one.git

After configuring the monitors, I triggered the build β€” and it worked successfully!


Finally, the build succeeded

🎯 Key Insights

  • Kernel 6.12 introduces system-level changes that affect build behavior, especially on low-resource EC2 types like t2.micro.

  • Jenkins builds may silently fail unless system monitors are explicitly enabled.

  • Upgrading your instance to t2.medium or higher is a more reliable long-term solution.


πŸ’‘ Bonus: Works with Nexus and Tomcat Too

I also tested Nexus Repository Manager and Apache Tomcat on the same EC2 instance with kernel 6.12 β€” both worked flawlessly after the same monitor configuration.

Want a detailed blog on setting those up too? Let me know in the comments! πŸ™Œ


🧠 Final Thoughts

Jenkins can be finicky when running on minimal cloud instances β€” especially after system updates like a kernel upgrade.

If you're facing similar issues:

  • Check your instance type

  • Look at executor status

  • Enable necessary system monitors

And always test builds after making infrastructure changes. It might save you hours of debugging.


0
Subscribe to my newsletter

Read articles from Vinuthna directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vinuthna
Vinuthna

Why Collaborate with Me? ~ Infrastructure as Code (IaC): Skilled in automating infrastructure provisioning with Terraform and Ansible, ensuring consistency, scalability, and repeatability. ~ Containerization & Orchestration: Expert in building, managing, and scaling containerized applications using Docker and Kubernetes clusters. ~ CI/CD Expertise: Proficient in designing and optimizing Jenkins pipelines for seamless code integration, testing, and deployment workflows. ~ Linux Systems Mastery: Strong background in Linux system administration, scripting, performance tuning, and server management. ~ Automation Enthusiast: Adept at automating repetitive tasks and complex workflows with Ansible, shell scripting, and YAML-driven configurations. ~ Problem Solver: Quick to learn emerging technologies, troubleshoot complex issues, and optimize systems for maximum reliability and efficiency. ~ Detail-Oriented: Committed to delivering clean, secure, and high-quality solutions that meet both business and technical goals. Core Competencies ~ DevOps Tools: Jenkins, Docker, Kubernetes, Ansible, Terraform, Git, Bitbucket, YAML ~ Infrastructure as Code: Terraform, Ansible ~ Containerization and Orchestration: Docker, Kubernetes ~ Continuous Integration/Continuous Deployment: Jenkins Pipelines, GitOps workflows ~ Operating Systems: Linux (Ubuntu, CentOS) ~ Scripting: Shell scripting, YAML ~ Monitoring & Logging: (Optional, if you know Prometheus, Grafana, or similar tools.) ~ Project Management: Jira, Slack, Agile Methodologies