How Do You Troubleshoot the Vagrant Error “No usable default provider could be found for your system.”?

Problem scenario
On a Linux server you get “No usable default provider could be found for your system.” What should you do?

Solution
Install VirtualBox. On an Ubuntu server with 0.5 GB of RAM, you can simply run this command:

sudo apt-get -y install virtualbox

 » Read more..

What Does SPA Stand for?

Question
In the context of I.T. (computers, SaaS, and websites) what does the initialism SPA stand for?

Answer
Single-Page Application. To learn more, see this article.

 » Read more..

How Do You Fix the Problem of “permission denied” when Trying to Copy a File to a Directory?

Problem scenario
You try to copy a file. It fails with “Permission denied.” What should you do?

Possible Solutions
1. Are the permissions of the destination folder/directory permissive? Is you user supposed to be able to write to the destination folder/directory?

2. Is there an open file in the destination directory? Sometimes this can cause unexpected problems (e.g., with Git Bash).

 » Read more..

Excellent Generic Troubleshooting Tips for I.T. work (e.g., DevOps tasks)

At the time of writing, we suggest these troubleshooting steps for many I.T. tasks. Some of these will not apply to every problem. But if you do not know where to begin, this can help you with “DevOps block.”

1. Find the word “error” in the logs. Look at a log with vi (e.g., copy the log to a location where it will not be continually written to). Open the copy with vi.

 » Read more..

What is a Container Breakout?

Question
What is a container breakout?

Answer
A container breakout is an the act of a user or process in a container gaining access to its underlying host server. Containerization is the isolation of processes and/or disk space on a server. A container is isolated from the host server via cgroups and namespaces. Bypassing the cgroup(s) and namespace(s) through intentional acts can be desirable for legitimate systems engineers.

 » Read more..

Do the Credentials “****” in Jenkins, Taken from the Credentials Plugin, Have the Username or the Password?

Problem Scenario
You want to use the credentials from the Jenkins credentials plugin in a Jenkins pipeline. When you assign the credentials to a variable in a pipeline, is it the username, the password, both or something else?

Solution
It is the username and password, but the two are separated by a colon. You will only see “****” in the console output (for security reasons).

 » Read more..

How Do You Troubleshoot the Message “ImportError: cannot import name ‘pubsub_v1′”?

Problem scenario
From the Python command prompt or when running a Python program, you receive this message “ImportError: cannot import name ‘pubsub_v1′”. What should you do?

Solution
Possible Solution #1
Try to run the program as sudo: sudo python nameOfProg.py

Possible Solution #2
Prerequisite
This assumes that pip has been installed.

 » Read more..

What is a Jenkins Executor?

Question
What is a Jenkins executor?

Answer
It is a designation in the Jenkins master server’s settings that governs resource allocation (e.g., CPU and RAM) on any Jenkins nodes and the master server itself. When a server (either the master or a node) is designated as having two or more executors, the server can process as many jobs simultaneously as the number of executors for which it has been designated.

 » Read more..

How Do You Use the seq Reserved Word in a Bash Script to Generate Content for a File?

Problem scenario
You want to rapidly create hundreds of lines of text for a file. You want to do some testing and you need a file you can delete. You also want to use the seq keyword.

Solution
Here is a program that uses the seq keyword:

#!/bin/bash
COUNTER=100

for varnum in `seq $COUNTER`
do
date goodfile
echo $varnum goodfile
done

Some people recommend not using the seq keyword.

 » Read more..

How Do You Troubleshoot the Message “ImportError: No module named ‘google'”?

Problem scenario
From the Python command prompt or when running a Python program, you receive this message “ImportError: No module named ‘google'”. What should you do?

Solution
Possible Solution #1
Try to run the program as sudo: sudo python nameOfProg.py

Possible Solution #2
Prerequisite
This assumes that pip has been installed.

 » Read more..