# ActiveRecord error after deployment

**URL:** <https://www.ruby-forum.com/t/activerecord-error-after-deployment/105096>\
**Category:** Rails\
**Created:** [May 25, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/activerecord-error-after-deployment/105096 "2007-05-25T19:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adi\_azar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@adi\_azar](https://www.ruby-forum.com/u/adi_azar)\
**Post date:** [May 25, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/activerecord-error-after-deployment/105096/1 "2007-05-25T19:12:34Z")

</div>

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  
specified)”

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?
