ec2-run-user-data does not run user-data scripts ('int' object has no attribute 'write')

Bug #313371 reported by Eric Hammond on 2009-01-03
Affects Status Importance Assigned to Milestone
Ubuntu on EC2

Bug Description

When I run the current official Ubuntu 32-bit beta AMI (ami-814aaee8) and pass in a script using user-data, the script is not run.

I have tracked this down to the following error from ec2-run-user-data:

  Traceback (most recent call last):
    File "/usr/sbin/ec2-run-user-data", line 41, in <module>
  AttributeError: 'int' object has no attribute 'write'

Here is are sample commands to start an instance with a user-data script:

  cat >sample-user-data <<EOF
echo "hello world"

  ec2-run-instances \
    --user-data-file sample-user-data \
    --key YOURKEYPAIR \

Chuck Short (zulcss) wrote :

I have this fixed locally and will push it for the next beta. Thanks for the bug report.


Changed in ubuntu-on-ec2:
status: New → In Progress
milestone: none → beta2
Chuck Short (zulcss) wrote :

This is fixed for beta2

Changed in ubuntu-on-ec2:
status: In Progress → Fix Committed
Chuck Short (zulcss) on 2009-02-27
Changed in ubuntu-on-ec2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers