linto-ai / linto-agent

LinTO platform services stack deployment tool for Docker Swarm cluster
GNU Affero General Public License v3.0
15 stars 1 forks source link

Mongo error NotMaster on linto_stack_linto-tock-nlp-api container since last update #14

Closed jerome83136 closed 3 years ago

jerome83136 commented 3 years ago

Hello,

I tried to reinstall my Linto stack today and I pulled the latest linto-platform-stack to get the latest available version.

Whe I try to use the "Tock interface" from the Linto admin WebUI, I have this error: Cannot connect Tock interace

I noticed this error on the linto_stack_linto-tock-nlp-api container: ('not master' on server linto-tock-mongo:27017)

2021-03-22 17:35:56,072 INFO  [main] a.t.s.Mongos: get database tock_front
2021-03-22 17:35:57,630 ERROR [main] a.t.n.f.s.ConfigurationRepository: Command failed with error 10107 (NotMaster): 'not master' on server linto-tock-mongo:27017. The full response is {"operationTime": {"$timestamp": {"t": 1616430957, "i": 1}}, "ok": 0.0, "errmsg": "not master", "code": 10107, "codeName": "NotMaster", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1616430957, "i": 2}}, "signature": {"hash": {"$binary": {"base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "subType": "00"}}, "keyId": 0}}}
com.mongodb.MongoNotPrimaryException: Command failed with error 10107 (NotMaster): 'not master' on server linto-tock-mongo:27017. The full response is {"operationTime": {"$timestamp": {"t": 1616430957, "i": 1}}, "ok": 0.0, "errmsg": "not master", "code": 10107, "codeName": "NotMaster", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1616430957, "i": 2}}, "signature": {"hash": {"$binary": {"base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "subType": "00"}}, "keyId": 0}}}
        at com.mongodb.internal.connection.ProtocolHelper.createSpecialException(ProtocolHelper.java:244)
        at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:171)
        at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:358)
        at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:279)
        at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:100)
        at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:490)
        at com.mongodb.internal.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:71)
        at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:253)
        at com.mongodb.internal.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:202)
        at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:118)
        at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:110)
        at com.mongodb.internal.operation.CommandOperationHelper.executeWriteCommand(CommandOperationHelper.java:371)
        at com.mongodb.internal.operation.CommandOperationHelper.executeWriteCommand(CommandOperationHelper.java:362)
        at com.mongodb.internal.operation.CommandOperationHelper.executeCommand(CommandOperationHelper.java:286)
        at com.mongodb.internal.operation.CommandOperationHelper.executeCommand(CommandOperationHelper.java:279)
        at com.mongodb.internal.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:197)
        at com.mongodb.internal.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:192)
        at com.mongodb.internal.operation.OperationHelper.withConnectionSource(OperationHelper.java:650)
        at com.mongodb.internal.operation.OperationHelper.withConnection(OperationHelper.java:612)
        at com.mongodb.internal.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:192)
        at com.mongodb.internal.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:72)
        at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:187)
        at com.mongodb.client.internal.MongoCollectionImpl.executeCreateIndexes(MongoCollectionImpl.java:847)
        at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:830)
        at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:825)
        at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:810)
        at org.litote.kmongo.MongoCollectionsKt.ensureIndex(MongoCollections.kt:645)
        at org.litote.kmongo.MongoCollectionsKt.ensureIndex(MongoCollections.kt:661)
        at org.litote.kmongo.MongoCollectionsKt.ensureUniqueIndex(MongoCollections.kt:675)
        at ai.tock.shared.MongosKt.ensureUniqueIndex(Mongos.kt:232)
        at ai.tock.shared.MongosKt.ensureUniqueIndex$default(Mongos.kt:230)
        at ai.tock.nlp.front.storage.mongo.EntityTypeDefinitionMongoDAO$col$2.invoke(EntityTypeDefinitionMongoDAO.kt:55)
        at ai.tock.nlp.front.storage.mongo.EntityTypeDefinitionMongoDAO$col$2.invoke(EntityTypeDefinitionMongoDAO.kt:49)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at ai.tock.nlp.front.storage.mongo.EntityTypeDefinitionMongoDAO.getCol(EntityTypeDefinitionMongoDAO.kt)
        at ai.tock.nlp.front.storage.mongo.EntityTypeDefinitionMongoDAO.getEntityTypes(EntityTypeDefinitionMongoDAO.kt:103)
        at ai.tock.nlp.front.service.ConfigurationRepository.loadEntityTypes(ConfigurationRepository.kt:90)
        at ai.tock.nlp.front.service.ConfigurationRepository.refreshEntityTypes(ConfigurationRepository.kt:60)
        at ai.tock.nlp.front.service.ConfigurationRepository.initRepository(ConfigurationRepository.kt:202)
        at ai.tock.nlp.front.service.ApplicationConfigurationService.initializeConfiguration(ApplicationConfigurationService.kt:282)
        at ai.tock.nlp.front.client.FrontClient.initializeConfiguration(FrontClient.kt)
        at ai.tock.nlp.front.ioc.FrontIoc.setup(FrontIoc.kt:66)
        at ai.tock.nlp.front.ioc.FrontIoc.setup(FrontIoc.kt:51)
        at ai.tock.nlp.api.StartNlpServiceKt.startNlpService(startNlpService.kt:28)
        at ai.tock.nlp.api.StartNlpServiceKt.main(startNlpService.kt:24)
