What should be inside $VTDATAROOT directory?

111 views
Skip to first unread message

Anantha

unread,
Mar 29, 2015, 1:01:30 PM3/29/15
to vit...@googlegroups.com
Hi,

I accidentally deleted the $VTDATAROOT directory permanently.  I have tried to recreate it by putting all Go-related files in it. Right now, this directory looks like this:

ubuntu@ubuntu4:~/gocode/src/github.com/youtube/vitess$ tree -L 2 $VTDATAROOT 
/home/ubuntu/gocode
-- bin
-- dist
---- grpc
---- protobuf
---- vt-zookeeper-3.3.5
-- go
---- api
---- AUTHORS
---- bin
---- CONTRIBUTORS
---- doc
---- favicon.ico
---- include
---- lib
---- LICENSE
---- misc
---- PATENTS
---- pkg
---- README
---- robots.txt
---- src
---- test
---- VERSION
-- lib
-- pkg
-- src
-- tmp
-- vtdataroot
-- vthook

When I try to build Vitess, I get this error:

ubuntu@ubuntu4:~/gocode/src/github.com/youtube/vitess$ make build
/bin/bash: godep: command not found
make: *** [build] Error 127

What am I missing in this directory?

Thanks in advance,

Anantha

Anthony Yeh

unread,
Mar 30, 2015, 12:29:43 PM3/30/15
to Anantha, vit...@googlegroups.com
The $VTDATAROOT should only contain temporary for running processes, or persistent data files for things like mysqld. If you remove $VTDATAROOT, it should only erase the stored data and your database will be empty.

If you deleted more than just the database files, like the $GOPATH for example, the best way to get it back is to re-run bootstrap.sh.

--
You received this message because you are subscribed to the Google Groups "vitess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vitess+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anantha

unread,
Apr 6, 2015, 3:09:51 AM4/6/15
to vit...@googlegroups.com, ananth...@gmail.com
Hi,

I tried running bootstrap.sh again, but I get this error:

We couldn't find protoc 3.0.0+ installed on your system. While this
won't prevent grpc from working, you won't be able to compile
and run any meaningful code with it.


Please download and install protobuf 3.0.0+ from:


Once you've done so, or if you think this message is in error,
you can re-run this check by doing:

   make verify-install
+ CONFIG=opt
+ ./tools/run_tests/build_python.sh
++ dirname ./tools/run_tests/build_python.sh
+ cd ./tools/run_tests/../..
++ pwd
+ root=/home/ubuntu/gocode/dist/grpc/grpc
+ rm -rf python2.7_virtual_environment
+ virtualenv -p /usr/bin/python2.7 python2.7_virtual_environment
./tools/run_tests/build_python.sh: line 38: virtualenv: command not found
gRPC build failed

I have already installed protobuf using go get code.google.com/p/goprotobuf/proto. Also, I have installed the C++ version and the python version of protobuf using the instructions on https://github.com/google/protobuf/releases.

Thanks in advance.

Ammar Aijazi

unread,
Apr 7, 2015, 12:13:31 PM4/7/15
to Anantha, vit...@googlegroups.com
Hi,

To fix the failing gRPC build, you will likely need to install virtualenv (`sudo apt-get install python-virtualenv` in Ubuntu). Running bootstrap again after that should succeed.
Reply all
Reply to author
Forward
0 new messages