Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a ec2 bundle. I'm running the command:

ec2-bundle-vol -r $arch -d /mnt -p $prefix -u $AWS_USER_ID -k ~/.ec2/pk-*.pem -c ~/.ec2/cert-*.pem -s 10240 -e /mnt,/vol/mysql_data  --debug

It ends with error "execution failed" (how informative!)

ERROR: execution failed: "
rsync -rlpgoD -t -r -S -l --exclude /sys --exclude /proc --exclude /dev/pts --exclude /dev --exclude /media --exclude /mnt --exclude /proc --exclude /sys --exclude /etc/udev/rules.d/70-persistent-net.rules 
--exclude /etc/udev/rules.d/z25_persistent-net.rules --exclude /mnt --exclude /vol/mysql_data --exclude /mnt/img-mnt -X /* /mnt/img-mnt 2>&1 > /dev/null"

with debug flag it shows also:

#<RuntimeError: execution failed: "rsync -rlpgoD -t -r -S -l --exclude /sys --exclude /proc --exclude /dev/pts --exclude /dev --exclude /media --exclude /mnt --exclude /proc --exclude /sys --exclude /etc/udev/rules.d/70-persistent-net.rules --exclude /etc/udev/rules.d/z25_persistent-net.rules --exclude /mnt --exclude  /vol/mysql_data  --exclude /mnt/img-mnt -X /* /mnt/img-mnt 2>&1 > /dev/null">
/usr/local/lib/site_ruby/1.8/ec2/platform/linux/image.rb:244:in `execute'   
/usr/local/lib/site_ruby/1.8/ec2/platform/linux/image.rb:156:in `copy_rec'
/usr/local/lib/site_ruby/1.8/ec2/platform/linux/image.rb:84:in `make'
/usr/lib/site_ruby/ec2/amitools/bundlevol.rb:151:in `bundle_vol'
/usr/lib/site_ruby/ec2/amitools/bundlevol.rb:193:in `main'
/usr/local/lib/site_ruby/1.8/ec2/amitools/tool_base.rb:201:in `run'

Which tells me the error starts somewhere at VolBundler run() method (guessing, I don't know ruby).

Anyone has any idea what the error is? or how can I get more information?

share|improve this question

Make sure that you do not exceed 10 GB Limit for an AWS bundle. Exclude all extra directories.

Also if you are doing bundling from within a running instance, make sure that you got all unnecessary services (like sendmail) stopped.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.