YugabyteDB Started
\ Enabling Encryption in Transit and Password Authentication…Could not update Cassandra user password. Exception: Traceback (most recent call last):
File “/root/yugabyte-2.21.1.0/./bin/yugabyted”, line 4478, in update_db_passwords
retry_op_with_argument(ycql_proxy.try_update_password, new_password, timeout=60)
File “/root/yugabyte-2.21.1.0/./bin/yugabyted”, line 8501, in retry_op_with_argument
raise RuntimeError(“Failed after retrying operation for {} secs.”.format(
RuntimeError: Failed after retrying operation for 60.53712773323059 secs.
Please help! How to solve this error? OS is ubuntu 24.04
Thanks!
./bin/yugabyted collect_logs
ERROR: No YugabyteDB node is running in the data_dir /root/var/data
For more information, check the logs in /root/var/logs
tail /root/var/logs/yugabyted.log
[yugabyted generate_server_certs] 2024-07-01 13:11:31,230 INFO: | 0.0s | Found directory /root/yugabyte-2.21.1.0/bin for file openssl_proxy.sh
[yugabyted generate_server_certs] 2024-07-01 13:11:31,230 INFO: | 0.0s | Found directory /root/yugabyte-2.21.1.0/bin for file yb-admin
[yugabyted generate_server_certs] 2024-07-01 13:11:31,231 INFO: | 0.0s | Found an existing root certs directory /root/var/generated_certs/root-ca. Found appropriate files. Using the existing root certs.
[yugabyted generate_server_certs] 2024-07-01 13:11:31,232 INFO: | 0.0s | WARNING: Hostnames 192.168.198.35,192.168.198.36,192.168.198.37 already have their certifcates generated according to root-ca certs database index. Please use the previously generated certs. Skipping these hostnames…
[yugabyted collect_logs] 2024-07-01 13:14:44,178 INFO: | 0.0s | Running yugabyted command: ‘./bin/yugabyted collect_logs’
[yugabyted collect_logs] 2024-07-01 13:14:44,178 INFO: | 0.0s | cmd = collect_logs using config file: /root/var/conf/yugabyted.conf
[yugabyted collect_logs] 2024-07-01 13:14:44,178 INFO: | 0.0s | Found directory /root/yugabyte-2.21.1.0/bin for file openssl_proxy.sh
[yugabyted collect_logs] 2024-07-01 13:14:44,179 INFO: | 0.0s | Found directory /root/yugabyte-2.21.1.0/bin for file yb-admin
[yugabyted collect_logs] 2024-07-01 13:14:44,179 ERROR: | 0.0s | ERROR: No YugabyteDB node is running in the data_dir /root/var/data
For more information, check the logs in /root/var/logs
[quote=“dorian_yugabyte, post:4, topic:2756”]
Use the same --base_dir that you used to start the cluster.
[/quote]
In insecure mode it is working, but in secure mode with the key “–secure” giving this error:
tail /root/var/data/logs/yugabyted.log
<<
YugabyteDB Started
| Enabling Encryption in Transit and Password Authentication…Could not update Postgress user password. Exception: Traceback (most recent call last):
File “/root/yugabyte-2.21.1.0/./bin/yugabyted”, line 4468, in update_db_passwords
retry_op_with_argument(ysql_proxy.try_update_password, new_password, timeout=60)
File “/root/yugabyte-2.21.1.0/./bin/yugabyted”, line 8501, in retry_op_with_argument
raise RuntimeError(“Failed after retrying operation for {} secs.”.format(
RuntimeError: Failed after retrying operation for 60.53805756568909 secs.
I ran all commands from yugabyte documenation:
1#./bin/yugabyted cert generate_server_certs --hostnames=192.168.198.35,192.168.198.36,192.168.198.37
2#.cp /root/var/generated_certs/192.168.198.35/* node1/certs
3#…/bin/yugabyted start --secure --advertise_address=192.168.198.35 --base_dir=/root/yugabyte-2.21.1.0/node1 --cloud_location=aws.us-east-1.us-east-1a
But yugabyte cannot run.
Hi @Farrux , I see that different --base_dir ($HOME/var, $HOME/var/data, $HOME/yugabyte-2.21/node1) are being used multiple times. Can you please destroy all the nodes started in all of the base_dir you used so as to create a fresh environment.
Destroy the nodes: ./bin/yugabyted destroy --base_dir=<base_dir>
Please run the above command for all the base dirs you may have used to delete any garbage values remaining
Steps for new node:
Create the certs.
Copy the certs to <base_dir>/certs. In some of the above deployments I see the certs are copied to a different path.
Start the node using --secure and --base_dir flag. --base_dir should be the same as in Step 2.
If any error is thrown. Please run ./bin/yugabyted collect_logs --base_dir=<base_dir> Please the base_dir same. Please upload the zip file created after this step to a cloud location and paste the link here.
Traceback (most recent call last):
File "/root/yugabyte-2.21.1.0/bin/ycqlsh.py", line 147, in <module>
from six.moves import configparser, input
ModuleNotFoundError: No module named 'six.moves'