2021-03-22 17:35:57,931 INFO  [vert.x-eventloop-thread-0] a.t.n.a.NlpVerticle: NlpVerticle started on port 8080

Are these errors linked to my problem ?

I also noticed several containers running a different version of mongodb:

docker ps

CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                             PORTS               NAMES
79c102bb4ce3        mongo:latest                                          "docker-entrypoint.s…"   20 seconds ago      Up 17 seconds                      27017/tcp           linto_stack_linto-platform-stt-service-manager-mongodb.1.s11li6f66x95587zankvjbwbz
31980480f979        lintoai/linto-platform-admin:latest                   "/docker-entrypoint.…"   20 seconds ago      Up 14 seconds (health: starting)   80/tcp              linto_stack_linto-platform-admin.1.09fxb2a1m6kkz9oe6931adbv9
c30d7993b272        lintoai/linto-platform-stt-server-manager:latest      "./docker-entrypoint…"   22 seconds ago      Up 20 seconds (healthy)            80/tcp              linto_stack_linto-platform-stt-service-manager.1.nr2zcnxjryouvyn2qcnblwhwh
f6c71ccd055b        tock/duckling:20.9.3                                  "/bin/sh -c 'java $J…"   26 seconds ago      Up 24 seconds                                          linto_stack_linto-tock-duckling.1.df88uq5xs1h9auq4mz74nanr7
4fdcf1830618        tock/build_worker:20.9.3                              "/bin/sh -c 'java $J…"   30 seconds ago      Up 29 seconds                                          linto_stack_linto-tock-build_worker.1.hogidtj2bovubh20clyac9nvw
927605db2125        mongo:3.6.5                                           "docker-entrypoint.s…"   34 seconds ago      Up 33 seconds                      27017/tcp           linto_stack_linto-tock-mongo.1.ys1h6yvpwrpvacrzdr9lq00mr
74672f09e5a7        tock/nlp_api:20.9.3                                   "/bin/sh -c 'java $J…"   35 seconds ago      Up 33 seconds                                          linto_stack_linto-tock-nlp-api.1.pcp425e6ip7j372wcn52j2st3
e5cf75390f24        tock/nlp_admin:20.9.3                                 "/bin/sh -c 'java $J…"   36 seconds ago      Up 35 seconds                                          linto_stack_linto-tock-nlu-web.1.z44kregrv3r8eralu6vkq0p5x
fca71579216c        lintoai/linto-platform-overwatch:latest               "/docker-entrypoint.…"   38 seconds ago      Up 37 seconds (healthy)            80/tcp              linto_stack_linto-platform-overwatch.1.kdj3s1tsel02imjaiqlw9dt67
ce17cf2710da        lintoai/linto-platform-business-logic-server:latest   "/docker-entrypoint.…"   42 seconds ago      Up 40 seconds (healthy)            80/tcp              linto_stack_linto-platform-bls.1.ng74qwfn1gjxd6a59ocp1bspc
2247a3e2c46e        mongo:latest                                          "docker-entrypoint.s…"   47 seconds ago      Up 46 seconds                      27017/tcp           linto_stack_linto-platform-mongo.1.je7uoqzh2q59m0y6aru2s6i7o
8859713a3c4e        dockersamples/visualizer:latest                       "npm start"              54 seconds ago      Up 53 seconds (healthy)            8080/tcp            linto_stack_linto-docker-visualizer.1.iwayg4a9nejqslstmihlzl6uy
cc6e1411bd7a        iegomez/mosquitto-go-auth:latest                      "sh -c '/usr/sbin/mo…"   56 seconds ago      Up 55 seconds                      1883-1884/tcp       linto_stack_linto-mqtt-broker.1.mgvl3yyr3q12qmuymf0fhay64
9903ee76b8e0        traefik:latest                                        "/entrypoint.sh --ap…"   59 seconds ago      Up 57 seconds                      80/tcp              linto_stack_linto-edge-router.1.h3deiuj1mieav4vks88sbv1fj

linto_stack_linto-platform-stt-service-manager-mongodb --> mongo:latest linto_stack_linto-tock-mongo --> mongo:3.6.5 linto_stack_linto-platform-mongo --> mongo:latest

It seems these images versions are explicitely set in these files from the Linto stack: stack-files/linto-platform-tock-tchatbot.yml: image: mongo:3.6.5 stack-files/linto-platform-tock-tchatbot.yml: image: mongo:3.6.5 stack-files/linto-platform-tock.yml: image: mongo:3.6.5 stack-files/linto-platform-tock.yml: image: mongo:3.6.5

Is it expected ? While trying to troobleshoot the problem, I've seen the "NotMaster" is frequently related to an application trying to access the secondary Mongo instance rather the primary. (That's what I understood. I'm not a Mongo expert)

Are there multipla Mongo instances running in Linto ? Can it explain the error I encounter ? How can I fix it ?

I also have a question: what is the purpose of the new LINTO_STACK_TOCK_BOT variable in the dockerenv_template file ?

Than you for your help

Best regards

Houpert commented 3 years ago

Hello

I wonder if your stack was working before the update ? Do you use a cluster (It would be better to have information with docker service ls to see all service running)?

You can try to add a placement constraint in linto-platform-tock.yml, the image linto-tock-mongo force mongo to be on the main node

    deploy:
...
      placement:
        constraints:
          - node.role == manager
...

Regarding mongo, we use 3 mongo

LINTO_STACK_TOCK_BOT is a new configuration settings, it allow you to enable the chatbot interface from TOCK or not (it should be disable by default)

Best regards

jerome83136 commented 3 years ago

Hello, Tank you for your feedback.

I already intsaller the Linto stack on another node some weeks ago (~ 5 March 2021), it was working with a Raspberry device + Docker swarm hosted Linto stack setup.

Now I'm trying to setup the stack on a new node (docker swarm master single node)

Here is the result of docker service ls:

ID                  NAME                                                     MODE                REPLICAS            IMAGE                                                 PORTS
dbr91eqoffxo        linto_stack_linto-docker-visualizer                      replicated          1/1                 dockersamples/visualizer:latest
bnliq1nx4pii        linto_stack_linto-edge-router                            replicated          1/1                 traefik:latest                                        *:80->80/tcp, *:443->443/tcp, *:1883->1883/tcp, *:4443->4443/tcp, *:4480->4480/tcp, *:8883->8883/tcp
80os26ctxlk2        linto_stack_linto-mqtt-broker                            replicated          1/1                 iegomez/mosquitto-go-auth:latest
jjif26wi3k7z        linto_stack_linto-platform-admin                         replicated          1/1                 lintoai/linto-platform-admin:latest
88n2jykaior0        linto_stack_linto-platform-bls                           replicated          1/1                 lintoai/linto-platform-business-logic-server:latest
qa58bkhimy4b        linto_stack_linto-platform-mongo                         replicated          1/1                 mongo:latest
tlu0iz5ppbsm        linto_stack_linto-platform-mongo-setup                   replicated          0/1                 mongo:latest
xq11j2mm083l        linto_stack_linto-platform-mongodb-migration             replicated          0/1                 lintoai/linto-platform-mongodb-migration:latest
xuqtev0rc8tf        linto_stack_linto-platform-overwatch                     replicated          1/1                 lintoai/linto-platform-overwatch:latest
ojt5ko2myvm6        linto_stack_linto-platform-redis                         replicated          1/1                 redis:latest
r5zeu95vcax8        linto_stack_linto-platform-stt-service-manager           replicated          1/1                 lintoai/linto-platform-stt-server-manager:latest
nt5ev9ni5alx        linto_stack_linto-platform-stt-service-manager-mongodb   replicated          1/1                 mongo:latest
zifv8c8tj46g        linto_stack_linto-tock-build_worker                      replicated          1/1                 tock/build_worker:20.9.3
130va2yydk0l        linto_stack_linto-tock-duckling                          replicated          1/1                 tock/duckling:20.9.3
p2sgpo2go9ua        linto_stack_linto-tock-mongo                             replicated          1/1                 mongo:3.6.5
xnj24ny9i7b4        linto_stack_linto-tock-mongo-setup                       replicated          0/1                 mongo:3.6.5
ocwtmq8bn9r2        linto_stack_linto-tock-nlp-api                           replicated          1/1                 tock/nlp_api:20.9.3
jhwiixzai58n        linto_stack_linto-tock-nlu-web                           replicated          1/1                 tock/nlp_admin:20.9.3

It seems all services are UP and all running constraints (ip: ingress + master node) are satisfied on this node. (Please correct me if I missed something :) )

To install the stack I did:

After services startup I was able to create a new user account on the Linto WebUI and to access the stack. But I encounter the errors I reported in my initial post when trying to access the Tock. I also can't create a device application.

Do I need to perform additionnal steps in order to get a new stack functionnal with the latest linto-platform-stack ?

Thank you for your help

Best regards

jerome83136 commented 3 years ago

Here is my .dockerenv if it can help

##############################################################################################
### Infrastructure setup (see https://doc.linto.ai/#/infra )
##############################################################################################
LINTO_SHARED_MOUNT=/data/linto/linto_shared_mount/
LINTO_STACK_USE_SSL=false
LINTO_STACK_USE_ACME=false
LINTO_STACK_ACME_EMAIL=my@mail.com
LINTO_STACK_DOMAIN=linto.maison.lan
LINTO_STACK_HTTP_USE_AUTH=false
LINTO_STACK_HTTP_USER=LINTO_STACK_HTTP_USER
LINTO_STACK_HTTP_PASSWORD=LINTO_STACK_HTTP_PASSWORD
LINTO_STACK_IMAGE_TAG=latest

##############################################################################################
### Node JS apps setup
##############################################################################################
TZ=Europe/Paris
LINTO_STACK_ADMIN_HTTP_PORT=80
LINTO_STACK_ADMIN_API_WHITELIST_DOMAINS=http://linto.maison.lan

##############################################################################################
### Redis session store for webapps
##############################################################################################
LINTO_STACK_REDIS_SESSION_SERVICE=linto-platform-redis
LINTO_STACK_REDIS_SESSION_SERVICE_PORT=6379

##############################################################################################
### MQTT Broker for LinTO clients
##############################################################################################
LINTO_STACK_MQTT_USE_LOGIN=true
LINTO_STACK_MQTT_USER=mqtt
LINTO_STACK_MQTT_PASSWORD=mqtt
LINTO_STACK_MQTT_PORT=1883
LINTO_STACK_MQTT_KEEP_ALIVE=60
LINTO_STACK_MQTT_HOST=linto-mqtt-broker
LINTO_STACK_WSS=false
LINTO_STACK_MQTT_OVER_WS=false
LINTO_STACK_MQTT_OVER_WS_ENDPOINT=/mqtt
# Default scope for registration of linto see https://doc.linto.ai/#/client/osgenerator?id=usage
# --> LinTO Serial number and server address (pairing with LinTO platform)
LINTO_STACK_MQTT_DEFAULT_HW_SCOPE=blk

