Run Sql Query from Jenkins or any CI Tool

Tools

Sometimes, there is a need to run sql transactions during Building the code.

You might have searched for the plugins but that is not easily available, but you need to run sql query through your CI-CD tool.

Now, what to do ?

You can use SQLCMD for the same 🙂… Continue Reading...

td-agent throwing error – (Errno::EACCES), Unknown output plugin ‘gelf’

Tools

Fluentd and Graylog2 can be used for End-to-End Log Analysis.

Fluentd is free and fully open-source log collector which works on technique ‘Log Everything

Graylog2 is a powerful and currently most popular log analysis framework powered by Elasticsearch and MongoDB.

Fluentd can output data to Graylog2 in the … Continue Reading...

Puppet Dashboard Error – getaddrinfo: Name or service not known (SocketError)

Tools

While configuring the Puppet Dashboard for your Puppet Instance, you might get this kind of error

/usr/lib/ruby/1.8/webrick/utils.rb:63:in `getaddrinfo’: getaddrinfo: Name or service not known (SocketError)

[2015-05-17 19:48:38] INFO  ruby 1.8.7 (2011-06-30) [x86_64-linux]
/usr/lib/ruby/1.8/webrick/utils.rb:63:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.8/webrick/utils.rb:63:in `create_listeners'
        from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
        from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
        
Continue Reading...

Jenkins Upgrade Manual with screenshots

Tools

We have already seen Jenkins Installation , Jenkins Master-Slave configuration and Jenkins Windows Slave configuration in our previous articles.

So lets move further and discuss about Jenkins upgrade to new version.

If you are using Jenkins for production or for multiple tasks, it is very important that you keep your … Continue Reading...

RPM error: can’t create transaction lock on /var/lib/rpm/__db.000

Tools

Sometimes when you are using rpm, it might throws the warning followed by error, like below:

[root@scmquest ]# rpm -ivh virt-what-1.11-2.el5.x86_64.rpm
warning: virt-what-1.11-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
warning: waiting for transaction lock on /var/lib/rpm/__db.000
error: can't create transaction lock on /var/lib/rpm/__db.000

You can try killing the … Continue Reading...

Puppet error after Ruby upgrade

Tools

As per the thumb rule, all your softwares should be up to date and in-sync with other tools upgrade.

But if you are getting Error in puppet after ruby upgrade like :

/usr/share/puppet-dashboard/script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:23:in `add_frozen_gem_path': undefined local variable or method `source_index' for Rails::GemDependency:Class (NameError)
        from /usr/share/puppet-dashboard/script/../config/boot.rb:47:in `load_initializer'
        from /usr/share/puppet-dashboard/script/../config/boot.rb:38:in `run'
        from 
Continue Reading...

Puppet Error: Could not request certificate: The certificate retrieved from the master does not match the agent’s private key.

Tools

While configuring the new Puppet agent, sometimes its throwing error like below

[root@appvm001 puppet]# puppet agent --verbose --test
Info: Creating a new SSL key for appvm001
Info: Caching certificate for ca
Info: Caching certificate for appvm001
Error: Could not request certificate: The certificate retrieved from the master does not match 
Continue Reading...

Pass Jenkins Upstream Job Parameter to Downstream Job

Tools

When we are implementing CI/CD through Jenkins, sometimes there is a need of passing parameter from one job to another job.

Here I am going to demonstrate how to achieve the same.

First of all, Install the Jenkins Parameterized Trigger Plugin – Go to Manage Jenkins and then Click … Continue Reading...

Puppet error : Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Tools

If you are getting the below error while configuring and running manifests in new Puppet agent

Puppet error : Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 
Continue Reading...

wdio step got stuck in Bamboo build job

Tools

I came through with very strange situation where my bamboo build got stuck and bamboo build hanger has killed the build process after certain inactivity

I have then tried with removing build time out but again webdriverio wdio step was hanged in bamboo build at the same place and was’t … Continue Reading...