Locked for Editing fixes don't work

Discuss setup / installation issues - Add a spell checker, Language pack?

Locked for Editing fixes don't work

Postby jjpackard56 » Tue Jan 29, 2019 4:09 am

I have searched and read and tried several posts and solutions in this forum to overcome my "Locked for editing" problem, to no avail. This happens on several of my documents (all created by me, on my own laptop), even with documents I was able to edit in the past. I run on Windows 10 Home. I've gone into the directory depths to delete any files in "(C:)/Users/xxxxx/App Data/Roaming/OpenOffice/4" that were recommended for deletion. I've tried renaming OpenOffice (suggested in another forum). I also downloaded the OpenOffice update; same problem in OpenOffice 4.1.6 as in the previous version. I'm a home user, not a techie, but I'm not stupid. I just want to be able to reliably open AND EDIT my own darn files. If no one has any suggestions beyond "those files are irreparably corrupted," I'm switching to LibreOffice. Any suggestions? :?
Attachments
Screenshot (27).png
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby thomasjk » Tue Jan 29, 2019 5:42 am

You most likely have leftover ~lock.filename temporary files. Look for them in the same directory where you normally save your files. Delete them and it should solve your problem. These files sometime get left behind if there is a crash. Normally they are deleted when the file is closed properly.
Tom K.
Windows 10 Home version 1803 17134.165
LibreOffice 5.4.7.2
thomasjk
Volunteer
 
Posts: 4395
Joined: Tue Dec 25, 2007 4:52 pm
Location: North Carolina

Re: Locked for Editing fixes don't work

Postby FJCC » Tue Jan 29, 2019 5:44 am

I expect you files are seen as Locked for Editing because the .~lock files have not been properly deleted when OpenOffice closed. First shutdown OpenOffice. Go to the folder where your files are stored. Click on the View menu at the top of the window and in the Show/Hide region select the Hidden Items box. The image below shows how this looks in my Documents folder.

HiddenFiles.JPG


Now look in the folder for files whose name starts with .~lock. Delete these files. These files should be automatically deleted when you close a document but they may not be if there is a system or application crash. If the problem reappears, we will have to figure out the root cause.
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 7127
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Thu Jan 31, 2019 4:03 am

Screenshot (28) - Copy.png
Looked for .~lock files already, before I downloaded 4.1.6. Found one such file (with .~lock) and deleted it. Rebooted, downloaded update, etc.; still same problem. Checked again just now, via the path I'd been given before: C/Users/[my user name]/AppData/Roaming/OpenOffice/4/user/backup. Found no more .~lock files. So I went back and searched the C drive for .~lock, and got a long list, not with .~lock in the file name, but with LOCK above each file name (see screen shot, and full name of first file, where I hovered the cursor); I don't think this has anything to do with .~lock, but what do I know. Further ideas?
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby RusselB » Thu Jan 31, 2019 4:51 am

