Can't open files from smb and G Drive

Issues with installing under all GNU/Linux Distributions
Post Reply
bueno
Posts: 4
Joined: Thu Dec 06, 2018 6:22 pm

Can't open files from smb and G Drive

Post 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.
OpenOffice 4.1.6 on Ubuntu 18.04
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post 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.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Usenetdude
Posts: 1
Joined: Fri Dec 07, 2018 1:21 pm

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

Post by Usenetdude »

And if you move the document to a upper folder? maybe its the 256 charter limiet
OpenOffice 2.4 on Ubuntu 12.0
bueno
Posts: 4
Joined: Thu Dec 06, 2018 6:22 pm

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

Post 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.
OpenOffice 4.1.6 on Ubuntu 18.04
bueno
Posts: 4
Joined: Thu Dec 06, 2018 6:22 pm

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

Post 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.
OpenOffice 4.1.6 on Ubuntu 18.04
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post by RoryOF »

How are you mapping the drive to your Ubuntu system?
 Edit: Also, try opening the network share using Gigolo. 
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
bueno
Posts: 4
Joined: Thu Dec 06, 2018 6:22 pm

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

Post 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.
OpenOffice 4.1.6 on Ubuntu 18.04
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post 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.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Post by Villeroy »

OpenOffice on Linux is broken. Whatever LibreOffice does wrong with your sheets should be fixable.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post 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.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Post 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
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply