similar to: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)

Displaying 20 results from an estimated 10000 matches similar to: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)"

2009 Nov 17
5
has_many :through and foo.bars.include?
hallo everybody, i already googled the following problem, but there are so many questions regarding "has_many :through", that i just couldn''t find what i was looking for. so, i''m really sorry if this has been asked before. if so, just drop me the link. i have a has_many :through relationship similar to the following example: class Group < ActiveRecord::Base
2007 Aug 06
4
problem with rails_root
Hi everybody, I used a openseradmin who is based on rubygem (i suppose ), so when i start my server of this openseradmin in the http://localhost:3000, i reciceved some messages like this: SocketError in LoginController#login getaddrinfo: Name or service not known RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2005 Apr 26
2
SQLite error
I have an app that seems to run fine when I develop on windows, but in my linux deployment environment I get this error: uninitialized constant SQLite Here is the stack trace: /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:183:in `const_missing''
2005 Feb 13
6
Apache config help needed
Hi all, I''m (STILL) plugging away trying to get rails to work under Apache2 Rails 0.9.5 Apache 2, OS Mandrake Linux 10.1 Apache is already running other stuff on /pluto/ and /localhost/ so I wish to install a new virtual host for rails to avoid upsetting anything. Added rails to my hosts file, and edited conf/Vhosts.conf to contain NameVirtualHost 192.168.0.254 <VirtualHost
2007 Jun 11
3
ActiveRecord::StatementInvalid error
Hi, I have an application that is running fine on two different machines, but when I ported the code to a third machine, it doesn''t seem to work. More specifically, for users with a significant amount of info, it seems to stop working. All the functionality seems to be working properly on a small test set, but with a larger set I get the following error: AssociatedAp Load (0.000000)
2006 Oct 16
3
Strange ActiveRecord error popping up
Hello guys, I''m developing a new app in Rails, and every now and then I get an ActiveRecord error, I cannot reproduce exactly what triggers it, hope you can help me, or give me tips on debugging this kind of stuff. This time I got the error reporting page, but normally I would just see the 500.html page, with no info about what went wrong. This is the error (it''s the complete
2006 Feb 08
5
Mysql::Error: Lost connection to MySQL server during query:
Hi, I am having Mysql connection problem for my first AddressBook application (which I took it from http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/) I have gem installed the latest ruby, rails, lighttpd, fastcgi, mysql-4.1.14 on linux. Everything looks good. When I do: mysql -h localhost -u test -ptest -D AddressBook mysql> SELECT COUNT(*) FROM contacts; +----------+ |
2006 Mar 31
7
problem with habtm conditions in pagination
Hello list, I''ve had this problem for two days now. Perhaps someone here would care to comment on it. I''d be REALLY appreciative if that''d be the case. Basically, it''s outlined at this paste: http://rafb.net/paste/results/ kXQSHZ83.html But I''ll paste it here, too. The main problem is in the customers/list action. The problem is with this line:
2006 Mar 29
5
MySQL losts connection, can''t refer to User
Hi Another problem here. After the upgrade to 1.1 both rails and engines, my app on windows crashes very often on requests. It can''t refer to User model or losts connection to mysql. It appears like 2-3 times per 10 requests. Eg. Mysql::Error: Lost connection to MySQL server during query: UPDATE sessions SET `data` =
2006 Feb 09
2
postgres connection problems
Hello, I''m a newbie to rails and I am trying to do the Demo in the November Issue of Linux Journal. Things go fine go fine until I try to connect to my Postgres database (ver 8.1). At this point I get the following error message ---- RoR error and trace back ---- PGError in Admin#index could not connect to server: Permission denied Is the server running on host "localhost"
2009 Jun 30
2
First time problem
This is the first time I am Running ruby on rails. When running the "blog" application I got the message "We''re sorry, but something went wrong. We''ve been notified about this issue and we''ll take a look at it shortly." Then I checked the CODE\blog\log\development.log and got this:
2009 Jun 09
3
NameError what is it?
I have the following code in app/controllers/processjobs_controller.rb # class ProcessJobsController <ApplicationController def index @ProcessJobs = ProcessJobs.find(:all) end end # This is my route file .. ActionController::Routing::Routes.draw do |map| map.resources :ProcessJobs map.connect '':controller/:action/:id'' map.connect
2006 Jan 05
2
Rails 1.0 Crashing: Errno::EPIPE (Broken pipe):
Since we upgraded to Rails 1.0 and lighty last week we''ve had the rails application crash daily with the following error in the production.log file: Errno::EPIPE (Broken pipe): /usr/local/lib/ruby/1.8/mysql.rb:1042:in `flush'' /usr/local/lib/ruby/1.8/mysql.rb:1042:in `write'' /usr/local/lib/ruby/1.8/mysql.rb:462:in `write''
2007 Dec 14
3
Issue with upgrading to 2.0 on Leopard? Or something else?
Sorry if this has been covered, but I finally decided to upgrade to Rails 2.0 (running Leopard and previously at rails 1.2.6) so I could start using some of the great new features. I ran the usual "sudo gem install rails --include-dependencies" to upgrade and now my development environment is all out of whack. I suspected MySQL, but I''ve already made sure I was using the
2007 Mar 01
1
ActiveRecord::StatementInvalid error
When I try to run my webserver in the production environment I just get an application error message. This is all I can find in the log: ActiveRecord::StatementInvalid /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ connection_adapters/sqlite_adapter.rb:274:in `table_structure'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment everything works fine, however following a deployment with Capistrano about an hour ago, I get the following error: PGError in HomeController#index FATAL: role "root" does not exist /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/postgresql_adapter.rb:713:in `connect''
2006 Mar 28
12
cached-model broken with Rails 1.1
It looks like cached-model is broken again under rails 1.1. Can anyone confirm? Note that the exception below indicates it''s trying to treat CachedModel as the class name of the model, rather than using the proper class name (which is Entry in this case, and the table called entries). This is a model using Single Table Inheritance and acts_as_tree, and worked just fine under 1.0 and
2010 Mar 24
1
Trouble starting the server, HELP PLEASE!
can anybody tell me what is going wrong from the information taken from the development log below. WHen i start WEBrick and try and view a page on the localhost i get the following error, "We''re sorry, but something went wrong.We''ve been notified about this issue and we''ll take a look at it shortly." I''m a complete beginner and really want to start
2010 Apr 09
3
"We're sorry, but something went wrong"
can anyone help with this??? /!\ FAILSAFE /!\ Thu Apr 08 16:58:27 -0700 2010 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each''