Hi all,
I’ve been serving Typo 4.0.3 on a 2.16GHz Core 2 Duo iMac running Mac
OS 10.4.10, and everything has been working fine. But when I upgraded
to Mac OS 10.5, Typo just gives me Application Error (Rails). Does
anyone know what could be wrong, and how to fix it?
Thanks!
Hi,
Can you send us what your production.log tels ? I don’t have leopard
yet.
Regards
Frédéric
Le 2 nov. 07 à 07:55, Eamon F. a écrit :
OK, here’s what production.log says. Does this mean I have to
reinstall MySQL? Oh crap… does that also mean I’ve lost everything
in my Typo database?
Processing ArticlesController#index (for 192.168.0.3 at 2007-11-02
00:47:59) [GET]
Parameters: {“action”=>“index”, “controller”=>“articles”}
Errno::ENOENT (No such file or directory - /tmp/mysql.sock):
/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:
104:in initialize' /vendor/rails/activerecord/lib/active_record/vendor/mysql.rb: 104:in
new’
/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:
104:in real_connect' /vendor/rails/activerecord/lib/active_record/connection_adapters/ mysql_adapter.rb:330:in
connect’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
mysql_adapter.rb:87:in initialize' /vendor/rails/activerecord/lib/active_record/connection_adapters/ mysql_adapter.rb:36:in
new’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
mysql_adapter.rb:36:in mysql_connection' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:251:in
send’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:251:in
connection_without_query_cache=' /vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in
connection=’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:220:in retrieve_connection' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:78:in
connection’
/vendor/rails/activerecord/lib/active_record/base.rb:1046:in
add_limit!' /vendor/rails/activerecord/lib/active_record/base.rb:1017:in
construct_finder_sql’
/vendor/rails/activerecord/lib/active_record/base.rb:924:in
find_every' /vendor/rails/activerecord/lib/active_record/base.rb:918:in
find_initial’
/vendor/rails/activerecord/lib/active_record/base.rb:380:in find' /app/models/blog.rb:115:in
default’
/app/controllers/application.rb:40:in get_the_blog_object' /vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
send’
/vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
each’
/vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:383:in
before_action’
/vendor/rails/actionpack/lib/action_controller/filters.rb:365:in
perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in
perform_action_without_rescue’
/usr/local/lib/ruby/1.8/benchmark.rb:293:in measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in
perform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in
send’
/vendor/rails/actionpack/lib/action_controller/base.rb:408:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support’
/vendor/rails/actionpack/lib/action_controller/
session_management.rb:117:in process' /vendor/rails/railties/lib/dispatcher.rb:38:in
dispatch’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
rails.rb:78:in process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ rails.rb:76:in
synchronize’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
rails.rb:76:in process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 618:in
process_client’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
617:in each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 617:in
process_client’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
736:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 736:in
initialize’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
736:in new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 736:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
720:in initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 720:in
new’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
720:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:270:in each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:
127:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:
243
/usr/local/bin/mongrel_rails:16:in `load’
/usr/local/bin/mongrel_rails:16
Processing Base#index (for 192.168.0.3 at 2007-11-02 00:47:59) [GET]
Parameters: {“action”=>“index”, “controller”=>“articles”}
Errno::ENOENT (No such file or directory - /tmp/mysql.sock):
/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:
104:in initialize' /vendor/rails/activerecord/lib/active_record/vendor/mysql.rb: 104:in
new’
/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:
104:in real_connect' /vendor/rails/activerecord/lib/active_record/connection_adapters/ mysql_adapter.rb:330:in
connect’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
mysql_adapter.rb:87:in initialize' /vendor/rails/activerecord/lib/active_record/connection_adapters/ mysql_adapter.rb:36:in
new’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
mysql_adapter.rb:36:in mysql_connection' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:251:in
send’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:251:in
connection_without_query_cache=' /vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in
connection=’
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:220:in retrieve_connection' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:78:in
connection’
/vendor/rails/activerecord/lib/active_record/base.rb:1046:in
add_limit!' /vendor/rails/activerecord/lib/active_record/base.rb:1017:in
construct_finder_sql’
/vendor/rails/activerecord/lib/active_record/base.rb:924:in
find_every' /vendor/rails/activerecord/lib/active_record/base.rb:918:in
find_initial’
/vendor/rails/activerecord/lib/active_record/base.rb:380:in find' /app/models/blog.rb:115:in
default’
/app/controllers/application.rb:50:in this_blog' /app/controllers/content_controller.rb:76:in
theme_layout’
/vendor/rails/actionpack/lib/action_controller/layout.rb:218:in
send' /vendor/rails/actionpack/lib/action_controller/layout.rb:218:in
active_layout’
/vendor/rails/actionpack/lib/action_controller/layout.rb:278:in
pick_layout' /vendor/rails/actionpack/lib/action_controller/layout.rb:237:in
render_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
53:in render' /usr/local/lib/ruby/1.8/benchmark.rb:293:in
measure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
53:in render' /app/controllers/articles_controller.rb:73:in
rescue_action_in_public’
/vendor/rails/actionpack/lib/action_controller/rescue.rb:33:in
rescue_action' /vendor/rails/actionpack/lib/action_controller/rescue.rb:108:in
perform_action’
/vendor/rails/actionpack/lib/action_controller/base.rb:408:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in
process_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/ session_management.rb:117:in
process’
/vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ rails.rb:78:in
process’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
rails.rb:76:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ rails.rb:76:in
process’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
618:in process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 617:in
each’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
617:in process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 736:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
736:in initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 736:in
new’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
736:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 720:in
initialize’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:
720:in new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: 720:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:271:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in
each’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:270:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
command.rb:211:in run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 243 /usr/local/bin/mongrel_rails:16:in
load’
/usr/local/bin/mongrel_rails:16
Well, if you haven’t backed your mysql database up before installing
your new OS, it’s obvious you’ve lost it and unfortunately, we can’t
do anything about it yet.
Regards
Frédéric
Le 2 nov. 07 à 08:51, Eamon F. a écrit :
Oh no. But what do you mean when you say “yet”?
the data is (are?) probably still there: it depends how you installed
typo, and how you installed leopard. 10.5 includes rails and (I
think) mysql and it will try and use its own version rather than the
version you had installed before. the paths will be different, the
data will be in another place and anyway, as the error messages says,
mysql is not running.
first thing to do is find your old data and make sure it’s safe. it
might just be in /usr/local/mysql/data, or in /opt/local if you were
using ports, or if you were using locomotive I have no idea. Find
them (try locate), make a copy in a safe place, find out how to get
mysql going, move the old data files for your typo installation to
the place where mysql expects to find them, then try typo again and
see what else is missing. you may need to reinstall mysql or some
other components, but i would avoid doing that unless you feel
comfortable setting up the whole rails environment.
I’m not running leopard on my work machines yet so i can’t be any
more specific than that. I hope it helps.
best,
will
On 2 Nov 2007, at 08:21, Eamon F. wrote:
Regards
2007-11-02 00:47:59) [GET]
Parameters: {“action”=>“index”, “controller”=>“articles”}
Errno::ENOENT (No such file or directory - /tmp/mysql.sock):
(rest snipped to placate mailing list grrr)
Eamon F. schrieb:
OK, here’s what production.log says. Does this mean I have to reinstall
MySQL? Oh crap… does that also mean I’ve lost everything in my Typo
database?
Don’t panic, it just says it can’t connect to mysql:
Errno::ENOENT (No such file or directory - /tmp/mysql.sock):
Mit freundlichen
GrüßenKonrad Riedel
–
Ingenieurbüro Riedel
Datenbanken und Systementwicklung
www.ibr-oss.de
Open Business Club: http://www.openbc.com/go/invuid/StefanKonrad_Riedel
Thank you!! The data was in /usr/local/mysql/data… and I found out
the problem was just that the mysql gui app which automatically starts
mysql on login just isn’t compatible with Leopard (yet). So starting
mysql from the command line made everything work fine.