When you hear about statsd exporter, you might confuse it with statsd. Its okay, you are not the only person who does it. Statsd run as a daemon and it receives metrics from statsd clients and sends aggregates to backends like graphite for storage and future visualisation. On other hand, statsd exporter receives metrics from […]
Getting a PR review is so hard
A firewall joke :P
My mother once asked me what I do at work, and I tried explaining it to her. That was a waste of 30 mins of her time. Then I had an idea about a cartoon and here it is … Most of our parents have no idea what we do at work. This […]
“User already exists” error when user doesn’t exist on the system
Have you ever come across an error says when the user actually doesn’t exist on the system? I have !!! This article talks about what to do in this situation. Assume you are trying add an user called ‘Mark’ and you get following error. useradd: user ‘mark’ already exists The error is very straightforward. It […]
How to check why a Linux process is hanging
In this article, let me explain how you can check why a Linux process is hanging. In most of the occasions, We, the system admins 🙂 usually restart an application if it is hanging. We are forced to do this when we are firefighting and this could backfire on us later. So finding the root […]
How to distribute cron job for high availability
Cron is one among the favourites of sysadmins and we usually use cron service to schedule tasks that you want to run in a periodic manner. People usually run cron in a single box. You cannot expect high availability for your cron here because the box can go down anytime and you are in trouble […]
How to trigger a Jenkins job remotely from Python script
In this article, I will explain how you can trigger a Jenkins job remotely from a Python script. There would be situations when you want to run a particular Jenkins job from a Python scripts remotely. The steps are very easy. Let’s get started. Step 1: Setup the Jenkins Job to be triggered remotely. Go […]
Fix for ‘Invalid byte sequence for encoding UTF8’ error while restoring PostgreSQL database
In this article, we will see how you can fix error ‘invalid byte sequence for encoding UTF8’ while restoring a PostgreSQL database. At work, I got a task to move DBs which has ASCII encoding to UTF8 encoding. Let me first confess that the ASCII DBs was not created by intention, someone accidentally created it!!! […]
How to trigger a Jenkins job from remote Jenkins
Suppose you have two Jenkins and you want a project in your Jenkins to be triggered by the another Jenkins, go ahead and read this article. You might need this setup in situations like source code build is created by a Jenkins job and the deployment is done by another Jenkins, and you want the […]
How to setup Jenkins job to trigger on every push to a specific git branch
In this article, I will list out steps for a popular/mandatory automation in DevOps world. Let’s see how you can setup Jenkins job to trigger on every push to a specific git branch Triggering a Jenkins job for every Git push is needed if you are planning to setup automated release of applications. Techies have […]