initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0
Added by Marco Poli about 14 years ago
Hello all.
Trying to install Redmine 1.0.0 (RC) on a NetBSD with PostgreSQL resulted in a "stack level too deep" error when trying a initial rake db:migrate. Issue #3730, albeit closed, might be related. Any help is greatly appreciated.
Software versions involved:
NetBSD 4.0 (GENERIC.MP i386)
PostgreSQL 8.4.4
ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-netbsdelf]
rails 2.3.5
actionmailer 2.3.5
actionpack 2.3.5
activerecord 2.3.8
activeresource 2.3.8
activesupport 2.3.8
pg 0.9.0
postgres-pr 0.6.3
rack 1.0.1
rake 0.8.7
I tried using postgres-pr 0.6.3 instead of pg before, but had the same result. Although some of the first lines of the trace were different.
database.yml:
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: too_long_to_paste
enconding: UTF8
script/about:
# RAILS_ENV=production script/about 2>&1 About your application's environment Ruby version 1.8.7 (i386-netbsdelf) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Edge Rails revision unknown Application root /usr/local/share/redmine-1.0.0 Environment production Database adapter postgresql Database schema version 0
Full trace of the error:
# RAILS_ENV=production rake db:migrate --trace (in /usr/local/share/redmine-1.0.0) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! stack level too deep /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/autosave_association.rb:179:in `add_autosave_association_callbacks' (eval):4:in `belongs_to' /usr/local/share/redmine-1.0.0/app/models/repository.rb:19 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/changeset.rb:33 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/issue.rb:30 0 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/project.rb:35 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/attachment.rb:36 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' /usr/local/share/redmine-1.0.0/app/models/message.rb:22 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' 0 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/project.rb:35 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/attachment.rb:36 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' /usr/local/share/redmine-1.0.0/app/models/message.rb:22 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/pkg/bin/rake:19:in `load' /usr/pkg/bin/rake:19 #
Replies (6)
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Marco Poli about 14 years ago
Following khaase's sugestion, I added ActiveSupport::Dependencies.log_activity = true to config/environment.rb and got a new trace:
# vi config/environment.rb # RAILS_ENV=production rake db:migrate --trace (in /usr/local/share/redmine-1.0.0) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! SystemStackError: stack level too deep: SELECT tablename FROM pg_tables WHERE schemaname IN (E'"$user"',E'public') /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:537:in `query' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:656:in `tables' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:24:in `table_exists?' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/base.rb:1265:in `table_exists?' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/base.rb:1404:in `inspect' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `log_call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `collect' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `log_call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:399:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/changeset.rb:33 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/issue.rb:30 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/project.rb:35 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/attachment.rb:36 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' /usr/local/share/redmine-1.0.0/app/models/message.rb:22 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `new' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `instance' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:185:in `process' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' /usr/local/share/redmine-1.0.0/config/environment.rb:20 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/pkg/bin/rake:19:in `load' /usr/pkg/bin/rake:19 #
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Muntek Singh about 14 years ago
Install the latest version of will_paginate (2.2.2)
Solution by neldoreth on IRC, confirmed by darkslategrey
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Marco Poli about 14 years ago
Will_paginate did not fix my issue, but I don't seem to be able to get two equal traces depending on variables such as the user running the program, the version of will_paginate installed and so on...
Thanks for the effort.
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Marco Poli about 14 years ago
$ gem list ^[[A *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.8) activeresource (2.3.8) activesupport (2.3.8) pg (0.9.0) rack (1.0.1) rails (2.3.5) rake (0.8.7) will_paginate (2.2.2)
$ RAILS_ENV=production rake db:migrate --trace (in /usr/local/share/redmine-1.0.0) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment Rails Error: Unable to access log file. Please ensure that /usr/local/share/redmine-1.0.0/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. rake aborted! stack level too deep /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb:8:in `quote' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:391:in `quote' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:655:in `tables' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:655:in `map' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:655:in `tables' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:24:in `table_exists?' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/base.rb:1265:in `table_exists?' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/base.rb:1404:in `inspect' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `log_call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `collect' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:610:in `log_call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:399:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/changeset.rb:33 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/issue.rb:30 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/project.rb:35 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/attachment.rb:36 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' /usr/local/share/redmine-1.0.0/app/models/message.rb:22 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `new' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `instance' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:185:in `process' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' /usr/local/share/redmine-1.0.0/config/environment.rb:20 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/pkg/bin/rake:19:in `load' /usr/pkg/bin/rake:19 $
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Marco Poli about 14 years ago
Now, running as root:
# RAILS_ENV=production rake db:migrate --trace (in /usr/local/share/redmine-1.0.0) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! stack level too deep /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/core_ext/array/extract_options.rb:15:in `extract_options!' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:120:in `extract_options' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:81:in `build' (eval):2:in `before_save' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/autosave_association.rb:184:in `add_autosave_association_callbacks' (eval):4:in `belongs_to' /usr/local/share/redmine-1.0.0/app/models/repository.rb:19 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/changeset.rb:33 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/issue.rb:30 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/project.rb:35 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing' /usr/local/share/redmine-1.0.0/app/models/attachment.rb:36 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' /usr/local/share/redmine-1.0.0/app/models/message.rb:22 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' /usr/local/share/redmine-1.0.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `new' /usr/pkg/lib/ruby/1.8/singleton.rb:94:in `instance' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send' /usr/local/share/redmine-1.0.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:185:in `process' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' /usr/local/share/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' /usr/local/share/redmine-1.0.0/config/environment.rb:20 /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/pkg/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /usr/local/share/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /usr/local/share/redmine-1.0.0/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain' /usr/pkg/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/pkg/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/pkg/bin/rake:19:in `load' /usr/pkg/bin/rake:19 #
RE: initial rake db:migrate error: stack level too deep, 1.0.0 RC with PostgreSQL 8.4.4 and NetBSD 4.0 - Added by Chris J almost 14 years ago
I had this exact problem with NetBSD 5.0.2 and Redmine 1.0.2/1.0.3.
It's because NetBSD has a default of 2M stack memory available per segment. That's not enough for importing the database. Raise the stack limit to 16M with ulimit -s 16384
and retry RAILS_ENV=production rake db:migrate
as that should work then.