Facing issue in Lab Task-1 Jenkins installation

Team,
Today I am trying to complete the task of Jenkins installation but I am getting error several times.
In order to cross check with other environment I created AWS EC2 instance and there also I am facing the same problem.

Could you please provide the suggestion here.

I used below command to install Jenkins

sudo wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key

sudo yum upgrade

Add required dependencies for the jenkins package

sudo yum install java-11-openjdk-devel -y
sudo yum install jenkins -y
sudo systemctl daemon-reload

thor@jumphost ~$ systemctl status jenkins.service
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: disabled)
Active: activating (start) since Sun 2024-06-30 14:33:18 UTC; 1s ago
Main PID: 22972 (java)
CGroup: /docker/11e4f3625f20e6eedba99a864bd9ac29b1b75a660e7b126f0dc72bc02ea30d7b/docker/11e4f3625f20e6eedba99a864bd9ac29b1b75a660e7b126f0dc72bc02ea30d7b/docker/11e4f3625f20e6eedba99a864bd9ac29b1b75a660e7b126f0dc72bc02ea30d7b/system.slice/jenkins.service
└─22972 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

Jun 30 14:33:18 jumphost.stratos.xfusioncorp.com jenkins[22972]: Running from: /usr/share/java/jenkins.war
Jun 30 14:33:19 jumphost.stratos.xfusioncorp.com jenkins[22972]: 2024-06-30 14:33:19.428+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jun 30 14:33:19 jumphost.stratos.xfusioncorp.com jenkins[22972]: 2024-06-30 14:33:19.644+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jun 30 14:33:19 jumphost.stratos.xfusioncorp.com jenkins[22972]: 2024-06-30 14:33:19.848+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.20; built: 2024-01-29T20:46:45.278Z; git: 3a745c71c23682146f262b99f4ddc4c1bc41630c; jvm 11.0.20.1+1-LTS
thor@jumphost ~$

I don’t see any errors in that output; just info and warnings. Is the problem the task was not approved?

Team,

Issue is resolved. I have gone through the Jenkins docs and found

OpenJDK 11 is no longer
Later I unstall and install Jenkins back by upgrading JDK 17

Thanks rob for the support

ubuntu@ip-172-31-28-141:~$ sudo systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-06-30 15:14:44 UTC; 24s ago
Main PID: 5888 (java)
Tasks: 45 (limit: 1130)
Memory: 276.8M (peak: 312.7M)
CPU: 18.374s
CGroup: /system.slice/jenkins.service
└─5888 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

Jun 30 15:14:36 ip-172-31-28-141 jenkins[5888]: 9e99eb7669b542f4a9f85e95ce24246a
Jun 30 15:14:36 ip-172-31-28-141 jenkins[5888]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jun 30 15:14:36 ip-172-31-28-141 jenkins[5888]: *************************************************************
Jun 30 15:14:36 ip-172-31-28-141 jenkins[5888]: *************************************************************
Jun 30 15:14:36 ip-172-31-28-141 jenkins[5888]: *************************************************************
Jun 30 15:14:44 ip-172-31-28-141 jenkins[5888]: 2024-06-30 15:14:44.212+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Completed initial>
Jun 30 15:14:44 ip-172-31-28-141 jenkins[5888]: 2024-06-30 15:14:44.255+0000 [id=24] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up a>
Jun 30 15:14:44 ip-172-31-28-141 systemd[1]: Started jenkins.service - Jenkins Continuous Integration Server.
Jun 30 15:14:44 ip-172-31-28-141 jenkins[5888]: 2024-06-30 15:14:44.367+0000 [id=47] INFO h.m.DownloadService$Downloadable#load: Obtained the updat>
Jun 30 15:14:44 ip-172-31-28-141 jenkins[5888]: 2024-06-30 15:14:44.369+0000 [id=47] INFO hudson.util.Retrier#start: Performed the action check upd>
ubuntu@ip-172-31-28-141:~$