[MDBF-252] Windows bug in buildbot: Access to the path '*.exe' is denied. Created: 2021-07-09  Updated: 2022-02-05  Resolved: 2022-02-05

Status: Closed
Project: MariaDB Foundation Development
Component/s: None
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Anel Husakovic Assignee: Vlad Bogolin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

New buildbot has a windows bug:

Remove-Item : Cannot remove item D:\Buildbot\amd64-windows-packages\build\client\RelWithDebInfo\mariadb-test.exe:
Access to the path 'mariadb-test.exe' is denied.
At line:1 char:1
+ Remove-Item $pwd\* -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (mariadb-test.exe:FileInfo) [Remove-Item], UnauthorizedAccessException
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item D:\Buildbot\amd64-windows-packages\build\client\RelWithDebInfo\mysqltest.exe: Access
to the path 'mysqltest.exe' is denied.
At line:1 char:1
+ Remove-Item $pwd\* -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (mysqltest.exe:FileInfo) [Remove-Item], UnauthorizedAccessException
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item D:\Buildbot\amd64-windows-packages\build\client\RelWithDebInfo: The directory is not
empty.
At line:1 char:1
+ Remove-Item $pwd\* -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (RelWithDebInfo:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item D:\Buildbot\amd64-windows-packages\build\client: The directory is not empty.
At line:1 char:1
+ Remove-Item $pwd\* -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (D:\Buildbot\amd...es\build\client:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
dojob: spawn returned error 1



 Comments   
Comment by Vlad Bogolin [ 2021-08-31 ]

This should be solved now

Comment by Anel Husakovic [ 2021-08-31 ]

vladbogo thanks. Since there is no code, to see the effect of change, can you for this and other buildbot related issues explain what it was and what was the fix (pointing the commit if it exists) please?
This way we can have some history related to the problems what was the root cause and how is solved.

Comment by Vlad Bogolin [ 2021-09-01 ]

The problem consisted in having a mysqltest process still running from a previous run. Ensuring that such potential processes are killed before starting a new run solves the issue.

Comment by Anel Husakovic [ 2022-02-05 ]

vladbogo can you put the commit that solved this issue and/or comment about ?

Comment by Vlad Bogolin [ 2022-02-05 ]

anel sorry for the spam. I had some issues with Jira where most of my tasks were "Unresolved" even though they were "Closed". So, I just "Reopened" and "Closed" them to fix this issue. The issue and the fix is described in my last comment.

Generated at Thu Feb 08 03:36:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.