Tips & Tricks to get started with Butler SOS #201
Unanswered
mountaindude
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While it's usually pretty easy to get Butler SOS off the ground, there are a few things to keep in mind.
No reason to struggle with these if others have already solved them, right?
1: NODE_ENV environment variable doesn't match name of config file
Let's say you get this error when starting Butler SOS:
Documentation from butler-sos.ptarmiganlabs.com here.
Butler SOS takes all its settings from a config file - but you have to tell Butler SOS which config file to use.
This is done via an environment variable called
NODE_ENV
.If
NODE_ENV
is set toabc123
, Butler will look for a config file calledabc123.yaml
,abc123.yml
orabc123.json
.Yes, even though the Butler SOS docs only talk about YAML config files, JSON can also be used. YAML is highly recommended though, as it's much more human readable and in general easier to work with.
Both yaml and yml file extensions work equally well.
Butler will always look for the config file in a directory called
config
directly under the directory wherebutler-sos.js
(which is the main entrypoint into the app) is located.So, for the example above:
Let's say Butler SOS is extracted to
c:\tools\butler-sos-5.6.2
. Thebutler-sos.js
file is then ind:\tools\butler-sos-5.6.2\src
.Setting
NODE_ENV=abc123
will make Butler SOS look for a config file calledd:\tools\butler-sos-5.6.2\src\abc123.yaml
In a real-life scenario you want to use a more relevant name for the config file.
production.yaml
could for example be used if your Butler SOS instance is used to monitor a Qlik Sense production environment. With the same logic,development.yaml
could be used if it's a Qlik Sense development cluster that should be monitored.2: NODE_ENV environment variable is not set at all
If you get something similar to this error when starting Butler SOS, it usually means that you've forgotten to set the NODE_ENV environment variable.
Please see this page for more information.
Beta Was this translation helpful? Give feedback.
All reactions