donovosoft / jenkins-jobs

Jenkins jobs for builder
1 stars 0 forks source link

Wordpres_site Job is Failing #1

Open donovosoft opened 8 years ago

donovosoft commented 8 years ago

The job is not working on its first tests

No config file found; using defaults ERROR! The file aws_env/ec2.py is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this withchmod -x aws_env/ec2.py. Inventory script (aws_env/ec2.py) had an execution error: region name: ap-south-1 likely not supported, or AWS is down. connection to region failed. aws_env/ec2.py:3: Error parsing host definition ''''': No closing quotation Build step 'Execute shell' marked build as failure Finished: FAILURE

See more: http://54.183.193.95:8080/job/Build_Site_Wordpress/28/console

maubarrerag commented 8 years ago

It could be python's version, check if there is another python version installed and force to use python 2.7: #!/usr/bin/python2.7

Another thing to check is aws configuration on the server, check $PATH var that belongs to jenkins user

donovosoft commented 8 years ago

Just missing ssh key for ec2 instances

maubarrerag commented 8 years ago

The best way to do it is retriving pem files from S3 available only for role "DEVOPS" and install it to the server using Jenkins role