SocketError in UsuariosController#forgot - getaddrinfo: Name or service not known - ruby-on-rails

I´m running an app in ruby 1.8.7 with rails 3.2.1 using Phusion Passenger version 3.0.7. I did not develop nor deployed this app and I´m really new to Rails. This error comes up when the system is sending the user an email with a password recovery link. This probably started after a migration ( I´ve been told ).
Trying to debug the problem I´ve started the app with 'rails server -b 5.39.95.126 -p 8000' in order to see what it would log into the terminal.
To my surprise this way the app works fine.
Thanks for the help.

My problem was with the configuration of App, the config.action_mailer.smtp_settings was pointing at an inexistent e-mail account.
Thanks

Related

Rails app don't work on passenger after changing database

I got rails app deployed on passanger with apache.
Before app works on local firebird database, after i changed credentials to database server in company but located on another pc i got this error.
An error occurred while starting up the preloader: it did not write a startup response in time.
Raw process output:
(empty)
Error ID
06c3cb78
When i start rails app with this database on my local machine with RAILS_ENV=production rails s it works fine.
Does anybody got this error before and know how to solve this?
That was my mistake. There was error with dns on server, my production server 'don't see database srv'

Rails 5 + Foreman + Pow gives me "Couldn't proxy request to localhost:5000"

I'm trying to use Foreman and Pow to work with a Rails app locally. Foreman is working and I can access the app on localhost:5000. The problem is when I go to access myapp.dev, I get the pow error page with this message:
Proxy Error
Couldn't proxy request to localhost:5000.
Error: connect ECONNREFUSED
I know that Pow, Foreman, and Rails work on my system because I have them configured in other apps and they work fine. The only thing I can come up with for what's different between this app and ones that are working is this app uses Rails version 5.0.0rc1.
I can't just give up on Pow because one of the requirements for this app is using subdomains which I can't work with without a proper domain name.
I'm wondering if anybody else has had a similar issue with a Rails 5 app or has any clue what is going on here.
I had a similar error on OS X. Using symlinking instead of the port mapping seemed to fix this, even for an app running on a seemingly random port.
cd ~/.pow
ln -s /path/to/myapp
And then go to myapp.dev

Rails only responds when accessed from local machine

I'm running a Rails application on a Mac Mini server machine (with Webrick, running ruby 1.9.2 using rvm). It works fine when I run it locally on my MacBook, and it was working before I reinstalled rvm, but now whenever I try to access it from a browser on my local machine, it simply hangs and doesn't respond.
If I do a curl http://0.0.0.0:3000 on my server, though, I get the webpage back fine.
I created a fresh Rails app just to double-check it wasn't a problem with my app, and I get the same problem. I also get the problem with Mongrel, and if I try running a bare Sinatra app with Thin.
It sounds like the same problem documented here: Webrick is very slow to respond. How to speed it up?, but I tried modifying my config.rb file to use :DoNotReverseLookup => true, and it didn't help.
Any ideas?
I don't think the issue is related to Rails or your dispatcher. It looks like the OS firewall is blocking ingoing requests to port 3000. Did you try to allow all ingoing connections from your System Preferences ?

Rails Dev Server not visible on network

Trying to do something very basic and test my Rails app on my phone.
Starting the server with:
rails s
But when accessing mymachinename.local:3000, Mobile Safari says that the server stopped responding after about 30 seconds.
I do this all the time on other machines, but I have no idea what could be causing it here. Any suggestions?
I've had a similar issue before trying to access the server from a virtual machine, I had to use the following format for the rails server command:
rails s -b your.dev.ip.address
Whoops. Firewall. Don't know why I even had it turned on.

how to deploy ruby on rails application in xampp in windows xp?

I'm very new to Ruby environment ..
I want to run my Ruby on rails Application in apache in xampp on windows xp rather than WeBrick server which is in-built for ruby on rails...
I tried it by adding Virtual host in apache- http.conf file
When i run my application i'm able to see "Welcome Abroad"....
But when i click on "About your application’s environment"
it was showing error like the following
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
9/9/2011 10:47:31 AM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
To deploy your app with apache you need to use phusion passenger http://www.modrails.com
There are plenty of how-to's around the web and the documentation is good enough to get the service running.
This means your Ruby on Rails server is NOT running.
You need to run your server first.
I made a batch file, start-server.bat which contains
d:
cd "D:\Ruby\Web\rails1"
"C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe" script\rails server
then check the PORT number of the server that is running,
So since the port on the screenshot says 10524, you can run it on
http://localhost:10524/

Resources