Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

503 status when serving many concurrent files #12

Open
magnusdahlstrand opened this issue Jan 10, 2018 · 2 comments
Open

503 status when serving many concurrent files #12

magnusdahlstrand opened this issue Jan 10, 2018 · 2 comments

Comments

@magnusdahlstrand
Copy link
Contributor

Thanks for making powprox, it's made development easier for me. Unfortunately I'm currently running into some issues which I've traced down to powprox. I'm running osx 10.11.4.

Accessing the .dev domain with http it works, but with https some of the "later" resources (such as @imports in css files & images) fail with a 503 result. The images & css files aren't big (< 1MB), and there are only about 20 total requests, of which ~6 fail.

I've updated the nginx config to write an error log, in which the following message matches requests returning 503: an upstream response is buffered to a temporary file /usr/local/var/run/nginx/proxy_temp/1/16/0000000161 while reading upstream. I tried applying various fixes I found online to no avail.

The requests in question - I'm looking in the browser's network inspector - have the same request headers, but fewer response headers, specifically: status: 503, server: nginx/1.10.2, date, content-type, and x-pow-template:application_not_found. My guess is that the proxy configuration isn't setup to handle file buffered responses, but I'm not sure how to verify or resolve it.

I installed powprox in August, and am not sure how to update or uninstall it.

Thanks,
Magnus

@jeremy
Copy link
Member

jeremy commented Jan 11, 2018

That's the response that Pow sends when it doesn't have an app configured for the requested host domain: http://pow.cx/docs/http_server.html#section-19

@magnusdahlstrand
Copy link
Contributor Author

@jeremy Thanks for your response, unfortunately it's not the solution.

The app is registered correctly, 2/3 of the requests (all to the same pow app/domain) go through correctly, whereas a few don't. It's not always the same resources that fail, some reloads they work, other times not.

I've just noticed that the issue appears when not running over https, (i.e. plain pow proxying a server) as well, but much less frequently, approximately 1/20. I will submit an issue there as well, as I do believe something is going on, triggering a temporary misconfiguration when too many requests happen concurrently.

In the meantime, would you be able to provide uninstallation instructions for powprox? I've looked around for them but can't find them.

Cheers,
Magnus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants