"We're sorry, but something went wrong." - Error!

Hi,

I am currently running a rails / mysql project and keep getting the
error as seen in the title of this topic.

"
We’re sorry, but something went wrong.

We’ve been notified about this issue and we’ll take a look at it
shortly.
"

Im not sure exactly what is causing this. It doesnt happen most of the
time (maybe three times a day) but when it does happen, it takes a
reboot of webrick to get things to go again.

The development log file doesnt give away all that much:

IOError (closed stream):
E:/ruby/lib/ruby/1.8/mysql.rb:1032:in sync=' E:/ruby/lib/ruby/1.8/mysql.rb:1032:in write’
E:/ruby/lib/ruby/1.8/mysql.rb:1092:in finalizer' E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations.rb:1002:in association_constructor_method’
E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations.rb:714:in
belongs_to' /app/models/artist.rb:31 E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in load_file’
E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:202:in load_file’
E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in
require_or_load' E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:248:in load_missing_constant’
E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
const_missing' E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in const_missing’
E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1358:in
compute_type' E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/reflection.rb:125:in klass’
E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/has_and_belongs_to_many_association.rb:158:in
construct_sql' E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/has_and_belongs_to_many_association.rb:6:in initialize’
E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations.rb:934:in
artists' E:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/association_proxy.rb:123:in method_missing’
/app/controllers/admin_general_controller.rb:143:in labelIndex' /app/controllers/admin_general_controller.rb:108:in index’
/app/controllers/admin_general_controller.rb:99:in switchBack' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in perform_action_without_filters’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in
call_filter' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in call_filter’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in
call' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in call_filter’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in
call_filter' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in perform_action_without_benchmark’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' E:/ruby/lib/ruby/1.8/benchmark.rb:293:in measure’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in perform_action’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
process_without_filters' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in process_without_session_management_support’
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in
process' E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in process’
E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in
dispatch' E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in handle_dispatch’
E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in
service' E:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service’
E:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' E:/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread’
E:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' E:/ruby/lib/ruby/1.8/webrick/server.rb:95:in start’
E:/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' E:/ruby/lib/ruby/1.8/webrick/server.rb:23:in start’
E:/ruby/lib/ruby/1.8/webrick/server.rb:82:in start' E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in dispatch’
E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59
E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’
script/server:3

Rendering
E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
e[4;35;1mUser Columns (0.015000)e[0m e[0mSHOW FIELDS FROM userse[0m
e[4;36;1mSQL (0.000000)e[0m e[0;1mSET NAMES 'utf8’e[0m
e[4;35;1mSQL (0.000000)e[0m e[0mSET SQL_AUTO_IS_NULL=0e[0m
e[4;36;1mLabel Columns (0.000000)e[0m e[0;1mSHOW FIELDS FROM
labelse[0m
e[4;35;1mUseradminassociation Columns (0.016000)e[0m e[0mSHOW FIELDS
FROM useradminassociationse[0m

Processing AdminGeneralController#select_label_image (for 127.0.0.1 at
2007-07-12 09:10:38) [POST]
Session ID: 69bc2ef8934f0a68d45f847e627fa2ac
Parameters: {“limage”=>“/images/networks/network9/application_go.png”,
“action”=>“select_label_image”, “controller”=>“admin_general”}
e[4;36;1mSQL (0.000000)e[0m e[0;1mBEGINe[0m
e[4;35;1mLabel Update (0.016000)e[0m e[0mUPDATE labels SET
Comments = ‘American’, ContactNumber = ‘08199009989’, LabelImage =
‘/images/networks/network9/application_go.png’, Name = ‘Warner
Brothers Records’, CreateDate = ‘2007-04-10 00:00:00’, Active = 1,
AddressIdentity = 1 WHERE LabelIdentity = 1e[0m
e[4;36;1mSQL (0.031000)e[0m e[0;1mCOMMITe[0m
Completed in 0.06200 (16 reqs/sec) | Rendering: 0.00000 (0%) | DB:
0.04600 (74%) | 200 OK
[http://localhost/admin_general/select_label_image]
closed stream

E:/ruby/lib/ruby/1.8/mysql.rb:1032:in `sync=’

E:/ruby/lib/ruby/1.8/mysql.rb:1032:in `write’

E:/ruby/lib/ruby/1.8/mysql.rb:1092:in `finalizer’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:821:in
`segments_for_route_path’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:950:in
`build’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1172:in
`add_route’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:986:in
`connect’

./script/…/config/…/config/routes.rb:18

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1139:in
`draw’

./script/…/config/…/config/routes.rb:1

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
`load’

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
`load’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1165:in
`load_routes!’

E:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1157:in
`reload’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:105:in
`prepare_application’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in
`dispatch’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
`handle_dispatch’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in
`service’

E:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’

E:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’

E:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread’

E:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

E:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start’

E:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start’

E:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start’

E:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
`dispatch’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59

E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

E:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

E:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39

E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’

script/server:3

Im assuming its something to do with the IO error but cant think what
that might be exactly.

Any help on this at all?

Cheers,

Chris

Hi Chris,

Chris G. wrote:

I am currently running a rails / mysql project and keep
getting the error as seen in the title of this topic.

That’s the default 500.html page. You’ll find it in your public folder.
There might be some info in your logs to help figure out what’s causing
it.
The list of status codes that could be causing it is at
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

hth,
Bill

have you tried to run your app in a linux / OS X environement
Additionally you could check your logfile, log/production.log

if you want to have request local, make this setting in your
enviroment (e.g. config/environments/production.rb)
config.action_controller.consider_all_requests_local = true

set this option, specially in the development.rb

kind regards

On 12 Jul., 10:20, Chris G. [email protected]