Rails 4.2 and Vagrant

141 views
Skip to first unread message

emachnic

unread,
Sep 19, 2014, 5:56:17 PM9/19/14
to rubyonra...@googlegroups.com
I have a Rails 4.1 app and I use Vagrant for developing it. Everything has been working fine but then I bumped the version to 4.2 and it seems to have broken somewhere. I can start the server just fine and get a 200 response when curling localhost from the VM but when trying to access from a web browser on the host I only get a blank page and nothing in the logs. I don't think the requests are actually going through to the VM but I have no errors or anything to help diagnose. This is repeatable for another person on my team and I've also tried with a completely vanilla application.

Has anyone experienced this or can help point to where I should look?

Colin Law

unread,
Sep 20, 2014, 3:49:18 AM9/20/14
to rubyonra...@googlegroups.com
Assuming you are starting the server using rails server is there
anything in the terminal window when you fetch the page? If not then
I think the request must be being intercepted by something else on
your system.

Did you use
rake rails:update
to update the app? See
http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html

Colin

Matthew Draper

unread,
Sep 20, 2014, 4:23:44 AM9/20/14
to rubyonra...@googlegroups.com

> when trying to access from a web browser on the host I only get a blank page and nothing in the logs. I don't think the requests are actually going through to the VM but I have no errors or anything to help diagnose.


Sounds like you’re running into a change in Rack 1.6:
https://github.com/rails/rails/issues/16578#issuecomment-52871088

While it’s technically not our change, it probably merits a mention in our upgrade guide / incompatibility list.


Matthew


--
mat...@trebex.net

Evan Machnic

unread,
Sep 20, 2014, 7:51:16 AM9/20/14
to rubyonra...@googlegroups.com, rubyonra...@googlegroups.com
His Colin,

There's nothing in the terminal window during the request. I didn't use the update task, just updated in the Gemfile.

Evan 

Evan Machnic
@emachnic


--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-core/sd38-TuVTNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-co...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.


Thiago Dias

unread,
Oct 6, 2014, 11:11:53 AM10/6/14
to rubyonra...@googlegroups.com
Just wondering if you've solved this issue. I'm experiencing the exact same problem.

Evan Machnic

unread,
Oct 6, 2014, 10:14:17 PM10/6/14
to rubyonra...@googlegroups.com, rubyonra...@googlegroups.com
It seems to be the issue with rack and the host that it's binding to. Try running the Rails server and bind it to 0.0.0.0

Evan


Evan Machnic
@emachnic
Reply all
Reply to author
Forward
0 new messages