It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Elastic Bamboo EBS Client.AuthFailure: Not authorized for instances: [i-XXXXX]

James Gustard May 10, 2012

Hi,

Atlassian has uploaded our certs to Bamboo, and I am trying to set up EBS to help our maven builds.

When i run createInitialVolume.sh 6, i get the following Client Auth error..
mountLocation: /mnt/bamboo-ebs
attachedDeviceLocation: /dev/sdh
instanceId: i-XXXXXX
amiId: ami-XXXXXXXX
availabilityZone: us-east-1a
Creating volume with size 6 GB...
Waiting for volume vol-XXXXXXXX to start up...
Waiting while volume vol-XXXXXX is creating...
Attaching volume vol-XXXXXXX
Client.AuthFailure: Not authorized for instances: [i-XXXXX]

I can see the mounted drive , and upload my maven repo, but when I generateSnapshot..

generateSnapshot.sh
mountLocation: /mnt/bamboo-ebs
attachedDeviceLocation: /dev/sdh
instanceId: i-XXXXXXX
amiId: ami-XXXXXXX
availabilityZone: us-east-1a
No volume attached

It says no Volume attached, and the snapshot is not visible in AWS console. The volume is, but when I make a snapshot though the AWS the elastic instance cannot mount the snapshot.

Any ideas?

4 answers

1 accepted

0 votes
Answer accepted
James Gustard Oct 09, 2012

Our Bamboo key was out of sync with the AWS account settings.

0 votes
Przemek Bruski Atlassian Team May 10, 2012

I can see the mounted drive

What does ec2-describe-volumes say at that point? Does it list your instance and the volume?

James Gustard May 13, 2012

[root@domU-12-31-39-0E-B2-11 bamboo-ebs]# ec2-describe-volumes
VOLUME vol-1c3f3e73 6 us-east-1a available 2012-05-14T10:54:08+0000

Przemek Bruski Atlassian Team May 13, 2012

Hmm, it only says 'available' on the volume, not 'attached', which is a prerequisite for mounting the EBS. What do you mean by 'I can see the mounted drive'? What does 'mount' say?

James Gustard May 13, 2012

I mean I can cd to /mnt/bamboo-ebs and copy files there, also under /maven there is the m2 repo which I can populate with uploaded files.

James Gustard May 17, 2012

[root@domU-12-31-39-02-5D-B1 ~]# mount
/dev/sda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda2 on /mnt type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/mnt/home on /home type none (rw,bind)

James Gustard May 17, 2012

I also cant see the running instance in the EC2 console, although I can see the EBS volume created by the script in the console.

James Gustard May 17, 2012

ec2-describe-instances also gets a client auth faliure.

[root@domU-12-31-39-02-5D-B1 ~]# ec2-describe-instances i-93e89cf5
Client.AuthFailure: Not authorized for instances: [i-93e89cf5]

0 votes
James Gustard May 13, 2012

Then..

[root@domU-12-31-39-0E-B2-11 /]# generateSnapshot.sh
mountLocation: /mnt/bamboo-ebs
attachedDeviceLocation: /dev/sdh
instanceId: i-57c34a31
amiId: ami-395a8550
availabilityZone: us-east-1a
No volume attached

0 votes
James Gustard May 13, 2012

[root@domU-12-31-39-0E-B2-11 bamboo-ebs]# ec2-describe-volumes
VOLUME vol-1c3f3e73 6 us-east-1a available 2012-05-14T10:54:08+0000

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

66 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you