supermarket: supermarket onsite giving errors when downloading

getting the following error on the supermarket server

2016-10-10_21:41:08.79020 F, [2016-10-10T21:41:08.790015 #9000] FATAL -- :
2016-10-10_21:41:08.79026 ActionView::Template::Error (undefined method 'foodcritic_failure' for #<CookbookVersion:0x0000000a6fcfe8>):
2016-10-10_21:41:08.79027      6: json.file api_v1_cookbook_version_download_url(cookbook_version.cookbook, cookbook_version)
2016-10-10_21:41:08.79028      7: json.quality do
2016-10-10_21:41:08.79029      8:   json.foodcritic do
2016-10-10_21:41:08.79029      9:     json.failed @cookbook.foodcritic_failure
2016-10-10_21:41:08.79030     10:     json.feedback @cookbook.foodcritic_feedback
2016-10-10_21:41:08.79031     11:   end
2016-10-10_21:41:08.79031     12:   json.collaborator do
2016-10-10_21:41:08.79032   app/models/cookbook.rb:104:in 'foodcritic_failure'
2016-10-10_21:41:08.79033   app/views/api/v1/cookbook_versions/_cookbook_version.json.jbuilder:9:in 'block (2 levels) in _app_views_api_v__cookbook_versions__cookbook_version_json_jbuilder___459650076470880843_74145800'
2016-10-10_21:41:08.79033   app/views/api/v1/cookbook_versions/_cookbook_version.json.jbuilder:8:in 'block in _app_views_api_v__cookbook_versions__cookbook_version_json_jbuilder___459650076470880843_74145800'
2016-10-10_21:41:08.79034   app/views/api/v1/cookbook_versions/_cookbook_version.json.jbuilder:7:in `_app_views_api_v__cookbook_versions__cookbook_version_json_jbuilder___459650076470880843_74145800'
2016-10-10_21:41:08.79037   app/views/api/v1/cookbook_versions/show.json.jbuilder:1:in '_app_views_api_v__cookbook_versions_show_json_jbuilder__1257229507425499343_74105600'
2016-10-10_21:41:08.79037
2016-10-10_21:41:08.79038

Getting this from the client side trying to download our internal java wrapper cookbook

E, [2016-10-10T14:41:08.795612 #32070] ERROR -- : Actor crashed!
Berkshelf::CommunitySiteError: An unexpected error occurred retrieving 'dm_java' (0.1.5) from the cookbook site at ''.
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/community_rest.rb:124:in `find'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/community_rest.rb:100:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/downloader.rb:61:in `try_download'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/downloader.rb:35:in `block in download'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/downloader.rb:34:in `each'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/downloader.rb:34:in `download'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.1.0/lib/berkshelf/installer.rb:105:in `install'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
An unexpected error occurred retrieving 'dm_java' (0.1.5) from the cookbook site at ''.

tried rolling back to 2.8.25 and getting the same messages.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

log into the postgres database as supermarket

\c supermarket;
ALTER TABLE cookbook_versions ADD COLUMN "foodcritic_failure" BOOLEAN;
ALTER TABLE cookbook_versions ADD COLUMN "collaborator_failure" BOOLEAN;
ALTER TABLE cookbook_versions ADD COLUMN "foodcritic_feedback" TEXT;
ALTER TABLE cookbook_versions ADD COLUMN "collaborator_feedback" TEXT;