Linux installation from tar.gz buggy

The instructions on Yugabyte Getting Started Page are either incomplete or not working:

Notice the installation path and the

ajung@zopyx-nuc ~/yugabyte/yugabyte-1.3.1.0 $ python2.7 bin/yb-ctl create
Creating cluster.
Waiting for cluster to be ready.
Viewing file /home/ajung/yugabyte-data/node-1/disk-1/tserver.err:
sh: 1: /home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-tserver: not found
Viewing file /home/ajung/yugabyte-data/node-1/disk-1/master.err:
sh: 1: /home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-master: not found
Traceback (most recent call last):
  File "bin/yb-ctl", line 1874, in <module>
    control.run()
  File "bin/yb-ctl", line 1851, in run
    self.args.func()
  File "bin/yb-ctl", line 1641, in create_cmd_impl
    self.wait_for_cluster_or_raise()
  File "bin/yb-ctl", line 1487, in wait_for_cluster_or_raise
    raise RuntimeError("Timed out waiting for a YugaByte DB cluster!")
RuntimeError: Timed out waiting for a YugaByte DB cluster!
Viewing file /tmp/tmptlHIx2:
2019-08-20 16:42:27,516 INFO: Starting master-1 with:
/home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-master --fs_data_dirs "/home/ajung/yugabyte-data/node-1/disk-1" --webserver_interface 127.0.0.1 --rpc_bind_addresses 127.0.0.1 --v 0 --version_file_json_path=/home/ajung/yugabyte/yugabyte-1.3.1.0 --webserver_doc_root "/home/ajung/yugabyte/yugabyte-1.3.1.0/www" --replication_factor=1 --yb_num_shards_per_tserver 2 --master_addresses 127.0.0.1:7100 --use_initial_sys_catalog_snapshot >"/home/ajung/yugabyte-data/node-1/disk-1/master.out" 2>"/home/ajung/yugabyte-data/node-1/disk-1/master.err" &
2019-08-20 16:42:27,525 INFO: Starting tserver-1 with:
/home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-tserver --fs_data_dirs "/home/ajung/yugabyte-data/node-1/disk-1" --webserver_interface 127.0.0.1 --rpc_bind_addresses 127.0.0.1 --v 0 --version_file_json_path=/home/ajung/yugabyte/yugabyte-1.3.1.0 --webserver_doc_root "/home/ajung/yugabyte/yugabyte-1.3.1.0/www" --tserver_master_addrs=127.0.0.1:7100 --yb_num_shards_per_tserver=2 --redis_proxy_bind_address=127.0.0.1:6379 --cql_proxy_bind_address=127.0.0.1:9042 --local_ip_for_outbound_sockets=127.0.0.1 --use_cassandra_authentication=false --start_pgsql_proxy --pgsql_proxy_bind_address=127.0.0.1:5433 >"/home/ajung/yugabyte-data/node-1/disk-1/tserver.out" 2>"/home/ajung/yugabyte-data/node-1/disk-1/tserver.err" &
2019-08-20 16:42:27,527 INFO: Waiting for master and tserver processes to come up.
2019-08-20 16:42:38,034 INFO: PIDs found: {'tserver': [None], 'master': [None]}
2019-08-20 16:42:38,035 ERROR: Failed waiting for master and tserver processes to come up.
^^^ Encountered errors ^^^

I tried with a different data directory but same issue:

ajung@zopyx-nuc ~/yugabyte/yugabyte-1.3.1.0 $ bin/yb-ctl  --data_dir /tmp/x create
Creating cluster.
Waiting for cluster to be ready.
Viewing file /tmp/x/node-1/disk-1/tserver.err:
sh: 1: /home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-tserver: not found
Viewing file /tmp/x/node-1/disk-1/master.err:
sh: 1: /home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-master: not found
Traceback (most recent call last):
  File "bin/yb-ctl", line 1874, in <module>
    control.run()
  File "bin/yb-ctl", line 1851, in run
    self.args.func()
  File "bin/yb-ctl", line 1641, in create_cmd_impl
    self.wait_for_cluster_or_raise()
  File "bin/yb-ctl", line 1487, in wait_for_cluster_or_raise
    raise RuntimeError("Timed out waiting for a YugaByte DB cluster!")
RuntimeError: Timed out waiting for a YugaByte DB cluster!
Viewing file /tmp/tmpmC6i8X:
2019-08-20 16:46:57,233 INFO: Starting master-1 with:
/home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-master --fs_data_dirs "/tmp/x/node-1/disk-1" --webserver_interface 127.0.0.1 --rpc_bind_addresses 127.0.0.1 --v 0 --version_file_json_path=/home/ajung/yugabyte/yugabyte-1.3.1.0 --webserver_doc_root "/home/ajung/yugabyte/yugabyte-1.3.1.0/www" --replication_factor=1 --yb_num_shards_per_tserver 2 --master_addresses 127.0.0.1:7100 --use_initial_sys_catalog_snapshot >"/tmp/x/node-1/disk-1/master.out" 2>"/tmp/x/node-1/disk-1/master.err" &
2019-08-20 16:46:57,241 INFO: Starting tserver-1 with:
/home/ajung/yugabyte/yugabyte-1.3.1.0/bin/yb-tserver --fs_data_dirs "/tmp/x/node-1/disk-1" --webserver_interface 127.0.0.1 --rpc_bind_addresses 127.0.0.1 --v 0 --version_file_json_path=/home/ajung/yugabyte/yugabyte-1.3.1.0 --webserver_doc_root "/home/ajung/yugabyte/yugabyte-1.3.1.0/www" --tserver_master_addrs=127.0.0.1:7100 --yb_num_shards_per_tserver=2 --redis_proxy_bind_address=127.0.0.1:6379 --cql_proxy_bind_address=127.0.0.1:9042 --local_ip_for_outbound_sockets=127.0.0.1 --use_cassandra_authentication=false --start_pgsql_proxy --pgsql_proxy_bind_address=127.0.0.1:5433 >"/tmp/x/node-1/disk-1/tserver.out" 2>"/tmp/x/node-1/disk-1/tserver.err" &
2019-08-20 16:46:57,242 INFO: Waiting for master and tserver processes to come up.
2019-08-20 16:47:07,639 INFO: PIDs found: {'tserver': [None], 'master': [None]}
2019-08-20 16:47:07,640 ERROR: Failed waiting for master and tserver processes to come up.
^^^ Encountered errors ^^^


using --timeout-processes-running-sec 120 makes no difference

Thanks for bringing to our attention. After untarring and before running yb-ctl, could you pls run ./bin/post_install.sh?

The complete instructions are here: YugabyteDB Quick start for macOS | YugabyteDB Docs. The https://download.yugabyte.com instructions were missing the above post_install.sh step. We have corrected this error now.

Thanks for the quick fix…working now as expected.

1 Like