Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Module go to error on update-java-alternatives
Module Version: 6.3.0
Puppet Version: agent: 4.8.2-5, server: 6.11.0-1buster
OS Name/Version: Debian 9.12Describe your issue in as much detail as possible...
Desired Behavior:
update-java-alternatives --set java-1.8.0-openjdk-amd64 --jre
Actual Behavior:
Debug: Exec[update-java-alternatives](provider=posix): Executing check 'test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.8.0-openjdk-/bin/java''
Debug: Executing: 'test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.8.0-openjdk-/bin/java''
Debug: Exec[update-java-alternatives](provider=posix): Executing 'update-java-alternatives --set java-1.8.0-openjdk- --jre'
Debug: Executing: 'update-java-alternatives --set java-1.8.0-openjdk- --jre'
Notice: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-
Error: update-java-alternatives --set java-1.8.0-openjdk- --jre returned 1 instead of one of [0]
Error: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: change from notrun to 0 failed: update-java-alternatives --set java-1.8.0-openjdk- --jre returned 1 instead of one of [0]
Debug: Class[Java::Config]: Resource is being skipped, unscheduling all events
Notice: /Stage[main]/Java/Anchor[java::end]: Dependency Exec[update-java-alternatives] has failures: true
Warning: /Stage[main]/Java/Anchor[java::end]: Skipping because of failed dependencies
Debug: /Stage[main]/Java/Anchor[java::end]: Resource is being skipped, unscheduling all events
Debug: Class[Java]: Resource is being skipped, unscheduling all events
+code:+
class { 'java':
distribution => 'jdk',
}
+context:+
ls -alh /usr/lib/jvm/
total 20K
drwxr-xr-x 4 root root 4,0K mai 14 11:07 .
drwxr-xr-x 63 root root 4,0K févr. 14 11:06 ..
drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64
lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
-rw-r--r-- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo
drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64
Module works well if:
/usr/lib/jvm# ln -s java-1.8.0-openjdk-amd64 java-1.8.0-openjdk-
# ls -alh /usr/lib/jvm/
total 20K
drwxr-xr-x 4 root root 4,0K juil. 7 10:59 .
drwxr-xr-x 63 root root 4,0K févr. 14 11:06 ..
drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64
lrwxrwxrwx 1 root root 24 juil. 7 10:59 java-1.8.0-openjdk- -> java-1.8.0-openjdk-amd64
lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
-rw-r--r-- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo
drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64
Module go to error on update-java-alternatives Module Version: 6.3.0 Puppet Version: agent: 4.8.2-5, server: 6.11.0-1buster OS Name/Version: Debian 9.12 Describe your issue in as much detail as possible... Desired Behavior: update-java-alternatives --set java-1.8.0-openjdk-amd64 --jre Actual Behavior: Debug: Exec[update-java-alternatives](provider=posix): Executing check 'test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.8.0-openjdk-/bin/java'' Debug: Executing: 'test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.8.0-openjdk-/bin/java'' Debug: Exec[update-java-alternatives](provider=posix): Executing 'update-java-alternatives --set java-1.8.0-openjdk- --jre' Debug: Executing: 'update-java-alternatives --set java-1.8.0-openjdk- --jre' Notice: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk- Error: update-java-alternatives --set java-1.8.0-openjdk- --jre returned 1 instead of one of [0] Error: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: change from notrun to 0 failed: update-java-alternatives --set java-1.8.0-openjdk- --jre returned 1 instead of one of [0] Debug: Class[Java::Config]: Resource is being skipped, unscheduling all events Notice: /Stage[main]/Java/Anchor[java::end]: Dependency Exec[update-java-alternatives] has failures: true Warning: /Stage[main]/Java/Anchor[java::end]: Skipping because of failed dependencies Debug: /Stage[main]/Java/Anchor[java::end]: Resource is being skipped, unscheduling all events Debug: Class[Java]: Resource is being skipped, unscheduling all events +code:+ class { 'java': distribution => 'jdk', } +context:+ ls -alh /usr/lib/jvm/ total 20K drwxr-xr-x 4 root root 4,0K mai 14 11:07 . drwxr-xr-x 63 root root 4,0K févr. 14 11:06 .. drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64 lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64 -rw-r--r-- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64 Module works well if: /usr/lib/jvm# ln -s java-1.8.0-openjdk-amd64 java-1.8.0-openjdk- # ls -alh /usr/lib/jvm/ total 20K drwxr-xr-x 4 root root 4,0K juil. 7 10:59 . drwxr-xr-x 63 root root 4,0K févr. 14 11:06 .. drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64 lrwxrwxrwx 1 root root 24 juil. 7 10:59 java-1.8.0-openjdk- -> java-1.8.0-openjdk-amd64 lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64 -rw-r--r-- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64
-
Needs Assessment
-
Needs Assessment
Description
Basic Info
Module Version:
Puppet Version:
OS Name/Version:
Describe your issue in as much detail as possible...
Desired Behavior:
Actual Behavior:
Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.
|
Module Version: 6.3.0
Puppet Version: agent: 4.8.2-5, server: 6.11.0-1buster
OS Name/Version: Debian 9.12
Describe your issue in as much detail as possible...
Desired Behavior:
update-java-alternatives --set java-1.8.0-openjdk-amd64 --jre
Actual Behavior:
Debug: Exec[update-java-alternatives](provider=posix): Executing check 'test /etc/alternatives/java ef '/usr/lib/jvm/java-1.8.0-openjdk/bin/java''
Debug: Executing: 'test /etc/alternatives/java ef '/usr/lib/jvm/java-1.8.0-openjdk/bin/java''
Debug: Exec[update-java-alternatives](provider=posix): Executing 'update-java-alternatives -set java-1.8.0-openjdk --jre'
Debug: Executing: 'update-java-alternatives -set java-1.8.0-openjdk --jre'
Notice: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-
Error: update-java-alternatives -set java-1.8.0-openjdk --jre returned 1 instead of one of [0]
Error: /Stage[main]/Java::Config/Exec[update-java-alternatives]/returns: change from notrun to 0 failed: update-java-alternatives -set java-1.8.0-openjdk --jre returned 1 instead of one of [0]
Debug: Class[Java::Config]: Resource is being skipped, unscheduling all events
Notice: /Stage[main]/Java/Anchor[java::end]: Dependency Exec[update-java-alternatives] has failures: true
Warning: /Stage[main]/Java/Anchor[java::end]: Skipping because of failed dependencies
Debug: /Stage[main]/Java/Anchor[java::end]: Resource is being skipped, unscheduling all events
Debug: Class[Java]: Resource is being skipped, unscheduling all events
code:
class
context:
ls -alh /usr/lib/jvm/
total 20K
drwxr-xr-x 4 root root 4,0K mai 14 11:07 .
drwxr-xr-x 63 root root 4,0K févr. 14 11:06 ..
drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64
lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
rw-rr- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo
drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64
Module works well if:
/usr/lib/jvm# ln s java-1.8.0-openjdk-amd64 java-1.8.0-openjdk
- ls -alh /usr/lib/jvm/
total 20K
drwxr-xr-x 4 root root 4,0K juil. 7 10:59 .
drwxr-xr-x 63 root root 4,0K févr. 14 11:06 ..
drwxr-xr-x 4 root root 4,0K oct. 28 2019 java-1.5.0-gcj-6-amd64
lrwxrwxrwx 1 root root 24 juil. 7 10:59 java-1.8.0-openjdk- -> java-1.8.0-openjdk-amd64
lrwxrwxrwx 1 root root 20 oct. 19 2019 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
rw-rr- 1 root root 2,7K avril 24 15:11 .java-1.8.0-openjdk-amd64.jinfo
drwxr-xr-x 7 root root 4,0K juil. 7 10:57 java-8-openjdk-amd64
Attachments
Issue Links
- mentioned in
-
Page Loading...