Forum: Ruby on Rails ActiveRecord error after deployment

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ace9fd43955ec75c5d780ca693d44870?d=identicon&s=25 adi azar (Guest)
on 2007-05-25 19:12
Hi guys,

I developed a page that retrieves from Oracle DB data and view it. The
connection is 100% since it works. However, once we deploy using
capistrano to our production servers, we get the following error:
"Application error

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"

And in the server logs we find:
"OCIError (ORA-12154: TNS:could not resolve the connect identifier

Once we restart the 4 mongrels, everything becomes fine again and the DB
works well. The TSNAMES are 100% fine. It is matter that we need to
restart the mongrels which is sucks...

Any help please?
This topic is locked and can not be replied to.