Onedrive Libreoffice

admin
Onedrive

I face an issue when opening files with LibreOffice from a mounted remote: When opening a file for the first time, the file is not opened properly. But second time it works fine. (So the workaround is simple, just open the file again.)

I can't see any OneDrive icons Windows On a PC, you should see a white or blue OneDrive cloud icon in the notification area, at the far right of the taskbar. You might need to click the Show hidden icons arrow next to the notification area to see the OneDrive icon. If the icon doesn't appear in the notification area, OneDrive might not be running. Microsoft oneDrive in one click. OneDriveOOo is an implementation of Microsoft oneDrive for LibreOffice. Homepage: https. Google Contact integration for LibreOffice / OpenOffice. 01-20 01-2021 Feedback. Post your review. You cannot post reviews until you have logged in. No one has commented on.

This happens in my graphical desktop environment:

  1. From my file manager: Double click on the 'office file' in the mounted remote. For example an .docx, .xlsx or .odt file.
  2. LibreOffice application starts and fails to open the file properly. What happens in LibreOffice can differ;
  • The file opens without any message but appears to be empty (no text in a word document), or
  • some information- or error-message(s) which I can pass (like press OK), and then file opens but seems to be empty, or
  • some information- or error-message(s) and when try to pass (like press OK), LibreOffice crashes
  1. I close the file / LibreOffice window
  2. Double click on the file again, and it opens without any problem

The problem seems to be the same or similar for multiple services; at least Dropbox and Onedrive. I have don't have any problem to open local files with LibreOffice.

The information- or error-message i get from LibreOffice depends on type of file, and can differ between different services and also between different machines/desktop environments:

When opening an .xlxs file from a mounted Onedrive I get a dialogue box 'Text import', and after 'OK', the file opens but seems to be empty. Then it works fine to open the file the second time.

When opening an .xlxs from a mounted Dropbox (on one of my machines) I get interesting messages from LibreOffice:
”The lock file could not be created for exclusive access by LibreOffice, due to missing permission to create a lock file on that file location or lack of free disk space”
Then I click on 'Open as Read only' results in error 'General input/output error', and LibreOffice sometimes crashes.
Then, when opening the second time I get the same option to open as read only. And now it works to open it as read only, and then I can change to write mode within LibreOffice.

I run Linux Mint 18.3 Cinnamon with LibreOffice 5.1.6.2 on one machine, and Linux Mint 19.3 XFCE with LibreOffice 6.0.7.3 on the other.

I mount like this
$ rclone mount MyRemote: /path/to/MyRemoteDirectory --vfs-cache-mode writes -v
I have also tried vfs-cache-mode full, but that did not solve this problem.

Rclone version 1.50.2

So, do you have any idea what is causing this problem, and how to get around it?

