peloton icon indicating copy to clipboard operation
peloton copied to clipboard

make minicluster - cassandra store creation failing

Open trvl3r opened this issue 7 years ago • 8 comments

$PELOTON=app make minicluster PELOTON=app ./scripts/minicluster.sh setup tools/minicluster/main.py:60: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. config = yaml.load(f) removed container peloton-cassandra started container peloton-cassandra failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... failed to create cassandra store, retrying... Failed to create cassandra store after 20 attempts, aborting... make: *** [minicluster] Error 1

trvl3r avatar Apr 26 '19 14:04 trvl3r

I am not an Uber employee - but I am not sure what is the problem. I just started to try Peloton on a brand new GCE instance with Ubuntu and it works well. Maybe try to give more details of the versions of your dependencies or if you have enough resources to launch it?

For me it was a brand new Ubuntu 8 vCPU, 30 Go of RAM, 100 Go SSD, and with the latest dependencies because I had to basically apt-get install everything.

bdelmas avatar Apr 27 '19 17:04 bdelmas

This was run on a MBP w/ Mojave. potentially networking related? Maybe only Linux is supported for these scripts?

On Sat, Apr 27, 2019 at 12:07 PM Benjamin Delmas [email protected] wrote:

I am not a Uber employee - but I am not sure what the problem. I just started to try Peloton on a brand new GCE instance with Ubuntu and it works well. Maybe try to give more details of your dependencies or if you have enough resources to launch it?

For me it was a brand new Ubuntu 8 vCPU, 30 Go of RAM, 100 Go SSD, and with the latest dependencies because I had to basically apt-get install everything.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uber/peloton/issues/8#issuecomment-487303221, or mute the thread https://github.com/notifications/unsubscribe-auth/AATD545ATE3MMEKVLEWU4RTPSSB6RANCNFSM4HIWGVDQ .

trvl3r avatar Apr 27 '19 19:04 trvl3r

Minicluster works fine on my MBP. Can you run docker ps when you see the error messages and check if a container named peloton-cassandra is running?

amittbose avatar Apr 29 '19 18:04 amittbose

There may be two reasons for this

You don't have much disk space in your machine to create the cassandra container

As amit said there may be issue in your docker

Can you please check

mabansal avatar May 06 '19 17:05 mabansal

I am able to reproduce this as well. I see the container running while the process is failing... image

talaniz avatar Jun 14 '19 20:06 talaniz

@amittbose I can create it manually if I exec into the container--

 # cqlsh -e "create keyspace IF NOT EXISTS peloton_test with replication={ 'class' : 'SimpleStrategy', 'replication_factor' : 1 };"
 
 # cqlsh -e "describe peloton_test"

CREATE KEYSPACE peloton_test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}  AND durable_writes = true;

A few debugging statements and I get the following--

b'Connection error: (\'Unable to connect to any servers\', {\'127.0.0.1\': error(111, "Tried connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection refused")})\n'

I do see the port listening, though-- # telnet localhost 9042 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.

talaniz avatar Jun 14 '19 21:06 talaniz

cli.exec_start returns bytes in Python 3 so the cluster was actually being created, but the response comparison wasn't catching the response. I've filed a fix

talaniz avatar Jun 17 '19 20:06 talaniz

@talaniz how was the status, I got the same issue? Thanks for contributing

Specs : python3.6 ubuntu 18.04

hszkf avatar Aug 22 '19 04:08 hszkf