Install failing on last step (rake assets:precompile)

204 views
Skip to first unread message

Enfo

unread,
Sep 24, 2013, 1:39:17 PM9/24/13
to munkise...@googlegroups.com
Hello all,

I'm trying to install MunkiServer on my Mac OS X machine. Everything works great until the last step where I'm supposed to run "rake assets:precompile", where it throws an error about a missing file.. Here is the full log:

$ rake assets:precompile
/Users/administrator/.rvm/rubies/ruby-1.9.3-p448/bin/ruby /Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/ruby_executable_hooks assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/ruby_executable_hooks:14:in `read': No such file or directory - assets:precompile:all (Errno::ENOENT)
        from /Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/ruby_executable_hooks:14:in `<main>'
rake aborted!
Command failed with status (1): [/Users/administrator/.rvm/rubies/ruby-1.9....]
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils.rb:80:in `ruby'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/actionpack-3.2.12/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/actionpack-3.2.12/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/actionpack-3.2.12/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/ruby_executable_hooks:14:in `eval'
/Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/ruby_executable_hooks:14:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)


I have followed these two articles to set up, but they both fail at the same step:
https://github.com/jnraine/munkiserver/wiki/Setup-on-OS-X
https://gist.github.com/wbs75/6562498

Thank you in advance, and please let me know in advance if you need any more information.

Regards,
Enfo

Ricky Chilcott

unread,
Sep 24, 2013, 1:43:17 PM9/24/13
to munkise...@googlegroups.com
Hi Enfo,


Try to do a `gem install rake`. Also try to invoke rake with bundler, `bundle exec rake assets:precompile`

Ricky Chilcott



--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkiserver-d...@googlegroups.com.
To post to this group, send email to munkise...@googlegroups.com.
Visit this group at http://groups.google.com/group/munkiserver-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Enfo

unread,
Sep 24, 2013, 2:02:47 PM9/24/13
to munkise...@googlegroups.com
Thanks for your swift response, Ricky!

Your suggestion worked. I simply reinstalled rake and for some reason it ran through the precompile just fine!

$ bundle exec gem install rake
Successfully installed rake-10.1.0
1 gem installed

$ bundle exec rake assets:precompile --trace RAILS_ENV=production
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/administrator/.rvm/rubies/ruby-1.9.3-p448/bin/ruby /Users/administrator/.rvm/gems/ruby-1.9.3-p448@munkiserver/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
** Invoke assets:precompile:nondigest (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:nondigest



Thank you very much for your help!


Regards,
Enfo

Ricky Chilcott

unread,
Sep 24, 2013, 2:05:28 PM9/24/13
to munkise...@googlegroups.com
Great.  Welcome to the list and world of munkiserver!

Ricky Chilcott


Reply all
Reply to author
Forward
0 new messages