title: App Engine error after Python web app is deployed - BlockingIOError: [Errno 11] Resource temporarily unavailable
body: <p>I am running my web app on a standard environment on Python 3.7 and when I test it locally everything works fine. However, after I deploy my app I am receiving the following error when the app tries to save files to the <code>/tmp</code> location that I have designated: </p>
  
  <pre><code>BlockingIOError: [Errno 11] Resource temporarily unavailable
  </code></pre>
  
  <p>This is how am designating the path to save as well as the file name.</p>
  
  <pre><code>file_num = os.urandom(10).hex()
  
  handle, path = tempfile.mkstemp()
  
  ytdl_format_options = {'format': 'bestaudio/best','outtmpl':path + 'song'+ file_num +'.mp3', 'quiet': True}
  </code></pre>
  
  <p>I'm not sure what is causing this error or if there is some type of config file setting that I am missing either on <code>app.yaml</code> or on gunicorn. I also tried locating the gunicorn files on the glcoud shell but they were not showing up in the directory.</p>
  
  <p>I have noticed that my app will randomly work correctly when I commit new changes to files and re-deploy the app, however it will only work once and then if I immediately try running the function again it fails. This is the error I am receiving:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 279, in handle
      keepalive = self.handle_request(req, conn)
    File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 348, in handle_request
      six.reraise(*sys.exc_info())
    File "/env/lib/python3.7/site-packages/gunicorn/six.py", line 625, in reraise
      raise value
    File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 331, in handle_request
      resp.write_file(respiter)
    File "/env/lib/python3.7/site-packages/gunicorn/http/wsgi.py", line 403, in write_file
      if not self.sendfile(respiter):
    File "/env/lib/python3.7/site-packages/gunicorn/http/wsgi.py", line 393, in sendfile
      sent += sendfile(sockno, fileno, offset + sent, count)
  BlockingIOError: [Errno 11] Resource temporarily unavailable
  </code></pre>