Bug 159657 - No JRE findable after LO upgrade to 24 via snap
Summary: No JRE findable after LO upgrade to 24 via snap
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-09 10:01 UTC by mathias.micheel
Modified: 2024-02-12 14:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mathias.micheel 2024-02-09 10:01:11 UTC
Description:
I had LO 7.6 installed from the snap store with a working JRE. A couple of days ago, I got the request to close LO so it can upgrade to 24.2. After the upgrade, it didn't have a working JRE anymore.

Steps to Reproduce:
1. My LO version upgraded via the snap store to 24.2.0.3
2. When starting LO, it tells me there is no JRE selected.
3. When I Go Extras > Options > Advanced, there is no selectable JRE.
4. When I try to manually add the java folder, I cannot access the /usr/lib/jvm directory and its subdirectories. (permission denied)


Actual Results:
Uninstalling and re-installing LO via the snap store did not solve this issue.
Uninstalling and installing the deb package solved the issue and the correct JRE is correctly set and pre-selected. 

Expected Results:
LO from the snap store should select the correct JRE after updates/upgrades. 
In previous snap upgrades, the JRE did not disappear from the list, and was just unselected at worst.


Reproducible: Always


User Profile Reset: No

Additional Info:
Snap version:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: a9077e3fef0a06cb428c7a740a03f33bf70ac6ee
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (de_DE.UTF-8); UI: de-DE
Calc: threaded

deb version:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (de_DE.UTF-8); UI: en-US
Calc: threaded

I have the following Java version installed:
openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment (build 11.0.21+9-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.21+9-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
Comment 1 Alex Thurgood 2024-02-12 11:30:08 UTC
@mathias : did you check the permissions on the snap package manager after installation to see whether it gave an option to set/use the JVM in the corresponding directory ?

To my knowledge, the snaps are prepared and produced by Canonical, so this would likely not be a LibreOffice bug.
Comment 2 Alex Thurgood 2024-02-12 11:45:28 UTC
FWIW, I can confirm that the 24.2 snap package on my Ubuntu 22.04.3 LTS release can not see the JVM either in the corresponding LO Tools > Options dialog.

Trying to connect to an existing embedded HSQLDB ODB file and clicking on the Tables icon causes an error message:

Impossible d'établir une connexion à la source de données "Invoice_tracker_shared" at /build/libreoffice/parts/libreoffice/build/connectivity/source/commontools/dbexceptio.cxx:403

Clicking on the More button of the error message box displays :

 "No Java installation could be found. Please check your installation."
Comment 3 Alex Thurgood 2024-02-12 11:45:52 UTC
Confirming, but as I said, not our bug, IMHO.
Comment 4 Alex Thurgood 2024-02-12 12:03:02 UTC
I don't see a Java plugin, or "connection", interface in the LibreOffice snap package, so it looks like Canonical either accidentally forgot it when building the snap, or have deliberately done this to force users to migrate to a java snap...
Comment 5 Alex Thurgood 2024-02-12 13:25:53 UTC
I even tried installing the openjdk snap, but still no joy.
Comment 6 mathias.micheel 2024-02-12 13:30:19 UTC
(In reply to Alex Thurgood from comment #3)
> Confirming, but as I said, not our bug, IMHO.

Thanks for your in-depth looking into the issue. Where can I report bugs to Canonical?
Comment 7 Alex Thurgood 2024-02-12 14:57:42 UTC
(In reply to mathias.micheel from comment #6)
> (In reply to Alex Thurgood from comment #3)
> > Confirming, but as I said, not our bug, IMHO.
> 
> Thanks for your in-depth looking into the issue. Where can I report bugs to
> Canonical?

I think it is via Canonical/Ubuntu's Launchpad website, but you need a Ubuntu One account, or you have to create one, if you don't have one already.