Locked for editing. Unknown user.

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

Locked for editing. Unknown user.

Postby judylawson5 » Sun Nov 19, 2017 9:57 am

Hi,
Since the last upgrade, word files in my folders in Documents are locked for editing. If I move the file to the desktop, it will open without fuss. As soon as it is moved back to the folder in documents, it is locked for editing again. It must be a folder problem, not a file problem. Can someone help please?
OpenOffice 4.1.2 on Windows 10
judylawson5
 
Posts: 7
Joined: Wed Mar 22, 2017 8:12 am

Re: Locked for editing. Unknown user.

Postby RoryOF » Sun Nov 19, 2017 10:43 am

Enable "viewing of hidden and archive files" at system level. Then, with OpenOffice closed, look in the original directory in which the file was stored and delete any .~lock files.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25489
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for editing. Unknown user.

Postby judylawson5 » Sun Nov 19, 2017 12:16 pm

Thanks for your information. When I right click on the properties of the file there are only 2 alternatives read only and hidden, but both boxes are clear. As I suspected the problem might be with the folder itself I did the same and the read only box was selected ,so I cleared that, restarted the computer but the problem was not fixed and the read only box in the folder properties was shaded again.

Have you another suggestion please?
OpenOffice 4.1.2 on Windows 10
judylawson5
 
Posts: 7
Joined: Wed Mar 22, 2017 8:12 am

Re: Locked for editing. Unknown user.

Postby RoryOF » Sun Nov 19, 2017 2:41 pm

With viewing of hidden and archive files enabled, you need to delete files with a name like
Code: Select all   Expand viewCollapse view
.~lock.MyFile.odt#


This is nothing to do with the original file being marked read-only.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25489
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for editing. Unknown user.

Postby judylawson5 » Sat Nov 25, 2017 3:49 am

Thanks again for your help. The only time I get .~lock.MyFile.odt# is when I have a file open. As soon as it is closed the greyed locked file disappears. I get this when the file opens correctly and when the file opens as read only. So I set up a dummy file, (wasn't game to delete the locked file of an important file) kept it open, deleted the locked file, than closed it. Now all the files in that folder are working properly.!!!!!

Was it supposed to happen like this??
OpenOffice 4.1.2 on Windows 10
judylawson5
 
Posts: 7
Joined: Wed Mar 22, 2017 8:12 am

Re: Locked for editing. Unknown user.

Postby RoryOF » Sat Nov 25, 2017 11:05 am

Normally the lock file is created when OpenOffice opens the file for editing and s automatically deleted when the file is correctly closed. If for some reason the file is not correctly closed, or the closure process is interrupted, perhaps by a program or computer crash, the lock file is left. On next opening this file OpenOffice thinks it is being edited and will open it read-only. If a lock file is found, _with OpenOffice closed_ such files may safely be deleted. Typically such files are a few hundred bytes in size, whereas the OO file that "owns" them will be at least 6 kB.

If one regularly finds such lock files, it may be appropriate to re-consider one's method of closing the files and/or OpenOffice/the computer.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25489
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for editing. Unknown user.

Postby judylawson5 » Sun Nov 26, 2017 2:58 am

Thanks. I am sorry that this problems is not getting fixed - it is happening in another odt folder . I think I am opening the files properly - I go to documents, open the folder, get a list of files in that folder and pick the one I want to open. Pretty sure this open happened since the last update. So if the file does this I move them to the desktop so that I can save the editing. Opening on the desktop is not a problem. If I put that file back in the folder in documents - there is a problem. Maybe I shall transfer them to the folder that seems to be working OK and see what happens.
OpenOffice 4.1.2 on Windows 10
judylawson5
 
Posts: 7
Joined: Wed Mar 22, 2017 8:12 am

Re: Locked for editing. Unknown user.

Postby Villeroy » Sun Nov 26, 2017 3:19 am

Some obscure "anti virus" corrupting the system? https://forum.openoffice.org/en/forum/v ... 20#p431616
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 24652
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Locked for editing. Unknown user.

Postby judylawson5 » Sun Nov 26, 2017 4:03 am

These solutions are not helping. I shall explain again. In a folder X, stored in documents, I try to open one of the odt files. It tells me it is locked for editing by an unknown user. I can open a read only copy - but I can't save any editing changes. So if instead of opening it, I transfer the file to the desktop - it opens properly - no trouble. If I then close it and put it back into the folder that is in Documents, it will not open properly. How do I fix this?

Further, When I click on the Document folder and click on properties in the folder, read only is checked. If I uncheck this - it does ask for administrator permission, but then finishes the job. Check again, and it is right. Go into the list of documents stored in the document folder and the properties on these folders have the read only checked, I click to uncheck them and it goes through the process, but at the end of it the file is still read only.
OpenOffice 4.1.2 on Windows 10
judylawson5
 
Posts: 7
Joined: Wed Mar 22, 2017 8:12 am

Re: Locked for editing. Unknown user.

Postby RoryOF » Sun Nov 26, 2017 8:26 am

With OpenOffice closed, In the Document folder enable viewing of hidden and archive files and delete any lock files. I cannot tell you with any exactitude how to do this as I haven't used Windows in years. That your file opens correctly on your Desktop and not in Documents folder is an almost certain indication that there is a lock file left in the Documents folder.

With OpenOffice closed access the OO user profile. As you are using Windows do this by:

Close OpenOffice and the Quickstarter. Open File Explorer. Copy and paste %appdata%\OpenOffice\4 in the File Explorer Address Bar (sometimes called Windows Explorer address bar) and press Enter. Check that no lock file is shown beside or in the User folder (again, you need to enable viewing of hidden and archive files). If there is such a lock file, delete it.

Alternately, don't do anything of the above. Open a new file and Save As with a new name. In that file, /Insert /From File : old file, and Save New.odt file. Check that all your content is there, then edit to your heart's content - it would be good to check that you can Save and reopen correctly after a simple edit before doing any serious work. If this new file works correctly you could delete the old file but because of a lock file you cannot use old file name ever until old file's lock file is found and deleted.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25489
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Locked for editing. Unknown user.

Postby Bill » Sun Nov 26, 2017 1:02 pm

judylawson5 wrote:These solutions are not helping. I shall explain again. In a folder X, stored in documents, I try to open one of the odt files. It tells me it is locked for editing by an unknown user. I can open a read only copy - but I can't save any editing changes. So if instead of opening it, I transfer the file to the desktop - it opens properly - no trouble. If I then close it and put it back into the folder that is in Documents, it will not open properly. How do I fix this?

If there is no lock file for the file in the Documents folder, then something on your computer is blocking OpenOffice from writing to your Documents folder. You have to find out what is blocking OpenOffice and change the settings of that something to allow OpenOffice to save documents in the folder. Another user recently reported that Bitdefender was blocking OpenOffice and had to change some setting to "Allow". If you have Bitdefender or some other program providing anti-ransomware protection, then that's the place to start looking.

judylawson5 wrote:Further, When I click on the Document folder and click on properties in the folder, read only is checked. If I uncheck this - it does ask for administrator permission, but then finishes the job. Check again, and it is right. Go into the list of documents stored in the document folder and the properties on these folders have the read only checked, I click to uncheck them and it goes through the process, but at the end of it the file is still read only.

When the properties dialog of a folder is first opened, the "Read only" box should be filled, not checked. The filled box indicates that the user hasn't checked or unchecked the box. There should be a check mark in the box only if the user has manually clicked the box to display a check mark. Checking that box sets the Read only attribute for all documents in the folder. Unchecking the box unsets the Read only attribute for all documents in the folder.
AOO 4.1.4 on 64-bit Windows 10 and Manjaro Linux
Bill
Volunteer
 
Posts: 6379
Joined: Sat Nov 24, 2007 6:48 am

Re: Locked for editing. Unknown user.

Postby robleyd » Mon Nov 27, 2017 8:03 am

Another user reported that Windows Defender Controlled Folder Access was preventing access to OpenOffice files - see this post for more information. Not exactly the same situation, but it may be useful.
Cheers
David
Apache OpenOffice 4.1.4 - Windows 7
Apache OpenOffice 4.1.4 - Slackware 14.2 - 64 bit
User avatar
robleyd
Moderator
 
Posts: 1080
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: maharg and 10 guests