pokt-network / poktroll

The official Shannon upgrade implementation of the Pocket Network Protocol implemented using the Cosmos SDK
MIT License
15 stars 8 forks source link

Unable to get localnet up or run e2e tests #630

Closed rBurgett closed 4 months ago

rBurgett commented 4 months ago

Objective

To get the localnet up and the e2e tests running.

Origin Document

Following the quickstart guide, I cannot get a localnet up. I have tried on my own to debug it, but there are so many moving parts that I have not yet been able to figure anything out. I have the dependencies installed and can run make go_develop_and_test and successfully run the tests. But, when I do make localnet_up and open the tilt UI, almost everything says Update Pending and never starts up like in the video. There is one error listed in the logs:

ERROR: Cluster status error: Tilt encountered an error connecting to your Kubernetes cluster:
    Get "https://127.0.0.1:37189/version?timeout=32s": dial tcp 127.0.0.1:37189: connect: connection refused

If I open the tilt UI and look, it shows: signal-2024-06-20-192550_002 The item with the error is called protocol-dashboards-label. All the other items are either good or forever updating.

I just wanted to run the e2e tests, but there is extremely little information on running them. My hope is that after getting a localnet up, I will be able to figure out how to run the e2e tests since make test_e2e just says,

post failed: Post "http://127.0.0.1:36657": dial tcp 127.0.0.1:36657: connect: connection refused
Messages:       error getting application list

The quickstart guide does not say anything about what is required in order run the e2e tests, but at the moment I am assuming that I need a localnet up before I can run them.

Any help would be appreciated.

Creator: rburgett

Olshansk commented 4 months ago

@okdas This looks like it'll need a debug session. Do you mind coordinating a time to meet with Ryan and helping him out?

Olshansk commented 4 months ago

@rBurgett Do you mind leaving an emoji on [1]. Trying to aggregate user feedback and get a signal into how easy/hard this is.

[1] https://discord.com/channels/553741558869131266/1234943674903953529/1253478922486546524

okdas commented 4 months ago

Do you mind coordinating a time to meet with Ryan and helping him out?

Sure thing!

@rBurgett quick question though before we do a debug session - what's your OS, Docker version and how do you run Kubernetes? In the docs, we recommend using kind.

rBurgett commented 4 months ago

@okdas I am in Linux (an Ubuntu derivative), Docker 26.1.4, and I am new to Kubernetes (despite having used docker heavily for many years). I installed kind as per the quickstart instructions then created and selected the cluster as per the instructions.

okdas commented 4 months ago

@rBurgett thanks! I deployed the stack on an Ubuntu VM using the documentation and didn't encounter issues. It seems the port is either not being exposed by Docker or is unreachable from the localhost in your case (e.g. ipv4/ipv6 issue). Can you confirm your Discord username? Mine is kdas. Thanks!

rBurgett commented 4 months ago

@okdas I am amishbatman on Discord.

okdas commented 4 months ago

@rBurgett, could you please close this GitHub issue if the problem has been resolved on your end? Thank you!

rBurgett commented 4 months ago

I believe it has been. Thank you for your help.

Olshansk commented 4 months ago

@rBurgett Do you mind sharing 1-2 sentences on what the issue was?