Mongo DB do not save conversations

Hello!

I’m trying to record conversations in mongo using docker and docker compose, the rasa container interacts with the mongo container via endpoints, and it seems to be working because it is creating the database. However the conversations are not being recorded, the database is always empty.

I have two rasa servers connecting to the mongo db, spanish and english, running on containers in different ports 5006 and 5005, for example I try this for the english server!

http://:5005/webhooks/rest/webhook

body = {“User”:“Joao”,“message”:“What is covid?”}

[ { “recipient_id”: “default”, “text”: “intent- covid intro” } ]

show dbs

admin 0.000GB config 0.000GB local 0.000GB rasa-en 0.000GB rasa-es 0.000GB

So the tables are being created but the responses are not being saved!

My endpoints:

tracker_store: type: mongod url: mongodb://mongo:27017 db: rasa-en username: root password: example

Thanks in advance!

Hi @ZordoC, would you mind running the rasa container with the --debug flag? The rasa container should show a debug line Connected to <TrackerStore>. It would be great if you could post the output here, so we can see narrow down where the problem might be.

Yeah ofcourse:

flask_1    |  * Serving Flask app "api" (lazy loading)
flask_1    |  * Environment: production
flask_1    |    WARNING: This is a development server. Do not use it in a production deployment.
flask_1    |    Use a production WSGI server instead.
flask_1    |  * Debug mode: off
flask_1    |  * Running on http://0.0.0.0:7000/ (Press CTRL+C to quit)
mongo_1    | about to fork child process, waiting until server is ready for connections.
mongo_1    | forked process: 27
mongo_1    | 2020-05-12T21:55:46.180+0000 I  CONTROL  [main] ***** SERVER RESTARTED *****
mongo_1    | 2020-05-12T21:55:46.211+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongo_1    | 2020-05-12T21:55:46.220+0000 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
mongo_1    | 2020-05-12T21:55:46.222+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=27 port=27017 dbpath=/data/db 64-bit host=dc45f9248a81
mongo_1    | 2020-05-12T21:55:46.222+0000 I  CONTROL  [initandlisten] db version v4.2.6
mongo_1    | 2020-05-12T21:55:46.222+0000 I  CONTROL  [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten] modules: none
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten] build environment:
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
mongo_1    | 2020-05-12T21:55:46.223+0000 I  CONTROL  [initandlisten]     distarch: x86_64
mongo_1    | 2020-05-12T21:55:46.224+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
mongo_1    | 2020-05-12T21:55:46.224+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27017, tls: { mode: "disabled" } }, processManagement: { fork: true, pidFilePath: "/tmp/docker-entrypoint-temp-mongod.pid" }, systemLog: { destination: "file", logAppend: true, path: "/proc/1/fd/1" } }
mongo_1    | 2020-05-12T21:55:46.227+0000 I  STORAGE  [initandlisten] 
mongo_1    | 2020-05-12T21:55:46.227+0000 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongo_1    | 2020-05-12T21:55:46.227+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
mongo_1    | 2020-05-12T21:55:46.227+0000 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1432M,cache_overflow=(file_max=0M),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],
app_1      | 2020-05-12 21:55:47 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
app_1      | 2020-05-12 21:55:48 INFO     rasa_sdk.executor  - Registered function for 'action_google'.
app_1      | 2020-05-12 21:55:48 INFO     rasa_sdk.executor  - Registered function for 'action_numbers'.
mongo_1    | 2020-05-12T21:55:48.427+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320548:427138][27:0x7faa121d6b00], txn-recover: Set global recovery timestamp: (0, 0)
mongo_1    | 2020-05-12T21:55:48.440+0000 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongo_1    | 2020-05-12T21:55:48.473+0000 I  STORAGE  [initandlisten] Timestamp monitor starting
mongo_1    | 2020-05-12T21:55:48.484+0000 I  CONTROL  [initandlisten] 
mongo_1    | 2020-05-12T21:55:48.484+0000 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
mongo_1    | 2020-05-12T21:55:48.484+0000 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
mongo_1    | 2020-05-12T21:55:48.484+0000 I  CONTROL  [initandlisten] 
mongo_1    | 2020-05-12T21:55:48.485+0000 I  STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: cdbce26b-4a8f-4893-aa21-21ce476214e1 and options: { uuid: UUID("cdbce26b-4a8f-4893-aa21-21ce476214e1") }
mongo_1    | 2020-05-12T21:55:48.505+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns admin.system.version
mongo_1    | 2020-05-12T21:55:48.508+0000 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:48.508+0000 I  COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.2
mongo_1    | 2020-05-12T21:55:48.508+0000 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:48.508+0000 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
mongo_1    | 2020-05-12T21:55:48.509+0000 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:48.510+0000 I  STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: 480a3a33-8fc6-46ba-958b-dcf4b5b64a9e and options: { capped: true, size: 10485760 }
mongo_1    | 2020-05-12T21:55:48.525+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns local.startup_log
mongo_1    | 2020-05-12T21:55:48.526+0000 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:48.526+0000 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongo_1    | 2020-05-12T21:55:48.533+0000 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:48.538+0000 I  NETWORK  [listener] Listening on /tmp/mongodb-27017.sock
mongo_1    | 2020-05-12T21:55:48.539+0000 I  NETWORK  [listener] Listening on 127.0.0.1
mongo_1    | 2020-05-12T21:55:48.539+0000 I  NETWORK  [listener] waiting for connections on port 27017
mongo_1    | child process started successfully, parent exiting
mongo_1    | 2020-05-12T21:55:48.550+0000 I  CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
mongo_1    | 2020-05-12T21:55:48.550+0000 I  STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with provided UUID: 5adba4a5-a96d-4e3a-8e7b-4a3618b60548 and options: { uuid: UUID("5adba4a5-a96d-4e3a-8e7b-4a3618b60548") }
mongo_1    | 2020-05-12T21:55:48.578+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index _id_ on ns config.system.sessions
mongo_1    | 2020-05-12T21:55:48.597+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: starting on config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } using method: Hybrid
mongo_1    | 2020-05-12T21:55:48.597+0000 I  INDEX    [LogicalSessionCacheRefresh] build may temporarily use up to 200 megabytes of RAM
mongo_1    | 2020-05-12T21:55:48.597+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: collection scan done. scanned 0 total records in 0 seconds
mongo_1    | 2020-05-12T21:55:48.598+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: inserted 0 keys from external sorter into index in 0 seconds
mongo_1    | 2020-05-12T21:55:48.603+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index lsidTTLIndex on ns config.system.sessions
mongo_1    | 2020-05-12T21:55:48.904+0000 I  NETWORK  [listener] connection accepted from 127.0.0.1:52540 #1 (1 connection now open)
mongo_1    | 2020-05-12T21:55:48.908+0000 I  NETWORK  [conn1] received client metadata from 127.0.0.1:52540 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.2.6" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "18.04" } }
mongo_1    | 2020-05-12T21:55:48.932+0000 I  NETWORK  [conn1] end connection 127.0.0.1:52540 (0 connections now open)
mongo_1    | 2020-05-12T21:55:49.000+0000 I  SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:49.115+0000 I  NETWORK  [listener] connection accepted from 127.0.0.1:52542 #2 (1 connection now open)
mongo_1    | 2020-05-12T21:55:49.116+0000 I  NETWORK  [conn2] received client metadata from 127.0.0.1:52542 conn2: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.2.6" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "18.04" } }
mongo_1    | 2020-05-12T21:55:49.191+0000 I  SHARDING [conn2] Marking collection admin.system.users as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:49.191+0000 I  STORAGE  [conn2] createCollection: admin.system.users with generated UUID: 4e04aacb-5eee-4605-afbe-d125a937263f and options: {}
mongo_1    | 2020-05-12T21:55:49.211+0000 I  INDEX    [conn2] index build: done building index _id_ on ns admin.system.users
mongo_1    | 2020-05-12T21:55:49.219+0000 I  INDEX    [conn2] index build: done building index user_1_db_1 on ns admin.system.users
mongo_1    | Successfully added user: {
mongo_1    |    "user" : "root",
mongo_1    |    "roles" : [
mongo_1    |            {
mongo_1    |                    "role" : "root",
mongo_1    |                    "db" : "admin"
mongo_1    |            }
mongo_1    |    ]
mongo_1    | }
mongo_1    | 2020-05-12T21:55:49.222+0000 E  -        [main] Error saving history file: FileOpenFailed: Unable to open() file /home/mongodb/.dbshell: No such file or directory
mongo_1    | 2020-05-12T21:55:49.224+0000 I  NETWORK  [conn2] end connection 127.0.0.1:52542 (0 connections now open)
mongo_1    | 
mongo_1    | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
mongo_1    | 
mongo_1    | 2020-05-12T21:55:49.267+0000 I  CONTROL  [main] ***** SERVER RESTARTED *****
mongo_1    | 2020-05-12T21:55:49.268+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongo_1    | 2020-05-12T21:55:49.274+0000 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
mongo_1    | killing process with pid: 27
mongo_1    | 2020-05-12T21:55:49.274+0000 I  CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
mongo_1    | 2020-05-12T21:55:49.275+0000 I  NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
mongo_1    | 2020-05-12T21:55:49.281+0000 I  NETWORK  [listener] removing socket file: /tmp/mongodb-27017.sock
mongo_1    | 2020-05-12T21:55:49.282+0000 I  -        [signalProcessingThread] Stopping further Flow Control ticket acquisitions.
mongo_1    | 2020-05-12T21:55:49.282+0000 I  CONTROL  [signalProcessingThread] Shutting down free monitoring
mongo_1    | 2020-05-12T21:55:49.282+0000 I  FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
mongo_1    | 2020-05-12T21:55:49.285+0000 I  STORAGE  [signalProcessingThread] Deregistering all the collections
mongo_1    | 2020-05-12T21:55:49.285+0000 I  STORAGE  [signalProcessingThread] Timestamp monitor shutting down
mongo_1    | 2020-05-12T21:55:49.285+0000 I  STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
mongo_1    | 2020-05-12T21:55:49.286+0000 I  STORAGE  [signalProcessingThread] Shutting down session sweeper thread
mongo_1    | 2020-05-12T21:55:49.287+0000 I  STORAGE  [signalProcessingThread] Finished shutting down session sweeper thread
mongo_1    | 2020-05-12T21:55:49.287+0000 I  STORAGE  [signalProcessingThread] Shutting down journal flusher thread
mongo_1    | 2020-05-12T21:55:49.349+0000 I  STORAGE  [signalProcessingThread] Finished shutting down journal flusher thread
mongo_1    | 2020-05-12T21:55:49.349+0000 I  STORAGE  [signalProcessingThread] Shutting down checkpoint thread
mongo_1    | 2020-05-12T21:55:49.350+0000 I  STORAGE  [signalProcessingThread] Finished shutting down checkpoint thread
mongo_1    | 2020-05-12T21:55:49.441+0000 I  STORAGE  [signalProcessingThread] shutdown: removing fs lock...
mongo_1    | 2020-05-12T21:55:49.441+0000 I  CONTROL  [signalProcessingThread] now exiting
mongo_1    | 2020-05-12T21:55:49.442+0000 I  CONTROL  [signalProcessingThread] shutting down with code:0
mongo_1    | 
mongo_1    | MongoDB init process complete; ready for start up.
mongo_1    | 
mongo_1    | 2020-05-12T21:55:50.316+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongo_1    | 2020-05-12T21:55:50.320+0000 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
mongo_1    | 2020-05-12T21:55:50.321+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=dc45f9248a81
mongo_1    | 2020-05-12T21:55:50.321+0000 I  CONTROL  [initandlisten] db version v4.2.6
mongo_1    | 2020-05-12T21:55:50.322+0000 I  CONTROL  [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
mongo_1    | 2020-05-12T21:55:50.322+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
mongo_1    | 2020-05-12T21:55:50.322+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
mongo_1    | 2020-05-12T21:55:50.322+0000 I  CONTROL  [initandlisten] modules: none
mongo_1    | 2020-05-12T21:55:50.323+0000 I  CONTROL  [initandlisten] build environment:
mongo_1    | 2020-05-12T21:55:50.323+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
mongo_1    | 2020-05-12T21:55:50.323+0000 I  CONTROL  [initandlisten]     distarch: x86_64
mongo_1    | 2020-05-12T21:55:50.324+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
mongo_1    | 2020-05-12T21:55:50.324+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "*" }, security: { authorization: "enabled" } }
mongo_1    | 2020-05-12T21:55:50.325+0000 I  STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
mongo_1    | 2020-05-12T21:55:50.325+0000 I  STORAGE  [initandlisten] 
mongo_1    | 2020-05-12T21:55:50.325+0000 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongo_1    | 2020-05-12T21:55:50.326+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
mongo_1    | 2020-05-12T21:55:50.326+0000 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1432M,cache_overflow=(file_max=0M),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],
mongo_1    | 2020-05-12T21:55:51.596+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320551:596226][1:0x7fc55ef02b00], txn-recover: Recovering log 1 through 2
mongo_1    | 2020-05-12T21:55:51.734+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320551:734731][1:0x7fc55ef02b00], txn-recover: Recovering log 2 through 2
mongo_1    | 2020-05-12T21:55:51.874+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320551:874774][1:0x7fc55ef02b00], txn-recover: Main recovery loop: starting at 1/29184 to 2/256
mongo_1    | 2020-05-12T21:55:51.995+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320551:995811][1:0x7fc55ef02b00], txn-recover: Recovering log 1 through 2
mongo_1    | 2020-05-12T21:55:52.079+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320552:79276][1:0x7fc55ef02b00], txn-recover: Recovering log 2 through 2
mongo_1    | 2020-05-12T21:55:52.147+0000 I  STORAGE  [initandlisten] WiredTiger message [1589320552:147202][1:0x7fc55ef02b00], txn-recover: Set global recovery timestamp: (0, 0)
mongo_1    | 2020-05-12T21:55:52.189+0000 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongo_1    | 2020-05-12T21:55:52.208+0000 I  STORAGE  [initandlisten] Timestamp monitor starting
mongo_1    | 2020-05-12T21:55:52.221+0000 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.224+0000 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
mongo_1    | 2020-05-12T21:55:52.224+0000 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.224+0000 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.227+0000 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.227+0000 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongo_1    | 2020-05-12T21:55:52.230+0000 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.230+0000 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>
mongo_1    | 2020-05-12T21:55:52.231+0000 I  NETWORK  [listener] Listening on /tmp/mongodb-27017.sock
mongo_1    | 2020-05-12T21:55:52.231+0000 I  NETWORK  [listener] Listening on 0.0.0.0
mongo_1    | 2020-05-12T21:55:52.231+0000 I  NETWORK  [listener] waiting for connections on port 27017
mongo_1    | 2020-05-12T21:55:53.000+0000 I  SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
rasa_1     | 2020-05-12 21:55:55 DEBUG    rasa.cli.utils  - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.
rasa_1     | 2020-05-12 21:55:55 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
rasa-es_1  | 2020-05-12 21:55:55 DEBUG    rasa.cli.utils  - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.
rasa-es_1  | 2020-05-12 21:55:55 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
rasa-es_1  | 2020-05-12 21:55:56 DEBUG    rasa.model  - Extracted model to '/tmp/tmptgxcqdg7'.
rasa_1     | 2020-05-12 21:55:56 DEBUG    rasa.model  - Extracted model to '/tmp/tmp7148rrgo'.
rasa-es_1  | 2020-05-12 21:55:57 DEBUG    sanic.root  - CORS: Configuring CORS with resources: {'/*': {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': None, 'supports_credentials': True, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}}
rasa-es_1  | 2020-05-12 21:55:57 DEBUG    rasa.core.utils  - Available web server routes: 
rasa-es_1  | /webhooks/rasa                                     GET                            custom_webhook_RasaChatInput.health
rasa-es_1  | /webhooks/rasa/webhook                             POST                           custom_webhook_RasaChatInput.receive
rasa-es_1  | /webhooks/rest                                     GET                            custom_webhook_RestInput.health
rasa-es_1  | /webhooks/rest/webhook                             POST                           custom_webhook_RestInput.receive
rasa-es_1  | /                                                  GET                            hello
rasa-es_1  | 2020-05-12 21:55:57 INFO     root  - Starting Rasa server on http://localhost:5005
rasa-es_1  | 2020-05-12 21:55:57 DEBUG    rasa.core.utils  - Using the default number of Sanic workers (1).
rasa-es_1  | 2020-05-12 21:55:57 INFO     root  - Enabling coroutine debugging. Loop id 94417055844288.
rasa-es_1  | 2020-05-12 21:55:58 DEBUG    rasa.model  - Extracted model to '/tmp/tmpyxewku36'.
rasa_1     | 2020-05-12 21:55:58 DEBUG    sanic.root  - CORS: Configuring CORS with resources: {'/*': {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': None, 'supports_credentials': True, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ['*']}}, 'intercept_exceptions': True, 'always_send': True}}
rasa_1     | 2020-05-12 21:55:58 DEBUG    rasa.core.utils  - Available web server routes: 
rasa_1     | /webhooks/rasa                                     GET                            custom_webhook_RasaChatInput.health
rasa_1     | /webhooks/rasa/webhook                             POST                           custom_webhook_RasaChatInput.receive
rasa_1     | /webhooks/rest                                     GET                            custom_webhook_RestInput.health
rasa_1     | /webhooks/rest/webhook                             POST                           custom_webhook_RestInput.receive
rasa_1     | /socket.io                                         POST                           handle_request
rasa_1     | /                                                  GET                            hello
rasa_1     | /webhooks/socketio                                 GET                            socketio_webhook.health
rasa_1     | 2020-05-12 21:55:58 INFO     root  - Starting Rasa server on http://localhost:5005
rasa_1     | 2020-05-12 21:55:58 DEBUG    rasa.core.utils  - Using the default number of Sanic workers (1).
rasa_1     | 2020-05-12 21:55:58 INFO     root  - Enabling coroutine debugging. Loop id 94144272401600.
rasa_1     | 2020-05-12 21:55:59 DEBUG    rasa.model  - Extracted model to '/tmp/tmpiaqsu1qr'.
rasa-es_1  | 2020-05-12 21:56:00 INFO     rasa.nlu.components  - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-es'.
rasa-es_1  | 2020-05-12 21:56:00 DEBUG    rasa.utils.tensorflow.models  - Loading the model ...
rasa-es_1  | 2020-05-12 21:56:00.642828: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
rasa_1     | 2020-05-12 21:56:00 DEBUG    rasa.utils.tensorflow.models  - Loading the model ...
rasa_1     | 2020-05-12 21:56:00.854078: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
rasa-es_1  | 2020-05-12 21:56:01 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
rasa-es_1  | 2020-05-12 21:56:01 DEBUG    rasa.utils.tensorflow.models  - Building tensorflow prediction graph...
rasa_1     | 2020-05-12 21:56:02 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
rasa_1     | 2020-05-12 21:56:02 DEBUG    rasa.utils.tensorflow.models  - Building tensorflow prediction graph...
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.utils.tensorflow.models  - Finished building tensorflow prediction graph.
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.nlu.classifiers.diet_classifier  - Failed to load model for 'ResponseSelector'. Maybe you did not provide enough training data and no model was trained or the path '/tmp/tmpyxewku36/nlu' doesn't exist?
mongo_1    | 2020-05-12T21:56:11.342+0000 I  NETWORK  [listener] connection accepted from 172.19.0.4:60916 #1 (1 connection now open)
mongo_1    | 2020-05-12T21:56:11.346+0000 I  NETWORK  [conn1] received client metadata from 172.19.0.4:60916 conn1: { driver: { name: "PyMongo", version: "3.8.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "5.3.0-1017-aws" }, platform: "CPython 3.7.7.final.0" }
mongo_1    | 2020-05-12T21:56:11.348+0000 I  NETWORK  [listener] connection accepted from 172.19.0.4:60918 #2 (2 connections now open)
mongo_1    | 2020-05-12T21:56:11.349+0000 I  NETWORK  [conn2] received client metadata from 172.19.0.4:60918 conn2: { driver: { name: "PyMongo", version: "3.8.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "5.3.0-1017-aws" }, platform: "CPython 3.7.7.final.0" }
mongo_1    | 2020-05-12T21:56:11.349+0000 I  SHARDING [conn2] Marking collection admin.system.users as collection version: <unsharded>
mongo_1    | 2020-05-12T21:56:11.371+0000 I  ACCESS   [conn2] Successfully authenticated as principal root on admin from client 172.19.0.4:60918
mongo_1    | 2020-05-12T21:56:11.373+0000 I  STORAGE  [conn2] createCollection: rasa-es.conversations with provided UUID: 876a4d21-af0e-4163-8348-99a92b86c040 and options: { uuid: UUID("876a4d21-af0e-4163-8348-99a92b86c040") }
mongo_1    | 2020-05-12T21:56:11.392+0000 I  INDEX    [conn2] index build: done building index _id_ on ns rasa-es.conversations
mongo_1    | 2020-05-12T21:56:11.407+0000 I  INDEX    [conn2] index build: starting on rasa-es.conversations properties: { v: 2, key: { sender_id: 1 }, name: "sender_id_1", ns: "rasa-es.conversations" } using method: Hybrid
mongo_1    | 2020-05-12T21:56:11.407+0000 I  INDEX    [conn2] build may temporarily use up to 200 megabytes of RAM
mongo_1    | 2020-05-12T21:56:11.407+0000 I  INDEX    [conn2] index build: collection scan done. scanned 0 total records in 0 seconds
mongo_1    | 2020-05-12T21:56:11.408+0000 I  INDEX    [conn2] index build: inserted 0 keys from external sorter into index in 0 seconds
mongo_1    | 2020-05-12T21:56:11.410+0000 I  INDEX    [conn2] index build: done building index sender_id_1 on ns rasa-es.conversations
**rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.core.tracker_store  - Connected to MongoTrackerStore.**
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.core.lock_store  - Connected to lock store 'InMemoryLockStore'.
rasa_1     | 2020-05-12 21:56:11 DEBUG    rasa.utils.tensorflow.models  - Finished building tensorflow prediction graph.
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.model  - Extracted model to '/tmp/tmp3bsx_pgh'.
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    pykwalify.compat  - Using yaml library: /opt/venv/lib/python3.7/site-packages/ruamel/yaml/__init__.py
mongo_1    | 2020-05-12T21:56:11.938+0000 I  NETWORK  [listener] connection accepted from 172.19.0.6:41596 #3 (3 connections now open)
mongo_1    | 2020-05-12T21:56:11.940+0000 I  NETWORK  [conn3] received client metadata from 172.19.0.6:41596 conn3: { driver: { name: "PyMongo", version: "3.8.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "5.3.0-1017-aws" }, platform: "CPython 3.7.7.final.0" }
mongo_1    | 2020-05-12T21:56:11.942+0000 I  NETWORK  [listener] connection accepted from 172.19.0.6:41598 #4 (4 connections now open)
mongo_1    | 2020-05-12T21:56:11.943+0000 I  NETWORK  [conn4] received client metadata from 172.19.0.6:41598 conn4: { driver: { name: "PyMongo", version: "3.8.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "5.3.0-1017-aws" }, platform: "CPython 3.7.7.final.0" }
rasa-es_1  | 2020-05-12 21:56:11 DEBUG    rasa.utils.tensorflow.models  - Loading the model ...
mongo_1    | 2020-05-12T21:56:11.959+0000 I  ACCESS   [conn4] Successfully authenticated as principal root on admin from client 172.19.0.6:41598
mongo_1    | 2020-05-12T21:56:11.960+0000 I  STORAGE  [conn4] createCollection: rasa-en.conversations with provided UUID: 81fb60cc-be65-4c98-aab4-e119382e34e9 and options: { uuid: UUID("81fb60cc-be65-4c98-aab4-e119382e34e9") }
mongo_1    | 2020-05-12T21:56:11.983+0000 I  INDEX    [conn4] index build: done building index _id_ on ns rasa-en.conversations
mongo_1    | 2020-05-12T21:56:11.997+0000 I  INDEX    [conn4] index build: starting on rasa-en.conversations properties: { v: 2, key: { sender_id: 1 }, name: "sender_id_1", ns: "rasa-en.conversations" } using method: Hybrid
mongo_1    | 2020-05-12T21:56:11.998+0000 I  INDEX    [conn4] build may temporarily use up to 200 megabytes of RAM
mongo_1    | 2020-05-12T21:56:11.998+0000 I  INDEX    [conn4] index build: collection scan done. scanned 0 total records in 0 seconds
mongo_1    | 2020-05-12T21:56:12.005+0000 I  INDEX    [conn4] index build: inserted 0 keys from external sorter into index in 0 seconds
mongo_1    | 2020-05-12T21:56:12.008+0000 I  INDEX    [conn4] index build: done building index sender_id_1 on ns rasa-en.conversations
**rasa_1     | 2020-05-12 21:56:12 DEBUG    rasa.core.tracker_store  - Connected to MongoTrackerStore**.
rasa_1     | 2020-05-12 21:56:12 DEBUG    rasa.core.lock_store  - Connected to lock store 'InMemoryLockStore'.
rasa-es_1  | 2020-05-12 21:56:12 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
rasa-es_1  | 2020-05-12 21:56:12 DEBUG    rasa.utils.tensorflow.models  - Building tensorflow prediction graph...
rasa_1     | 2020-05-12 21:56:13 DEBUG    rasa.model  - Extracted model to '/tmp/tmppscz91_f'.
rasa_1     | 2020-05-12 21:56:13 DEBUG    pykwalify.compat  - Using yaml library: /opt/venv/lib/python3.7/site-packages/ruamel/yaml/__init__.py
rasa_1     | 2020-05-12 21:56:13 DEBUG    rasa.utils.tensorflow.models  - Loading the model ...
rasa_1     | 2020-05-12 21:56:13 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
rasa_1     | 2020-05-12 21:56:13 DEBUG    rasa.utils.tensorflow.models  - Building tensorflow prediction graph...
rasa-es_1  | 2020-05-12 21:56:14 DEBUG    rasa.utils.tensorflow.models  - Finished building tensorflow prediction graph.
rasa-es_1  | 2020-05-12 21:56:14 DEBUG    rasa.core.nlg.generator  - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
rasa_1     | 2020-05-12 21:56:15 DEBUG    rasa.utils.tensorflow.models  - Finished building tensorflow prediction graph.
rasa_1     | 2020-05-12 21:56:15 DEBUG    rasa.core.nlg.generator  - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.

Here you go! It says it’s connected and I know it’s connected because both dbs are being created (I have two bots running) they are not being updated though, I’m doing most Post requests from postman and curl, shouldn’t that save as well?

Thanks! Are you getting responses from the assistants when posting to webhooks/rest/webhook?

Yep! Everything’s working :slight_smile: I;m using docker containers

I’m doing most Post requests from postman and curl, shouldn’t that save as well?

yes, those should be saved as well.

just to be absolutely sure that the connection works: in your mongo shell where you ran show dbs, can you please run db.serverStatus().connections? Thanks!

2020-05-13T20:13:50.630+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
> show dbs
admin    0.000GB
config   0.000GB
local    0.000GB
rasa-en  0.000GB
rasa-es  0.000GB
> db.serverStatus().connections
{ "current" : 5, "available" : 838855, "totalCreated" : 5, "active" : 1 }

Here’s the log! Only one active which is weird … i also don’t know what this available mean (Not a mongodb expert) But I wanted to start using it, since it these new NoSql interest me :slight_smile:

Okay, it really seems like the connection is working fine. Another option is that your documents are less than 0.5 MB in size (so it’s rounding down and showing 0.000 GB in size). Can you please check if your collections contain conversations by running

use rasa-en
db.conversations.find()

as well as

use rasa-es
db.conversations.find()

Thanks!

1 Like

Yep that was it, thanks I feel kinda dumb now hehehe :stuck_out_tongue: