basis-company / tarantool-admin

MIT License
110 stars 28 forks source link

error with connection #47

Closed medonomator closed 4 years ago

medonomator commented 4 years ago

Hi all, help please. If I clone the repository and try to make a connection such an error

error

if I put try this command command

then i get it

error2 or error3

tarantool container is raised through the console goes well

Stomator commented 4 years ago

@medonomator Hello, is this problem still actual? Did you find a solution?

nekufa commented 4 years ago

reopen, please, if you need some help

funduck commented 3 years ago

@nekufa Hi, I run Tarantool (Tarantool 2.4.3-0-g5180d98f1) using Cartridge (Tarantool Cartridge CLI v2.3.0 linux/amd64 commit: 06a5dad) with config

myapp.router1:
    advertise_uri: "localhost:3301"
    http_port: 8081
    workdir: "./tmp/data/router1"
myapp.router2:
    advertise_uri: "localhost:3302"
    http_port: 8082
    workdir: "./tmp/data/router2"
myapp.shard1_1:                                   
    advertise_uri: "localhost:3311"               
    http_port: 8083                               
    workdir: "./tmp/data/shard1_1" 
myapp.shard1_2:                    
    advertise_uri: "localhost:3312"
    http_port: 8084
    workdir: "./tmp/data/shard1_2"
myapp.shard2_1:
    advertise_uri: "localhost:3321" 
    http_port: 8085
    workdir: "./tmp/data/shard2_1"
myapp.shard2_2:
    advertise_uri: "localhost:3322"
    http_port: 8086
    workdir: "./tmp/data/shard2_2"

I can connect to any instance (using Tarantool client utility (2.4.3-0-g5180d98f1)), for example

:~$ tarantoolctl connect localhost:3302
connected to localhost:3302
localhost:3302> 

I start UI

docker run -e TARANTOOL_DATABASE_QUERY=true -e TARANTOOL_CONNECTIONS=guest@localhost:3301,guest@localhost:3302,guest@localhost:3311,guest@localhost:3312,guest@localhost:3321,guest@localhost:3322 -p 8000:80 quay.io/basis-company/tarantool-admin

But UI cannot connect to Tarantools it always returns error

Failed to connect to tcp://localhost:3302: Cannot assign requested address.

What am I doing wrong?

nekufa commented 3 years ago

@funduck first of all it is better to open new ticket, the issue is not related with middleware exceptions.

container is running on a separate network, so your connection hostname should be not localhost. localhost is container self address, use your pc ip instead. hope it helps.

funduck commented 3 years ago

@nekufa Thanks a lot, it helped Maybe for folks like me it should be written in README, because I got here like this:

nekufa commented 3 years ago

@funduck i'm not familiar with cartridge, if you can add some useful information to readme - you are welcome, use pull request!