Content
problem with rake db:seed with manual installation on mac os x 10.9 and ubuntu 12.04 LTS (resolved)
Added by Denis Lamotte over 9 years ago
the bundle installation worked fine
git checkout tag v4.0.5
openproject git:((v4.0.5)) ✗
openproject git:((v4.0.5)) ✗> bundle install
openproject git:((v4.0.5)) ✗> bower install
openproject git:((v4.0.5)) ✗> bundle exec rake db:drop db:create db:migrate
openproject git:((v4.0.5)) ✗> bundle exec rake db:migrate #for plugins
openproject git:((v4.0.5)) ✗> and bundle exec rake db:seed failed partially
openproject git:((v4.0.5)) ✗> bundle exec rake asset:precompile worked worked
SO my question is is
The behaviour is simalar on my mac os x and on ubuntu 12.04 lts with the same gemfile.
i needed to force the use of “gem ‘bourbon’, ‘4.0’” inside it because 4.1.1 cause problem as Martin acknowleged on an other Forum
i’m able to login as admin and quite everything seems to work except thoses errors when trying to drag and drop stories in the backlog:
—————— production log—————————
Started PUT “/projects/permesso/sprints/2/stories/62” for 79.132.238.178 at 2015-01-27 18:22:16 +0100
Processing by RbStoriesController#update as /
Parameters: {“prev”=>“”, “fixed_version_id”=>“2”, “project_id”=>“permesso”, “sprint_id”=>“2”, “id”=>“62”}
Completed 500 Internal Server Error in 179.3ms
TypeError (can’t dump anonymous class Class):
app/models/journal_observer.rb:49:in `block in after_create_issue_journal’
app/models/journal_observer.rb:48:in `each’
app/models/journal_observer.rb:48:in `after_create_issue_journal’
app/models/journal_observer.rb:35:in `after_create’
lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb:71:in `block in save_journals’
lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb:71:in `each’
lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb:71:in `save_journals’
this error TypeError Exception: can’t dump anonymous class Class
This happens when you try to call to_yaml or to_json or any other representation directly on a class instead of calling it on an instance.
so it also seems related to the syck library given with ruby 2.1.5, (btw with ruby 2.2 the problem seems worse , migration doesn’t even run)
—————— production log—————————
—————— Remote terminal console—————————
rake db:seed
require ‘rails/all’… 0.600s
Bundler.require… DEPRECATION WARNING: All functionality provided by openproject-plugins has now been integrated in OpenProject core.
Please remove openproject-plugins from your Gemfile."
(called from <top (required)> at /Users/denislamotte/.rvm/gems/ruby-2.1.5/bundler/gems/openproject-plugins-25953acb850e/lib/openproject-plugins.rb:16)
2.460s
Application.initialize!… 3.840s
***** Loading all seed data
***** Loading development seed data
Default configuration data loaded.
Creating seeded project…
Creating objects for…
…for user number 1/3 (Antonette2868)
……create issues……………………………………..rake aborted!
TypeError: can’t dump anonymous class Class
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:6:in `to_yaml’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:19:in `node_export’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:19:in `add’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:19:in `block (3 levels) in to_yaml’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:18:in `each’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:18:in `block (2 levels) in to_yaml’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:17:in `map’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:17:in `block in to_yaml’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck.rb:411:in `call’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck.rb:411:in `emit’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck.rb:411:in `quick_emit’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/syck-1.0.4/lib/syck/rubytypes.rb:16:in `to_yaml’
/Users/denislamotte/.rvm/gems/ruby-2.1.5/gems/delayed_job-3.0.5/lib/delayed/backend/base.rb:81:in `payload_object=’
bundle exec gem list | grep syck
syck (1.0.4)
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.3
- RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-2.1.5@openproject4
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-2.1.5/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-2.1.5@openproject4/bin
- SPEC CACHE DIRECTORY: /home/spade/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rvm/gems/ruby-2.1.5@openproject4
- /usr/local/rvm/gems/ruby-2.1.5@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/rvm/gems/ruby-2.1.5@openproject4/bin
- /usr/local/rvm/gems/ruby-2.1.5@global/bin
- /usr/local/rvm/rubies/ruby-2.1.5/bin
- /usr/local/rvm/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
at Gemfile.plugins
gem “prawn”
gem “pdf-inspector”, “~>1.0.0”
gem “openproject-plugins”, :git => “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem “openproject-pdf_export”, :git => “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”
gem “openproject-meeting”, :git => “https://github.com/finnlabs/openproject-meeting.git”, :branch => “stable”
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”
gem “openproject-global_roles”, :git => “https://github.com/finnlabs/openproject-global_roles.git”, :branch => “stable”
gem “openproject-costs”, :git => “https://github.com/finnlabs/openproject-costs.git”, :branch => “stable”
gem “reporting_engine”, git: “https://github.com/finnlabs/reporting_engine.git”, :branch => “stable”
gem “openproject-reporting”, :git => “https://github.com/finnlabs/openproject-reporting.git”, :branch => “stable”
#gem ‘openproject-emoji’, :git => ‘https://github.com/tessi/openproject-emoji.git’, :branch => ‘stable’
gem ‘openproject-help_link’, :git => ‘https://github.com/finnlabs/openproject-help_link.git’, :branch => ‘stable’
gem ‘openproject-translations’, :git => ‘https://github.com/opf/openproject-translations.git’, :branch => ‘stable’
#gem ‘openproject-translations’, :path => ‘./vendor/openproject-translations’
gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’
gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’
bundle exec gem list
* LOCAL GEMS*
actionmailer (3.2.21)
actionpack (3.2.21)
activemodel (3.2.21)
activerecord (3.2.21)
activerecord-tableless (1.3.4)
activeresource (3.2.21)
activesupport (3.2.21)
acts_as_list (0.2.0)
acts_as_silent_list (1.2.0)
addressable (2.3.6)
afm (0.2.2)
arel (3.0.3)
Ascii85 (1.0.2)
awesome_nested_set (2.1.6)
axiom-types (0.1.1)
binding_of_caller (0.7.2)
bourbon (4.0.0)
builder (3.0.4)
bundler (1.7.12)
byebug (2.7.0)
capybara (2.3.0)
capybara-screenshot (1.0.4)
childprocess (0.5.5)
climate_control (0.0.3)
cocaine (0.5.5)
codeclimate-test-reporter (0.4.6)
coderay (1.0.9)
coercible (1.0.0)
color-tools (1.3.0)
colored (1.2)
columnize (0.9.0)
crowdin-api (0.2.5)
cucumber (1.3.18)
cucumber-rails (1.4.2)
cucumber-rails-training-wheels (1.0.0)
daemons (1.1.9)
dalli (2.7.2)
database_cleaner (1.2.0)
date_validator (0.7.1)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
delayed_job (3.0.5)
delayed_job_active_record (0.3.3)
descendants_tracker (0.0.4)
diff-lcs (1.2.5)
disposable (0.0.4)
equalizer (0.0.9)
erubis (2.7.0)
eventmachine (1.0.4)
execjs (2.2.2)
factory_girl (4.5.0)
factory_girl_rails (4.5.0)
faker (1.4.3)
ffi (1.9.6)
gherkin (2.12.2)
globalize (3.1.0)
gon (4.1.1)
grape (0.7.0)
gravatar_image_tag (1.2.0)
hashery (2.1.1)
hashie (3.3.2)
hike (1.2.3)
hooks (0.3.3)
htmldiff (0.0.1)
i18n (0.7.0)
i18n-js (3.0.0.rc8)
ice_nine (0.11.1)
interception (0.5)
iso8601 (0.8.4)
journey (1.0.4)
json (1.8.2)
json_spec (1.1.4)
kgio (2.9.3)
launchy (2.3.0)
letter_opener (1.0.0)
livingstyleguide (1.2.2)
mail (2.5.4)
method_source (0.8.2)
mime-types (1.25.1)
mini_portile (0.6.2)
minisyntax (0.2.3)
multi_json (1.10.1)
multi_test (0.1.1)
multi_xml (0.5.5)
mysql2 (0.3.17)
net-ldap (0.8.0)
netrc (0.10.2)
nokogiri (1.6.6.1)
non-stupid-digest-assets (1.0.4)
object-daddy (1.1.1)
oj (2.11.4)
omniauth (1.2.2)
openproject-backlogs (4.0.5)
openproject-costs (4.0.5)
openproject-documents (4.0.5)
openproject-global_roles (4.0.5)
openproject-help_link (4.0.5)
openproject-meeting (4.0.5)
openproject-my_project_page (4.0.5)
openproject-pdf_export (4.0.5)
openproject-plugins (4.0.4)
openproject-reporting (4.0.5)
openproject-translations (4.0.5)
pdf-inspector (1.0.2)
pdf-reader (1.3.3)
pg (0.17.1)
polyglot (0.3.5)
prawn (0.14.0)
prototype-rails (3.2.1)
prototype_legacy_helper (0.0.0)
pry (0.9.12.6)
pry-byebug (1.3.2)
pry-doc (0.6.0)
pry-rails (0.3.2)
pry-rescue (1.4.1)
pry-stack_explorer (0.4.9.1)
quiet_assets (1.1.0)
rabl (0.9.3)
rack (1.4.5)
rack-accept (0.4.5)
rack-cache (1.2)
rack-mount (0.8.3)
rack-protection (1.5.2)
rack-ssl (1.3.4)
rack-test (0.6.3)
rack_session_access (0.1.1)
rails (3.2.21)
rails-dev-tweaks (0.6.1)
rails_autolink (1.1.6)
railties (3.2.21)
raindrops (0.13.0)
rake (10.4.2)
rb-readline (0.5.2)
rdoc (3.12.2)
redcarpet (3.0.0)
reform (1.0.4)
reporting_engine (1.0.0)
representable (1.8.1)
request_store (1.1.0)
rest-client (1.7.2)
roar (0.12.9)
rspec (2.99.0)
rspec-activemodel-mocks (1.0.1)
rspec-collection_matchers (1.1.2)
rspec-core (2.99.2)
rspec-example_disabler (0.0.1)
rspec-expectations (2.99.2)
rspec-mocks (2.99.3)
rspec-rails (2.99.0)
ruby-duration (3.2.0)
ruby-prof (0.15.3)
ruby-progressbar (1.7.1)
ruby-rc4 (0.1.5)
rubytree (0.8.3)
rubyzip (1.1.6)
sass (3.3.14)
sass-rails (4.0.1)
selenium-webdriver (2.43.0)
shoulda (3.5.0)
shoulda-context (1.2.1)
shoulda-matchers (2.7.0)
simplecov (0.8.0.pre)
simplecov-html (0.7.1)
slop (3.6.0)
sprockets (2.2.2.backport2)
sprockets-rails (2.0.1)
sqlite3 (1.3.10)
strong_parameters (0.2.3)
structured_warnings (0.2.0)
svg-graph (1.0.5)
syck (1.0.4)
test-unit (2.5.5)
thin (1.6.3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
timecop (0.6.3)
treetop (1.4.15)
ttfunk (1.0.3)
tzinfo (0.3.42)
uber (0.0.13)
uglifier (2.7.0)
unicorn (4.8.3)
virtus (1.0.4)
websocket (1.2.1)
will_paginate (3.0.7)
xpath (2.0.0)
yard (0.8.7.6)
Replies (1)
the order of the definitions of the plugin matters and resolve eveythings
https://community.openproject.org/work_packages/5866
gem ‘openproject-plugins’, :git => ‘https://github.com/opf/openproject-plugins.git’, :branch => ‘stable’
gem ‘openproject-pdf_export’, :git => ‘https://github.com/finnlabs/openproject-pdf_export.git’, :branch => ‘stable’
gem “openproject-costs”, git: “https://github.com/finnlabs/openproject-costs.git”, :branch => ‘stable’
gem ‘openproject-global_roles’, :git => ‘https://github.com/finnlabs/openproject-global_roles.git’, :branch => ‘stable’
gem “openproject-meeting”, :git => “https://github.com/finnlabs/openproject-meeting.git”, :branch => “stable”
gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’
gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’
gem ‘reporting_engine’, :git => ‘https://github.com/finnlabs/reporting_engine.git’, :branch => ‘stable’
gem ‘openproject-help_link’, :git => ‘https://github.com/finnlabs/openproject-help_link.git’, :branch => ‘stable’
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => ‘stable’