Those LOCK files shown in your screenshot are the names of the files.
What do you get if you do a search for .~lock.*
That should force Windows to show just the files that have ~lock at the beginning of the file name, rather than showing all files with lock in the name
Please note that `lock files can be in any directory that a file was opened from.
OpenOffice 4.1.6 and LibreOffice 6.0.6.2 on Windows 7 Pro & Ultimate
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
RusselB
Volunteer
 
Posts: 5006
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Locked for Editing fixes don't work

Postby RoryOF » Thu Jan 31, 2019 11:02 am

Note that the Forum software tweaks the coding of lock files. The lock file for tom.odt is actually

Code: Select all   Expand viewCollapse view
.~lock.tom.odt#


Note the tilde instead of a dash. To see such files one needs to enable viewing of hidden and archive files. How this is done varies according to your operating system
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Thu Jan 31, 2019 7:02 pm

Screenshot (29).png
Searched as suggested by RusselB for .~lock.* and got only 6 files, but they're all .png files, nothing in OpenOffice (see screen shot). No clue what these are, as hovering gives me no full file name, and clicking on one gives me basically a blank screen (this forum's format won't let me add a second screen shot). In any case, no progress on "locked for editing" issue on OpenOffice files. RoryOF -- did not receive your full post.
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby RoryOF » Thu Jan 31, 2019 7:06 pm

Note that the Forum software tweaks the coding of lock files. The lock file for tom.odt is actually

Code: Select all   Expand viewCollapse view
.~lock.tom.odt#


Note the tilde instead of a dash. To see such files one needs to enable viewing of hidden and archive files. How this is done varies according to your operating system.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Thu Jan 31, 2019 8:17 pm

Screenshot (31).png
Thanks, RoryOF, but I now get this (did note the tilde from the outset of this process).
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby RoryOF » Thu Jan 31, 2019 8:20 pm

Of course you get nothing found - you most probably have no file tom.odt on your computer. I suggest you search for
Code: Select all   Expand viewCollapse view
.~lock.


This should catch any lock files from OpenOffice.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Fri Feb 01, 2019 12:02 am

Already checked for .~lock. No joy.
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby RoryOF » Fri Feb 01, 2019 12:06 am

In the root of your OpenOffice user profile there may be a file .lock (exactly so, nothing else); this can be left after a program crash or an over-hasty shut down of OO. If there is such a file, delete it.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Fri Feb 01, 2019 12:15 am

"In the root of your OpenOffice user profile" is Greek to me, RoryOF. Is there some way I should be getting at that other than: C/Users/[my user name]/AppData/Roaming/OpenOffice/4/user/backup ??
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby RoryOF » Fri Feb 01, 2019 12:23 am

A .lock file may live in the folder under the 4, that is, beside the user folder in the path you quote.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Fri Feb 01, 2019 12:32 am

Screenshot (32).png
Nothing else here....
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby robleyd » Fri Feb 01, 2019 12:40 am

Look in 4 as RoryOF suggested
Cheers
David
Apache OpenOffice 4.2.0 Build 9820 alpha version - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 2629
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Fri Feb 01, 2019 7:48 am

Screenshot (33).png
Nothing else in 4 (see prior screenshot), nothing else in user (see this screenshot).
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby robleyd » Fri Feb 01, 2019 10:03 am

Just so you know for future reference - the last screenshot above is the contents of

C:\Users\Jennifer\AppData\Roaming\OpenOffice\4

and shows no lock file; however it is not clear whether you have enabled viewing of hidden files in Windows Explorer. If that is not enabled, the file will not be seen notwithstanding that it may exist.
Cheers
David
Apache OpenOffice 4.2.0 Build 9820 alpha version - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 2629
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Locked for Editing fixes don't work

Postby Bill » Fri Feb 01, 2019 4:34 pm

The error message says that the document is locked for editing by "Unknown User". Bitdefender Ransomware protection has been reported to cause this message. If a lock file is causing the problem, then the user name should be displayed.
AOO 4.1.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7191
Joined: Sat Nov 24, 2007 6:48 am

Re: Locked for Editing fixes don't work

Postby FJCC » Fri Feb 01, 2019 4:47 pm

Why is the OP looking for lock files in the user profile folder path, C:\Users\Jennifer\AppData\Roaming\OpenOffice\4? The lock file will be in the folder containing the document, probably the Documents folder or one of its sub folders.
It is possible for a document to be in the backup folder of the user profile, but I don't see any evidence that is what the OP is dealing with.
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 7127
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Locked for Editing fixes don't work

Postby RoryOF » Fri Feb 01, 2019 5:03 pm

There can be a lock file, of form .lock (exactly that) beside the user folder of the OO User profile; I don't know what it does - it has slightly different content to the standard lock file in the file directory. I have seen where this .lock file was left after an improper close of OO. As the OP is having such problems finding the reason for files not being editable, I directed her to look for this file also.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28742
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for Editing fixes don't work

Postby Bill » Fri Feb 01, 2019 9:00 pm

A lock file in the user profile should produce a different message similar to "user settings are locked".

There is another report that Avast Ransomware Shield can cause the "unknown user" error message.
AOO 4.1.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7191
Joined: Sat Nov 24, 2007 6:48 am

Re: Locked for Editing fixes don't work

Postby jjpackard56 » Fri Feb 01, 2019 10:57 pm

To answer several comments: as far as I know, I have enabled search for Hidden Files; have searched the entire C drive for .lock (and .~lock. , and .~lock.*), and have looked in all my folders in which I may have saved an OpenOffice document in the past year and a half (when I first started using OO) for any variation of "lock." One of you suggested a bug emanating from Avast Ransomware Shield; I do use Avast, so does anyone have a suggestion on fixing Avast's interference? LibreOffice looking better and better; anyone use that?
OpenOffice 4.1.5 on Windows 10 Home
jjpackard56
 
Posts: 9
Joined: Tue Jan 29, 2019 2:57 am

Re: Locked for Editing fixes don't work

Postby Bill » Sat Feb 02, 2019 1:22 am

It's probably not a bug in Ransomware Shield. The user has to configure Ransomware Shield. A Google search for Avast Ransomware Shield found these instructions:

Ransomware Shield - Getting Started
AOO 4.1.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7191
Joined: Sat Nov 24, 2007 6:48 am


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: No registered users and 5 guests