Bug 1873727
| Summary: | java/jdk 1.8/1.11/1.14(latest) installs missing all alternatives support/symlinks | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | pgnet.dev |
| Component: | java-11-openjdk | Assignee: | Petra Alice Mikova <pmikova> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 34 | CC: | ahughes, ashundi, jerboaa, jvanek, pmikova |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-08 06:28:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
pgnet.dev
2020-08-29 16:34:49 UTC
anyone on this? although the _why_ of it is unclear to me, the following works to *fix* the problem.
the _first_ step is critical ... clearing out existing (broken? corrupt?) alternatives fron /var/lib/alternatives
rm -f /var/lib/alternatives/{java,jre}*
rpm -e --nodeps --noscripts \
java-11-openjdk \
java-11-openjdk-devel \
java-11-openjdk-headless \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
java-1.8.0-openjdk-headless \
java-latest-openjdk \
java-latest-openjdk-devel \
java-latest-openjdk-headless
dnf -y install \
java-11-openjdk \
java-11-openjdk-devel \
java-11-openjdk-headless \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
java-1.8.0-openjdk-headless \
java-latest-openjdk \
java-latest-openjdk-devel \
java-latest-openjdk-headless
dnf -y reinstall \
copy-jdk-configs.noarch \
javapackages-filesystem.noarch \
javapackages-tools.noarch \
tzdata-java.noarch
ls -al /usr/lib/jvm
total 20K
drwxr-xr-x 5 root root 4.0K Sep 10 15:00 ./
dr-xr-xr-x. 41 root root 4.0K Sep 2 12:29 ../
lrwxrwxrwx 1 root root 26 Sep 10 15:00 java -> /etc/alternatives/java_sdk/
lrwxrwxrwx 1 root root 29 Sep 10 15:00 java-11 -> /etc/alternatives/java_sdk_11/
lrwxrwxrwx 1 root root 37 Sep 10 15:00 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/
drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-11-openjdk-11.0.8.10-2.fc32.x86_64/
lrwxrwxrwx 1 root root 29 Sep 10 15:00 java-14 -> /etc/alternatives/java_sdk_14/
lrwxrwxrwx 1 root root 37 Sep 10 15:00 java-14-openjdk -> /etc/alternatives/java_sdk_14_openjdk/
drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/
lrwxrwxrwx 1 root root 32 Sep 10 15:00 java-1.8.0 -> /etc/alternatives/java_sdk_1.8.0/
lrwxrwxrwx 1 root root 40 Sep 10 15:00 java-1.8.0-openjdk -> /etc/alternatives/java_sdk_1.8.0_openjdk/
drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/
lrwxrwxrwx 1 root root 34 Sep 10 15:00 java-openjdk -> /etc/alternatives/java_sdk_openjdk/
lrwxrwxrwx 1 root root 21 Sep 10 15:00 jre -> /etc/alternatives/jre/
lrwxrwxrwx 1 root root 24 Sep 10 15:00 jre-11 -> /etc/alternatives/jre_11/
lrwxrwxrwx 1 root root 32 Sep 10 15:00 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/
lrwxrwxrwx 1 root root 39 Jul 18 10:41 jre-11-openjdk-11.0.8.10-2.fc32.x86_64 -> java-11-openjdk-11.0.8.10-2.fc32.x86_64/
lrwxrwxrwx 1 root root 24 Sep 10 15:00 jre-14 -> /etc/alternatives/jre_14/
lrwxrwxrwx 1 root root 32 Sep 10 15:00 jre-14-openjdk -> /etc/alternatives/jre_14_openjdk/
lrwxrwxrwx 1 root root 47 Jul 23 04:48 jre-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 -> java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/
lrwxrwxrwx 1 root root 27 Sep 10 15:00 jre-1.8.0 -> /etc/alternatives/jre_1.8.0/
lrwxrwxrwx 1 root root 35 Sep 10 15:00 jre-1.8.0-openjdk -> /etc/alternatives/jre_1.8.0_openjdk/
lrwxrwxrwx 1 root root 50 Jul 27 20:02 jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 -> java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/
lrwxrwxrwx 1 root root 29 Sep 10 15:00 jre-openjdk -> /etc/alternatives/jre_openjdk/
alternatives --list | egrep "java|jre|jdk"
java_sdk_1.8.0 auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64
java_sdk_1.8.0_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64
javac auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/bin/javac
java_sdk_14_openjdk auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64
jre_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre
jre_14 auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64
java_sdk_11_openjdk auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64
java_sdk_11 auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64
jre_1.8.0 auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre
jre_11_openjdk auto /usr/lib/jvm/jre-11-openjdk-11.0.8.10-2.fc32.x86_64
java_sdk_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64
jre_1.8.0_openjdk auto /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64
java auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/bin/java
java_sdk_14 auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64
jre_14_openjdk auto /usr/lib/jvm/jre-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64
jre_11 auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64
perhaps the spec can/should be modded to clear/re-create in that location on pkg *reinstall* with dnf?
Hi, sorry for the long wait, I was not available for the last few weeks. I am missing steps to reproduce. Did you install or reinstall these packages? Can you please add these? The bug might be related to this: https://bugzilla.redhat.com/show_bug.cgi?id=1200302 Thank you! both. same situation for install/reinstall. the procedure above 'fixed' the currrent situation. Is this issue still valid? There was a lot of work on jdk latest recently, and many small nits (which if hitted together) could have huge impact. As for reinstall - it is still broken: https://bugzilla.redhat.com/show_bug.cgi?id=1200302 there is no good cure for that unless small fix is done in dnf/rpm. This message is a reminder that Fedora 32 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '32'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 32 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. still an issue after f33 -> f34 upgrades; lots of immediate breakage for any/all applications depending on those symlinks. f33 ls -al /usr/lib/jvm/ total 16K drwxr-xr-x 4 root root 4.0K Apr 25 21:17 ./ dr-xr-xr-x. 40 root root 4.0K Apr 28 06:24 ../ lrwxrwxrwx 1 root root 26 Jan 17 06:44 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Jan 13 10:18 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 37 Jan 13 10:18 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 25 21:17 java-11-openjdk-11.0.11.0.9-0.fc33.x86_64/ lrwxrwxrwx 1 root root 29 Mar 25 07:35 java-16 -> /etc/alternatives/java_sdk_16/ lrwxrwxrwx 1 root root 37 Mar 25 07:35 java-16-openjdk -> /etc/alternatives/java_sdk_16_openjdk/ drwxr-xr-x 7 root root 4.0K Mar 25 07:35 java-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64/ lrwxrwxrwx 1 root root 34 Jan 17 06:44 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Jan 17 06:44 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Jan 13 10:18 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 32 Jan 13 10:18 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/ lrwxrwxrwx 1 root root 41 Apr 21 22:48 jre-11-openjdk-11.0.11.0.9-0.fc33.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc33.x86_64/ lrwxrwxrwx 1 root root 24 Mar 25 07:35 jre-16 -> /etc/alternatives/jre_16/ lrwxrwxrwx 1 root root 32 Mar 25 07:35 jre-16-openjdk -> /etc/alternatives/jre_16_openjdk/ lrwxrwxrwx 1 root root 49 Mar 11 02:47 jre-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64/ lrwxrwxrwx 1 root root 29 Jan 17 06:44 jre-openjdk -> /etc/alternatives/jre_openjdk/ f33 -> f34 ls -al /usr/lib/jvm/ total 16K drwxr-xr-x 4 root root 4.0K Apr 29 07:48 ./ dr-xr-xr-x. 57 root root 4.0K Apr 29 07:34 ../ drwxr-xr-x 7 root root 4.0K Apr 29 07:32 java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ drwxr-xr-x 7 root root 4.0K Apr 29 07:34 java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 41 Apr 21 22:41 jre-11-openjdk-11.0.11.0.9-0.fc34.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 49 Mar 11 03:25 jre-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ manual fix, exactly as above, works, exactly as before, rpm -e --nodeps --noscripts \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y install \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y reinstall \ copy-jdk-configs.noarch \ javapackages-filesystem.noarch \ javapackages-tools.noarch \ tzdata-java.noarch ls -al /usr/lib/jvm drwxr-xr-x 4 root root 4.0K Jan 26 19:47 ./ dr-xr-xr-x. 57 root root 4.0K Apr 29 07:34 ../ lrwxrwxrwx 1 root root 26 Apr 29 13:55 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Apr 29 13:55 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 37 Apr 29 13:55 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 29 13:55 java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 29 Apr 29 13:55 java-16 -> /etc/alternatives/java_sdk_16/ lrwxrwxrwx 1 root root 37 Apr 29 13:55 java-16-openjdk -> /etc/alternatives/java_sdk_16_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 29 13:55 java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 34 Apr 29 13:55 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Apr 29 13:54 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Apr 29 13:55 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 32 Apr 29 13:55 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/ lrwxrwxrwx 1 root root 41 Apr 21 22:41 jre-11-openjdk-11.0.11.0.9-0.fc34.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 24 Apr 29 13:54 jre-16 -> /etc/alternatives/jre_16/ lrwxrwxrwx 1 root root 32 Apr 29 13:54 jre-16-openjdk -> /etc/alternatives/jre_16_openjdk/ lrwxrwxrwx 1 root root 49 Mar 11 03:25 jre-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 29 Apr 29 13:54 jre-openjdk -> /etc/alternatives/jre_openjdk/ Hello, as you seems to keep hitting that - so it is not https://bugzilla.redhat.com/show_bug.cgi?id=1200302 - how to trigger that? I have never ever been able to reproduce it. here, triggering it has been simple ... starting with a running 'old' system releasever, with jdks installed, and symlinks & alternatives properly configured (as after my 'manual fix', above), simply run/complete a 'dnf system-upgrade' to a 'new' releasever. so, previously, f32->f33. now f33->f34. _all_ of the upgrades here had the same issue. symlinks gone after upgrade. To fix, I manually pushed an after-action script (again, as above) to all machines. I do _not_ yet know what's deleting those scripts i have a _suspicion_ it's an ordering problem jdk upgrades &/or 'alternatives' if that dir is getting incorrectly/inadvertently wiped clean, and whatever is correctly building those symlinks upgrades/installs too late ... This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed. |