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

Update the tutorial (Upgrade the running network) #1775

Closed
2 tasks done
gogosama-dev opened this issue Feb 2, 2023 · 3 comments · Fixed by #1780
Closed
2 tasks done

Update the tutorial (Upgrade the running network) #1775

gogosama-dev opened this issue Feb 2, 2023 · 3 comments · Fixed by #1780
Labels
new content 💡✍️ New Devhub content required.

Comments

@gogosama-dev
Copy link
Contributor

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Content request

Hi guys.
I've found out that the last part of this tutorial (where you need to use the Scheduler pallet to schedule a runtime upgrade) simply doesn't work:
https://docs.substrate.io/tutorials/get-started/upgrade-a-running-network/
(if I do everything the tutorial says, I get the "block exhausted" error at all times)

I raised this question on SE (https://substrate.stackexchange.com/questions/6919/update-runtime-sudo-transaction-exhausted-substrate) and people agree that it might be an issue in the tutorial and it needs an update.

Would love to help, but I haven't been able to figure out how to complete the Scheduler part on my own.
Anyone could help?

Are you willing to help with this request?

Yes!

@gogosama-dev gogosama-dev added the new content 💡✍️ New Devhub content required. label Feb 2, 2023
@lisa-parity
Copy link
Contributor

@gogosama-dev, thanks for posting on StackExchange. I ran into this issue when I updated the first part of the tutorial. I didn't do proper benchmarking for the second part. I was hoping it was a temporary issue in the UI not be in synch. I'll try Oliver's suggestion. If you want to try it as well, you need to add the pallet_utility much like you added the pallet_scheduler to the runtime. After you add the pallet, you should be able to select the pallet in the Polkador/Substrate Portal. I'll try to test this workaround today(and put the benchmarking into my to-do list 😄).

@lisa-parity
Copy link
Contributor

lisa-parity commented Feb 3, 2023

@gogosama-dev, it looks like the second part of the tutorial won't work without proper benchmarking. You can use the utility pallet instead of scheduler to do an upgrade with arbitrary weight settings, but that defeats the purpose of the second part of the tutorial.

Not much I can do until this issue is resolved:
paritytech/substrate#13192

Adding a disclaimer to the tutorial as a temporary fix.

@rvalle
Copy link
Contributor

rvalle commented Mar 10, 2023

@lisa-parity the tutorial is still broken then.

I was running it trying to find out what is happening. I understand that the fix is related to an external issue, but how do we do from the POV of the learner?

I mean one will review the exercise a few times, re-try a few times, and start searching to see if others have the same issue before finding this.

Perhaps it would be possible to link tutorials to opened issued? and generate a troubleshooting section if the issues are still open with a generic: Troubleshooting: the following issues could be affecting this tutorial... or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new content 💡✍️ New Devhub content required.
Projects
None yet
3 participants