Socketio doesn't work

I have set up RasaX on a server and I’m trying to use rasa-webchat on my website through socketio. Everything seems to work fine but there is almost no communication using socketio so the webchat doesn’t work and I cannot access RasaX server. I think it ends up in timeup. I tried using the rest channel for the webchat and everything works as expected and I can access the RASAX server. The only issue occurs when using socketio channel.

I looked at the logs and everything seems fine except for a few:

  • nginx
/opt/bitnami/scripts/nginx/run.sh
nginx 04:28:02.56 INFO  ==> ** Starting NGINX **
2020/09/08 04:28:02 [notice] 1#0: using the "epoll" event method
2020/09/08 04:28:02 [notice] 1#0: nginx/1.17.10
2020/09/08 04:28:02 [notice] 1#0: built by gcc 8.3.0 (Debian 8.3.0-6) 
2020/09/08 04:28:02 [notice] 1#0: OS: Linux 4.15.0-115-generic
2020/09/08 04:28:02 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2020/09/08 04:28:02 [notice] 1#0: start worker processes
2020/09/08 04:28:02 [notice] 1#0: start worker process 17
2020/09/08 04:28:02 [notice] 1#0: start worker process 18
2020/09/08 04:28:02 [notice] 1#0: start worker process 19
2020/09/08 04:28:02 [notice] 1#0: start worker process 20
27.34.22.31 - - [08/Sep/2020:04:28:14 +0000] "GET /socket.io/?EIO=3&transport=polling&t=NHh-B9N HTTP/1.1" 200 119 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"
27.34.22.31 - - [08/Sep/2020:04:28:14 +0000] "POST /socket.io/?EIO=3&transport=polling&t=NHh-BAD&sid=8c18b1b01ae04eafab850b13278e41d8 HTTP/1.1" 200 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"
27.34.22.31 - - [08/Sep/2020:04:28:14 +0000] "GET /socket.io/?EIO=3&transport=polling&t=NHh-BAE&sid=8c18b1b01ae04eafab850b13278e41d8 HTTP/1.1" 200 4 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"
27.34.22.31 - - [08/Sep/2020:04:28:14 +0000] "GET /socket.io/?EIO=3&transport=polling&t=NHh-BAm&sid=8c18b1b01ae04eafab850b13278e41d8 HTTP/1.1" 200 4 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"
2020/09/08 04:28:14 [info] 20#0: *1 client 27.34.22.31 closed keepalive connection (104: Connection reset by peer)
  • rasa-x
INFO:alembic.runtime.migration:Context impl PostgresqlImpl.
INFO:alembic.runtime.migration:Will assume transactional DDL.
INFO:rasax.community.services.event_service:Starting event service (standalone: False).
INFO:rasax.community.services.integrated_version_control.git_service:Cloning git repository from URL 'git@gitlab.com:diyoai/projects/chatbot/ministry-bot/moest-bot.git'.
Execution of job "run_background_synchronization (trigger: cron[minute='*'], next run at: 2020-09-08 04:28:00 UTC)" skipped: maximum number of running instances reached (1)
Starting Rasa X server... 🚀
/usr/local/lib/python3.7/site-packages/rasax/community/services/test_service.py:43: UserWarning: Unable to get tests from /app/git/1/tests/conversation_tests.md:
File '/app/git/1/tests/conversation_tests.md' does not exist. Please, make sure you have end-to-end tests added to your assistant. See https://rasa.com/docs/rasa-x/user-guide/test-assistant for more information.
  UserWarning,
INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.
ERROR:pika.adapters.blocking_connection:Unexpected connection close detected: ConnectionClosedByBroker: (320) "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'"
ERROR:rasax.community.services.event_service:Caught an exception while consuming events. Will retry in 5 s.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_service.py", line 1667, in continuously_consume
    consumer.consume()
  File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_consumers/pika_consumer.py", line 180, in consume
    self.channel.start_consuming()
  File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 1866, in start_consuming
    self._process_data_events(time_limit=None)
  File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 2027, in _process_data_events
    self.connection.process_data_events(time_limit=time_limit)
  File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 825, in process_data_events
    self._flush_output(common_terminator)
  File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 522, in _flush_output
    raise self._closed_result.value.error
pika.exceptions.ConnectionClosedByBroker: (320, "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.