Docker Uninitialized constant Sprockets Rails LegacyAssetTagHelper


(Sedrickcz) #1

Hi.
I have one issue when bootstraping docker image.
I have this Docker version 1.0.0, build 63fe64c

It fails with this error. Any help? Thanks

  , [2014-06-10T11:13:30.648268 #35]  INFO -- : > cd /var/www/discourse && cp -fr vendor/bundle/* /shared/vendor_bundle
    I, [2014-06-10T11:13:37.019746 #35]  INFO -- : 
    I, [2014-06-10T11:13:37.020018 #35]  INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake db:migrate
    rake aborted!
    NameError: uninitialized constant Sprockets::Rails::LegacyAssetTagHelper::ActionView
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/legacy_asset_tag_helper.rb:7:in `<module:LegacyAssetTagHelper>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/legacy_asset_tag_helper.rb:6:in `<module:Rails>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/legacy_asset_tag_helper.rb:4:in `<module:Sprockets>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/legacy_asset_tag_helper.rb:3:in `<top (required)>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/helper.rb:12:in `require'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/helper.rb:12:in `<module:Helper>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/helper.rb:7:in `<module:Rails>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/helper.rb:6:in `<module:Sprockets>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/helper.rb:5:in `<top (required)>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/railtie.rb:6:in `require'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/railtie.rb:6:in `<top (required)>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/all.rb:12:in `require'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/all.rb:12:in `block in <top (required)>'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/all.rb:10:in `each'
    /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/all.rb:10:in `<top (required)>'
    /var/www/discourse/config/application.rb:2:in `require'
    /var/www/discourse/config/application.rb:2:in `<top (required)>'
    /var/www/discourse/Rakefile:5:in `require'
    /var/www/discourse/Rakefile:5:in `<top (required)>'
    (See full trace by running task with --trace)
    I, [2014-06-10T11:13:39.690538 #35]  INFO -- : 
    2014-06-10 11:13:39 UTC LOG:  received smart shutdown request
    2014-06-10 11:13:39 UTC LOG:  autovacuum launcher shutting down
    [166 | signal handler] (1402398819) Received SIGTERM, scheduling shutdown...
    2014-06-10 11:13:39 UTC LOG:  shutting down
    2014-06-10 11:13:39 UTC LOG:  database system is shut down
    [166] 10 Jun 11:13:39.718 # User requested shutdown...
    [166] 10 Jun 11:13:39.719 * Saving the final RDB snapshot before exiting.
    [166] 10 Jun 11:13:39.724 * DB saved on disk
    [166] 10 Jun 11:13:39.724 # Redis is now ready to exit, bye bye...
    /pups/lib/pups/exec_command.rb:85:in `spawn': cd /var/www/discourse && sudo -E -u discourse bundle exec rake db:migrate failed with return #<Process::Status: pid 262 exit 1> (RuntimeError)
    	from /pups/lib/pups/exec_command.rb:55:in `block in run'
    	from /pups/lib/pups/exec_command.rb:53:in `each'
    	from /pups/lib/pups/exec_command.rb:53:in `run'
    	from /pups/lib/pups/command.rb:6:in `run'
    	from /pups/lib/pups/config.rb:85:in `block (2 levels) in run_commands'
    	from /pups/lib/pups/config.rb:76:in `each'
    	from /pups/lib/pups/config.rb:76:in `block in run_commands'
    	from /pups/lib/pups/config.rb:75:in `each'
    	from /pups/lib/pups/config.rb:75:in `run_commands'
    	from /pups/lib/pups/config.rb:71:in `run'
    	from /pups/lib/pups/cli.rb:31:in `run'
    	from /pups/bin/pups:8:in `<main>'
    6bc80fd07d425ca2d6a28d6cae7882eb40226b2d4794e9867fe9d2df5ea91107
    FAILED TO BOOTSTRAP

(Sam Saffron) #2

can you nuke your shared/vendor_bundle directory and try again ?


(Sedrickcz) #3

Nice. It helped :slight_smile: Thank you.


(Régis Hanol) #4