[Bug 1088540] [NEW] ec2-bundle-image gives error 'can't convert Fixnum into String'
Scott Moser
smoser at ubuntu.com
Mon Dec 10 16:16:55 UTC 2012
Public bug reported:
$ ec2-bundle-image --cert cert.pem --privatekey pk.pem --user 123456789012 --image my.img --arch i386 --debug
Bundling image file...
ERROR: can't convert Fixnum into String
#<TypeError: can't convert Fixnum into String>
/usr/lib/ec2-ami-tools/lib/ec2/amitools/util.rb:19:in `+'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/util.rb:19:in `block in gen_ident'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/util.rb:19:in `each'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/util.rb:19:in `inject'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/util.rb:19:in `gen_ident'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/fileutil.rb:227:in `block in tempfifo'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/fileutil.rb:226:in `each'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/fileutil.rb:226:in `tempfifo'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/bundle.rb:48:in `bundle_image'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/bundleimage.rb:56:in `bundle_image'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/bundleimage.rb:85:in `main'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/tool_base.rb:201:in `run'
/usr/lib/ec2-ami-tools/lib/ec2/amitools/bundleimage.rb:93:in `<main>'
I found this when trying with real cert.pem and pk.pem and user, but the
error occurs before those things are actually tested, so you can do:
mkdir foo; cd foo
img=my.img; cert=cert.pem; pk=pk.pem; user=123456789012
truncate --size 1M $img
mke2fs -F $img
touch $cert $pk
ec2-bundle-image --cert $cert --privatekey $pk --user $user --image $img --arch i386 --debug
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: ec2-ami-tools 1.4.0.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Mon Dec 10 11:07:25 2012
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (418 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ec2-ami-tools
UpgradeStatus: Upgraded to quantal on 2011-11-07 (399 days ago)
** Affects: ec2-ami-tools (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug quantal running-unity
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ec2-ami-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1088540
Title:
ec2-bundle-image gives error 'can't convert Fixnum into String'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-ami-tools/+bug/1088540/+subscriptions
More information about the Ubuntu-server-bugs
mailing list