-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
st2api and st2auth always binds to 127.0.0.1 #2676
Comments
Which distribution you are running? If you are running Ubuntu, you also need to edit upstart job files, since upstart is used on Ubuntu (IIRC, those files are in It's also worth noting that we explicitly bind those services to localhost since they are running behind a proxy (nginx) and aren't directly exposed to the internet. |
@manasdk @lakshmi-kannan We discussed this before but we need to decide what to do with those listen directives in the config when using packages and gunicorn. One option is to utilize those values instead of the CLI arguments which are passed to gunicorn process (then we need to be careful we ship a correct default config with the packages). Another one is to simply document this behavior and let user know they need to edit service manager files if they want to change listen ip and / or port. In any case, it's something which caused quite a lot of confusion already so we need to come up with a solution soon. |
@Kami I'm using Ubuntu 14.04. |
Yeah, I think we should make config work with gunicorn. It might get nasty because of ordering issues. Anyways, that seems like the ideal solution. |
I am using v1.4 on CentOS7.1.
|
@tenyearslater The right way to do this is to update the URL for mistral to communicate with StackStorm API. In
After updating the StackStorm config file restart StackStorm services by |
Not sure why it doesn't work for the author, but updating DAEMON_ARGS via /etc/sysconfig/st2api worked very well for me:
This way I don't have to update the original init.d script, which can be updated during upgrade. I am on CentOS 6.8 |
I've set the
host
param in st2.conf for auth and api to0.0.0.0
, but the config is ignored and the gunicorn process binds to 127.0.0.1:I've tried modifying the hard-coded local addresses in both https://github.com/StackStorm/st2/blob/master/st2api/st2api/gunicorn_config.py#L29 and https://github.com/StackStorm/st2/blob/master/st2auth/st2auth/gunicorn_config.py#L29
as well as the init scripts
/etc/init.d/st2api
,/etc/init.d/st2auth
, which was hard-coding the bind address in the DAEMON_ARGS variable:DAEMON_ARGS="-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --pid ${PIDFILE}"
.However, the auth and api endpoints are still binding to 127.0.0.1 after restarting the st2 processes.
I'm using st2 v1.4, and my environment was set up by following the documentation.
My st2.conf looks like:
Perhaps I am missing other hard-coded overrides?
The text was updated successfully, but these errors were encountered: