files on a network drive locked when accessing from libreoffice for mac OS X

6 replies [Last post]
af_
Offline
Last seen: 6 weeks 6 days ago
Title:
Joined: 16 Mar 2016
Posts: 4
I use Mac OS X 10.11 and Libreoffice 5.1.

On opening some files on a network drive (SMB) i keep getting the error message:
“Error during shared access to /Volumes/…”

All ~lock… files are deleted – to no effect.
I copied the files to new folders – no effect
If I access the file from another application it works
If I copy the file to the desktop it’s accessible
If I copy it back it’s not accessible again
Opening it on the desktop and Save as to the network also has no effect.

For Ubuntu a solution is documented to edit the start script “soffice”
in order to turn off shared file locking
by commenting out the following lines

  1. file locking now enabled by default
  2. SAL_ENABLE_FILE_LOCKING=1
  3. export SAL_ENABLE_FILE_LOCKING

one solution which I don’t want to try is to turn off locking for the volume while connecting

I couldn’t find any option in Libreoffice for OS X to change a similar setting as in Ubuntu
The problem is well documented in different forums and blogs
But no solution for OS X found by me.

Is there a solution for the base problem?
Can anyone advise me how to disable file locking on OS X

KR
Anton

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
mount options?
I cannot assist at present with MacOS options but it may be worth examining how the remote volume is mounted e.g., /etc/fstab ?
af_
Offline
Last seen: 6 weeks 6 days ago
Title:
Joined: 16 Mar 2016
Posts: 4
mounted
Hallo

Thank you for the reply.
It’s mounted via the smb protocol.
On the mac I did not find a etc/fstab file.

KR
Anton

af_
Offline
Last seen: 6 weeks 6 days ago
Title:
Joined: 16 Mar 2016
Posts: 4
bump
I cannot believe that this problem is uniquely on my system is there nobody who can help there are lot’s of references to the problem on the net but only a solution for ubuntu is given that is to deactivate shared access in the file soffice (even in the libreoffice installation readme gives the steps

but i cannot find any way to deactivate shared access on a mac
If the problem cannot be solved that would also be a solution for me if someone can help

KR

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
network config / Apple
In my experience these issues are nearly always related to configuration at the OS level. Unfortunately Apple changes so much each release that there are new problems to contend with, many security-related due to the nigh-paranoid stance Apple takes. I wish I could offer a solution but I have none.
af_
Offline
Last seen: 6 weeks 6 days ago
Title:
Joined: 16 Mar 2016
Posts: 4
deactivation shared access
Thx for the reply

Are there such fundamental differences between the libreoffice OS Versions, that something thats configurable in ubuntu (deactivate shared access) is not configurable in OS X?

I copied from the Readme_en US the following text, so I suppose libre office supports deactivating in all OS versions.
Does anybody know where the corresponding file is located in OS X?

———————————————————————————————————
File Locking
———————————————————————————————————

File locking is enabled by default in LibreOffice. On a network that uses the Network File System protocol (NFS), the locking daemon for NFS clients must be active. To disable file locking, edit the soffice script and change the line “export SAL_ENABLE_FILE_LOCKING” to “# export SAL_ENABLE_FILE_LOCKING”. If you disable file locking, the write access of a document is not restricted to the user who first opens the document.

KR
Anton Fildan

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
differences
af_ wrote:
Are there such fundamental differences between the libreoffice OS Versions, that something thats configurable in ubuntu (deactivate shared access) is not configurable in OS X?
The problem, as I uderstand it, is that this is effectively an OS-level configuration and every OS seems to have their own way of achieving file locking across heterogeneous networks. MacOS in the early days was not that dis-similar to BSD or GNU/Linux, but there are now a lot of file-level extensions. When I got my Mac (OS 10.6) it required a serious effort to turn off a lot of the Apple bolt-on additions and thus return the system something as vanilla as possible. I have long since given up on Apple ever being friendly to anything non-Apple. I imagine LO has to contend with this also, but there are some very smart people working on the project for that platform.

af_ wrote:
I copied from the Readme_en US the following text, so I suppose libre office supports deactivating in all OS versions. Does anybody know where the corresponding file is located in OS X?
Not near a Mac at present but have a look in LibreOffice.app/program/soffice It should be in the main script.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.