Log, from the moment I open the file:
2020/01/19 19:54:08 DEBUG : /: Lookup: name='Files'
2020/01/19 19:54:08 DEBUG : /: >Lookup: node=Files/, err=
2020/01/19 19:54:08 DEBUG : Files/: Attr:
2020/01/19 19:54:08 DEBUG : Files/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/01/19 19:54:08 DEBUG : /: Lookup: name='Files'
2020/01/19 19:54:08 DEBUG : /: >Lookup: node=Files/, err=
2020/01/19 19:54:08 DEBUG : Files/: Attr:
2020/01/19 19:54:08 DEBUG : Files/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/01/19 19:54:08 DEBUG : Files/: Lookup: name='TestfileToOpen.xlsx'
2020/01/19 19:54:08 DEBUG : Files/: >Lookup: node=Files/TestfileToOpen.xlsx, err=
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: Attr:
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: >Attr: a=valid=1s ino=0 size=4697 mode=-rw-rw-r--, err=
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: Open: flags=OpenReadWrite
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: Open: flags=O_RDWR
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: >Open: fd=Files/TestfileToOpen.xlsx (rw), err=
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: >Open: fh=&{Files/TestfileToOpen.xlsx (rw)}, err=
2020/01/19 19:54:08 DEBUG : &{Files/TestfileToOpen.xlsx (rw)}: Read: len=8192, offset=0
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: Need to transfer - File not found at Destination
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: DropboxHash = 4e6432d4f2bd5fcf6eef0282c97c603195436f66ce5656e091efb225854c05d2 OK
2020/01/19 19:54:08 INFO : Files/TestfileToOpen.xlsx: Copied (new)
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx(0xc000a1cae0): Opening cached copy with flags=O_RDWR
2020/01/19 19:54:08 DEBUG : &{Files/TestfileToOpen.xlsx (rw)}: >Read: read=4697, err=
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: Attr:
2020/01/19 19:54:08 DEBUG : Files/TestfileToOpen.xlsx: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=
2020/01/19 19:54:08 DEBUG : Files/: Lookup: name='.~lock.TestfileToOpen.xlsx#'
2020/01/19 19:54:08 DEBUG : Files/: >Lookup: node=, err=no such file or directory
2020/01/19 19:54:08 DEBUG : Files/: Lookup: name='.~lock.TestfileToOpen.xlsx#'
2020/01/19 19:54:08 DEBUG : Files/: >Lookup: node=, err=no such file or directory
2020/01/19 19:54:08 DEBUG : Files/: Create: name='.~lock.TestfileToOpen.xlsx#'
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: Open: flags=O_RDWR O_CREATE O_EXCL
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): Opening cached copy with flags=O_RDWR O_CREATE O_EXCL
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: >Open: fd=Files/.~lock.TestfileToOpen.xlsx# (rw), err=
2020/01/19 19:54:08 DEBUG : Files/: >Create: node=Files/.~lock.TestfileToOpen.xlsx#, handle=&{Files/.~lock.TestfileToOpen.xlsx# (rw)}, err=
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: Attr:
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=
2020/01/19 19:54:08 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: Read: len=4096, offset=0
2020/01/19 19:54:08 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: >Read: read=0, err=
2020/01/19 19:54:08 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: Write: len=87, offset=0
2020/01/19 19:54:08 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: >Write: written=87, err=
2020/01/19 19:54:08 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: Flush:
2020/01/19 19:54:08 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: Need to transfer - File not found at Destination
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#: Failed to copy: upload failed: path/disallowed_name/..
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): failed to transfer file from cache to remote: upload failed: path/disallowed_name/..
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): RWFileHandle.Flush error: failed to transfer file from cache to remote: upload failed: path/disallowed_name/..
2020/01/19 19:54:09 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: >Flush: err=failed to transfer file from cache to remote: upload failed: path/disallowed_name/..
2020/01/19 19:54:09 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: Release:
2020/01/19 19:54:09 DEBUG : /: Lookup: name='Files'
2020/01/19 19:54:09 DEBUG : /: >Lookup: node=Files/, err=
2020/01/19 19:54:09 DEBUG : Files/: Attr:
2020/01/19 19:54:09 DEBUG : Files/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): RWFileHandle.Release closing
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): close:
2020/01/19 19:54:09 DEBUG : File.delWriter couldn't find handle
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: Need to transfer - File not found at Destination
2020/01/19 19:54:09 DEBUG : /: Lookup: name='Files'
2020/01/19 19:54:09 DEBUG : /: >Lookup: node=Files/, err=
2020/01/19 19:54:09 DEBUG : Files/: Attr:
2020/01/19 19:54:09 DEBUG : Files/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/01/19 19:54:09 DEBUG : Files/: Lookup: name='.~lock.TestfileToOpen.xlsx#'
2020/01/19 19:54:09 DEBUG : Files/: >Lookup: node=Files/.~lock.TestfileToOpen.xlsx#, err=
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: Attr:
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#: >Attr: a=valid=1s ino=0 size=87 mode=-rw-rw-r--, err=
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#: Failed to copy: upload failed: path/disallowed_name/.
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): failed to transfer file from cache to remote: upload failed: path/disallowed_name/.
2020/01/19 19:54:09 DEBUG : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): >close: err=failed to transfer file from cache to remote: upload failed: path/disallowed_name/.
2020/01/19 19:54:09 ERROR : Files/.~lock.TestfileToOpen.xlsx#(0xc000a41680): RWFileHandle.Release error: failed to transfer file from cache to remote: upload failed: path/disallowed_name/.
2020/01/19 19:54:09 DEBUG : &{Files/.~lock.TestfileToOpen.xlsx# (rw)}: >Release: err=failed to transfer file from cache to remote: upload failed: path/disallowed_name/.

With the keyboard:

Press Insert to toggle between overwrite mode and insert mode. The current mode is displayed on the Status Bar. The text cursor must be enabled in the cell or in the input line.

With the mouse:

On the Status Bar, click on the area indicating the current mode in order to switch to the other mode:

  • INSRT

    Insert mode is enabled. The text cursor is a blinking vertical line. Click on the area to enable the overwrite mode.

Onedrive Libreoffice Free

  • OVER

    The overwrite mode is enabled. The text cursor is a blinking block. Click on the area to enable insert mode.