"cannot create temp dir for user data dir" Replit Selenium Exception

I have been using replit to run a python selenium based project of mine, however after creating a new replit, adding in chromium/chrome driver in the nix files manually, I have run into several instances of this error.

“cannot create temp dir for user data dir”

Changing the name of the replit would often fix the issue until the error would pop up again. The issue with this temporary fix is just that, it is temporary. I have a Hacker plan which allows the replit to stay on 24/7 but I would have to manually check daily to make sure the driver is actually being opened. I frequently get this error which makes me have to rename the replit in order for it to work after rebooting. I looked online and some people suggested it has something to do with your TEMP folder. I couldn’t find anything on how to handle this error within Replit, so I am posting it here in hopes anyone is able to help.
Full Trace:
Traceback (most recent call last):
File “main.py”, line 814, in main
runRewards()
File “main.py”, line 746, in runRewards
driver = getDriver()
File “main.py”, line 513, in getDriver
driver = webdriver.Chrome(options=chrome_options)
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py”, line 69, in init
super().init(DesiredCapabilities.CHROME[‘browserName’], “goog”,
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py”, line 92, in init
super().init(
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py”, line 270, in init
self.start_session(capabilities, browser_profile)
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py”, line 363, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py”, line 428, in execute
self.error_handler.check_response(response)
File “/home/runner/test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py”, line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create temp dir for user data dir
Stacktrace:
#0 0x55925a042b33
#1 0x559259b0b6d8
#2 0x559259b2c87d
#3 0x559259b29fca
#4 0x559259b64e0a
#5 0x559259b5ef53
#6 0x559259b34a0a
#7 0x559259b35ad5
#8 0x55925a0742fd
#9 0x55925a08d4bb
#10 0x55925a0760d5
#11 0x55925a08e145
#12 0x55925a069aaf
#13 0x55925a0aaba8
#14 0x55925a0aad28
#15 0x55925a0c548d
#16 0x7f1e13f3bd40

Thank you for reading.

Hi @s.azn I think this might be something which you need to log with Replit support as the error logs you are sharing are specific to your Repl, which you haven’t shared with the community.

Please use https://www.replit.com/support to log this. Thanks.