Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Imran_Arshad
Partner - Contributor III
Partner - Contributor III

QIB NLU Configuration Failed

Hi Qlik Community,

I am posting QIB-NLU inquiry here as no thread is found in the drop-down list.

I have tried to connect QIB-NLU with the certificates issued by my QlikSense Server & also tried with SSL-Certificate (issued by Certified Authority) but in both cases i am unable to connect both machines, please note that QIB & QS are installed on same machines.

Below are the logs taken from QIB-NLU-Configuration File:

 

}
2019-10-18 15:13:52.5062|INFO|Configuration|CreateAgent|Creating new agent for Qlik Insight Bot nlu
2019-10-18 15:13:52.5212|INFO|Configuration|SendRequest|Sending request with following parameter
2019-10-18 15:13:52.5322|INFO|Configuration|SendRequest|Method: Post
2019-10-18 15:13:53.4148|ERROR|Configuration|SendRequest|Error while sending request with following parameter
2019-10-18 15:13:53.4289|ERROR|Configuration|SendRequest|The remote server returned an error: (401) Unauthorized.
2019-10-18 15:13:53.4419|ERROR|Configuration|SendRequest|{
"status": "error",
"message": "NLU configuration failed."
}
2019-10-18 15:13:53.4549|ERROR|Configuration|CreateAgent|Error while creating agent
2019-10-18 15:13:53.4689|ERROR|Configuration|CreateAgent|{
"status": "error",
"message": "NLU configuration failed."
}
2019-10-18 15:13:53.4830|ERROR|Component Configuration|ConfigureNLU|{
"status": "error",
"message": "NLU configuration failed."
}

 

 

 

Labels (2)
26 Replies
marcos_herrera
Partner - Creator III
Partner - Creator III

Hi  

Thanks for your answer, this is docker-compose.yml file

version: "3.6"
services:
db:
image: qlik-docker-insightbot.bintray.io/nlu_db:1.1.1
container_name: "nlu_db"
volumes:
- db-data:/var/lib/postgresql/data
networks: ['qib-network']
duckling:
image: qlik-docker-insightbot.bintray.io/nlu_duckling:1.1.1
container_name: "duckling"
networks: ['qib-network']
nlu:
image: qlik-docker-insightbot.bintray.io/nlu:1.1.1
restart: always
container_name: "qib_nlu"
networks: ['qib-network']
ports:
- "5000:5000"
volumes:
- nlu-data:/nlu/data/
- "/home/:/nlu/Certificates/"
- qib-license:/nlu/data/configuration_data/
environment:
POSTGRES_HOST: nlu_db
isHttps: "True"
CertificatePath: "/nlu/Certificates/"
depends_on:
- db
- duckling
volumes:
db-data:
nlu-data:
qib-license:
networks: {qib-network: {}}

treysmithdev
Partner Ambassador
Partner Ambassador

Put your certificates in your "/home/"directory.

 

Reason being is your /home/ directory is being mounted to your container directory /nlu/Certificates/.

volumes:
- nlu-data:/nlu/data/
- "/home/:/nlu/Certificates/"
- qib-license:/nlu/data/configuration_data/

Blog: WhereClause   Twitter: @treysmithdev
marcos_herrera
Partner - Creator III
Partner - Creator III

Hi  

 

Thanks for the answer, i remove the docker images with command docker system prune -a because i have two versions 1.1.0 and 1.1.1,now i have the same docker-compose.yml file , before to re install the image, Do you have some recommendation or suggestion to modify the paths on docker-compose.yml file

 

Thanks

treysmithdev
Partner Ambassador
Partner Ambassador

Did you try moving the certificates to the /home/ directory?

Blog: WhereClause   Twitter: @treysmithdev
marcos_herrera
Partner - Creator III
Partner - Creator III

Hi Friend

Yes i moved the certificates to home folder, now the problem is different when i tried to launch docker with sudo docker-compose up command theconsole cannot up nlu image

/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

I upgrade numpy and tensorflo packages on Python 3.6 but not works

marcos_herrera
Partner - Creator III
Partner - Creator III

Hi 

I re installed all (included UBUNTU) and now docker-compose up started well, i moved the certificates on homefolder, but the error persist, when i open NLU URl from browser still show insecure connection

CertsNLU.PNG

ErrorBrowser.png

treysmithdev
Partner Ambassador
Partner Ambassador

That is not the /home/ directory. That is your user's home directory. 

Open up a terminal and run the following cmd:

> cp ~/*.pem /home/

 

Blog: WhereClause   Twitter: @treysmithdev
marcos_herrera
Partner - Creator III
Partner - Creator III

Hi 

Thanks for help, I executed the suggested command and restart the NLU server, the error persist

treysmithdev
Partner Ambassador
Partner Ambassador

What is the output of the following?

 

> cd /home/
> ls -all

 

Blog: WhereClause   Twitter: @treysmithdev
marcos_herrera
Partner - Creator III
Partner - Creator III

Captura.PNG