Ticket #1710 (closed support-request: worksforme)
exceptions.WindowsError: [Error 145] The directory is not empty:
| Reported by: | acamargo | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | undecided |
| Version: | 0.8.2 | Keywords: | windows |
| Cc: |
Description
Dear group:
There is something estrange when I use a buildslave on Windows XP. Sometimes I can use it without problems and sometimes I am getting this error:
exceptions.WindowsError?: [Error 145] The directory is not empty: 'C:\projects\buildbot_slave_WinXP\builds/rop/test1\nmk'
Change History
comment:2 in reply to: ↑ 1 Changed 2 years ago by acamargo
Replying to dustin: Thanks for the answer. But, I guess is some problem with buildbot, because I run the same on Linux and I don't have that problem.
It sounds like some part of your build or test infrastructure is still running when the buildslave tries to clean up the build directory. Can you add some extra configuration to make the buildstep wait until everything has exited?
comment:3 follow-up: ↓ 4 Changed 2 years ago by dustin
Right, on Linux there's no problem with deleting a directory containing open files. Only Windows has that particular problem. So it's Windows being overly sensitive to timing problems in your tests.
comment:4 in reply to: ↑ 3 Changed 2 years ago by acamargo
Replying to dustin: Hi Dustin? How can I add delay on Windows?
Right, on Linux there's no problem with deleting a directory containing open files. Only Windows has that particular problem. So it's Windows being overly sensitive to timing problems in your tests.
comment:5 Changed 2 years ago by dustin
- Status changed from new to closed
- Resolution set to worksforme
I have no idea what you're testing, so I really can't help with that..
comment:6 Changed 2 years ago by dustin
I don't mean to close this to be mean, and there certainly may be others who can help you out. But this isn't a Buildbot problem, and I'm not a Windows programmer so I can't give you any advice on how to fix the tests.
comment:7 Changed 13 months ago by gerald
Sorry for adding to this 1.5 years after the fact but I'm seeing this issue on one of our Windows machines. I haven't completely solved it but I suspect it has something to do with the way Cygwin implements unlink(): http://cygwin.com/ml/cygwin/2010-12/msg00215.html
@acamargo If you're still having this problem you might make sure you don't have a virus scanner (e.g. MSSE) or similar software opening files in the directory you're trying to delete. You might also want to make sure your Buildbot user (assuming you created such a user) has proper access to the recycle bin.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
It sounds like some part of your build or test infrastructure is still running when the buildslave tries to clean up the build directory. Can you add some extra configuration to make the buildstep wait until everything has exited?