How Do You Troubleshoot the Error “DNS: A new record cannot be created. Refused.”?

Problem scenario
Using Windows Server and Active Directory, you try to add a PTR record to a Reverse Lookup Zone. You get “DNS: A new record cannot be created. Refused.” What do you do?

Possible Solution #1
Click “Ok” to the pop up. Continue where you were interrupted. The error message should be ignorable (other than the fact that you have to click “Ok” to the pop-up itself and the window to create a New Resource Record).

How Do You Get to the Nice HTML Presented Installation Web Page for Craft CMS?

Problem scenario
You are trying to install Craft CMS, but when you go to the web browser, you see this:

HTTP 503 – Service Unavailable – craft\web\ServiceUnavailableHttpException
in /var/www/html/craft/vendor/craftcms/cms/src/web/Application.php
537538539540541542543544545546547548549550551552553554555
$actionSegs = $request-getActionSegments();
if (isset($actionSegs[0]) && $actionSegs[0] === ‘install’) {
return $this-_processActionRequest($request);
}
}

// Should they be accessing the installer?
if (!$isInstalled) {
if (!$isCpRequest) {
throw new ServiceUnavailableHttpException();
}

// Redirect to the installer if Dev Mode is enabled
if (YII_DEBUG) {
$url = UrlHelper::url(‘install’); …

How Do You Solve the AWS CLI Problem where You Get “aws: error: argument –name is required”?

Problem scenario
You run an “aws” command but receive “aws: error: argument –name is required”
What do you do to troubleshoot this?

You have the “–name” flag in the command, or you know the command should work as it is written.

Solution
Are you using the word “get” instead of the word “send”? Analyze your command closely. There may be a syntax error.

How Do You Troubleshoot the Ansible Message “ERROR! the field hosts is required but was not set”?

Problem scenario
You run an ansible-playbook command, but you get “ERROR! the field hosts is required but was not set”. What should you do?

Solution
Find the hyphens beneath the top “- name” stanza. Eliminate them. For example, if your playbook looks like this:

– name: Foobar
hosts: localhost
– vars:
goodone: “blahblah”
-tasks:

Make it look like this:

– name: Foobar
hosts: localhost
vars:
goodone: “blahblah”
tasks:

Now re-run it.

How Do You Add Multiple DNS A Records in Active Directory Using a File?

Problem scenario
You want to create multiple A records in DNS. But to do it manually using the MMC would take too long. What should you do?

Solution

  1. Open the MMC and browse Active Directory. On the left the name of the A.D. server should be fairly obvious (e.g., contint or foobarsrv).
  2. Open PowerShell as an administrator.
  3. Create a .txt file called arecords.txt with this as the header:

name,ip

  1. Underneath that header place DNS names followed by a comma and a space,

How Do You Troubleshoot the Python Problem “SyntaxError: EOL while scanning string literal”?

Problem scenario
You are running a Python program or trying to execute a line from the Python interpreter command line. You receive this message: “SyntaxError: EOL while scanning string literal”. What should you do?

Solution
Look for the double quotes and single quotes. Have they all be terminated? Are they in an even number? Was the code copied to a different workstation application and then pasted into vi or a terminal prompt?