Hi,
We have used butler for a bit more then a year to sent slack messages from our qlik sense server. We installed it on our local qlik sense server.
We installed a new server and upgraded our qlik environment to april 2020 and I thought I will upgrade butler as well to the latest version. I followed the configuration steps and it is running when I start node butler.js from an elevated prompt.
But now I have the following issue.
I created a rest api connector in Qlik to use this to send messages to slack. But when I create the rest api connector with the following settings, copied from our previous server, it gives this error:
failed to connect to server. Please check connection parameters. see screenshots for the settings I have used
I don't have a lot of experience with this but the previous version worked great so hopefully somebody can help to give some guidance to fix this.
Kind Regards,
Hvdbunte
Describe environment:
- Windows Server 2019
- Containerisation no
- Version of Butler used: v 3.1.0
- Command used to start Butler: Node butler.js
Config file(s)
What's the content of the config file(s) you use?
Butler:
Logging configuration
logLevel: info # Log level. Possible log levels are silly, debug, verbose, info, warn, error
fileLogging: false # true/false to enable/disable logging to disk file
logDirectory: log # Subdirectory where log files are stored (no trailing / )
Heartbeats can be used to send "I'm alive" messages to any other tool, e.g. a infrastructure monitoring tool
heartbeat:
enabled: false
remoteURL: http://my.monitoring.server/some/path/
frequency: every 1 hour # https://bunkat.github.io/later/parsers.html
slackConfig:
enable: true
webhookURL: https://hooks.slack.com/services/my_webhook
loginNotificationChannel: team-bi-monitoring
taskFailureChannel: team-bi-monitoring
mqttConfig:
enable: false
brokerHost:
brokerPort: 1883
taskFailureTopic: qliksense/task_failure
taskFailureServerStatusTopic: qliksense/butler/task_failure_server
sessionStartTopic: qliksense/session/start
sessionStopTopic: qliksense/session/stop
connectionOpenTopic: qliksense/connection/open
connectionCloseTopic: qliksense/connection/close
sessionServerStatusTopic: qliksense/butler/session_server
activeUserCountTopic: qliksense/users/active/count
activeUsersTopic: qliksense/users/active/usernames
udpServerConfig:
enable: true
serverHost: qliksense-p
portSessionConnectionEvents: 9997
portTaskFailure: 9998
restServerConfig:
enable: true
serverHost: qliksense-p
serverPort: 8080
Enable/disable individual REST API endpoints. Set config item below to true to enable that endpoint.
restServerEndpointsEnable:
activeUserCount: true
activeUsers: true
slackPostMessage: true
createDir: true
createDirQVD: true
mqttPublishMessage: true
senseStartTask: true
senseAppDump: true
senseListApps: true
butlerping: true
base62ToBase16: true
base16ToBase62: true
Certificates to use when connecting to Sense. Get these from the Certificate Export in QMC.
cert:
clientCert: C:\ProgramData\Qlik\Sense\Repository\Exported Certificates.Local Certificates\client.pem
clientCertKey: C:\ProgramData\Qlik\Sense\Repository\Exported Certificates.Local Certificates\client_key.pem
clientCertCA: C:\ProgramData\Qlik\Sense\Repository\Exported Certificates.Local Certificates\root.pem
# If running Butler in a Docker container, the cert paths MUST be the following
# clientCert: /nodeapp/config/certificate/client.pem
# clientCertKey: /nodeapp/config/certificate/client_key.pem
# clientCertCA: /nodeapp/config/certificate/root.pem
configEngine:
engineVersion: 12.170.2 # Qlik Associative Engine version to use with Enigma.js. Ver 12.170.2 works with Feb 2019
host: qliksense-p
port: 4747
useSSL: true
headers:
X-Qlik-User: UserDirectory=Internal;UserId=sa_repository
rejectUnauthorized: false
configQRS:
authentication: certificates
host: qliksense-p
useSSL: true
port: 4242
headerKey: X-Qlik-User
headerValue: UserDirectory=Internal; UserId=sa_repository
configDirectories:
# enableDirectoryCreation: false
qvdPath:
gitHub:
host: api.github.com
pathPrefix: ''
![image](https://user-images.githubusercontent.com/16244611/101469058-8103c780-3944-11eb-9e6c-7fabf0e87823.png)
![image](https://user-images.githubusercontent.com/16244611/101469087-8e20b680-3944-11eb-808c-0332c7dfe4aa.png)
![image](https://user-images.githubusercontent.com/16244611/101469115-97aa1e80-3944-11eb-8688-1e17fac92f36.png)