502 Bad Gateway error on loading assets #86212

Open
opened 2021-03-02 23:32:43 +01:00 by Francesco Siddi · 4 comments

For example, when visiting https://cloud.blender.org/p/characters/ as logged in user, all static assets return the error. Unauthenticated users don't see this issue.

For example, when visiting https://cloud.blender.org/p/characters/ as logged in user, all static assets return the error. Unauthenticated users don't see this issue.
Anna Sirota was assigned by Francesco Siddi 2021-03-02 23:32:43 +01:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @fsiddi

Added subscriber: @fsiddi

It looks like the same 50X that was reported a few times in #blender-web-dev , and is probably caused by a request to Blender ID timing out (this issue is 3 years old): https://sentry.io/organizations/blender-institute/issues/419095813/?project=256024&query=is%3Aunresolved+timeout&statsPeriod=14d

Read timeout trying to POST to https://id.blender.org/u/validate_token, handling as invalid token.

Since it's not reproducible, it seems to depend on the traffic to Blender ID, so a good start would be to stop trying to validate Blender ID tokens on each request to static web assets, which show up in the list of URLs this error happened at:

2021-03-03-101144_741x691_scrot.png

Can assets under /static/pillar/assets/* and /static/cloud/assets/* be served by the webserver instead of Pillar?
Or, if not, is there a way to tell web assets from assets for which authentication is actually needed?

It looks like the same 50X that was reported a few times in #blender-web-dev , and is probably caused by a request to Blender ID timing out (this issue is 3 years old): https://sentry.io/organizations/blender-institute/issues/419095813/?project=256024&query=is%3Aunresolved+timeout&statsPeriod=14d ``` Read timeout trying to POST to https://id.blender.org/u/validate_token, handling as invalid token. ``` Since it's not reproducible, it seems to depend on the traffic to Blender ID, so a good start would be to stop trying to validate Blender ID tokens on each request to static web assets, which show up in the list of URLs this error happened at: ![2021-03-03-101144_741x691_scrot.png](https://archive.blender.org/developer/F9862180/2021-03-03-101144_741x691_scrot.png) Can assets under `/static/pillar/assets/*` and `/static/cloud/assets/*` be served by the webserver instead of Pillar? Or, if not, is there a way to tell web assets from assets for which authentication is actually needed?

Thanks for looking into this. /static used to be served through the webserver because also actual cloud assets were served from it.
Since now everything has been moved to buckets, it should be indeed possible to serve /static straight from Apache.

Thanks for looking into this. `/static` used to be served through the webserver because also actual cloud assets were served from it. Since now everything has been moved to buckets, it should be indeed possible to serve `/static` straight from Apache.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/blender-cloud#86212
No description provided.