How Do You Troubleshoot the Error “eve.exceptions.ConfigException: DOMAIN dictionary missing or wrong.”?

Problem scenario
You are trying to use Python Eve.  You are using Python’s interactive command prompt, and you run these two commands:

from eve import Eve
app = Eve()

But you get this error:

“File “/usr/local/lib/python2.7/dist-packages/eve/flaskapp.py”, line 138, in __init__
    self.validate_domain_struct()
  File “/usr/local/lib/python2.7/dist-packages/eve/flaskapp.py”, line 269, in validate_domain_struct
    raise ConfigException(‘DOMAIN dictionary missing or wrong.’)
eve.exceptions.ConfigException: DOMAIN dictionary missing or wrong.”

What should you do?

How Do You Troubleshoot a Puppet Manifest when The Errors and Logging Do Not Help You?

Updated on 6/8/20
This version is the unabridged version. For the abridged version, you may click here.

Problem scenario
A Puppet manifest is not working, but there are no obvious error messages.  When running the puppet agent command, you use the -d flag for debugging.  In your manifest, you use logoutput => true stanza.  But still, you cannot figure out why your manifest is not working.

What Should Be Done About the Discrepancies Between Local Group Policy Editor and the Registry Settings?

Question:  What Should Be Done About the Discrepancies Between Local Group Policy Editor and the Registry Settings?

Solution:  Nothing.  To open the Local Group Policy Editor in Windows Server 2012, either go to PowerShell and type “gpedit.msc” with no quotes. Or without PowerShell go to the Windows button on the desktop and go to the search field.  Search for “gpedit” with no quotes.  Click on the result (usually just one). 

How do you install Hadoop on Linux SUSE?

Updated on 1/1/18
You may want to see this different posting that works for Linux SUSE as well as other non-SUSE distributions of Linux.

Problem scenario
You want to install the open source version of Hadoop 3.0.0 on Linux SUSE 12 SP3.  What do you do?

Solution
These directions would work on a non-SUSE distribution if you install Java a different way from the first command in the script. 

How Do You Download Big Files with PowerShell?

Problem scenario
You want to download a very large file using PowerShell (from a file share on your network or URL on the Internet).  But the file is larger than the available RAM on your server.  How do you download a large file using Powershell?

Solution
Invoke-restmethod, Invoke-webrequest, curl and wget (even with the redirect “” command) all put the file being downloaded into memory. 

How do I get a forward slash (“/”) to be passed from a Puppet manifest on a Linux server with Puppet Master to a Windows server with Puppet Agent?

Question:  How do I get a forward slash (“/”) to be passed from a Puppet manifest on a Linux server with Puppet Master to a Windows Server with Puppet Agent?

Answer # 1 (for creating Scheduled Tasks with Puppet manifests): For a Scheduled Task, the forward slash may be crucial.  A forward slash (that Puppet between Linux and Windows will automatically substitute for a back slash) with a shutdown.exe server is the only way for a reboot to work properly with a Scheduled Task. 

How to Troubleshoot PowerShell Downloading a File From the Internet

Problem scenario:  When trying to use PowerShell to download a file, get you this error ‘Error calling “DownloadFile” with “2” argument(s): “An Exception occurred during a WebClient request.”‘

Solution:  Make sure you have ample space on the disk and make sure the destination folder exists.  A typo in the path or if the folder not existing could cause this error.  Insufficient disk space could also cause the problem. 

How Can Jenkins Invoke PsExec?

Problem scenario:  When using Jenkins, PsExec never seems to work when called as a batch command in a .bat file or PowerShell script.  Jenkins logs an error about the PsExec command not being found.

Solution / workaround:  PsExec seems to never work if called by a PowerShell script or a batch script via Jenkins.  The only exception seems to be if a Scheduled Task calls a .bat file or PowerShell script that uses PsExec. 

How To Install PsExec on Windows Server

Not all directions are clear.  Here is an example where Microsoft has less than perfect directions:

“Installation

Just copy PsExec onto your executable path. Typing “psexec” displays its usage syntax.”

First off, psexec won’t display usage syntax until after the installation. If you are like me you are asking what is the executable path?

The answer can be found by opening PowerShell and typing this:

Get-ChildItem Env:Path | ft -wrap -AutoSize

Any of those semi-colon delimited results can be the destination of the files inside the PsTools.zip file. 

Two Error Messages when Installing Gems On Linux

Problem scenario:  You are trying to use gem install, but you get an error like this:
“usr/bin/ruby extconf.rb
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h”

Solution:  Install ruby-devel.  For RedHat deriviatives, you can find the rpm here.

=====================================================================================

Problem scenario:  You are running gem install *.gem, and you get ‘ERROR: While executing gem …