Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while precompiling assets **bash: line 232: 21006 Killed** #282

Closed
hlcfan opened this issue Mar 4, 2015 · 8 comments
Closed

Error while precompiling assets **bash: line 232: 21006 Killed** #282

hlcfan opened this issue Mar 4, 2015 · 8 comments

Comments

@hlcfan
Copy link

hlcfan commented Mar 4, 2015

While it's executing:
RAILS_ENV="production" bundle exec rake assets:precompile RAILS_GROUPS=assets

it gives me:

I, [2015-03-04T09:39:18.486341 #21006]  INFO -- : Writing /home/hlcfan/leniu/tmp/build-142546194323803/public/assets/sidebar_bg-0a35ab7c07f029d90724d03bb97c4b9f.png
I, [2015-03-04T09:39:18.488875 #21006]  INFO -- : Writing /home/hlcfan/leniu/tmp/build-142546194323803/public/assets/slider1-65b3e5521ac11c47845925b5fbb13360.jpg
I, [2015-03-04T09:39:18.492084 #21006]  INFO -- : Writing /home/hlcfan/leniu/tmp/build-142546194323803/public/assets/slider2-625bee99a44969f73fcb419121688538.jpg
I, [2015-03-04T09:39:18.498015 #21006]  INFO -- : Writing /home/hlcfan/leniu/tmp/build-142546194323803/public/assets/slider3-3b3837a01d4ed5ea8c703e2a9c6ea37b.jpg
I, [2015-03-04T09:39:18.632689 #21006]  INFO -- : Writing /home/hlcfan/leniu/tmp/build-142546194323803/public/assets/admin-307af29ac27a030829bb53a3718d3987.js
bash: line 232: 21006 Killed                  RAILS_ENV="production" bundle exec rake assets:precompile RAILS_GROUPS=assets
! ERROR: Deploy failed.
-----> Cleaning up build

Since no error messages to track this problem, I have no idea to fix this.

@d4be4st
Copy link
Member

d4be4st commented Mar 4, 2015

Have you tried doing that command locally?

@hlcfan
Copy link
Author

hlcfan commented Mar 4, 2015

@d4be4st it works as expected locally.

@d4be4st
Copy link
Member

d4be4st commented Mar 4, 2015

Hm.. Try to run mina deploy -v in verbose mode, and see that it tells you.
Unfortunately i need more information :(

@d4be4st
Copy link
Member

d4be4st commented Mar 4, 2015

Oh, @hlcfan do you have nodejs installed on server or are you using rubyracer gem?

@hlcfan
Copy link
Author

hlcfan commented Mar 4, 2015

Using -v gives me same error.
Yes, Im using therubyracer in Gemfile and I dont have nodejs installed on my server

@d4be4st
Copy link
Member

d4be4st commented Mar 4, 2015

one more thing you can try is run the command manually on the server, as see what errors it gives you

@hlcfan
Copy link
Author

hlcfan commented Mar 4, 2015

@d4be4st Just removed therubyracer, use nodejs instead, therubyracer sucks!

Gracias!

@hlcfan hlcfan closed this as completed Mar 4, 2015
@TheBrockEllis
Copy link

I ran into this same issue and couldn't find any good answers. Finally figured out that it was my Digital Ocean droplet running out of RAM and the process was being killed. You can read more about my solution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants