Opening Libreoffice 7.2 document wakes Synology NAS

I’ve been using LibreOffice for quite a few years. This is the first time I’ve seen this anomaly. I have several pc’s running various distributions of Linux. This particular problem is occurring on only one. Ubuntu 21.10 with LibreOffice 7.2.3.2. Its included by default. I did do an upgrade from 20.10 to 21.10.

When I open a document either on calc or writer it causes my Synology NAS to wake up from hibernation. It also happens just by launching calc or writer. The pc next to this one is Ubuntu 20.04 with LO 6.4.7.2 and does not cause this issue. I checked another distribution that’s running LO 7.1.x and it does not happen either. In fact the machine that has this problem has 8 linux based operating systems for test purposes which includes this latest version of Ubuntu. I’ve never seen it happen on any of them.

Frankly, I have no idea where to even start looking. Anyone have any ideas as to what would wake up the NAS from hibernation just by executing LibreOffice?

Regards,

Gerald

Start looking at Tools>Options>Paths

Yes just checked it. All paths local. Both the 7.2 and 6.4 have same paths. Just as I was about to check I disabled the network. It actually hung the launch of LO Writer for a few seconds trying to connect. Since I upgraded this from 20.10 to 21.10 I may just format the drive and do a fresh install. I checked the other OS on my test system and none of them have 7.2. 7.1 I think on Manjaro. Its fine. That would tell me for sure if its some sort of problem with the upgrade as the root cause. Its a pain to set it up again. That’s what takes the time.

Thanks for the quick reply.

Next step:
Open ~/.config/libreoffice/4/user/registrymodifications.xcu (large xml file) and scan for the NAS path or URI.

Any bookmarks in the file picker dialog?
Logging facility on the NAS side?

It does not happen when you run soffice without any document?

That was it!

Ubuntu never installed the “LibreOffice” launcher before, if that’s what you call it, in previous editions. I don’t remember why. There was a path to the NAS for a document I opened. The other pc with the 6.4 edition does not include the launcher. I recall editing this particular file. So I deleted the thumbnail of the doc on the launcher. That then removed the path to it in the .xcu file.

I’ve done editing of files that are located on the NAS before and it never caused it to start the NAS on the 6.4 version just by starting writer for example because they’re listed in recently opened history. Now of course if I select a recently opened file that’s on the NAS it starts and requests a password. All of which is normal.

So now I’m wondering what’s different between 7.2 and 6.4 LO to cause it to start up just by opening writer or calc. The path to a recent document for a NAS located doc is on the 6.4 .xcu as well. The only difference from the outside is 6.4 does not have the launcher. I wouldn’t think inclusion of the launcher would be the issue.

Thanks a lot for the prompt replies and solution.

Regards,

Gerald

I just reproduced it on Ubuntu 20.04 with LibreOffice 6.4. As I wrote above the launcher or start center has been hidden in previous versions of Ubuntu. They decided to display it on 21.10. I wouldn’t think that would be the root cause. But I commented the line in .desktop file for the start center NotShowIn=GNOME; so its displayed. So merely displaying the icon to launch the start center will wake up the NAS if it has a thumbnail of a file that’s on the NAS.

Regards,

Gerald

Most probably it’s tdf#131850, trying to check if the document is encrypted while painting module icon.

Yes it hangs. Document is not encrypted. Its waiting for the NAS to start up from hibernation. Takes a few seconds. But that’s not the original issue. Its the fact that simply launching writer or calc blank causes the NAS to wake up under the following conditions. 1) recent document history of opening a document on the NAS. 2) displaying the start center icon. If the start center icon was not visible which was the default for Ubuntu it never happened even if there was recent documents docs on the NAS.
I find that odd. But at least I know how it happens and its related to displaying the start center icon. That’s why it surprised me when it happened on version 21.10. All previous versions, for whatever reason, on Ubuntu the application launch icon for the start center was hidden. Its not hidden on Manjaro Gnome as I recall. But I probably didn’t open a document on the NAS.

That’s the original issue. The issue is that LibreOffice tries (or rather, tried - the bug it fixed recently) to access files in its recent list, because it used a function to get the icons, that happened to also check if the files were encrypted. When trying to access the document, it indeed sent network packets when the file happened to be on a network; and that indeed waked up the device that is configured to wake up on access.

The hidden start center is just a workaround, and if that happened to be the case in previous Ubuntu packages, it’s just hide the real problem.