Showing posts with label troubleshooting. Show all posts
Showing posts with label troubleshooting. Show all posts

Thursday, 2 December 2021

Troubleshooting, Tips and Tricks

 

1. How to downgrade/upgrade Jenkins

To Downgrade/upgrade Jenkins on ubuntu from eg version 2.320 to version 2.318 use the below command


sudo apt install jenkins=2.318

sudo systemctl restart jenkins



2. My Instance is Slow after installing Sonarqube

a. increase the storage volume 

b. upgrade your instace type from t2micro to like t2medium

c. try this steps to Extend the OS file

     i. log into the instance and enter the below commands:

      sudo growpart /dev/xvda 1

      sudo resize2fs /dev/xvda1

source:https://blog.shikisoft.com/increase-root-volume-of-ebs-backed-ec2/


3. How to change ansible Tower password(If you forgot)

Log into the Tower Console

Enter the following commands

docker ps
docker exec -it awx_web bash
awx-manage changepassword admin

http://vcloud-lab.com/entries/devops/reset-ansible-awx-tower-admin-password

4. Sonarqube is under maintenance




    1. Now browse http://publicip:9000/setup to upgrade your database
    2. After upgrade the database, browse your sonarqube server

     

  • 5.  Your jenkins pipeline couldnt find a program, eg. kubectl: like below

  • + kubectl get nodes
    /var/lib/jenkins/workspace/test@tmp/durable-fd334313/script.sh: line 1: kubectl: command not found

Login to the machine and copy the program into /usr/local/bin
cp kubectl /usr/local/bin



How to upgrade Maven

  java.lang.IllegalStateException I had installed maven in my ubuntu using command  apt install maven This installed maven in path /usr/shar...