Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to solana devnet/testnet #7830

Closed
0xquantech opened this issue Jan 26, 2022 · 16 comments
Closed

Cannot connect to solana devnet/testnet #7830

0xquantech opened this issue Jan 26, 2022 · 16 comments
Assignees
Labels
priority: highest (user impact) Directly user impacting team: workspace Issue belongs to the Workspace team type: bug Something isn't working

Comments

@0xquantech
Copy link

Bug description

Hi. I am a solana blockchain engineer who is keen on gitpod. I have some mates and they also develop on gitpod.
But from a few days ago(I can't expect, but 2 or 3 days ago), I can't deploy smart contract to Solana Devnet from gitpod ubuntu.(In my computer it works well. And It worked very well on gitpod before.)
image
So solana engineers(my mates) couldn't use gitpod and they left from gitpod to local vs code.
But anyhow I love gitpod.

Steps to reproduce

--- solana install ---
sh -c "$(curl -sSfL https://release.solana.com/v1.8.6/install)"
export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH"
solana-keygen new -f
solana config set --url devnet
solana airdrop 2
solana airdrop 2
solana airdrop 2
solana deploy first.so

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

first.zip

@ghost
Copy link

ghost commented Jan 26, 2022

same issue for me

@0xquantech
Copy link
Author

It still doesn't work.
image

@BlockchainCrazy95
Copy link

Same issue for me now. have trouble with deploying to solana devnet, testnet, mainnet.

@skilled-cryptodev
Copy link

Thanks for your posting, @blockchainlover2019.
I also have same issue. Any solution?

@pawlean pawlean added priority: highest (user impact) Directly user impacting team: workspace Issue belongs to the Workspace team type: bug Something isn't working labels Jan 27, 2022
@csweichel
Copy link
Contributor

Is the data you aim to send sent using TCP or UDP?

@0xquantech
Copy link
Author

Not sure about that.
But It worked very well before. But recently it doesn't work.

@0xquantech
Copy link
Author

Thank you gitpodders. You don't need to worry about this issue. We moved to other tool.
We were fascinated by gitpod but we couldn't use it anymore. Anyhow thank you for your effort.

@pyr0gan
Copy link

pyr0gan commented Feb 3, 2022

@pawlean Users of the Figment Learn Solana pathway have been impacted by this bug. We have been using Gitpod with great success - A resolution or workaround to this issue would be greatly appreciated! 😄

@pawlean
Copy link
Contributor

pawlean commented Feb 3, 2022

@pyr0gan Thanks for the tag! Looping in my colleague @kylos101 who may know more about this issue. Thanks!

@kylos101
Copy link
Contributor

kylos101 commented Feb 4, 2022

Hi @pyr0gan 👋 ,

I was reading through the linked PR, and I rather like this thought ...users to deploy to a test validator running inside of Gitpod instead of the devnet cluster.

Have you considered using tasks, to automate the configuration and starting of test validators within your Gitpod workspace? I'd be happy to share a PR, there are a couple benefits to using tasks. Things services start predictably, and automatically when the Gitpod workspace opens. Plus, you'll be able to remove the deploy contract documentation about local setup (because it'll be scripted in the .gitpod.yml file), which'll save users time so they can get coding faster. Let me know if you'd be willing to accept a PR using tasks?

Let me share why I like tasks. I was recently working a project, where I deployed a local buildkitd and docker registry in a Gitpod Workspace. This helped me to develop and test new images for Gitpod faster, without leaving my Gitpod workspace or having to rely on a remote image registry. Anyone looking to contribute to the repo I shared will have the same experience I did (for building and testing the related project).

Regarding your devnet cluster, if tasks aren't enough, and you need to connect, a workaround may be for you to try connecting to it using Tailscale. Is that something you'd be willing to try?

@kylos101 kylos101 reopened this Feb 4, 2022
@pyr0gan
Copy link

pyr0gan commented Feb 4, 2022

Hey @kylos101 👋 ,

Have you considered using tasks, to automate the configuration and starting of test validators within your Gitpod workspace?

It's not a bad idea, though the way it was working before where users were interacting directly with Solana's devnet was good. We were trying to reduce complexity for the sake of new learners. More experienced developers would likely be able to figure out the issue and work around it without our help.

My only real issue with making test validators a part of the tutorial by default is that it requires users to have yet another running process in a terminal - as I said, we have been trying to reduce complexity where possible.

Tailscale looks interesting. I'll need to discuss it with the team to see if we want to implement this. Personally, I think asking users to manually run a test validator is one of the least complex options and fits the learning curve for using Solana anyway - whereas additional tech outside the Web 3 stack is .. a bit of a sticky wicket 😁

Thanks for your response! I'm still intensely curious as to the technical reason for the breakage, too. 🤔

@kylos101
Copy link
Contributor

kylos101 commented Feb 9, 2022

Hey @pyr0gan I believe I found the network requirements for devnet, here and here, and am scheduling an issue to fix this for you. Just wanted to give you a heads up! Have a good one.

@pyr0gan
Copy link

pyr0gan commented Feb 10, 2022

Hey @pyr0gan I believe I found the network requirements for devnet, here and here, and am scheduling an issue to fix this for you. Just wanted to give you a heads up! Have a good one.

Magnificent! Thank you!

@sagor999 sagor999 self-assigned this Feb 11, 2022
@sagor999 sagor999 moved this from Blocked to In Progress in 🌌 Workspace Team Feb 11, 2022
@sagor999
Copy link
Contributor

@blockchainlover2019 @pyr0gan can you try again and let me know if connectivity is now restored for you?

@kylos101
Copy link
Contributor

@blockchainlover2019 @pyr0gan can you try again and let me know if connectivity is now restored for you?

👋 @BlockchainCrazy95 @pyr0gan hi there, just checking in, is it better now?

@pyr0gan
Copy link

pyr0gan commented Feb 15, 2022

@kylos101 @sagor999 It does appear to be, yes 😄 I was able to deploy a program to Solana devnet as before! Thanks so much 🚀

@kylos101 kylos101 moved this from In Progress to Done in 🌌 Workspace Team Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: highest (user impact) Directly user impacting team: workspace Issue belongs to the Workspace team type: bug Something isn't working
Projects
No open projects
Archived in project
Development

No branches or pull requests

8 participants