createInitialVolume.sh: 5: .: setAwsEnv.sh: not foun

Hi team

I am trying to configure my elastic instance to use EBS. I am getting an error when I try to run: "createInitialVolume.sh 100" as root user. I get the error message

"createInitialVolume.sh: 5: .: setAwsEnv.sh: not found"

 

the setAwsEnv.sh script is on the same location /opt/bamboo-elastic-agent/bin  

bamboo-elastic-agent getCustomData.sh runStartupScripts.sh
bamboo-elastic-agent.bat

mountEbsDevice.sh setAwsEnv.sh
bambooShellFunctions.sh

prepareInstanceForSaving.bat setupEbsSnapshot.sh
checkElasticAgent.sh prepareInstanceForSaving.sh setupEphemeralStorageStructure.sh
commonFunctions.sh restoreEbsSnapshotFromUserData.sh testIfStartedFromBamboo.sh
createInitialVolume.sh restoreSnapshot.sh unmountVolume.sh
generateSnapshot.sh rewarmEbsSnapshot.sh warmEbsSnapshot.sh

could you help us ? 

Thanks 

Francisco

 

1 answer

Hi team I needed to edit the /createInitialVolume.sh with ./setAwsEnv.sh location and now is able to find the file, but I am getting other errors 

 

createInitialVolume.sh: 10: createInitialVolume.sh: assertRootUser: not found

createInitialVolume.sh: 12: createInitialVolume.sh: assertAccessKeysPresent: not found

Creating volume with size 100 GB...
Missing argument for option:region (use -h for usage)
An error occurred, no volume created...

 

could you help us ?

Thanks 

Francisco 

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,064 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot