Page MenuHomeSoftware Heritage
Paste P1237

puppet agent --test failing at creation time without java installed in puppet manifest
ActivePublic

Authored by ardumont on Dec 7 2021, 10:19 AM.
vagrant vm:
```
root@thyssen:~# puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for thyssen.internal.softwareheritage.org
Info: Applying configuration version '1638808291'
Notice: /Stage[main]/Ntp::Service/Service[ntp]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Ntp::Service/Service[ntp]: Unscheduling refresh on Service[ntp]
Notice: /Stage[main]/Profile::Systemd_journal::Journalbeat/Service[journalbeat]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Profile::Systemd_journal::Journalbeat/Service[journalbeat]: Unscheduling refresh on Service[journalbeat]
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install jenkins' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
jenkins is already the newest version (2.319.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up jenkins (2.319.1) ...
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 - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: failed (Result: exit-code) since Mon 2021-12-06 16:31:38 UTC; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 13500 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILURE)
Dec 06 16:31:38 thyssen systemd[1]: Starting LSB: Start Jenkins at boot time...
Dec 06 16:31:38 thyssen jenkins[13500]: ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbin
Dec 06 16:31:38 thyssen jenkins[13500]: If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'type -p java' returns the java executable path
Dec 06 16:31:38 thyssen systemd[1]: jenkins.service: Control process exited, code=exited, status=1/FAILURE
Dec 06 16:31:38 thyssen systemd[1]: jenkins.service: Failed with result 'exit-code'.
Dec 06 16:31:38 thyssen systemd[1]: Failed to start LSB: Start Jenkins at boot time.
dpkg: error processing package jenkins (--configure):
installed jenkins package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: /Stage[main]/Profile::Jenkins::Service/Package[jenkins]/ensure: change from 'absent' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install jenkins' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
jenkins is already the newest version (2.319.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up jenkins (2.319.1) ...
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 - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: failed (Result: exit-code) since Mon 2021-12-06 16:31:38 UTC; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 13500 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILURE)
Dec 06 16:31:38 thyssen systemd[1]: Starting LSB: Start Jenkins at boot time...
Dec 06 16:31:38 thyssen jenkins[13500]: ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbin
Dec 06 16:31:38 thyssen jenkins[13500]: If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'type -p java' returns the java executable path
Dec 06 16:31:38 thyssen systemd[1]: jenkins.service: Control process exited, code=exited, status=1/FAILURE
Dec 06 16:31:38 thyssen systemd[1]: jenkins.service: Failed with result 'exit-code'.
Dec 06 16:31:38 thyssen systemd[1]: Failed to start LSB: Start Jenkins at boot time.
dpkg: error processing package jenkins (--configure):
installed jenkins package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
Notice: /Stage[main]/Profile::Jenkins::Service/Service[jenkins]: Dependency Package[jenkins] has failures: true
Warning: /Stage[main]/Profile::Jenkins::Service/Service[jenkins]: Skipping because of failed dependencies
Info: Stage[main]: Unscheduling all events on Stage[main]
Notice: Applied catalog in 3.71 seconds
```