browsertime icon indicating copy to clipboard operation
browsertime copied to clipboard

EBUSY error on Windows using '--firefox.collectMozLog'

Open bthrall opened this issue 3 years ago • 2 comments

Have you read the documentation?

URL

https://www.reddit.com

What are you trying to accomplish

I am trying to capture Firefox logs so I can debug my performance test, but when I do, Browsertime fails on Windows with 'EBUSY' while trying to rename the Firefox log files.

Because Browsertime is failing to move the log file, the entire run fails and I get no results in browsertime.json.

Removing the --firefox.collectMozLog option avoids the problem, but I also don't get logs from Firefox.

Browsertime version is 16.0.1

What browser did you use?

Firefox

How to reproduce

browsertime -b firefox --firefox.collectMozLog --firefox.setMozLog "ScriptLoader:5" -n 1 https://www.reddit.com

Relevant log output

[2022-04-13 10:14:25] INFO: Running tests using Firefox - 1 iteration(s)
[2022-04-13 10:14:28] INFO: Testing url https://www.reddit.com iteration 1
[2022-04-13 10:14:41] ERROR: Error: EBUSY: resource busy or locked, rename 'C:\Users\Bryan Thrall\Documents\performance\browsertime-results\www.reddit.com\2022-04-13T101425-0500\moz_log.txt.child-1.moz_log' -> 'C:\Users\Bryan Thrall\Documents\performance\browsertime-results\www.reddit.com\2022-04-13T101425-0500\pages\www_reddit_com\data\moz_log.txt.child-1.moz_log-1.txt''
[2022-04-13 10:14:41] INFO: https://www.reddit.com
[2022-04-13 10:14:41] INFO: Wrote data to browsertime-results\www.reddit.com\2022-04-13T101425-0500

bthrall avatar Apr 13 '22 15:04 bthrall

Hi @bthrall thanks for creating the issue! I pushed a test if the Windows GitHub action to check if I can reproduce it.

soulgalore avatar Apr 13 '22 18:04 soulgalore

Yep I got the same. I think we rename those file when Firefox is still running, I'll make a PR to fix that early next week.

soulgalore avatar Apr 13 '22 19:04 soulgalore

I think this has been fixed.

soulgalore avatar Dec 17 '23 07:12 soulgalore