##############################################################################################
### Database
##############################################################################################
LINTO_STACK_MONGODB_SERVICE=linto-platform-mongo
LINTO_STACK_MONGODB_PORT=27017
LINTO_STACK_MONGODB_DBNAME=linto-stack
LINTO_STACK_MONGODB_USE_LOGIN=true
LINTO_STACK_MONGODB_USER=mongo
LINTO_STACK_MONGODB_PASSWORD=mongo
LINTO_STACK_MONGODB_VOLUME_NAME=linto-mongo/admin
LINTO_STACK_MONGODB_TARGET_VERSION=2

##############################################################################################
### LinTO business logic server (skill server backed by node-red)
##############################################################################################
LINTO_STACK_BLS_SERVICE=linto-platform-bls
LINTO_STACK_BLS_USE_LOGIN=true
LINTO_STACK_BLS_USER=bls
LINTO_STACK_BLS_PASSWORD=bls

LINTO_STACK_BLS_SERVICE_UI_PATH=/redui
LINTO_STACK_BLS_SERVICE_API_PATH=/red
LINTO_STACK_BLS_API_MAX_LENGTH=5mb

##############################################################################################
### Tock NLU service
##############################################################################################
LINTO_STACK_TOCK_BOT=false
LINTO_STACK_TOCK_SERVICE=linto-tock-nlu-web
LINTO_STACK_TOCK_NLP_API=linto-tock-nlp-api
LINTO_STACK_MONGODB_TOCK_VOLUME_NAME=linto-mongo/tock
LINTO_STACK_TOCK_SERVICE_PORT=8080
LINTO_STACK_TOCK_SERVICE_UI_PATH=/tock
LINTO_STACK_TOCK_ENV=prod
# On TOCK image 20.9.3 error if user and password are not default
LINTO_STACK_TOCK_USER=admin@linto.ai
LINTO_STACK_TOCK_PASSWORD=password
LINTO_STACK_TOCK_TAG=20.9.3

##############################################################################################
### STT Service manager
##############################################################################################
LINTO_STACK_STT_SERVICE_MANAGER_SERVICE=linto-platform-stt-service-manager
LINTO_STACK_STT_SERVICE_MANAGER_INGRESS_CONTROLLER=traefik
LINTO_STACK_STT_SERVICE_MANAGER_NGINX_HOST=linto_stack_linto-platform-stt-service-manager-nginx
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_HOST=linto-platform-stt-service-manager-mongodb
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_PORT=27017
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_DBNAME=linSTTAdmin
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_REQUIRE_LOGIN=true
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_USER=root
LINTO_STACK_STT_SERVICE_MANAGER_MONGODB_PSWD=root
LINTO_STACK_STT_SERVICE_MANAGER_VOLUME_NAME=linto-mongo/stt-service-manager

##############################################################################################
### LinSTT Service
##############################################################################################
LINTO_STACK_LINSTT_OFFLINE_IMAGE=lintoai/linto-platform-stt-standalone-worker
LINTO_STACK_LINSTT_STREAMING_IMAGE=lintoai/linto-platform-stt-standalone-worker-streaming
LINTO_STACK_LINSTT_NETWORK=linto-net
LINTO_STACK_LINSTT_PREFIX=stt
LINTO_STACK_LINSTT_NAME=linto_stack

##############################################################################################
### Overwatch Service manager
##############################################################################################
LINTO_STACK_OVERWATCH_LOGS_MONGODB=false
LINTO_STACK_OVERWATCH_SERVICE=linto-platform-overwatch
LINTO_STACK_OVERWATCH_BASE_PATH=/overwatch

LINTO_STACK_OVERWATCH_AUTH_TYPE=local

LINTO_STACK_OVERWATCH_AUTH_LDAP_SERVER_URL=
LINTO_STACK_OVERWATCH_AUTH_LDAP_SERVER_SEARCH_BASE=
LINTO_STACK_OVERWATCH_AUTH_LDAP_SERVER_SEARCH_FILTER=

LINTO_STACK_OVERWATCH_JWT_SECRET=secret
Houpert commented 3 years ago

The configuration file sound good for me.

So if you try to launch it in swarm mode, i would suggest to read these, i think these step are missing : https://doc.linto.ai/#/infra?id=docker-swarm-mode

Regarding I also can't create a device application. It is possible to have the log of these two images (but it might be related to the first swarm configuration ) :

jerome83136 commented 3 years ago

Hello,

To be sure, I did again the Docker swarm steps from the documentation link you proided.

I didn't do the step "docker swarm join-token worker" because I'm running the Linto stack on a single Docker swarm cluster. So the surrent node where Linto stack is deployed is a single node with swarm leader role.

docker node ls

ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION
w8idk4z16k3pqm6l84r60jefg *   deimos              Ready               Active              Leader              19.03.13

I had to add the ingress label on my node in order to allow Traefik to start: docker node update deimos --label-add ip=ingress

NB: deimos is the name of my node

I also didn't do the GlusterFS part as I'm using a single node and don't require a shared FS. So as described in documentation I jumped to the server installation section.

Note for single Machine Deployement: If you do not intent to add other machines to the cluster later, you can stop right here and jump to Server Installation.

I then started the stack (./start.sh ---pull

All services sarted correctly:

ID                  NAME                                                     MODE                REPLICAS            IMAGE                                                 PORTS
mstpr1624rzj        linto_stack_linto-docker-visualizer                      replicated          1/1                 dockersamples/visualizer:latest
tzq0vjhh3zg3        linto_stack_linto-edge-router                            replicated          1/1                 traefik:latest                                        *:80->80/tcp, *:443->443/tcp, *:1883->1883/tcp, *:4443->4443/tcp, *:4480->4480/tcp, *:8883->8883/tcp
rxbp5m1g0s74        linto_stack_linto-mqtt-broker                            replicated          1/1                 iegomez/mosquitto-go-auth:latest
khf7o084zq7w        linto_stack_linto-platform-admin                         replicated          1/1                 lintoai/linto-platform-admin:latest
jeay7lwswdri        linto_stack_linto-platform-bls                           replicated          1/1                 lintoai/linto-platform-business-logic-server:latest
qr4t4y2ian7y        linto_stack_linto-platform-mongo                         replicated          1/1                 mongo:latest
esm9fki8xori        linto_stack_linto-platform-mongo-setup                   replicated          0/1                 mongo:latest
mn6uom5ov1x3        linto_stack_linto-platform-mongodb-migration             replicated          0/1                 lintoai/linto-platform-mongodb-migration:latest
2ba7z8sumryr        linto_stack_linto-platform-overwatch                     replicated          1/1                 lintoai/linto-platform-overwatch:latest
770rqprshg71        linto_stack_linto-platform-redis                         replicated          1/1                 redis:latest
hwcorul4so1s        linto_stack_linto-platform-stt-service-manager           replicated          1/1                 lintoai/linto-platform-stt-server-manager:latest
i4695rsggjzh        linto_stack_linto-platform-stt-service-manager-mongodb   replicated          1/1                 mongo:latest
t80copq6f4q6        linto_stack_linto-tock-build_worker                      replicated          1/1                 tock/build_worker:20.9.3
nf94cj0lyck6        linto_stack_linto-tock-duckling                          replicated          1/1                 tock/duckling:20.9.3
qjpsqdzvmqth        linto_stack_linto-tock-mongo                             replicated          1/1                 mongo:3.6.5
751ulr4xotm1        linto_stack_linto-tock-mongo-setup                       replicated          0/1                 mongo:3.6.5
zpunydquq5nl        linto_stack_linto-tock-nlp-api                           replicated          1/1                 tock/nlp_api:20.9.3
vea696bvwsxe        linto_stack_linto-tock-nlu-web                           replicated          1/1                 tock/nlp_admin:20.9.3

But I still encounter the errors I mentioned earlier.

I think there is a problem when trying to access one of the Mongo instances (not master) But I'm not confortable with Mongo and I'm not sure what to check next.

Please find bellow the requested containers logs:

root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-platform-admin.1.ub800zcio34q15dotc5a9nw3g
Waiting redis, MQTT and mongo...
wait-for-it.sh: waiting 20 seconds for linto-platform-redis:6379
wait-for-it.sh: linto-platform-redis:6379 is available after 0 seconds
 linto-platform-redis:6379 is up
wait-for-it.sh: waiting 20 seconds for linto-platform-mongo:27017
wait-for-it.sh: linto-platform-mongo:27017 is available after 11 seconds
 linto-platform-mongo:27017 is up
wait-for-it.sh: waiting 20 seconds for linto-mqtt-broker:1883
wait-for-it.sh: linto-mqtt-broker:1883 is available after 0 seconds
 linto-mqtt-broker:1883 is up
REBUILDING VUE APP

> linto-admin@0.2.5 build-app /usr/src/app/linto-admin/vue_app
> npm run build:css && vue-cli-service build --mode production

> linto-admin@0.2.5 build:css /usr/src/app/linto-admin/vue_app
> ./node_modules/node-sass/bin/node-sass ./public/sass/styles.scss ./public/css/styles.css --output-style compressed

Rendering Complete, saving .css file...
Wrote CSS to /usr/src/app/linto-admin/vue_app/public/css/styles.css

-  Building for production...
 WARNING  Compiled with 3 warnings4:23:56 PM

 warning

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  js/admin.68bc0cf1.js (1.1 MiB)
  js/lottie.min.js (245 KiB)

 warning

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  admin (1.1 MiB)
      css/admin.f94eae3a.css
      js/admin.68bc0cf1.js

 warning

webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

  File                                      Size             Gzipped

  ../webserver/dist/js/lottie.min.js        245.33 KiB       61.75 KiB
  ../webserver/dist/js/admin.68bc0cf1.js    1127.95 KiB      309.45 KiB
  ../webserver/dist/js/setup.149a79f4.js    195.20 KiB       63.36 KiB
  ../webserver/dist/js/login.a3c83e03.js    144.34 KiB       50.08 KiB
  ../webserver/dist/js/page404.8321c876.    118.32 KiB       41.53 KiB
  js
  ../webserver/dist/css/styles.css          45.09 KiB        6.31 KiB
  ../webserver/dist/css/admin.f94eae3a.c    0.40 KiB         0.21 KiB
  ss

  Images and other types of assets omitted.

 DONE  Build complete. The ../webserver/dist directory is ready to be deployed.
 INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

RUNNING : npm run start

> linto-admin@0.2.5 start /usr/src/app/linto-admin/webserver
> NODE_ENV=production node app.js

Webserver started on port :  80
(node:263) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:263) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
> Redis : Connected
> MongoDB : Connected
> Logic MQTT Broker: Connected
Error: Request failed with status code 401
    at createError (/usr/src/app/linto-admin/webserver/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/usr/src/app/linto-admin/webserver/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/usr/src/app/linto-admin/webserver/node_modules/axios/lib/adapters/http.js:236:11)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1252:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  config: {
    url: 'http://linto-tock-nlu-web:8080/rest/admin/applications',
    method: 'get',
    headers: {
      Accept: 'application/json, text/plain, */*',
      Authorization: 'Basic YWRtaW5AbGludG8uYWk6cGFzc3dvcmQ=',
      'User-Agent': 'axios/0.19.2'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    validateStatus: [Function: validateStatus],
    data: undefined
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      socket: [Function (anonymous)],
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      error: [Function (anonymous)],
      timeout: [Function (anonymous)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 6,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: false,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'linto-tock-nlu-web',
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      parser: null,
      _httpMessage: [Circular *1],
      [Symbol(async_id_symbol)]: 2304,
      [Symbol(kHandle)]: [TCP],
      [Symbol(kSetNoDelay)]: false,
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'GET /rest/admin/applications HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Authorization: Basic YWRtaW5AbGludG8uYWk6cGFzc3dvcmQ=\r\n' +
      'User-Agent: axios/0.19.2\r\n' +
      'Host: linto-tock-nlu-web:8080\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: noopPendingOutput],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 80,
      protocol: 'http:',
      options: [Object],
      requests: {},
      sockets: [Object],
      freeSockets: {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'fifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'GET',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/rest/admin/applications',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      socket: [Socket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      headers: [Object],
      rawHeaders: [Array],
      trailers: {},
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 401,
      statusMessage: 'Unauthorized',
      client: [Socket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'http://linto-tock-nlu-web:8080/rest/admin/applications',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'linto-tock-nlu-web',
    protocol: 'http:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      _options: [Object],
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'http://linto-tock-nlu-web:8080/rest/admin/applications',
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      authorization: [Array],
      'user-agent': [Array],
      host: [Array]
    }
  },
  response: {
    status: 401,
    statusText: 'Unauthorized',
    headers: {
      'www-authenticate': 'Basic realm="vertx-web"',
      connection: 'close',
      'content-length': '12'
    },
    config: {
      url: 'http://linto-tock-nlu-web:8080/rest/admin/applications',
      method: 'get',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      validateStatus: [Function: validateStatus],
      data: undefined
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [Socket],
      _header: 'GET /rest/admin/applications HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Authorization: Basic YWRtaW5AbGludG8uYWk6cGFzc3dvcmQ=\r\n' +
        'User-Agent: axios/0.19.2\r\n' +
        'Host: linto-tock-nlu-web:8080\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/rest/admin/applications',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'linto-tock-nlu-web',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    data: 'Unauthorized'
  },
  isAxiosError: true,
  toJSON: [Function (anonymous)]
}
root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-platform-mongo
linto_stack_linto-platform-mongo.1.gjd1edd62jmc2jkf8xn3pvv0z              linto_stack_linto-platform-mongodb-migration.1.vtoto9pau33sq8kvr7flwt87s
root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-platform-mongo.1.gjd1edd62jmc2jkf8xn3pvv0z
{"t":{"$date":"2021-03-23T15:23:37.649+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-03-23T15:23:37.651+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-03-23T15:23:37.651+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"fbcd5ad28d78"}}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.4","gitVersion":"8db30a63db1a9d84bdcad0c83369623f708e0397","openSSLVersion":"OpenSSL 1.1.1  11 Sep 2018","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu1804","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"18.04"}}}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
{"t":{"$date":"2021-03-23T15:23:37.652+00:00"},"s":"I",  "c":"STORAGE",  "id":22297,   "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
{"t":{"$date":"2021-03-23T15:23:37.653+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=11484M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-03-23T15:23:38.206+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:206394][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 3"}}
{"t":{"$date":"2021-03-23T15:23:38.243+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:243598][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 3"}}
{"t":{"$date":"2021-03-23T15:23:38.292+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:292507][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 2/2296960 to 3/256"}}
{"t":{"$date":"2021-03-23T15:23:38.361+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:361268][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 3"}}
{"t":{"$date":"2021-03-23T15:23:38.405+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:405218][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 3"}}
{"t":{"$date":"2021-03-23T15:23:38.438+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:438923][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2021-03-23T15:23:38.438+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1616513018:438984][1:0x7f5434f24ac0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2021-03-23T15:23:38.501+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":848}}
{"t":{"$date":"2021-03-23T15:23:38.501+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-03-23T15:23:38.503+00:00"},"s":"I",  "c":"STORAGE",  "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2021-03-23T15:23:38.504+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2021-03-23T15:23:38.509+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2021-03-23T15:23:38.509+00:00"},"s":"W",  "c":"CONTROL",  "id":22178,   "ctx":"initandlisten","msg":"/sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'","tags":["startupWarnings"]}
{"t":{"$date":"2021-03-23T15:23:38.511+00:00"},"s":"I",  "c":"STORAGE",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2021-03-23T15:23:38.512+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
{"t":{"$date":"2021-03-23T15:23:38.513+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2021-03-23T15:23:38.514+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
{"t":{"$date":"2021-03-23T15:23:38.514+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2021-03-23T15:23:38.722+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:51530","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2021-03-23T15:23:38.722+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn1","msg":"Connection ended","attr":{"remote":"10.0.1.6:51530","connectionId":1,"connectionCount":0}}
{"t":{"$date":"2021-03-23T15:23:39.100+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:39344","connectionId":2,"connectionCount":1}}
{"t":{"$date":"2021-03-23T15:23:39.100+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn2","msg":"Connection ended","attr":{"remote":"10.0.1.6:39344","connectionId":2,"connectionCount":0}}
{"t":{"$date":"2021-03-23T15:23:39.786+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:39354","connectionId":3,"connectionCount":1}}
{"t":{"$date":"2021-03-23T15:23:39.793+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn3","msg":"client metadata","attr":{"remote":"10.0.1.6:39354","client":"conn3","doc":{"driver":{"name":"nodejs","version":"3.6.4"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.19.0-11-amd64"},"platform":"'Node.js v14.11.0, LE (unified)"}}}
{"t":{"$date":"2021-03-23T15:23:39.801+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:39358","connectionId":4,"connectionCount":2}}
{"t":{"$date":"2021-03-23T15:23:39.803+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn4","msg":"client metadata","attr":{"remote":"10.0.1.6:39358","client":"conn4","doc":{"driver":{"name":"nodejs","version":"3.6.4"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.19.0-11-amd64"},"platform":"'Node.js v14.11.0, LE (unified)"}}}
{"t":{"$date":"2021-03-23T15:23:39.815+00:00"},"s":"I",  "c":"ACCESS",   "id":20250,   "ctx":"conn4","msg":"Successful authentication","attr":{"mechanism":"SCRAM-SHA-256","principalName":"mongo","authenticationDatabase":"linto-stack","client":"10.0.1.6:39358"}}
{"t":{"$date":"2021-03-23T15:23:45.635+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:58280","connectionId":5,"connectionCount":3}}
{"t":{"$date":"2021-03-23T15:23:45.636+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn5","msg":"client metadata","attr":{"remote":"10.0.1.6:58280","client":"conn5","doc":{"driver":{"name":"mongo-go-driver","version":"v1.3.3"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.13.8"}}}
{"t":{"$date":"2021-03-23T15:23:50.304+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:39366","connectionId":6,"connectionCount":4}}
{"t":{"$date":"2021-03-23T15:23:50.304+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn6","msg":"client metadata","attr":{"remote":"10.0.1.6:39366","client":"conn6","doc":{"driver":{"name":"nodejs","version":"3.6.4"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.19.0-11-amd64"},"platform":"'Node.js v14.11.0, LE (unified)"}}}
{"t":{"$date":"2021-03-23T15:23:58.461+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.0.1.6:51566","connectionId":7,"connectionCount":5}}
{"t":{"$date":"2021-03-23T15:23:58.467+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn7","msg":"client metadata","attr":{"remote":"10.0.1.6:51566","client":"conn7","doc":{"driver":{"name":"nodejs","version":"3.6.4"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.19.0-11-amd64"},"platform":"'Node.js v14.11.0, LE (legacy)"}}}

Thank you for your help

Best regards

Houpert commented 3 years ago

Hello,

Ok so it's sound like linto-admin is unable to connect to TOCK.I think it's related to TOCK v20.9.3, the TOCK team are working on an issue when the user is not the default one, some error happening.

Could you try to replace the value in your .dockerenv to the following one ?

LINTO_STACK_TOCK_USER=admin@app.com
LINTO_STACK_TOCK_PASSWORD=password

Also do you still have the initial error on the service linto_stack_linto-tock-nlp-api ?

Best regards

jerome83136 commented 3 years ago

Hello,

Here are the logs of linto_stack_linto-tock-nlp-api before LINTO_STACK_TOCK_USER/LINTO_STACK_TOCK_PASSWORD modification:

root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-tock-nlp-api.1.o9x0c37o0oqdvaqud0ntqqa3f
2021-03-23 16:22:42,133 INFO  [main] a.t.s.Mongos: get database tock_front
2021-03-23 16:22:42,394 INFO  [main] a.t.s.Mongos: get database tock_front
2021-03-23 16:22:52,684 INFO  [main] a.t.s.Mongos: get database tock_model
2021-03-23 16:22:52,686 INFO  [main] a.t.s.Mongos: get database tock_model
2021-03-23 16:22:53,050 INFO  [main] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream
2021-03-23 16:22:53,099 INFO  [main] a.t.n.f.s.m.ApplicationDefinitionMongoDAO: Subscribe stream
2021-03-23 16:22:53,115 INFO  [main] a.t.n.f.s.m.IntentDefinitionMongoDAO: Subscribe stream
2021-03-23 16:22:53,177 INFO  [main] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream
2021-03-23 16:22:53,814 INFO  [vert.x-eventloop-thread-0] a.t.n.a.NlpVerticle: NlpVerticle started on port 8080

And here are the logs after modifications + ./start.sh --force-pull

root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-tock-nlp-api.1.
linto_stack_linto-tock-nlp-api.1.9vabqb9dzs2wnttkr2onlupvi  linto_stack_linto-tock-nlp-api.1.o9x0c37o0oqdvaqud0ntqqa3f
root@deimos:/opt/linto-platform-stack# docker logs linto_stack_linto-tock-nlp-api.1.9vabqb9dzs2wnttkr2onlupvi
2021-03-23 16:55:07,785 INFO  [main] a.t.s.Mongos: get database tock_front
2021-03-23 16:55:08,065 INFO  [main] a.t.s.Mongos: get database tock_front
2021-03-23 16:55:08,434 INFO  [main] a.t.s.Mongos: get database tock_model
2021-03-23 16:55:08,435 INFO  [main] a.t.s.Mongos: get database tock_model
2021-03-23 16:55:08,600 INFO  [main] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:08,616 INFO  [main] a.t.n.f.s.m.ApplicationDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:08,622 INFO  [main] a.t.n.f.s.m.IntentDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:08,646 INFO  [main] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:08,888 INFO  [vert.x-eventloop-thread-0] a.t.n.a.NlpVerticle: NlpVerticle started on port 8080
2021-03-23 16:55:11,665 ERROR [Thread-10] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
com.mongodb.MongoQueryException: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
        at com.mongodb.internal.operation.QueryHelper.translateCommandException(QueryHelper.java:29)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:380)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:362)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor$2.onResult(DefaultServer.java:283)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.CommandProtocolImpl$1.onResult(CommandProtocolImpl.java:82)
        at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:530)
        at com.mongodb.internal.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:142)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:464)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:439)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:744)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:711)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
        at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
        at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:701)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:686)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
        at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
2021-03-23 16:55:11,668 ERROR [Thread-14] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
com.mongodb.MongoQueryException: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
        at com.mongodb.internal.operation.QueryHelper.translateCommandException(QueryHelper.java:29)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:380)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:362)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor$2.onResult(DefaultServer.java:283)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.CommandProtocolImpl$1.onResult(CommandProtocolImpl.java:82)
        at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:530)
        at com.mongodb.internal.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:142)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:464)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:439)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:744)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:711)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
        at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
        at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:701)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:686)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
        at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
2021-03-23 16:55:11,670 ERROR [Thread-9] a.t.n.f.s.m.ApplicationDefinitionMongoDAO: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
com.mongodb.MongoQueryException: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
        at com.mongodb.internal.operation.QueryHelper.translateCommandException(QueryHelper.java:29)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:380)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:362)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor$2.onResult(DefaultServer.java:283)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.CommandProtocolImpl$1.onResult(CommandProtocolImpl.java:82)
        at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:530)
        at com.mongodb.internal.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:142)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:464)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:439)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:744)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:711)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
        at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
        at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:701)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:686)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
        at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
2021-03-23 16:55:11,672 ERROR [Thread-13] a.t.n.f.s.m.IntentDefinitionMongoDAO: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
com.mongodb.MongoQueryException: Query failed with error code 134 and error message 'Committed view disappeared while running operation' on server linto-tock-mongo:27017
        at com.mongodb.internal.operation.QueryHelper.translateCommandException(QueryHelper.java:29)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:380)
        at com.mongodb.internal.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult(AsyncQueryBatchCursor.java:362)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor$2.onResult(DefaultServer.java:283)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.CommandProtocolImpl$1.onResult(CommandProtocolImpl.java:82)
        at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:530)
        at com.mongodb.internal.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:142)
        at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:464)
        at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:439)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:744)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:711)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
        at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
        at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
        at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
        at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:701)
        at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:686)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:581)
        at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:578)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
        at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
        at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
        at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
