Unable to read bootstrap node metadata
Hi, everyone.
I'm trying to create database through adminTools and have a next error:
*** Creating database mvl ***
127.0.0.1 OK [vertica][(7, 0, 1)][000][all]
Creating database mvl
Starting bootstrap node v_mvl_node0001 (127.0.0.1)
ERROR: Unable to read bootstrap node metadata
Any ideas, guys?
I'm using VirtualBox + Ubuntu 12.04 + Vertica Server 7
I'm trying to create database through adminTools and have a next error:
*** Creating database mvl ***
127.0.0.1 OK [vertica][(7, 0, 1)][000][all]
Creating database mvl
Starting bootstrap node v_mvl_node0001 (127.0.0.1)
ERROR: Unable to read bootstrap node metadata
Any ideas, guys?
I'm using VirtualBox + Ubuntu 12.04 + Vertica Server 7
0
Comments
Did you notice any particular error/warning messages apart from this while creating db?Can you provide the admintools-dbadmin.log file in order to check this issue further?
Regards
Rahul
I've tried your variant, but it haven't solved my problem.
Sorry for long response. I tried to create database again and here is what I have in my admintools-dbadmin.log file after approving creation of database:
The most interesting moment for me is: Why does Vertica think that it's multi node db creation? I ran install_vertica script with one host, like "-s 127.0.0.1".
Also I've tried this https://community.vertica.com/vertica/topics/installing_vertica_7_0_0_1_rhel6_3x64_unable_to_create_... solution, but without success
Have you tried increasing the file limits to around 65K. You can use 'ulimit -n' or edit /etc/security/limits.conf.
I recently ran into a similar issue where a perfectly running Vertica did not start working after doing an OS upgrade, and the cause was the limits.conf file was replaced during upgrade, wiping out previous configs for file limits.
put your ip and hostname there....vertica is not able to resolve your hostname and ip
so correct your /etc/hosts... it will work for you.
i resolved it by putting correct ip and corresponding hostname in /etc/hosts
and it worked
Starting bootstrap node v_mvl_node0001 (127.0.0.1)
ERROR: Unable to read bootstrap node metadata
this is error happened because in /etc/hosts there is no entry for your machine ip and its hostname
do it and let me know....i will try to help
i believe correcting /etc/hosts will work for you.
Thanks
But please make sure you have correct /etc/hosts file in your nodes.
Example from one of the 3 hosts:
10.3.70.219 vertica-dev1 vertica-dev1.domain.com
In /opt/vertica/log/adminTools-dbadmin.log
Aug 29 20:33:14 [13331] <BashAdapter: vertica@10.3.70.219> (Bootstrapping database testdb): <command hidden> Aug 29 20:33:14 [13331] [SSH.createDBMultiNodes] cmd output '['0', ['License installed for companyx', '', 'Catalog succ
essfully bootstrapped']]'
Aug 29 20:33:14 [13331] <BashAdapter: vertica@10.3.70.219> (Reading bootstrap catalog): <command hidden>
Aug 29 20:33:15 [13331] Unable to read bootstrap node metadata. Expected JSON DB desc, got: Traceback (most recent
call last):
File "/opt/vertica/oss/python/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/opt/vertica/oss/python/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/vertica/share/eggs/vertica/config/VDatabase.py", line 382, in <module>
readAndOutputJSON(sys.argv[1], len(sys.argv) > 2 and sys.argv[2] == "silent")
File "/opt/vertica/share/eggs/vertica/config/VDatabase.py", line 373, in readAndOutputJSON
db.loadFromCatalog(ce)
File "/opt/vertica/share/eggs/vertica/config/VDatabase.py", line 221, in loadFromCatalog
self.name = ce.sendCmd("get singleton Database name").strip()
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/tools/CatalogEditor.py", line 72, in sendCmd
self.ceproc.stdin.write(cmd+"\n")
IOError: [Errno 32] Broken pipe
Aug 29 20:33:15 [13331] Multi-node start returns: 0
I had the same problem as you running on a similar setup. I had the same error in my log file and I eventually found the problem in another thread (https://community.vertica.com/vertica/topics/unable_to_read_bootstrap_node_metadata). I found that for some reason my dbadmin's open file limit was set too low (run ulimit -n or ulimit -a to check all limits on dbadmin), hope this helps, good luck!
-Andrew
I have the following problem:
*** Creating database: test ***
127.0.0.1 OK [vertica][(7, 1, 1)][000][all]
Creating database test
ERROR: Unable to bootstrap database: Unable to clean up temp directory: Could not remove file [/initrd.img]: Permission denied
Press RETURN to continue
What does it mean?
Check also the /tmp folder if dbadmin is able to write/read.
Thank you for your answer. The initrd.img file is in "/" directory. I manually removed the file. Then the program wanted to remove vmlinuz file and I also removed this file manually, but it didn't help. Finally, I gave access to the /tmp directory to everybody, but the result was the same as previously.
I installed Vertica on a virtual machine (ubuntu 14 lts) and suppose that maybe a problem is with not sufficient resources or maybe I did not set a parameter. It was the second time when I installed Vertica. The previous installation worked (however it wasn't on a virtual machine).
located in /opt/vertica/config folder
[Configuration]
last_port = 5433
tmp_dir = /tmp
default_base = /home/dbadmin
format = 3
install_opts = -s localhost -d /home/dziedzic/cloud_store/databases/Vertica/data -g dziedzic -u dziedzic -p '*******'
spreadlog = False
controlsubnet = default
controlmode = broadcast
[Cluster]
hosts = 127.0.0.1
[Nodes]
node0001 = 127.0.0.1,/home/dziedzic/cloud_store/databases/Vertica/data,/home/dziedzic/cloud_store/databases/Vertica/data
If not then change the configuaration file /etc/security/limits.conf Add a line: <user> - nofile 62363. It should work!
When I encounter this problem I change my locale settings and then this error has gone. Please check your locale settings by issuing "locale" in command line. If it is not en_US.UTF-8 it may be the cause of your problem.
To change locale settings, issue these commands:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8