Python Forum
mkdtemp spontaneously stopped working reliably last night
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mkdtemp spontaneously stopped working reliably last night
#1
I have multiple production workloads running on multiple servers. All using Python 2.7.12. This morning I arrived at work to find lots of errors in my logs. The tracebacks all include this:

File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
dir = gettempdir()
File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']

We are not out of disk space. This is happening on lots of different servers.

We did not deploy any new code -- it was a Sunday evening. The first occurrence of the error was a few minutes after 0000 GMT this morning. We do not have automatic patching or updates enabled. Could there be something in the Python tempfile module that started failing as of a certain date/time?? Anyone else having a similar problem?

Well, my bad. We *are* out of disk space. Just not on the servers I was examining. The problem was on some back-end servers that process jobs sent by the other servers. The Python tempfile module is fine.
Reply
#2
Thanks for letting us know what happened :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spyder stopped working in Windows 10 gammaray 3 3,093 Apr-19-2021, 05:33 PM
Last Post: jefsummers
  python has stopped working sally 1 6,028 Nov-22-2018, 10:19 PM
Last Post: metulburr
  How to reliably split string containing multiple sqlite statements? shanepy 2 2,595 Nov-21-2018, 12:07 AM
Last Post: shanepy
  Stopped process is still running pawlaczkaj 9 4,581 Apr-08-2018, 10:22 AM
Last Post: Gribouillis
  urlparse to urllib.parse - the script stopped working apollo 5 6,691 Oct-26-2017, 06:57 AM
Last Post: apollo
  Logging module stopped working! llanitedave 1 7,994 Oct-18-2017, 06:45 AM
Last Post: llanitedave
  [split] Script has stopped working santhosh 1 3,191 Feb-27-2017, 03:21 PM
Last Post: Ofnuts
  Script has stopped working NickBurrett 2 3,914 Feb-22-2017, 07:10 PM
Last Post: NickBurrett

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020