ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
3.83k stars 532 forks source link

Docker example from the documentation doesn't work too. #2091

Open makorne opened 7 months ago

makorne commented 7 months ago

quickstart

docker pull cr.yandex/yc/yandex-docker-local-ydb:latest

Trying to pull cr.yandex/yc/yandex-docker-local-ydb:latest...
Getting image source signatures
Copying blob dee44719e3e8 done  
Copying blob c13d5d195525 done  
Copying blob 8b52608ed587 done  
Copying blob 15ddacdc57a5 done  
Copying blob 514d6189cec5 done  
Copying blob 62ad0fb74e65 done  
Copying blob ee56cf361e02 done  
Copying blob 6477278d29bb done  
Copying blob 5f3055e794e6 done  
Copying blob acfba632ebb2 done  
Copying blob c2e295d89d4a done  
Copying blob 00484d4bffe5 done  
Copying blob 4b5dd9d9cf8f done  
Copying blob b2e8a37f87b0 done  
Copying config 62429beafe done  
Writing manifest to image destination
62429beafe23f7e3044005649cb99b37307a83e187dd6d6e3ec7f956fac29146

docker run -d --rm --name ydb-local -h localhost \ -p 2135:2135 -p 2136:2136 -p 8765:8765 \ -v $(pwd)/ydb_certs:/ydb_certs -v $(pwd)/ydb_data:/ydb_data \ -e GRPC_TLS_PORT=2135 -e GRPC_PORT=2136 -e MON_PORT=8765 \ cr.yandex/yc/yandex-docker-local-ydb:latest

Error: statfs /home/my/ydb/ydb_certs: no such file or directory

blinkov commented 7 months ago

@makorne is this on Mac OS? could you check if the patch from https://github.com/ydb-platform/ydb/pull/410 helps?

makorne commented 7 months ago

The same Fedora 37 as in second case

makorne commented 7 months ago

Solved after manually mkdir ydb_data and ydb_certs

makorne commented 7 months ago

But... Looks like non-Tls part broken:

ydb -e grpc://localhost:2136 -d /local scheme ls

.sys_health data orderLines orders stock test urls .sys

ydb -e grpc://localhost:2135 -d /local scheme ls

Status: TRANSPORT_UNAVAILABLE
Issues: 
<main>: Error: GRpc error: (14): failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:2135: Socket closed
<main>: Error: Grpc error response on endpoint localhost:2135
<main>: Error: Endpoint list is empty for database /local, cluster endpoint localhost:2135.
makorne commented 7 months ago

@blinkov Nobody knows why TLS port of official ydb docker is broken?