You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Ramakanta Sahoo <rk...@gmail.com> on 2014/03/26 19:30:09 UTC

Openoffice 3.3 service fails with file not found exception

Hi OpenOffice Guru's,

We have tried to open file using open office but all the time it fails
saying the file .39832938.doc does not exist but we could see all the files
getting created at the specifed temp location. We came to know that there
is some issue with Openoffice with NFS systems on file locking. We tried to
disable below lines in soffice but that did not help and also tried to
mount the file system using nolock option that also did not work, though
only once we were able to open the file rest were failing.

Can someone please let us know incase there is any solution to this issue
OF FILE NOT FOUND EXCEPTION.

Details about our setup are below:
------------------------------------------

1. We have 2 machines 1 for application server and in other one OpenOffice
service running.
2. We have the same NFS mounted drives in both machines which hosts the
files of our application and file structure(/usr/nfs/Myapp folder is
mounted(NFS) on both machines) with below options
nfs
rw,remount,noatime,nodeiratime,nolock,hard,bg,intr,timeo=120,noacl,acregmin=8,acregmax=300,acdirmin=8,acdirmax=300,addr=11.01.2.12
0 0
3. We are using RHEL 5.x OS on both servers.
4. We open the file via java code of application and it works for all other
types of mounted drives but not in NFS mounted drives and we get
FileNotFoundException error in log while trying to access the temp file in
temp folder, though the file is getting created and exists there.
5. /usr/nfs/Myapp/system/temp is the folder where all the temporary files
gets created for processing.
6. Yes, its a microsoft word file which gets created via our code and
openoffice service. (For Example: .39832938.doc )
7. We heard that openoffice is having some locking stuff on NFS drives so I
tried to edit the soffice file and tried below settings but for 1st time
miraculously i was able to generate once but after that the word doc
generation failed with FileNotFoundExceptions though I could see new temp
files getting created in temp folder for each "export as word" requests. I
tried to restart the Openoffice service many times and checked but had no
luck.

We tried the following options in soffice file:
a.
SAL_ENABLE_FILE_LOCKING=0
export SAL_ENABLE_FILE_LOCKING
b.
STAR_PROFILE_LOCKING_DISABLED=1
export STAR_PROFILE_LOCKING_DISABLED

#SAL_ENABLE_FILE_LOCKING=1
#export SAL_ENABLE_FILE_LOCKING
c.
STAR_PROFILE_LOCKING_DISABLED=1
export STAR_PROFILE_LOCKING_DISABLED

#SAL_ENABLE_FILE_LOCKING=1
#export SAL_ENABLE_FILE_LOCKING
unset SAL_ENABLE_FILE_LOCKING

8. Below is the command we use to start openoffice service and it works
everywhere without any issues except here in NFS mounted drives.
./soffice -headless -"accept=socket,host=0,port=8000;urp"
-nofirststartwizard &

9. OpenOffice is installed as a non-root user and the same non-root user is
used to run the application server JVM and openoffice service.

-- 
Thanks & Regards,
--------------------------------------------
Ramakanta Sahoo
--------------------------------------------