i have very strange error when deploy my rails app with capistrano. sometimes it\'s deploy and sometimes not.
for example i add something to css (just one string) e.g.
You appear to have an outdated version of libyaml
Update libyaml
.
As was written above, probably, you have not enough RAM.
I solved problem by adding SWAP file on my Ubuntu 14.04 server:
Under the root
:
dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile
Add next line to /etc/fstab
:
/swapfile none swap sw 0 0
and:
echo 0 > /proc/sys/vm/swappiness
sudo chown root:root /swapfile
sudo chmod 0600 /swapfile
check SWAP(maybe need reloading):
swapon -s
— How To Add Swap on Ubuntu 14.04 @ Digital Ocean Community
if someone have same error - problem was on hosting. server have not enough ram(512mb)
, and process of compilation css/js was killed every time. than we change rate plan, which has 1gb ram, all deployed successfully. SO if you assets precompile failed - just try to add some resources to server.
P.S. similar problem i found here Capistrano deploy - assets precompile error
Try rebooting the server.Worked for me.