title: Google Cloud Storage - PUT Fails on Development Server
body: <p>On my dev server, Google Cloud Storage fails to save files during a <code>PUT</code> command.</p>
  <p>This same command works fine on production. The response headers (see below) have little debug information. I have plenty of space on my hard-drive, and I have been running the dev server as an administrator, so it should have all necessary permissions.</p>
  <p>Any ideas?</p>
  <p>Below is the relevant Traceback (I changed the bucket name):</p>
  <pre><code>INFO     2015-08-07 14:14:41,415 module.py:809] default: &quot;PUT /_ah/gcs/bucket/IPR2013-00219%2C%20No.%2016%20Institution%20Decision%20-%20Decis_2015-08-07%2018-14-25.100000.pdf?upload_id=encoded_gs_file%3AZG9ja2V0YWxhcm0tZGV2L0lQUjIwMTMtMDAyMTksIE5vLiAxNiBJbnN0aXR1dGlvbiBEZWNpc2lvbiAtIERlY2lzXzIwMTUtMDgtMDcgMTgtMTQtMjUuMTAwMDAwLnBkZg%3D%3D HTTP/1.1&quot; 500 -
  Traceback (most recent call last):
    File &quot;Project\libs\cloudstorage\storage_api.py&quot;, line 794, in __exit__
      self.close()
    File &quot;Project\libs\cloudstorage\storage_api.py&quot;, line 787, in close
      self._flush(finish=True)
    File &quot;Project\libs\cloudstorage\storage_api.py&quot;, line 841, in _flush
      self._send_data(data, self._written, file_len)
    File &quot;Project\libs\cloudstorage\storage_api.py&quot;, line 874, in _send_data
      {'upload_path': self._path_with_token})
    File &quot;Project\libs\cloudstorage\errors.py&quot;, line 141, in check_status
      raise ServerError(msg)
  ServerError: Expect status [200] from Google Storage. But got status 500.
  Path: '/bucket/IPR2013-00219%2C%20No.%2016%20Institution%20Decision%20-%20Decis_2015-08-07%2018-14-25.100000.pdf'.
  Request headers: {'accept-encoding': 'gzip, *', 'content-range': 'bytes 0-195060/195061', 'x-goog-api-version': '2'}.
  Response headers: {'date': 'Fri, 07 Aug 2015 18:14:41 GMT', 'transfer-encoding': 'chunked', 'server': 'Development/2.0'}.
  Body: ''.
  Extra info: {'upload_path': '/bucket/IPR2013-00219%2C%20No.%2016%20Institution%20Decision%20-%20Decis_2015-08-07%2018-14-25.100000.pdf?upload_id=encoded_gs_file%3AZG9ja2V0YWxhcm0tZGV2L0lQUjIw
  MTMtMDAyMTksIE5vLiAxNiBJbnN0aXR1dGlvbiBEZWNpc2lvbiAtIERlY2lzXzIwMTUtMDgtMDcgMTgtMTQtMjUuMTAwMDAwLnBkZg%3D%3D'}.
  </code></pre>
  <p><strong>Update 2020</strong>
  FYI, I raised this <a href="https://issuetracker.google.com/issues/35900575" rel="nofollow noreferrer">issue with Google here</a>, and they said that they won't fix it because it has already been fixed, even though it clearly has not.</p>
  <p><strong>Update 2022</strong>
  Still broken! See the proposed patch in the <a href="https://issuetracker.google.com/issues/35900575" rel="nofollow noreferrer">issue with Google</a>.</p>