"error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

Bug #1491174 reported by Paks Dm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BleachBit
Fix Released
High
Unassigned

Bug Description

see attached log file

Revision history for this message
Paks Dm (paksdm) wrote :
Revision history for this message
Andrew Ziem (ahziem1) wrote :

Paks Dm,

Thank you for the report. Do you see this with BleachBit 1.9.1?

https://sourceforge.net/projects/bleachbit/files/bleachbit/1.9.1alpha/

Changed in bleachbit:
milestone: none → 1.10
importance: Undecided → High
Revision history for this message
Andrew Ziem (ahziem1) wrote :

Paks Dm,

Have you had a chance to test with BleachBit version 1.9.1? Here is the download URL:

    https://sourceforge.net/projects/bleachbit/files/bleachbit/1.9.1alpha/

When you test, please do this to let me know whether you are running with administrator privileges
1. Click Help - System Information
2. Look for the line with "win32com.shell.shell.IsUserAnAdmin()"
3. Let me know whether it is True or False

--- Note to self---
The log is mostly these errors

Traceback (most recent call last):
  File "bleachbit\Windows.pyo", line 126, in csidl_to_environ
com_error: (-2147467259, 'Unspecified error', None, None)
Traceback (most recent call last):
  File "bleachbit\Worker.pyo", line 82, in execute
  File "bleachbit\Command.pyo", line 85, in execute
  File "bleachbit\Windows.pyo", line 139, in delete_locked_file

There are related reports on the forum, including
http://bleachbit.sourceforge.net/forum/5-movefileex-access-denied
http://bleachbit.sourceforge.net/forum/error-delete

Andrew Ziem (ahziem1)
summary: - excessive file delete msgs in window 7 and 10
+ "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file
Revision history for this message
Paks Dm (paksdm) wrote : Re: [Bug 1491174] Re: excessive file delete msgs in window 7 and 10

yes and sent you the log file as well - not fixed.
Paks

-----Original Message-----
From: Andrew Ziem
Sent: Friday, September 11, 2015 2:48 PM
To: <email address hidden>
Subject: [Bug 1491174] Re: excessive file delete msgs in window 7 and 10

Paks Dm,

Have you had a chance to test with BleachBit version 1.9.1? Here is the
download URL:

https://sourceforge.net/projects/bleachbit/files/bleachbit/1.9.1alpha/

When you test, please do this to let me know whether you are running with
administrator privileges
1. Click Help - System Information
2. Look for the line with "win32com.shell.shell.IsUserAnAdmin()"
3. Let me know whether it is True or False

--- Note to self---
The log is mostly these errors

Traceback (most recent call last):
  File "bleachbit\Windows.pyo", line 126, in csidl_to_environ
com_error: (-2147467259, 'Unspecified error', None, None)
Traceback (most recent call last):
  File "bleachbit\Worker.pyo", line 82, in execute
  File "bleachbit\Command.pyo", line 85, in execute
  File "bleachbit\Windows.pyo", line 139, in delete_locked_file

There are related reports on the forum, including
http://bleachbit.sourceforge.net/forum/5-movefileex-access-denied
http://bleachbit.sourceforge.net/forum/error-delete

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1491174

Title:
  excessive file delete msgs in window 7 and 10

Status in BleachBit:
  New

Bug description:
  see attached log file

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1491174/+subscriptions

Revision history for this message
Andrew Ziem (ahziem1) wrote :

When you test, please do this to let me know whether you are running with administrator privileges
1. Click Help - System Information
2. Look for the line with "win32com.shell.shell.IsUserAnAdmin()"
3. Let me know whether it is True or False

Revision history for this message
Paks Dm (paksdm) wrote : Re: [Bug 1491174] Re: "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

win32com.shell.shell.IsUserAnAdmin() = False

I have attached a screen shot of control panel > users that shows that my
userid is administrator

Ran BleachBit as administrator and attached the resulting log file.

Paks

-----Original Message-----
From: Andrew Ziem
Sent: Saturday, September 12, 2015 8:31 PM
To: <email address hidden>
Subject: [Bug 1491174] Re: "error: (5, 'MoveFileEx', 'Access is denied.')"
in delete_locked_file

When you test, please do this to let me know whether you are running with
administrator privileges
1. Click Help - System Information
2. Look for the line with "win32com.shell.shell.IsUserAnAdmin()"
3. Let me know whether it is True or False

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1491174

Title:
  "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

