[Packaging] Libreoffice should use gnome vfs

Bug #792622 reported by Laurent Dinclaux
272
This bug affects 65 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Undecided
Björn Michaelsen

Bug Description

Binary package hint: libreoffice

I browse to a samba share using nautilus. (in location bar it show the folder path as smb://)

I open a document, edit it and save it: it works.

I choose export as pdf: it fails with a general error, i/o error.

I choose save as and just chnage the file name: it fails with a general error, i/o error.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libreoffice (not installed)
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Jun 4 10:14:33 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=fr_FR:en
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

An additional note: It works properly when browsing to document through the .gvfs folder

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

Is it possible to force nautilus to use .gvfs instead of smb:// ?!?

Revision history for this message
Alex King (ahex) wrote :

I have a customer getting this issue on their 11.04 laptop, saving to a Debian Squeeze samba server. New documents created in Libreoffice won't save, but docs opened , modified and saved back to the share do work. Other machines with earlier OOo/ubuntu versions work OK

Revision history for this message
Kim d'Audretsch (kimda) wrote :

I am also having this problem . It is really annoying. The only work around is saving directly via .gvfs folder or to save it locally and then move it to a samba share via nautilus. I have also tried the ppa but it also has the same bug in it.

Revision history for this message
Yakubovsky Dmitriy(Якубовський Д.) (dmitriy-yakubovsky) wrote :

Strange, but this issue is only on x64 bit systems, I have several laptops and PC in my office, half of them are x64 and other are i386. All of them with 11.04 on board. PC and laptops witch are i386 have not such problem.

Revision history for this message
In , Lool-lauris (lool-lauris) wrote :

Hi,

I have a Windows 7 desktop PC where there is documents LibreOffice.
I have a laptop which is under Ubuntu 11.04 64 bits.

I'm able to connect the Windows computer through a wifi network. I open a LibreOffice document to use it as a model.
I choose "Save as" to give a new name and create a new file in the same directory but I get the following error message :

Erreur lors de l'enregistrement du document xxxx:
Erreur générale.
Erreur d'entrée/sortie générale.

So in english :

Error during the recording of the document xxxx:
General error.
General Input/Output error.

I precise that I have this trouble only with LibreOffice documents. The "Save as" works perfectly with other type of file (txt, jpg, and so on).

Bye,
lool

Revision history for this message
In , Caolanm (caolanm) wrote :

"I have a Windows 7 desktop PC where there is documents LibreOffice.
I have a laptop which is under Ubuntu 11.04 64 bits."

On which computer do you have the problem. On the windows computer saving to a samba file share exported from the Linux box ?, or on the linux computer saving to a samba file shared exported from the Windows box ?

Revision history for this message
In , Lool-lauris (lool-lauris) wrote :

(In reply to comment #1)

> On which computer do you have the problem. On the windows computer saving to a
> samba file share exported from the Linux box ?, or on the linux computer saving
> to a samba file shared exported from the Windows box ?

Sorry for the lack of precision.
The problem is on the Linux laptop. In fact the shared directories are on the Windows desktop computer, a kind of personal data base. And the most part of the time I work with my laptop under Ubuntu that I used to access to the files stored on the Windows computer.

Revision history for this message
In , Iamtester8 (iamtester8) wrote :

NOT Reproduced with

LO 3.4.1 (OOO340m1 (Build:101))
Ubuntu 10.04.2 x86
Linux 2.6.32-32-generic Russian UI

samba 2:3.4.7~dfsg-1ubuntu3.6

Windows Vista SP1

Revision history for this message
Peter (pry) wrote :

This bug is very important as most of the (Ubuntu) Linux newcomers migrate from Windows and it's very necessary not to lose them. Bugs like this seem insignificant, spoil the fun greatly 'cause they do not allow users do the things the way they do them in Windows. Please change it's importance and thanks in advance.

Revision history for this message
penalvch (penalvch) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
David Burke (bufke) wrote :

I have tested this with i386 and still get the same problem. It does not effect only x86_64.

I installed LibreOffice 3.4 and gvfs 1.9 (from oneiric) but this did not solve anything. It's questionable whether this is a LO or gvfs bug.

I agree this problem deserves more attention. A user downloads the newest Ubuntu, browses a company share, saves a file and it just doesn't work. I've been using pam_mount as a workaround but this doesn't let non technical users add shares themselves using nautilus or the connect to server gui tool.

I've posted a bug report to LO. https://bugs.freedesktop.org/show_bug.cgi?id=40206

penalvch (penalvch)
summary: - Cannot save documents to samba shares
+ [Upstream] Cannot save documents to samba shares
tags: added: lo33
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , MIchka B (baudlet-michel) wrote :

Hello,
I observe the same bug on the network of my primary school where, exceptionnaly this year I'm in charge of ICT teaching.

- 8 computers on Windows XP pro (one is the "server")
- 5 on Ubuntu 11.04 updated

I have to acceed via : /<user>/.gvfs/<directory shortcut> on <server>.

I discovered this testing with Ooo4Kids which needs to search in upper directory.

Precision :

Samba package, itself, is not installed on the four computers where I'm sure I have the problem.
Only, basic packages, are loaded :
- Samba-common
- Samba-common-bin
- python-smbc
- smbclient
- libsmbclient

On the fifth PC with Ubuntu, I'm sure I have loaded the Samba package, but I'm not sure I had this problem. I shall confirm that Monday.

Revision history for this message
In , MIchka B (baudlet-michel) wrote :

Hello,

All computers I have in the ICT classroom are 32 bits.

Ok! I tested the computer with Samba package : it's the same thing.

On each, I've created :

- a network shortcut (connect to a server) in shortcuts menu (Ubuntu classic)
- a shortcut on the desktop for students.

( They open my originals then "save as" into there folder )

Revision history for this message
In , Alex Thurgood (alex-thurgood) wrote :

*** Bug 42130 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alex Thurgood (alex-thurgood) wrote :

*** Bug 40206 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alex Thurgood (alex-thurgood) wrote :

*** Bug 40567 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alex Thurgood (alex-thurgood) wrote :

*** Bug 34605 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Phil Wolff (adiabat) wrote :

I will note that this bug still exists in LibO 3.4.3 build 302 on Ubuntu 11.10 (x86-Intel, Linux 3.0.0.12, samba 2:3.5.11~dfsg-1ubuntu2), all of which are current.

The network folder in my case is a read-write-shared folder on a Windows XP desktop machine. Other Ubuntu apps (specifically file browser Nautilus and text editor gedit) can read, write, modify, create, and delete files at will in this folder. LibO (Writer, Draw, and Calc for sure, haven't tried the others) cannot Save or Save As to the folder, generating the remarkably uninformative error message indicated in the original bug report, nor can they read an existing file from the folder, exiting silently (!!!).

Revision history for this message
In , E-osc (e-osc) wrote :

problem does NOT occur with Windows XP client, Libo 3.4.3 and openSUSe 11.4 with samba shares.
(These error messages do occur when trying to save as to an existing file for which the user has only read rights. An error message should occur, but the message is not clear to the user.)

Revision history for this message
Jan Rheinländer (jrheinlaender) wrote : Re: [Upstream] Cannot save documents to samba shares

The work-around is to use the nobrl mount option (which is not possible with nautilus as far as I know, so a manual fstab mount is required).

Revision history for this message
In , Lionel Elie Mamane (lionel-mamane) wrote :

Cannot reproduce with LO 3.4.4 (Debian package amd64) saving to share on Windows 2008R2 server.

Cannot reproduce with master (self-compiled running on Debian GNU/Linux amd64) saving to share on Windows 2008R2 server.

Cannot reproduce with LO 3.4.4 (Debian package amd64) saving to share on Windows 7 Professional desktop.

All mounts done with CIFS filesystem, *not* smbfs.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

The bug is still not solved in oneiric. This is very annoying to work with ubuntu in enterprise.

summary: - [Upstream] Cannot save documents to samba shares
+ [Upstream] Cannot "save as" and export as pdf to samba shares using
+ Libreoffice
Revision history for this message
In , Lionel Elie Mamane (lionel-mamane) wrote :

The Ubuntu bug contains an interesting information: mounting the cifs share with option "nobrl" works around this. Here's the description of that option:

       nobrl
           Do not send byte range lock requests to the server. This is
           necessary for certain applications that break with cifs style
           mandatory byte range locks (and most cifs servers do not yet
           support requesting advisory byte range locks).

I'm not sure whether LibreOffice can avoid sending those "byte range lock requests" without that option or not. E.g. it might come from LibreOffice's use of fcntl(F_SETLK/F_SETLKW) or maybe even flock(). I'm not sure why LO would use file locking, though.

Revision history for this message
penalvch (penalvch) wrote : Re: [Upstream] Cannot "save as" and export as pdf to samba shares using Libreoffice

40206 is a duplicate of 39093.

Changed in df-libreoffice:
importance: Medium → Unknown
status: Confirmed → Unknown
Changed in df-libreoffice:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html

Changed in df-libreoffice:
status: Confirmed → Incomplete
Revision history for this message
Laurent Dinclaux (dreadlox) wrote : Re: [Upstream] Cannot "save as" and export as pdf to samba shares using Libreoffice

That is silly, that bug is complete an totally valid in current Ubuntu stable version.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

I took the time to install and test LOdev 3.5.0beta2. Same goes for export as pdf.

Same issue.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

Please switch back to "new"

Revision history for this message
In , Jack Leigh (leighman) wrote :

Confirmed on launchpad

Changed in df-libreoffice:
status: Incomplete → Confirmed
Revision history for this message
Chris Smith (krondaj) wrote : Re: [Upstream] Cannot "save as" and export as pdf to samba shares using Libreoffice

Alex King (ahex) wrote on 2011-06-08: #4
I have a customer getting this issue on their 11.04 laptop, saving to a Debian Squeeze samba server. New documents created in Libreoffice won't save, but docs opened , modified and saved back to the share do work. Other machines with earlier OOo/ubuntu versions work OK

I still have this problem with saving to samba servers at work! It's very annoying... When will this be fixed??

I run 11.10 on an (x64) laptop.

Revision history for this message
Oliver Joos (oliver-joos) wrote :

We use 10.04 LTS and 11.04 and really hope too that this bug will get fixed - for all currently supported Ubuntu releases!

I confirm comment #10 that mounting the shares by cifs with nobrl does work. Try this:

sudo apt-get install cifs-utils
sudo nano /media/your_server.credentials # and add the following 2 lines:

username=your_username_on_server
password=your_password_on_server

sudo chmod go-rwx /media/your_server.credentials
sudo mkdir -p /media/your_server/your_share
sudo nano /etc/fstab # and add all the following on ONE line:

//server_url/your_share /media/your_server/your_share cifs ip=192.168.xxx.yyy,noexec,nounix,nobrl,uid=1000,gid=1000,file_mode=0644,dir_mode=0755,credentials=/media/your_server.credentials 0 0

I am not a cifs expert. So please leave a comment if your know better options! I think "ip=..." can be left out if "nslookup server_url" works in your LAN. Just make sure that you use "nobrl" - it's essential for this workaround.

Revision history for this message
Harm van Bakel (hvbakel) wrote :

I've added some information to the following bug report (error when saving to sftp mounts), which I believe to be related to the same underlying problem:
https://bugs.launchpad.net/bugs/927518

no longer affects: df-libreoffice
summary: - [Upstream] Cannot "save as" and export as pdf to samba shares using
- Libreoffice
+ Libreoffice should use gnome vfs
Changed in libreoffice (Ubuntu):
milestone: none → ubuntu-12.04
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
status: Confirmed → Fix Committed
summary: - Libreoffice should use gnome vfs
+ [Packaging] Libreoffice should use gnome vfs
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

Any package available for testing? thanks

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in libreoffice (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

Works like a charm in 12.04

Revision history for this message
J. J. Palacios (funihao-p) wrote :

Bug is alive.
Return error when you trying to "save as" on samba places.
Installation->
Ubuntu 12.10
LibO:Versión 3.6.2.2 (ID de compilación: 360m1(Build:2))

Revision history for this message
Scott (ubuntu-buttonguy) wrote :

I am also having this problem again since the upgrade to 12.10.

I get

Error saving the document <filename>:
Nonexistent file.

then

Error saving the document <filename>:
General Error.
General Input/output error.

then the LibreOffice window cannot be closed via the GUI.

Not sure if this is related, but It seems the "mount" point changed from $HOME/.gvfs/<share> to /run/user/$USER/gvfs/<share>.
Save As works for me if I change to a directory under /run/user/$USER/gvfs/<share>.

Ubuntu 12.10 x86_64
Version 3.6.2.2 (Build ID: 360m1(Build:2))

Revision history for this message
Laurent Montenois (laurent-montenois) wrote : re: [Bug 792622] Re: [Packaging] Libreoffice should use gnome vfs

Hi,

I'm still under Ubuntu 12.04.

The trouble i have is when opening a LibreOffice file on the network and saving it by "Save as".

The error message I have back is :

"Error during the recording of the document xxxx:
This object does not exist.
The path of the file does not exist."

I have to precise that this problem is only with LO, none with other software.

> Message du 10/04/13 21:08
> De : "Scott"
> A : <email address hidden>
> Copie à :
> Objet : [Bug 792622] Re: [Packaging] Libreoffice should use gnome vfs
>
> I am also having this problem again since the upgrade to 12.10.
>
> I get
>
> Error saving the document :
> Nonexistent file.
>
> then
>
> Error saving the document :
> General Error.
> General Input/output error.
>
> then the LibreOffice window cannot be closed via the GUI.
>
> Not sure if this is related, but It seems the "mount" point changed from $HOME/.gvfs/ to /run/user/$USER/gvfs/.
> Save As works for me if I change to a directory under /run/user/$USER/gvfs/.
>
> Ubuntu 12.10 x86_64
> Version 3.6.2.2 (Build ID: 360m1(Build:2))
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (808500).
> https://bugs.launchpad.net/bugs/792622
>
> Title:
> [Packaging] Libreoffice should use gnome vfs
>
> Status in “libreoffice” package in Ubuntu:
> Fix Released
>
> Bug description:
> Binary package hint: libreoffice
>
> I browse to a samba share using nautilus. (in location bar it show the
> folder path as smb://)
>
> I open a document, edit it and save it: it works.
>
> I choose export as pdf: it fails with a general error, i/o error.
>
> I choose save as and just chnage the file name: it fails with a
> general error, i/o error.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.04
> Package: libreoffice (not installed)
> ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
> Uname: Linux 2.6.38-8-generic x86_64
> NonfreeKernelModules: nvidia
> Architecture: amd64
> Date: Sat Jun 4 10:14:33 2011
> InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
> ProcEnviron:
> LANGUAGE=fr_FR:en
> PATH=(custom, user)
> LANG=fr_FR.UTF-8
> SHELL=/bin/bash
> SourcePackage: libreoffice
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/792622/+subscriptions
>

Revision history for this message
Maxxer (lorenzo-milesi) wrote :

The issue is reproducible even on LibreOffice 4 from PPA.

This bug triggers a more serious problem: sometimes when opening files via /run/user/... the document is opened correctly, then when you press "save" there is no error but the document is not saved to network!

Revision history for this message
Michi (michi-oohh) wrote :

Not fixed yet, Ubuntu 64 Bit, Libre Office (Writer) Version: 4.2.3.3 Build-ID: 420m0(Build:3)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.