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
standalone setup not resolving every 8th request #2117
Comments
Does the interval that the problem occurs at change if you set a different max-pool-size? |
It does not, I added the flag to my startup command and doubled it from 6 to 12. |
Does this issue persist in Passenger 6? |
It does. |
Can you turn the log level up to 7 and record both a successful and unsuccessful request? |
Not to hijack someone else's issue, but I am running into a very similar problem and was wondering if a resolution was ever found? I documented some of the initial investigation I did on stackoverflow because I wasn't sure if I was just configuring passenger inappropriately. Another interesting piece of information that I can't wrap my brain around, and that may differ from the original poster, is we deploy our passenger applications via docker images and use dc/os for container orchestration. Running the docker container directly on a given host (or locally) produces a 100% success rate for a test endpoint. That same test endpoint on a container deployed through dc/os has a 50-75% success rate. I am not entirely sure why this is the case, or if it would indicate that the problem does not reside in passenger, but I don't really know how to debug further. |
I was able to reproduce the issue with a simple app that was the result of a |
Looks like the config caching changes in 5.2 might be involved. |
I too am experiencing the same issue. I get the 200 then a route not found on every consecutive GET request. Has anyone gotten this to work? Update: Seems downgrading back to 5.1.12 worked. |
seems related: #2043 |
Just reporting that I'm still experiencing this issue with every version of Passenger after 5.1.12. |
Is the |
For me, I have it in the nginx.conf.erb file sitting in the app's root folder. It resides in the http block:
I too can confirm that Passenger after 5.1.12 is not working. |
For me, every other reload was causing a 404. I was able to resolve my issue by just simply precompiling assets and moving to passenger 6.0.4. Also my nameserver was wrong so the server was taking a long time to resolve. Maybe my issue may not have been the same as yours but worth giving it shot on your end. |
Ok i've reproduced this issue, it looks like the when we pull a PoolOptions object from the cache instead of creating a new one, the options.baseURI member variable is not set. |
Is options.baseURI suppose to be what is set for passenger_base_uri? |
|
Can folks please try out the patch here: https://github.com/phusion/passenger/commit/9d32868d3b06303d2778e24bf900004b1c72bd8c.patch and report back with their findings? It works for me locally but I'd like more testing before landing the patch. |
Using: I've add that line in the gem's code but still experience the same:
|
If you installed via the gem, you may need to manually put the executable into place after compiling. Can you list the steps you used? |
|
So i replaced your step 2 with this process:
and the agent was put in place properly. Note: you will want to remove the extra line i add to the hosts file, i just needed to force a recompile and breaking the DNS is the easiest way to do that in the gem unfortunately. |
Deleting this error. Needed to kill PassengerAgents first. Trying again. |
The problem continues to occur for me. The app will return an http response of 200->404->200->404 etc. |
It's interesting that your setup experiences the issue every 2nd request instead of every 8th, is there anything in your log or configuration that might shed some light on why that is? |
Also, based on this:
It sounds like your app was generating incorrect urls? Might that be a config issue? As I understand it, the original issue was that Passenger was sending incorrect requests to the app, but if the url doesn't contain the base uri, then I'm not sure passenger is doing something wrong... |
dsusco commentedSep 12, 2018
I'm fairly confident this is a passenger issue, as rolling back to 5.1.12 fixed it for me. It may be configuration related, so here's a brief rundown of how things are setup here.
I'm running a Rails 5.2.1 app that's dropping every 8th request. It doesn't matter the HTTP method, nor the controller I'm going to, I get something like this every 8th one:
I have passenger running with the 5.3.4 config file:
resources/templates/standalone/config.erb
. The only change I've made to this is to add a base uri:I start up passenger with the following command:
And have an nginx server forwarding requests to it like so:
Any thoughts or ideas?
The text was updated successfully, but these errors were encountered: