I upgraded my box from FC4 to FC5, now when I visit the url for my app I get, Application error (Rails) This is the production log file, Errno::ENOENT (No such file or directory - /tmp/mysql.sock): /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in `initialize'' MySQL is up and running, everything was fine on FC4... This is my database.yml production: adapter: mysql database: sales username: myuser password: mypw host: localhost Jim _________________________________________________________________ Check the weather nationwide with MSN Search: Try it now! http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
It could be that the location of the mysql socket has changed. do a locate mysql.sock and see what you find. If it has gone to another location either add the socket to your database config or symlink the old location to the new one. ross On 9/16/06, Jim Weir <javawaba-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > I upgraded my box from FC4 to FC5, now when I visit the url for my app I > get, > > Application error (Rails) > > This is the production log file, > > Errno::ENOENT (No such file or directory - /tmp/mysql.sock): > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in > `initialize'' > > MySQL is up and running, everything was fine on FC4... > > This is my database.yml > production: > adapter: mysql > database: sales > username: myuser > password: mypw > host: localhost > > Jim > > _________________________________________________________________ > Check the weather nationwide with MSN Search: Try it now! > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG > > > > >-- Ross Riley riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
It should be /usr/lib/mysql/mysql.sock if I remember correctly. -Pratik On 9/16/06, Ross Riley <riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > It could be that the location of the mysql socket has changed. > do a locate mysql.sock and see what you find. If it has gone to > another location either add the socket to your database config or > symlink the old location to the new one. > > ross > > On 9/16/06, Jim Weir <javawaba-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > I upgraded my box from FC4 to FC5, now when I visit the url for my app I > > get, > > > > Application error (Rails) > > > > This is the production log file, > > > > Errno::ENOENT (No such file or directory - /tmp/mysql.sock): > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in > > `initialize'' > > > > MySQL is up and running, everything was fine on FC4... > > > > This is my database.yml > > production: > > adapter: mysql > > database: sales > > username: myuser > > password: mypw > > host: localhost > > > > Jim > > > > _________________________________________________________________ > > Check the weather nationwide with MSN Search: Try it now! > > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG > > > > > > > > > > > > -- > Ross Riley > riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > >-- rm -rf / 2>/dev/null - http://null.in Dont judge those who try and fail, judge those who fail to try.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
on my fc5 system, it''s at /var/lib/mysql/mysql.sock On 9/16/06, Pratik <pratiknaik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > It should be /usr/lib/mysql/mysql.sock if I remember correctly. > > -Pratik > > On 9/16/06, Ross Riley <riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > It could be that the location of the mysql socket has changed. > > do a locate mysql.sock and see what you find. If it has gone to > > another location either add the socket to your database config or > > symlink the old location to the new one. > > > > ross > > > > On 9/16/06, Jim Weir <javawaba-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > I upgraded my box from FC4 to FC5, now when I visit the url for my app I > > > get, > > > > > > Application error (Rails) > > > > > > This is the production log file, > > > > > > Errno::ENOENT (No such file or directory - /tmp/mysql.sock): > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in > > > `initialize'' > > > > > > MySQL is up and running, everything was fine on FC4... > > > > > > This is my database.yml > > > production: > > > adapter: mysql > > > database: sales > > > username: myuser > > > password: mypw > > > host: localhost > > > > > > Jim > > > > > > _________________________________________________________________ > > > Check the weather nationwide with MSN Search: Try it now! > > > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG > > > > > > > > > > > > > > > > > > > -- > > Ross Riley > > riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > > > > > > -- > rm -rf / 2>/dev/null - http://null.in > > Dont judge those who try and fail, judge those who fail to try.. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Oops..my bad. It''s /var of course. Thanks, Pratik On 9/18/06, Chris Hall <christopher.k.hall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > on my fc5 system, it''s at /var/lib/mysql/mysql.sock > > On 9/16/06, Pratik <pratiknaik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > It should be /usr/lib/mysql/mysql.sock if I remember correctly. > > > > -Pratik > > > > On 9/16/06, Ross Riley <riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > It could be that the location of the mysql socket has changed. > > > do a locate mysql.sock and see what you find. If it has gone to > > > another location either add the socket to your database config or > > > symlink the old location to the new one. > > > > > > ross > > > > > > On 9/16/06, Jim Weir <javawaba-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > > > I upgraded my box from FC4 to FC5, now when I visit the url for my app I > > > > get, > > > > > > > > Application error (Rails) > > > > > > > > This is the production log file, > > > > > > > > Errno::ENOENT (No such file or directory - /tmp/mysql.sock): > > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in > > > > `initialize'' > > > > > > > > MySQL is up and running, everything was fine on FC4... > > > > > > > > This is my database.yml > > > > production: > > > > adapter: mysql > > > > database: sales > > > > username: myuser > > > > password: mypw > > > > host: localhost > > > > > > > > Jim > > > > > > > > _________________________________________________________________ > > > > Check the weather nationwide with MSN Search: Try it now! > > > > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Ross Riley > > > riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > > > > > > > > > > > > -- > > rm -rf / 2>/dev/null - http://null.in > > > > Dont judge those who try and fail, judge those who fail to try.. > > > > > > > > > > >-- rm -rf / 2>/dev/null - http://null.in Dont judge those who try and fail, judge those who fail to try.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
One thing I did was create a symbolic link in the /tmp directory, so that the default for Rails continues to work. HTH, Nathan -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org]On Behalf Of Chris Hall Sent: Monday, September 18, 2006 6:44 AM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: FC4 > FC5 deployment problem on my fc5 system, it''s at /var/lib/mysql/mysql.sock On 9/16/06, Pratik <pratiknaik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > It should be /usr/lib/mysql/mysql.sock if I remember correctly. > > -Pratik > > On 9/16/06, Ross Riley <riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > It could be that the location of the mysql socket has changed. > > do a locate mysql.sock and see what you find. If it has gone to > > another location either add the socket to your database config or > > symlink the old location to the new one. > > > > ross > > > > On 9/16/06, Jim Weir <javawaba-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > I upgraded my box from FC4 to FC5, now when I visit the url for my app I > > > get, > > > > > > Application error (Rails) > > > > > > This is the production log file, > > > > > > Errno::ENOENT (No such file or directory - /tmp/mysql.sock): > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in > > > `initialize'' > > > > > > MySQL is up and running, everything was fine on FC4... > > > > > > This is my database.yml > > > production: > > > adapter: mysql > > > database: sales > > > username: myuser > > > password: mypw > > > host: localhost > > > > > > Jim > > > > > > _________________________________________________________________ > > > Check the weather nationwide with MSN Search: Try it now! > > > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG > > > > > > > > > > > > > > > > > > > -- > > Ross Riley > > riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > > > > > > -- > rm -rf / 2>/dev/null - http://null.in > > Dont judge those who try and fail, judge those who fail to try.. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---