Erro na instalação do Jenkins! Errors were encountered while processing:https://www.jenkins.io/blog/2022/06/28/require-java-11/ jenkins
Erro na instalação do Jenkins! Errors were encountered while processing:https://www.jenkins.io/blog/2022/06/28/require-java-11/ jenkins
Setting up jenkins (2.361.2) ... Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details. invoke-rc.d: initscript jenkins, action "start" failed. ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2022-10-18 02:44:34 UTC; 6ms ago Process: 9594 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE) Main PID: 9594 (code=exited, status=1/FAILURE)
Oct 18 02:44:34 ubuntu-bionic systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE Oct 18 02:44:34 ubuntu-bionic systemd[1]: jenkins.service: Failed with result 'exit-code'. Oct 18 02:44:34 ubuntu-bionic systemd[1]: Failed to start Jenkins Continuous Integration Server. dpkg: error processing package jenkins (--configure): installed jenkins package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:https://www.jenkins.io/blog/2022/06/28/require-java-11/ jenkins
#
#
#
Reading package lists... Done
Building dependency treeReading state information... Done
fontconfig is already the newest version (2.12.6-0ubuntu2).
fontconfig set to manually installed.
Suggested packages:
libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
openjdk-11-jre openjdk-11-jre-headless
0 upgraded, 2 newly installed, 0 to remove and 53 not upgraded.
1 not fully installed or removed.
Need to get 37.5 MB of archives.
After this operation, 171 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre-headless amd64 11.0.16+8-0ubuntu118.04 [37.3 MB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre amd64 11.0.16+8-0ubuntu118.04 [174 kB]Fetched 37.5 MB in 10s (3876 kB/s)Selecting previously unselected package openjdk-11-jre-headless:amd64.
(Reading database ... 84872 files and directories currently installed.)
Preparing to unpack .../openjdk-11-jre-headless_11.0.16+8-0ubuntu118.04_amd64.deb ...
Unpacking openjdk-11-jre-headless:amd64 (11.0.16+8-0ubuntu118.04) ...
Selecting previously unselected package openjdk-11-jre:amd64.
Preparing to unpack .../openjdk-11-jre_11.0.16+8-0ubuntu118.04_amd64.deb ...
Unpacking openjdk-11-jre:amd64 (11.0.16+8-0ubuntu118.04) ...
Setting up jenkins (2.361.2) ... vagrant@ubuntu-bionic:/vagrant/scripts$ sudo service jenkins status ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2022-10-18 02:47:51 UTC; 19s ago Main PID: 10385 (java) Tasks: 48 (limit: 2359) CGroup: /system.slice/jenkins.service └─10385 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
Referências
https://stackoverflow.com/questions/73934693/jenkins-wont-start
Oi, Jeferson. Tudo bem?
Que bom que conseguiu resolver seu problema e obrigado por compartilhar a solução!
Bons estudos!