Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change RASA X port #3597

Closed
weiczhu opened this issue May 27, 2019 · 7 comments
Closed

Cannot change RASA X port #3597

weiczhu opened this issue May 27, 2019 · 7 comments
Assignees
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR

Comments

@weiczhu
Copy link

weiczhu commented May 27, 2019

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):

@tmbo tmbo added the type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR label May 27, 2019
@tmbo
Copy link
Member

tmbo commented May 27, 2019

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.

@tmbo tmbo added the area:rasa-x/backend 🎩 All issues focused on the Rasa X backend label May 27, 2019
@tabergma tabergma mentioned this issue Jun 5, 2019
5 tasks
@tabergma
Copy link
Contributor

tabergma commented Jun 6, 2019

Feature will be included in the next minor release.

@tabergma tabergma closed this as completed Jun 6, 2019
@cyrilthank
Copy link

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?

@cyrilthank
Copy link

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

@cyrilthank
Copy link

rasa-x : 0.19.0

@tabergma
Copy link
Contributor

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

@cyrilthank
Copy link

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

No branches or pull requests

4 participants