2021-03-23 16:55:16,667 WARN  [pool-1-thread-1] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Reopen stream
2021-03-23 16:55:16,670 INFO  [pool-1-thread-1] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:16,673 WARN  [pool-2-thread-1] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Reopen stream
2021-03-23 16:55:16,673 WARN  [pool-3-thread-1] a.t.n.f.s.m.ApplicationDefinitionMongoDAO: Reopen stream
2021-03-23 16:55:16,673 WARN  [pool-4-thread-1] a.t.n.f.s.m.IntentDefinitionMongoDAO: Reopen stream
2021-03-23 16:55:16,676 INFO  [pool-3-thread-1] a.t.n.f.s.m.ApplicationDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:16,676 INFO  [pool-4-thread-1] a.t.n.f.s.m.IntentDefinitionMongoDAO: Subscribe stream
2021-03-23 16:55:16,676 INFO  [pool-2-thread-1] a.t.n.f.s.m.EntityTypeDefinitionMongoDAO: Subscribe stream

But now I can access tock and log in with admin@app.com

But I noticed some 404 errors on graphical elements.

tock_404

tock_404-details

When trying to create an application, I no longuer get errors so I think this is better :) I currently hve no STT / TTS / ACmodels / LModels created

I will create them and let you know if it works beter.

But things are getting beter, thank you ! :)

Best regards

Houpert commented 3 years ago

Hello,

Regarding the 404 of picture, we have the same issue, it's a very new feature that has been added on tock (20.9.2 allowing to write the base_href with their configuration), previously we were rewriting all docker file (was kinda heavy). It was needed to upgrade to be able to use the new chatbot feature.

I just update the dockerenv_template (to add information about 20.9.3 for the default user)

I will create an issue on the tock repository regarding 404 errors on graphical elements.

Best regards

jerome83136 commented 3 years ago

Hello, I completed my setup by creating Acmodel/Lmodel/STT service and a device application.

I'm able to talk with Linto and it understand my commands. Great ! :)

All is running well now.

Could you please share the issue number you have created at Tock ? So that I can watch for it and see when it get fixed.

Thank you again for the great support !

Best regards

Houpert commented 3 years ago

Hello,

Here the issue created : https://github.com/theopenconversationkit/tock/issues/1239

Best regards