I''m migrating instiki from a WinXP box to a Win2k8 box as well as upgrading to 0.16.3. I am running MySQL and have moved the database successfully. I unzipped instiki and modified database.yml. When I run instiki.cmd it looks like the app starts up although I did notice it says Rails 2.3.0 not 2.3.1. When I navigate to localhost:2500 I receive this error: ArgumentError in WikiController#index NULL pointer given RAILS_ROOT: D:/instiki-0.16.3 Application Trace | Framework Trace | Full Trace (eval):3:in `each_hash'' (eval):3:in `all_hashes'' D:/instiki-0.16.3/app/models/wiki.rb:87:in `webs'' D:/instiki-0.16.3/app/controllers/wiki_controller.rb:22:in `index'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:596:in `select'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:81:in `cache_sql'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:661:in `find_by_sql'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:1554:in `find_every'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:615:in `find'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:1261:in `send'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:1261:in `perform_action_without_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `around_proc'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:184:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:10:in `realtime'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/flash.rb:141:in `perform_action'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:523:in `send'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:523:in `process_without_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:433:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:65:in `dispatch'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:88:in `_call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:59:in `initialize'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'' D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/head.rb:9:in `call'' D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/methodoverride.rb:24:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:83:in `call'' D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/static.rb:27:in `call'' D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/webrick.rb:40:in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/webrick.rb:12:in `run'' script/server:105 (eval):3:in `each_hash'' (eval):3:in `all_hashes'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:596:in `select'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:81:in `cache_sql'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:661:in `find_by_sql'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:1554:in `find_every'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/base.rb:615:in `find'' D:/instiki-0.16.3/app/models/wiki.rb:87:in `webs'' D:/instiki-0.16.3/app/controllers/wiki_controller.rb:22:in `index'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:1261:in `send'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:1261:in `perform_action_without_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `around_proc'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:184:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:10:in `realtime'' D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/flash.rb:141:in `perform_action'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:523:in `send'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:523:in `process_without_filters'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:433:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:65:in `dispatch'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:88:in `_call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:59:in `initialize'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'' D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'' D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/head.rb:9:in `call'' D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/methodoverride.rb:24:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'' D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:83:in `call'' D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/static.rb:27:in `call'' D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/webrick.rb:40:in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/webrick.rb:12:in `run'' script/server:105 Request Parameters: None Show session dump --- Response Headers: {"Content-Type"=>"text/html; charset=utf-8", "Cache-Control"=>"no-cache"} Thanks, Joel
On Mar 4, 2009, at 6:13 PM, Joel W. Garman wrote:> I''m migrating instiki from a WinXP box to a Win2k8 box as well as > upgrading to 0.16.3. I am running MySQL and have moved the database > successfully. I unzipped instiki and modified database.yml.Did you do a rake migrate RAILS_ENV=production ?> When I run > instiki.cmd it looks like the app starts up although I did notice it > says > Rails 2.3.0 not 2.3.1.The release version is based on Rail 2.3.0. The development version (which fixes several bugs in 0.16.3) is based on the (not-yet-released) Rails 2.3.1.> When I navigate to localhost:2500 I receive this > error: > > ArgumentError in WikiController#index > NULL pointer given > RAILS_ROOT: D:/instiki-0.16.3Hmm. Are you migrating an existing installation, or starting a new one? (I assume the former.) One option you might try are the instructions here: http://golem.ph.utexas.edu/instiki/show/Migrating+to+MySQL They''re for migrating from a SQLite3 installation to MySQL. But I suppose they could be equally useful for migrating from one MySQL installation to another. But I''m guessing the problem is simpler than that.> > > Application Trace | Framework Trace | Full Trace > (eval):3:in `each_hash'' > (eval):3:in `all_hashes'' > D:/instiki-0.16.3/app/models/wiki.rb:87:in `webs'' > D:/instiki-0.16.3/app/controllers/wiki_controller.rb:22:in `index'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:596:in > `select'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/database_statements.rb:7:in > `select_all_without_query_cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:60:in > `select_all'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:81:in > `cache_sql'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:60:in > `select_all'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:661:in > `find_by_sql'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:1554:in > `find_every'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:615:in > `find'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:1261:in > `send'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:1261:in > `perform_action_without_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:617:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:638:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:206:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:206:in > `around_proc'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in > `call'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in > `evaluate_method'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:184:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:635:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:615:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:638:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:189:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:189:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:635:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:615:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:610:in > `perform_action_without_benchmark'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in > `perform_action_without_rescue'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:17:in > `ms'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:10:in > `realtime'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:17:in > `ms'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in > `perform_action_without_rescue'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rescue.rb:160:in > `perform_action_without_flash'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > flash.rb:141:in > `perform_action'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:523:in > `send'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:523:in > `process_without_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:606:in > `process'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:391:in > `process'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:386:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > routing/route_set.rb:433:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:65:in > `dispatch'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:88:in > `_call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:59:in > `initialize'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in > `call'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in > `call'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:34:in > `cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:9:in > `cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:28:in > `call'' > D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/head.rb:9:in `call'' > D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/methodoverride.rb:24:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > params_parser.rb:15:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rewindable_input.rb:25:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > session/cookie_store.rb:93:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > failsafe.rb:11:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rack_ext/lock.rb:15:in > `call'' > c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rack_ext/lock.rb:15:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:83:in > `call'' > D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/static.rb:27:in > `call'' > D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/log_tailer.rb: > 17:in > `call'' > c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/ > webrick.rb:40:in > `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' > c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/ > webrick.rb:12:in > `run'' > script/server:105 > (eval):3:in `each_hash'' > (eval):3:in `all_hashes'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:596:in > `select'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/database_statements.rb:7:in > `select_all_without_query_cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:60:in > `select_all'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:81:in > `cache_sql'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:60:in > `select_all'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:661:in > `find_by_sql'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:1554:in > `find_every'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > base.rb:615:in > `find'' > D:/instiki-0.16.3/app/models/wiki.rb:87:in `webs'' > D:/instiki-0.16.3/app/controllers/wiki_controller.rb:22:in `index'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:1261:in > `send'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:1261:in > `perform_action_without_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:617:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:638:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:206:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:206:in > `around_proc'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in > `call'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in > `evaluate_method'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:184:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:635:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:615:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:638:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:189:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:189:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:635:in > `run_before_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:615:in > `call_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:610:in > `perform_action_without_benchmark'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in > `perform_action_without_rescue'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:17:in > `ms'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:10:in > `realtime'' > D:/instiki-0.16.3/vendor/rails/activesupport/lib/active_support/ > core_ext/benchmark.rb:17:in > `ms'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in > `perform_action_without_rescue'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rescue.rb:160:in > `perform_action_without_flash'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > flash.rb:141:in > `perform_action'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:523:in > `send'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:523:in > `process_without_filters'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > filters.rb:606:in > `process'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:391:in > `process'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > base.rb:386:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > routing/route_set.rb:433:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:65:in > `dispatch'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:88:in > `_call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:59:in > `initialize'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in > `call'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in > `call'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:34:in > `cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:9:in > `cache'' > D:/instiki-0.16.3/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:28:in > `call'' > D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/head.rb:9:in `call'' > D:/instiki-0.16.3/vendor/plugins/rack/lib/rack/methodoverride.rb:24:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > params_parser.rb:15:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rewindable_input.rb:25:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > session/cookie_store.rb:93:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > failsafe.rb:11:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rack_ext/lock.rb:15:in > `call'' > c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > rack_ext/lock.rb:15:in > `call'' > D:/instiki-0.16.3/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:83:in > `call'' > D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/static.rb:27:in > `call'' > D:/instiki-0.16.3/vendor/rails/railties/lib/rails/rack/log_tailer.rb: > 17:in > `call'' > c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/ > webrick.rb:40:in > `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' > c:/ruby/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/ > webrick.rb:12:in > `run'' > script/server:105 > Request > Parameters: > > None > > Show session dump > > --- > > Response > Headers: > > {"Content-Type"=>"text/html; charset=utf-8", > "Cache-Control"=>"no-cache"} > > > Thanks, > Joel > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 253 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20090304/cc21881c/attachment-0001.bin>
On Wed, Mar 4, 2009 at 4:13 PM, Joel W. Garman <joel.w.garman at biola.edu>wrote:> I''m migrating instiki from a WinXP box to a Win2k8 box as well as > upgrading to 0.16.3. I am running MySQL and have moved the database > successfully. I unzipped instiki and modified database.yml. When I run > instiki.cmd it looks like the app starts up although I did notice it says > Rails 2.3.0 not 2.3.1. When I navigate to localhost:2500 I receive this > error:I found the migration process (on Windows) from 0.10.2 to 0.16.3 to be particularly painful (and at the end I still have a lot of orphaned pages). Some things I hit: - had to manually issue "gem install rack" - had to manually install sqlite ... i also used gem install to get native sqlite bindings (due to some warnings) but the latest sqlite3-ruby (1.2.4) requires you to compile sqlite / ruby from sources. I had to install sqlite3-ruby 1.2.3 instead which didnt impose this requirement - the migration read me gives example for windows to run script\import_storage which uses "\" slashes in the directory names, but the script requires that you use "/" slashes or it generates errors. - the script reset_references is pointed at the development database and not the production database contrary to what the readme states. You can either edit the second line of the script and change ''development'' to ''production'' or copy your database to the development referenced one in database.yml... - I also was getting errors from reset_references in the line that reads (I cant recall the error message): Web.find_all.each do |web| I had to change this to: Web.find(:all).each do |web| There may have been more, but those are what I recall. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20090305/3c214a6c/attachment.html>
I migrated to MySQL about 6 months ago and man would that write-up have been helpful. I ran into every problem you addressed. However... I was migrating my existing 0.13.0 installation to a new Win2k8 box and upgrading to 0.16.3. The problem was located with database. There was some corruption in my mysql schema when I dumped all my databases together. I started the mysql server install over from scratch. I dumped just my instiki database, imported it to the new server, added my instiki user to the mysql.user table, and appropriated rights for my instiki database to that user. Instiki was not to blame. Although I did notice that while running on Windows some of the bundled plugins did not work so I have to "gem install" rack and activerecord. Thanks for the quick feedback and help! Instiki-users <instiki-users at rubyforge.org> writes:>On Wed, Mar 4, 2009 at 4:13 PM, Joel W. Garman <[ >mailto:joel.w.garman at biola.edu ]joel.w.garman at biola.edu> wrote: > > >I''m migrating instiki from a WinXP box to a Win2k8 box as well as >upgrading to 0.16.3. I am running MySQL and have moved the database >successfully. I unzipped instiki and modified database.yml. When I run >instiki.cmd it looks like the app starts up although I did notice it says >Rails 2.3.0 not 2.3.1. When I navigate to localhost:2500 I receive this >error: > > > >I found the migration process (on Windows) from 0.10.2 to 0.16.3 to be >particularly painful (and at the end I still have a lot of orphaned >pages). > >Some things I hit: > >- had to manually issue "gem install rack" > >- had to manually install sqlite ... i also used gem install to get >native sqlite bindings (due to some warnings) but the latest sqlite3-ruby >(1.2.4) requires you to compile sqlite / ruby from sources. I had to >install sqlite3-ruby 1.2.3 instead which didnt impose this requirement > >- the migration read me gives example for windows to run >script\import_storage which uses "\" slashes in the directory names, but >the script requires that you use "/" slashes or it generates errors. > >- the script reset_references is pointed at the development database and >not the production database contrary to what the readme states. You can >either edit the second line of the script and change ''development'' to >''production'' or copy your database to the development referenced one in >database.yml... > >- I also was getting errors from reset_references in the line that reads >(I cant recall the error message): >Web.find_all.each do |web| > >I had to change this to: >Web.find(:all).each do |web| > > > >There may have been more, but those are what I recall. > > > >_______________________________________________ >Instiki-users mailing list >Instiki-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/instiki-users
On Mar 5, 2009, at 4:37 PM, eg wrote:> I found the migration process (on Windows) from 0.10.2 to 0.16.3 to > be particularly painfulI''m amazed you were able to do it at all. I confess that I have no knowledge whatsoever of pre-ActiveRecord versions of Instiki (really, anything pre-0.11), and so those migration scripts are bound to have suffered from bit-rot.> (and at the end I still have a lot of orphaned pages). > > Some things I hit: > > - had to manually issue "gem install rack"Will not be necessary. Rails 2.3.1 (and hence Instiki 0.16.4) bundle Rack 1.0, and the bundled version of Rack is (I believe) properly detected under Windows (unlike the situation in Instiki 0.16.3).> - had to manually install sqlite ... i also used gem install to get > native sqlite bindings (due to some warnings) but the latest sqlite3- > ruby (1.2.4) requires you to compile sqlite / ruby from sources. I > had to install sqlite3-ruby 1.2.3 instead which didnt impose this > requirementThat I pretty much expect. On other platforms (Linux, MacOSX 10.4 and earlier), you have to install various prerequisites, including the sqlite3-ruby bindings. It would be strange if you could evade doing that under Windows. Have a look at these instructions http://golem.ph.utexas.edu/instiki/show/Installation and feel free to add to the (rudimentary to nonexistent) Windows instructions.> - the migration read me gives example for windows to run script > \import_storage which uses "\" slashes in the directory names, but > the script requires that you use "/" slashes or it generates errors. > > - the script reset_references is pointed at the development database > and not the production database contrary to what the readme states. > You can either edit the second line of the script and change > ''development'' to ''production'' or copy your database to the > development referenced one in database.yml... > > - I also was getting errors from reset_references in the line that > reads (I cant recall the error message): > Web.find_all.each do |web| > > I had to change this to: > Web.find(:all).each do |web|This is the sort of bit-rot I was talking about. I''d be happy to fix these things, but I don''t have a testbed platform to make sure they stay fixed. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 253 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20090305/6a9efa39/attachment.bin>
Matthias Tarasiewicz
2009-Mar-06 11:14 UTC
[Instiki] ArgumentError in WikiController#index
> On Mar 5, 2009, at 4:37 PM, eg wrote: > >> I found the migration process (on Windows) from 0.10.2 to 0.16.3 to >> be particularly painful >i just set up a windows machine to test out stuff for instiki windows compatibility. what would help now, would be some info on which packages, gems and stuff you installed, to reproduce the issue you described. can you give some additional information? regards, matthias
On Fri, Mar 6, 2009 at 3:14 AM, Matthias Tarasiewicz <mt at mutti.jp> wrote:> On Mar 5, 2009, at 4:37 PM, eg wrote: >> >> I found the migration process (on Windows) from 0.10.2 to 0.16.3 to be >>> particularly painful >>> >> >> > i just set up a windows machine to test out stuff for instiki windows > compatibility. > what would help now, would be some info on which packages, gems and stuff > you installed, to reproduce the issue you described. can you give some > additional information? > > regards, > matthias > >I did it in my VM (last week) so I wouldn''t mess up my live wiki. I installed ruby 186-27 from the one- click installer The I did a "gem install instiki-0.10.2.gem" This installed 10 (pre-requisite) gems. It gave an error trying to generate documentation for actionpack-1.9.1 but other than that it worked. I copied over my existing wiki storage and ran instiki to verify the original was working. I can provide the local list of gems at this point as I took a snapshot. At this point I started on the merry process of upgrading. I don''t recall the exact sequence I took from there (rails, sqlite, instiki, rack ) . Hope this is helpful. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20090306/50a223ef/attachment.html>