Koozali.org: home of the SME Server

Files on server lock or aren't released after use

Offline weblance

  • ****
  • 95
  • +0/-0
Files on server lock or aren't released after use
« on: August 09, 2011, 02:08:45 PM »
Hi,

I'm experiencing some issues with some files on my server. The files are some Excel files opened from workstations on the network. The problem is that the aren't released when closed so that others can edit them afterwards. For example: I open an Excel file on the server from my desktop pc, edit the file and close it. Then another user opens the same file, but get the message that the file is locked from editing by me.

The problems is on and off. Sometimes it doesn't occur a whole day and sometimes it occurs several times a day. The problem is solved if I reboot the computer.

/Carl

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Files on server lock or aren't released after use
« Reply #1 on: August 09, 2011, 02:36:24 PM »
the problem is, IMHO, excel :-)

Offline weblance

  • ****
  • 95
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #2 on: August 09, 2011, 02:40:38 PM »
the problem is, IMHO, excel :-)

You're probably right! But any ideas how to solve this? It's happened a lot lately :(

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Files on server lock or aren't released after use
« Reply #3 on: August 09, 2011, 02:52:24 PM »
try to use OpenOffice just for a test..

Offline piran

  • *****
  • 502
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #4 on: August 09, 2011, 03:51:40 PM »
Then another user opens the same file, but get the message that the file is locked from editing by me.
Your temp/cache stuff is holding on too long?
So, restart Excel and/or open a different doc to
precipitate the dropping of any aged file locking.
Used to happen in the old days... presumably it
still does or you've still got the old stuff running.
(I haven't used Excel in well over a decade)

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Files on server lock or aren't released after use
« Reply #5 on: August 10, 2011, 02:22:25 PM »

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #6 on: August 10, 2011, 08:00:25 PM »
OP has omitted mentioning changes to SME server and/or network ... did this start occurring after a big SME update, or perhaps an "upgrade" to the network's Excel version(s)?  New antivirus?  New Windows OS?  What changed?
...

Offline weblance

  • ****
  • 95
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #7 on: August 10, 2011, 10:53:32 PM »
OP has omitted mentioning changes to SME server and/or network ... did this start occurring after a big SME update, or perhaps an "upgrade" to the network's Excel version(s)?  New antivirus?  New Windows OS?  What changed?

There has not been any changes to the server, network, Excel, antivirus, OS or other things that can/will affect the system. I'm a little afraid that there might be something wrong with the server hardware, but I can't see what it would be.

Is it possible for Linux to build up a cache that isn't automatically cleaned and will create somekind of buffer overrun?

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #8 on: August 14, 2011, 02:53:38 AM »
i agree with that it is probably an oplocks issue

on all my data servers, i did this

Create a directory on the sme server name "/etc/e-smith/templates-custom/etc/smb.conf/"

use the command below
mkdir /etc/e-smith/templates-custom/etc/smb.conf/

Create a file named "11oplocks" in the directory above and place the single line below on line 2, leaving lines 1 and 3 blank.
Code: [Select]
veto oplock files = /*.EXE/*.JCL/FS??A.III/AM??M.III/FS??C.III/FS??L.CCC/FS??PY.CCC/FS??RB.CCC/FS??MO.CCC/FS??PP.CCC/FS??WK.CCC/FS??Q.CCC/FS??MA.CCC/AP*.CCC/AM*.CCC/PD*.CCC/PR*.CCC/FS??CK?.CCC/FS??MS.CCC/FS??MC.CCC/FS??UR.CCC/*.WPD/*.123/*.DOC/*.SEC/



« Last Edit: August 14, 2011, 02:56:11 AM by purvis »

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #9 on: August 23, 2011, 06:52:15 AM »
Had a similar problem today on a server running a dedicated software package (SAM) that uses some database method (uses TPS extension files). Anyway, this has happened once before on this site - when users go to backup the software using that packages's utility, it says 'access denied - make sure all users are logged out' which they are, and the software reports no active users. I rang their support helpline and they said reboot the server. I never found out which file was locked, other than perhaps trial and error on 170 files - no thanks. I did arrange to reboot the server during lunchtime, and this fixed it, but I would like to know if I can find the offending 'open' file and be able to close it, like the M$ one in server 2003.

Offline mdo

  • *
  • 355
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #10 on: August 23, 2011, 10:55:16 AM »
Have a look at the Samba command line tool 'smbstatus' to find out what users are active and especially, what files are in use by what user.
...

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Files on server lock or aren't released after use
« Reply #11 on: August 23, 2011, 11:19:04 AM »
Brilliant. That's exactly what I need.