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

emq_auth_redis cannot use hostname as server address #741

Closed
totojack opened this issue Oct 28, 2016 · 0 comments
Closed

emq_auth_redis cannot use hostname as server address #741

totojack opened this issue Oct 28, 2016 · 0 comments
Assignees
Labels

Comments

@totojack
Copy link

Hi.

It seems it's not possible to use hostname into configuration auth.redis.server but it must be a couple IP:PORT. I'm trying to use emqtt inside docker compose with a redis service (with name "redis") and if I set for example

auth.redis.server = redis:6379

or

auth.redis.server = "redis":6379

I've got this error

emqtt | 08:35:15.125 [error] Error generating configuration in phase transform_datatypes
emqtt | 08:35:15.125 [error] Error transforming datatype for: auth.redis.server
emqtt | 08:35:15.125 [error] ""redis":6379" cannot be converted to a(n) integer
emqtt | 08:35:15.125 [error] ""redis":6379" cannot be converted to a(n) IP

I'm quite sure that it was possible in previous versions to use something like

{redis_pool, [
%% pool options
{pool_size, 8},
{auto_reconnect, 2},

%% redis options
{host, "redis"},
{port, 6379},
{database, 0},
{password, ""}
]}.

Thanks

@emqplus emqplus added the BUG label Oct 29, 2016
@emqplus emqplus self-assigned this Oct 29, 2016
turtleDeng pushed a commit to emqx/emqx-auth-pgsql that referenced this issue Oct 31, 2016
turtleDeng pushed a commit to emqx/emqx-auth-mysql that referenced this issue Oct 31, 2016
turtleDeng pushed a commit to emqx/emqx-auth-mongo that referenced this issue Oct 31, 2016
emqplus pushed a commit to emqx/emqx-auth-redis that referenced this issue Oct 31, 2016
turtleDeng pushed a commit to emqx/emqx-auth-pgsql that referenced this issue Oct 31, 2016
turtleDeng pushed a commit to emqx/emqx-auth-mongo that referenced this issue Oct 31, 2016
turtleDeng pushed a commit to emqx/emqx-auth-mysql that referenced this issue Oct 31, 2016
emqplus pushed a commit to emqx/emqx-auth-pgsql that referenced this issue Oct 31, 2016
emqplus pushed a commit to emqx/emqx-auth-mongo that referenced this issue Oct 31, 2016
emqplus pushed a commit to emqx/emqx-auth-mysql that referenced this issue Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants