Bug 157497 - can't open files since updated to 7.5.7.1: "this file has been locked by another user" (Avast / AVG)
Summary: can't open files since updated to 7.5.7.1: "this file has been locked by anot...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.7.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 157499 157506 157545 157578 157609 157619 157622 157835 157953 (view as bug list)
Depends on:
Blocks: File-Opening
  Show dependency treegraph
 
Reported: 2023-09-28 21:15 UTC by Frank
Modified: 2023-12-13 16:15 UTC (History)
12 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank 2023-09-28 21:15:01 UTC
Description:
when I click on a file to open get document in use file has been locked by another user open R/O or open copy. If I open a copy and save it the next time, I try opening it get same document in use message

Steps to Reproduce:
1.open any file
2.
3.

Actual Results:
try open any file.

Expected Results:
need to open files and be able to save files as needed


Reproducible: Always


User Profile Reset: Yes

Additional Info:
open files without issue
Comment 1 m_a_riosv 2023-09-30 01:35:05 UTC
Verify it's possible to delete files in such directory.
Maybe the lock file always created when open a file, it is not properly removed when close the file.
Comment 2 m_a_riosv 2023-09-30 01:36:30 UTC
*** Bug 157499 has been marked as a duplicate of this bug. ***
Comment 3 Julien Nabet 2023-10-02 07:50:42 UTC
For the test, could you:
- create a brand new file with just "test" in it
- save and close it
- reopen it and try to modify and save it again?

On which Windows version are you?
Do you have some specific antivirus (I mean not Windows Defender)?
if yes, could you disable it just some minutes to try again to modify your files?
Comment 4 Julien Nabet 2023-10-07 11:08:10 UTC
*** Bug 157609 has been marked as a duplicate of this bug. ***
Comment 5 Julien Nabet 2023-10-07 11:10:43 UTC
Considering tdf#157506 and tdf#157545 put in See Also, it would be really useful to have feedback about antivirus part.
So could you try to disable the antivirus just the time to do the test?
Comment 6 Frank 2023-10-09 00:52:59 UTC
all files in documents for libreOffice can only be opened read only. If you move or copy files to another folder then will open normally. If you copy or move file back it will only open read only. If you create new file and save it in documents folder then will only open read only. If you save it to a different folder will open normally. If you create a new document and save it in documents it will open normally. It seems only previously created documents will only open read only in document folder. If you copy data to new document and then save it to document folder then will open normaly.
Comment 7 QA Administrators 2023-10-09 03:15:01 UTC Comment hidden (obsolete)
Comment 8 Julien Nabet 2023-10-09 06:37:02 UTC
Franck: you didn't respond concerning antivirus part.
Comment 9 Frank 2023-10-10 05:30:03 UTC
same with antivirus on or off
Comment 10 Julien Nabet 2023-10-10 05:39:23 UTC
Thank you for the feedback.
Comment 11 Stéphane Guillou (stragu) 2023-10-16 15:41:12 UTC
*** Bug 157622 has been marked as a duplicate of this bug. ***
Comment 12 Stéphane Guillou (stragu) 2023-10-16 15:41:18 UTC
*** Bug 157619 has been marked as a duplicate of this bug. ***
Comment 13 Stéphane Guillou (stragu) 2023-10-16 15:42:41 UTC
Setting as "new", seeing the duplicates, and that turning the antivirus off does not fix it.
Comment 14 Stéphane Guillou (stragu) 2023-10-16 15:44:34 UTC
*** Bug 157578 has been marked as a duplicate of this bug. ***
Comment 15 Stéphane Guillou (stragu) 2023-10-16 15:57:36 UTC
Can everyone affected here check that they don't have AVG/Avast interfering with LibreOffice?
Frank, which antivirus did you turn off? Do you have maybe several tools installed? No AVG?

See also:
- https://ask.libreoffice.org/t/when-trying-to-open-some-files-i-get-error-access-denied-or-this-file-has-been-locked-by-another-user/97072
- https://ask.libreoffice.org/t/problem-opening-saved-docs-following-recent-upgrade/96972

Thank you!
Comment 16 Frank 2023-10-16 19:03:04 UTC
avg is affecting the files. after restarting and updating computer turned avg off and all files previously affected opened. When I turn avg back on files in document folder become read only. files not in document folder open normally.
Comment 17 Stéphane Guillou (stragu) 2023-10-16 20:17:34 UTC
Thanks for checking, Frank. I'll close as "Not our bug" then, and consolidate with other similar reports. Something to report to AVG somehow.

Others copied in, please let us know if the issue is not actually related to AVG (Other antivirus, or other problem entirely). Thanks!
Comment 18 Stéphane Guillou (stragu) 2023-10-16 20:20:56 UTC
*** Bug 157506 has been marked as a duplicate of this bug. ***
Comment 19 Stéphane Guillou (stragu) 2023-10-16 20:22:20 UTC
*** Bug 157545 has been marked as a duplicate of this bug. ***
Comment 20 Julien Nabet 2023-10-16 20:24:49 UTC
(In reply to Stéphane Guillou (stragu) from comment #17)
> Thanks for checking, Frank. I'll close as "Not our bug" then, and
> consolidate with other similar reports. Something to report to AVG somehow.
> 
> Others copied in, please let us know if the issue is not actually related to
> AVG (Other antivirus, or other problem entirely). Thanks!

AVG antivirus comes from AVG Technologies, https://en.wikipedia.org/wiki/AVG_Technologies indicates:
"Fate	Merged into Avast, brand still used"

So for the moment, one antivirus impacted so could be indeed an Avast/AVG pb.

Hope no other antivirus (not related to Avast/AVG) impacted since it would mean it could finally be an LO pb.
Comment 21 Frank 2023-10-17 19:11:45 UTC
FYI have contacted AVG and am now working with them to troubleshoot cause and so they can fix issue
Comment 22 Stéphane Guillou (stragu) 2023-10-27 20:16:35 UTC
*** Bug 157835 has been marked as a duplicate of this bug. ***
Comment 23 Stéphane Guillou (stragu) 2023-10-27 20:18:24 UTC
*** Bug 157953 has been marked as a duplicate of this bug. ***
Comment 24 Stéphane Guillou (stragu) 2023-10-27 20:25:15 UTC
Maybe Avast users can report LibreOffice as a false positive with this form: https://www.avast.com/false-positive-file-form.php#pc