Help me! Recently I can not upload files with blobstore! 503 Error occurred.

88 views
Skip to first unread message

中村智

unread,
Sep 1, 2017, 10:15:08 AM9/1/17
to Google App Engine
GAE/Phthon

I could upload files to blobstore until about August 6. But recently I can not upload files to blobstore.
I make upload url by blobstore.create_upload_url. I get this url by Ajax and post to this url, then I get white page and the status is 503.

I did not change my source code. So I don't think cause my source.
Anything changed on API?
Please help me.


Yannick (Cloud Platform Support)

unread,
Sep 1, 2017, 2:22:20 PM9/1/17
to Google App Engine
Hello, a Blobstore 503 error usually means that the App Engine service account does not have access to the Google Cloud Storage bucket in which your blobs are stored. Could there have been any such changes to the bucket ACLs recently?

You should make sure that App Engine's service account does have read/write access to the bucket.

中村智

unread,
Sep 1, 2017, 6:31:12 PM9/1/17
to Google App Engine
Hello and thank you Yannick.
How can I change ACL and How can I check default bucket?
I use blobstore.create_upload_url('path'). I do not specify bucket_name.

Does App Engine's service account mean project owner?

Please tell me manage page url and how to add read/write permissions to App Engine's service account.
Thank you.

2017年9月2日土曜日 3時22分20秒 UTC+9 Yannick (Cloud Platform Support):

中村智

unread,
Sep 1, 2017, 7:12:17 PM9/1/17
to Google App Engine
Oh! I solved this issue!
I added storage.objects.create to allAuthenticatedUsers, then my service users got to upload files.

Thank you very much Yannick.
Your hint is very helpful for me.

2017年9月2日土曜日 7時31分12秒 UTC+9 中村智:

Yannick (Cloud Platform Support)

unread,
Sep 4, 2017, 2:07:37 PM9/4/17
to Google App Engine
I'm glad to hear you were able to resolve your issue.

To answer your question, many service accounts are automatically created for you to perform operations on your project on behalf of your services. The App Engine service account is one such account but it turned out to not be necessary for your solution.
Reply all
Reply to author
Forward
0 new messages