Change to the way GAE counts MB?

90 views
Skip to first unread message

Joshua Smith

unread,
Jan 25, 2018, 3:24:04 PM1/25/18
to Google App Engine
I use GAE to host a PHP site, and there’s a file that’s been there about a year with no issues. It’s 32674472 bytes.

The file size limit, of course, is 32MB which is higher than that, assuming GAE defines a 1 MB = 1024 * 1024.

But I’m getting this error on deployment:

Details: [
  [
    {
      "description": "File https://storage.googleapis.com/staging.kaoncom-hr.appspot.com/1ced1565690281184e66ebd4fa0a666264a28249 is too big (32674472 bytes). Max file size is 32000000 bytes.",
      "resourceType": "file"
    }
  ]
]

Looks like google has changed to counting MB the way disk drive people count them.


-Joshua


Katayoon (Cloud Platform Support)

unread,
Jan 25, 2018, 11:57:08 PM1/25/18
to Google App Engine
Based on App Engine Quotas documentation, no single static data file may be larger than 32MB. So, Instead of 32x1024x1024, it's just 32000000 bytes, which is less than your file size.


Joshua Smith

unread,
Jan 26, 2018, 8:43:38 AM1/26/18
to google-a...@googlegroups.com
MB is short for megabyte, which is defined as 1,232,896 bytes, not 1,000,000 bytes.

Also, as I said, this file was fine until yesterday. Google arbitrarily lowered the limit and did not update the documentation or even bother to tell anyone.



On Jan 25, 2018, at 11:57 PM, 'Katayoon (Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:

Based on App Engine Quotas documentation, no single static data file may be larger than 32MB. So, Instead of 32x1024x1024, it's just 32000000 bytes, which is less than your file size.



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0c4d2af2-9dda-4b50-908c-fa245657fb54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Josh Moore

unread,
Jan 26, 2018, 3:41:46 PM1/26/18
to google-a...@googlegroups.com
This may be ultimately related to the difference between megabyte (MB) and mebibyte (MiB), though the core issue is that this was changed without notification, as you have said.  I'll check into it.





For more options, visit https://groups.google.com/d/optout.



--

Josh Moore | Cloud Solutions Engineer | josh...@google.com | 

PastedGraphic-1.png
Reply all
Reply to author
Forward
0 new messages