Status in BleachBit:
  New

Bug description:
  see attached log file

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1491174/+subscriptions

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Even when the user account has administrative privileges, Windows versions since Vista will not use the full privileges as a security precautions. When you start BleachBit you should see a prompt called the User Access Control (UAC). The UAC will look similar to this:

https://lh6.googleusercontent.com/-UJw5HRIY5Q4/UoWhya1zE6I/AAAAAAAADOk/E3zBkhxE4GE/s800/bleachbit-10-user-access-control-signed.png

If you answer YES to the UAC, then a few things will happen
1. This session of BleachBit will have administrative privileges
2. win32com.shell.shell.IsUserAnAdmin() should be True instead of False
3. You should not get this error: error: (5, 'MoveFileEx', 'Access is denied.')

If you answer NO, then the opposite of #1-#3 will happen

Please let me know
1. Whether you see the UAC
2. When you answer YES, if #1-#3 do not happen

Revision history for this message
Paks Dm (paksdm) wrote :

There is no UAC.
Paks

-----Original Message-----
From: Andrew Ziem
Sent: Sunday, September 13, 2015 1:41 PM
To: <email address hidden>
Subject: [Bug 1491174] Re: "error: (5, 'MoveFileEx', 'Access is denied.')"
in delete_locked_file

Even when the user account has administrative privileges, Windows
versions since Vista will not use the full privileges as a security
precautions. When you start BleachBit you should see a prompt called the
User Access Control (UAC). The UAC will look similar to this:

https://lh6.googleusercontent.com/-UJw5HRIY5Q4/UoWhya1zE6I/AAAAAAAADOk/E3zBkhxE4GE/s800/bleachbit-10
-user-access-control-signed.png

If you answer YES to the UAC, then a few things will happen
1. This session of BleachBit will have administrative privileges
2. win32com.shell.shell.IsUserAnAdmin() should be True instead of False
3. You should not get this error: error: (5, 'MoveFileEx', 'Access is
denied.')

If you answer NO, then the opposite of #1-#3 will happen

Please let me know
1. Whether you see the UAC
2. When you answer YES, if #1-#3 do not happen

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1491174

Title:
  "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

Status in BleachBit:
  New

Bug description:
  see attached log file

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1491174/+subscriptions

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Is the BleachBit executable (portable or installed) on a network drive, removable drive, or your C:\ ?

Revision history for this message
Paks Dm (paksdm) wrote :

It is on a hard drive local to the PC. "D:" (for data - as opposed to OS)
Paks

-----Original Message-----
From: Andrew Ziem
Sent: Monday, September 14, 2015 10:33 AM
To: <email address hidden>
Subject: [Bug 1491174] Re: "error: (5, 'MoveFileEx', 'Access is denied.')"
in delete_locked_file

Is the BleachBit executable (portable or installed) on a network drive,
removable drive, or your C:\ ?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1491174

Title:
  "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

Status in BleachBit:
  New

Bug description:
  see attached log file

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1491174/+subscriptions

Revision history for this message
Andrew Ziem (ahziem1) wrote :

When you do not see the User Access Control (UAC) dialog, are you running Windows 10?

By the way, git commit 7e1e0f6 will show the filename for this error. This may aid troubleshooting.

Revision history for this message
Paks Dm (paksdm) wrote :

-----Original Message-----
From: Andrew Ziem
Sent: Friday, November 27, 2015 1:10 PM
To: <email address hidden>
Subject: [Bug 1491174] Re: "error: (5, 'MoveFileEx', 'Access is denied.')" in delete_locked_file

When you do not see the User Access Control (UAC) dialog, are you
running Windows 10?
YES

By the way, git commit 7e1e0f6 will show the filename for this error.
This may aid troubleshooting.
Sorry – no idea what this means/how to do it

Revision history for this message
Andrew Ziem (ahziem1) wrote :

In bug#1496629 I fixed an error that Windows 10 never showed the UAC, so I think this will be fixed in the next release. Soon I hope to publish it for testing.

Changed in bleachbit:
status: New → Fix Committed
Revision history for this message
Andrew Ziem (ahziem1) wrote :

Please test the fix in BleachBit 1.9.2 beta
http://bleachbit.sourceforge.net/news/bleachbit-192-beta

And please feel free to add a comment to this bug ticket whether the new release fixes the reported issue. If you notice new issues, please open a new bug ticket for each issue.

Changed in bleachbit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.