Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759316 - =app-office/libreoffice-6.4.7.2, =net-fs/samba-4.12.9-r1: lock file issue, cannot save into cifs share
Summary: =app-office/libreoffice-6.4.7.2, =net-fs/samba-4.12.9-r1: lock file issue, ca...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-10 08:23 UTC by m1027
Modified: 2020-12-10 23:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1027 2020-12-10 08:23:35 UTC
This report is a stub to kindly ask for any fresh ideas:

In libreoffice, simply when saving a document into a samba share, this fails
mostly now when saving again, or under a new name (sometimes succeeds).

To reproduce:
- mount -t cifs -o defaults,user=USER,users,uid=...,gid=...
- libreoffice: create new calc table, save/save as into share
- libreoffice: repeat saving/saving as
- samba server: no fancy smb.conf
- server kernel: recent LTS 5.4.x series
- issues with libreoffice on Gentoo as well as on Ubuntu

The issue:
On the server, .~lock files are created. Sometimes a .~lock file remains with
0 bytes content and thus blocks from further saving the original document.
Thus libreoffice pops up a window, permission denied (due to the lock file not
beeing deleted/changed properly).

Since when:
While using this setup for years, this issue is new since around Oct/Nov 2020,
after updating from samba-4.11 to samba-4.12 and moving to a faster hardware.
(Unfortunatelly downgrading to samba-4.11 is hit by a build issue, this is
another story.)

What works / workarounds
- No issue when having mounted graphically via Gnome (!), vfs?
- No issue for windows clients saving libreoffice files to the share
- Disabling the use of lock files in the libreoffice advanced settings

No success with these tests:
- Upgrading samba server to 4.13
- Upgrading to libreoffice 7.x on Gentoo
- Limiting the cifs max protocol version from 3.11 to 3 or 2

To sum up:
This issue occurs on Gentoo (and Ubuntu) when mounting via console/fstab.

Thank you
Comment 1 Jonas Stein gentoo-dev 2020-12-10 23:02:45 UTC
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/