Rasa: Cannot change RASA X port

Created on 27 May 2019  路  7Comments  路  Source: RasaHQ/rasa

Rasa version:
1.0.1
Python version:
3.7
Operating system (windows, osx, ...):
Ubuntu
Issue:
Starting Rasa X in local mode... 馃殌
[2019-05-27 17:09:47 +0900] [16856] [ERROR] Unable to start server
Traceback (most recent call last):
File "uvloop/loop.pyx", line 1112, in uvloop.loop.Loop._create_server
File "uvloop/handles/streamserver.pyx", line 58, in uvloop.loop.UVStreamServer.listen
File "uvloop/handles/streamserver.pyx", line 95, in uvloop.loop.UVStreamServer._fatal_error
OSError: [Errno 98] Address already in use

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sanic/server.py", line 745, in serve
http_server = loop.run_until_complete(server_coroutine)
File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
File "uvloop/loop.pyx", line 1684, in create_server
File "uvloop/loop.pyx", line 1116, in uvloop.loop.Loop._create_server
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 5002): address already in use

Is there any way to configure the RASA X port number?
The following
rasa x --port PORT
does not work

Content of configuration file (config.yml):


Content of domain file (domain.yml) (if used & relevant):


area type

Most helpful comment

i give
rasa x --debug --enable-api --cors "*" --port 5007 --rasa-x-port 5008

and get
Starting Rasa Core server on http://localhost:5007
Error: Cannot connect to host localhost:5008 ssl:None [Connect call failed ('127.0.0.1', 5008)]
(http://localhost:5008/api/health is not responding)

The server is running at http://localhost:5002/login?

can you please share what i am breaking while changing the port from 5002?

All 7 comments

The thing is that we actually need two ports, one to run rasa-x (e.g. delivering the UI) and another one to run a normal rasa server. --port only changes the port of the rasa server, there is no argument to change the rasa-x port.

I think we should add a new argument to specify the rasa-x port and throw an error explaining the two ports thingy if binding to the address fails.

Feature will be included in the next minor release.

i give
rasa x --debug --enable-api --cors "*" --port 5007 --rasa-x-port 5008

and get
Starting Rasa Core server on http://localhost:5007
Error: Cannot connect to host localhost:5008 ssl:None [Connect call failed ('127.0.0.1', 5008)]
(http://localhost:5008/api/health is not responding)

The server is running at http://localhost:5002/login?

can you please share what i am breaking while changing the port from 5002?

Rasa version:
1.1.4
Python version:
3.7
Operating system (windows, osx, ...):
Windows

rasa-x : 0.19.0

I guess, you need to use at least rasa-x version 0.19.1. Can you use that version and try again?

indeed you are right

but now i am getting the below output on http://localhost:5008/api/version
after i installed from https://pypi.rasa.com/simple/rasa-x/

{
"rasa": {
"production": "1.1.4",
"worker": "1.1.4"
},
"rasa-x": "UNDEFINED - this package is not installed"
}

Was this page helpful?
0 / 5 - 0 ratings