A few getting started questions [Docker and YugabyteDB Anywhere]

HI! Just a few quick questions.

I used Quick Start, Use a local cluster, then Docker here:

I got an interface, just like the screen shots with 5 icons down the left side, which is largely read-only (at least upon setup) and does not seam to have the full interface in it for setting up a cluster.

I think I"m looking for YugabyteDB Anywhere?

I’m really looking to run the full version under Docker.

The goal is simply to be able to follow the guides to try out replication setups so I can get a fell for everything and figure out what I need. Many of the cluster guides have screen-shots that I don’t have in the Docker quick start version. I’m also wanting to start the full interface under Docker.

If I need to do it under the command-line, that is fine. The UI is not a hard requirement. It is just that the guides don’t seam to use a command-line, it is that interface.

Finally, a recent install from docker hub tag yugabytedb/yugabyte:latest per the quick start above looks like this:

Starting yugabyted...
⚠ WARNING System checks. Following pre-reqs are not met:
- Transparent hugepages disabled. Please enable transparent_hugepages.
- ntp/chrony package is missing for clock synchronization. For centos 7, we recommend installing either ntp or chrony package and for centos 8, we recommend installing chrony package.

Review the following docs and rerun the start command.
Quick start for Linux: https://docs.yugabyte.com/latest/quick-start/install/linux/


✅ YugabyteDB Started                  
⚠ WARNING: Cluster started in an insecure mode without authentication and encryption enabled. For non-production use only, not to be used without firewalls blocking the internet traffic.
✅ UI ready         
$ docker exec -it yugabyte /home/yugabyte/bin/ysqlsh --echo-queries
ysqlsh: could not connect to server: Connection refused
	Is the server running on host "localhost" (127.0.0.1) and accepting
	TCP/IP connections on port 5433?
could not connect to server: Cannot assign requested address
	Is the server running on host "localhost" (::1) and accepting
	TCP/IP connections on port 5433?

The screenshot is for the open source YugabyteDB version.

For YugabyteDB Anywhere you need to contact sales to get a trial license YugabyteDB Anywhere: Deploy Across Any Cloud

The free version is also “full version”.

Yugabyte Anywhere is “easier devops around the cluster”.
But the main database is fully open source.

So depends on what you exactly need?

Can you run the ./bin/yugabyted collect_logs command and upload the logs?

It will not upload, but the log is not long:

[yugabyted collect_logs] 2023-03-17 11:37:39,616 INFO:  | 0.0s | cmd = collect_logs using config file: /root/var/conf/yugabyted.conf (args.config=None)
[yugabyted collect_logs] 2023-03-17 11:37:39,616 INFO:  | 0.0s | Found directory /home/yugabyte/bin for file openssl_proxy.sh
[yugabyted collect_logs] 2023-03-17 11:37:39,616 INFO:  | 0.0s | Found directory /home/yugabyte/bin for file yb-admin

It should have produced a zip file with different files inside.

It created yugabyted-2023-03-17-11\:37\:39.616715.tar.gz with one file root/var/logs/yugabyted.log with three lines in it (pasted above).

Did you run the command inside the container?

Can you please paste the full command + output that was on your terminal when you ran the command?

$ docker run -d --name yugabyte  -p7000:7000 -p9000:9000 -p5433:5433 -p9042:9042\
 yugabytedb/yugabyte:2.17.1.0-b439 bin/yugabyted start\
 --daemon=false
Unable to find image 'yugabytedb/yugabyte:2.17.1.0-b439' locally
2.17.1.0-b439: Pulling from yugabytedb/yugabyte
Digest: sha256:ed09f14588cb8cda772ec344dc1e5beb19aeed710fca41600f3a79a2c19773c0
Status: Downloaded newer image for yugabytedb/yugabyte:2.17.1.0-b439
73a0b759c06986b09e1b7d1d8a7beca9d4029966285ccfdcd14ebd34a9b0b448

$ docker exec -it yugabyte /home/yugabyte/bin/ysqlsh --echo-queries
ysqlsh: could not connect to server: Connection refused
	Is the server running on host "localhost" (127.0.0.1) and accepting
	TCP/IP connections on port 5433?
could not connect to server: Cannot assign requested address
	Is the server running on host "localhost" (::1) and accepting
	TCP/IP connections on port 5433?

Did you do the same with the collect_logs command? By running it inside the docker?

Yes, I’m just copying commands from the web page into a shell. I did not change anything so there is nothing unique on my side and I believe this is nothing I can really help with at this point. Thank you.

By default yugabyted doesn’t listen on localhost on the container hostname interface

You can connect by:

docker exec -it yugabyte bash -c '/home/yugabyte/bin/ysqlsh --echo-queries -h $(hostname)'

As you tunneled the port 5433 to the docker host you can also connect with any PostgreSQL client on this port

Or if you want to listen on all interface so that you can simply ysqlsh within the container, you can add --listen 0.0.0.0 to yugabyted start