org.openqa.selenium.WebDriverException: Cannot create temp directory

1,925 views
Skip to first unread message

Sudhanshu Arjunwar

unread,
Sep 8, 2015, 7:58:39 AM9/8/15
to Selenium Users

I am trying to execute on Grid configuration by using Remote Webdriver but my test cases are not executing and throwing below error, same test case were working as expected till yesterday.


org.openqa.selenium.WebDriverException: Cannot create temp directory: C:\Users\qgrid.gen\AppData\Local\Temp\2\3e493aa5-27e0-4c02-8848-91c032882eef


Please help me on this.

Slavik Fursov

unread,
May 20, 2016, 1:13:46 AM5/20/16
to Selenium Users
I have this exception, when my disk was full.
For some reason, I have few thousand folders in:

C:\Users\sadmin\AppData\Local\Temp\

⇜Krishnan Mahadevan⇝

unread,
May 20, 2016, 2:35:21 AM5/20/16
to Selenium Users
What version of Selenium are you working with ?
Can you please help add more context ? [ Am guessing that you must be working with Firefox automation ]

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d7e342cb-a372-4506-8f44-2560fedaf829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slavik Fursov

unread,
May 20, 2016, 1:50:20 PM5/20/16
to Selenium Users
>> What version of Selenium are you working with ?
>> Can you please help add more context ? [ Am guessing that you must be working with Firefox automation ]

Selenium Grid 2.51.0
- Hub on Ubuntu 14.04
- Nodes are Win8.1 systems
- Firefox 44

Script running org.seleniumhq.selenium:selenium-java:2.45.0

>dir C:\Users\sadmin\AppData\Local\Temp\
20/05/2016  10:04    <DIR>          webdriver9129238222514818414duplicated
20/05/2016  10:04    <DIR>          webdriver9129125124478287787duplicated
20/05/2016  10:04    <DIR>          webdriver9128586371826051119duplicated
20/05/2016  10:04    <DIR>          webdriver912799813584407614duplicated
20/05/2016  10:04    <DIR>          webdriver9121008256015158442duplicated
20/05/2016  10:04    <DIR>          webdriver9120132625482783920duplicated
20/05/2016  10:04    <DIR>          webdriver9117463352141053593duplicated
20/05/2016  10:04    <DIR>          webdriver9116260784300205172duplicated
20/05/2016  10:04    <DIR>          webdriver9116192311537483073duplicated

Slavik Fursov

unread,
May 20, 2016, 2:52:55 PM5/20/16
to Selenium Users

Slavik Fursov

unread,
May 20, 2016, 3:23:41 PM5/20/16
to Selenium Users

⇜Krishnan Mahadevan⇝

unread,
May 22, 2016, 11:36:25 PM5/22/16
to Selenium Users
Slavik,
The issue that you pointed out to was a memory leak. I remember it very well because I sent a Pull Request to have it fixed. I don't know for sure if it is related to the File System problem that you are having.  

You mentioned that on your client side you are working with 2.45.0.
The fix that you called out was merged after 2.45.0 was released. So maybe you could bump up your version and try.

And going by the output that you shared, am guessing that you are experiencing the problem at the client side [ you mentioned your grid/node setup runs on linux ]. So I think you should definitely bump up your client side versions and try again.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Sat, May 21, 2016 at 12:53 AM, Slavik Fursov <slav...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Slavik Fursov

unread,
May 26, 2016, 2:38:47 PM5/26/16
to Selenium Users
Not sure, if it directly related,
But my issue was fixed by resetting WMI.

You can see it's status in:
Computer Management -> Services and Applications -> WMI Control -> Properties -> General

For the problem node it was in the state: "WMI: Not found"

Fixed by running this in elevated powershell:
 Stop-Service winmgmt -Force; winmgmt /resetrepository
`

After that, the node is not generating all these temp files.
Reply all
Reply to author
Forward
0 new messages