ydb icon indicating copy to clipboard operation
ydb copied to clipboard

Docker example from the documentation doesn't work too.

Open makorne opened this issue 1 year ago • 5 comments

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

makorne avatar Feb 20 '24 03:02 makorne

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

blinkov avatar Feb 20 '24 04:02 blinkov

The same Fedora 37 as in second case

makorne avatar Feb 20 '24 04:02 makorne

Solved after manually mkdir ydb_data and ydb_certs

makorne avatar Feb 20 '24 05:02 makorne

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 avatar Feb 20 '24 14:02 makorne

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

makorne avatar Feb 21 '24 10:02 makorne