Page 1 of 1

Can't open files from smb and G Drive

Posted: Thu Dec 06, 2018 6:32 pm
by bueno
Hi.

When I try to open files from a samba share or from Google Drive (using Nautilus), always get a error like this:
Erro geral de entrada/saída ao acessar /run/user/1000/gvfs/smb-share:server=serv831580321,share=dados/Document.odt.
The above message means by "General access I / O error".

This occur with all files from remote. But, if I copy the file to local drive, it's open without error.

Is it possible to fix it? OpenOffice can open and write files from remote?

Thanks for help.

Re: Can't open files from smb and G Drive

Posted: Thu Dec 06, 2018 6:45 pm
by RoryOF
Some time ago I had a similar problem on Xubuntu 18.04.1 (64 bit) opening files from my NAS devices. I cured this by adding "vers=1.0" (no quotes) into my rc.local file to cause these NAS servers mount to my desktop, using a file such as this:

Code: Select all


#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sleep 20

mount -t cifs //192.168.2.30/Work -o username=XXXX,password=YYYYYYY,uid=1000,gid=1000,vers=1.0 /home/XXXX/Desktop/Work

192.168.2.30 is the IP number on my network of one of my NAS devices, Work is the directory on it where the data is stored, and /home/XXXX/Desktop/Work is the local folder to which it is mapped.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 1:38 pm
by Usenetdude
And if you move the document to a upper folder? maybe its the 256 charter limiet

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 4:38 pm
by bueno
Thanks for reply.

But unfortunately, it did not solve the problem.

Using "Open" button at OpenOffice I can not select the smb locale. And, if I try to open via Nautilus, get the error above.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 5:05 pm
by bueno
Usenetdude wrote:And if you move the document to a upper folder? maybe its the 256 charter limiet
Thanks for the tip. I did it now, but unfortunately it did not work out. Same mistake.

I did yet another test. I switched briefly through LibreOffice. And LibreOffice opens the files without problem. However, I need OpenOffice, since LibreOffice bugs some spreadsheets.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 5:10 pm
by RoryOF
How are you mapping the drive to your Ubuntu system?
 Edit: Also, try opening the network share using Gigolo. 

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 5:52 pm
by bueno
RoryOF wrote:How are you mapping the drive to your Ubuntu system?
 Edit: Also, try opening the network share using Gigolo. 
Using fstab. Also, if I type de address "smb://servername" got same error.

I installed Gigolo and mapped with it too. Also, I tryed to conect via sftp. Same error. PDFs, Images and others open fine with her respective apps. The problem is only with OpenOffice.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 6:39 pm
by RoryOF
Did you try the vers=1.0 addition to the fstab file I outlined above? Of course, after entering this in rc.local you should either reapply rc.local or reboot to cause it to be used.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 7:22 pm
by Villeroy
OpenOffice on Linux is broken. Whatever LibreOffice does wrong with your sheets should be fixable.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 7:35 pm
by RoryOF
Villeroy wrote:OpenOffice on Linux is broken. Whatever LibreOffice does wrong with your sheets should be fixable.
I don't find it to be broken, Villeroy. On boot I map my NAS devices (using fstab as the sample I have given) and can access my remote files.

Re: Can't open files from smb and G Drive

Posted: Fri Dec 07, 2018 7:50 pm
by Villeroy
Opening files should work properly with the normal file picker dialog as it used to work all the years before. Anyhow, the files on my Windows share all have database forms. Openoffice freezes when I focus a table control of a database form. This makes OpenOffice on Linux unsable for me. Who knows what comes next? For me this branch of ODF suites is dead. This forum is the only reason why I start up AOO in order to test if something works with AOO as it usually does work with LO.

https://bz.apache.org/ooo/show_bug.cgi?id=127710