Questions tagged [runtime-upgrade]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
14 views

How to make a main net parachain upgrade through democracy?

I have made successful runtime upgrades through the sudo pallet prior to this, but after trying to do it through referendum using the democracy pallet there was an error. What are the step to make a ...
2 votes
1 answer
15 views

Are pallet migrations triggered automatically by default or we need to pass each pallets migration explicitly in Executive Type?

Recently did a runtime upgrade on our node which broke all existing ink contracts. Later included the pallet contracts migration in Executive Type which fixed the issue. My impression was all runtime ...
4 votes
1 answer
59 views

How to upgrade the client?

I want to do a runtime upgrade but I got the same error as here solution is :- If there are changes not only to the runtime but also to the node, then this issue is normally caused by upgrading the ...
1 vote
0 answers
19 views

Elections phragmen migration

I am working on Substrate-based node upgrades for solo-chain. I stick to Polkadot releases and during the upgrade from polkadot-release-v0.8.27 to polkadot-v0.8.28 I found a storage migration. This ...
1 vote
1 answer
22 views

Which hash to use with Srtool when upgrading a parachain?

In my srtool output: == Compressed Version : [object] Metadata : V14 Size : 707.47 KB (724453 bytes) Compression : 81.25% setCode : ...
0 votes
0 answers
9 views

Issue with TransactionPaymentApi_query_info and no code upgrades

We have recently investigated an issue with our Westend node when building a transaction before signing. I believe related to this pull https://github.com/paritytech/substrate/pull/12633#issuecomment-...
6 votes
1 answer
42 views

How to identify node update storage migrations?

I am working on Substrate-based node upgrades. I stick to Polkadot releases and start from polkadot-v0.8.25 to the latest versions. While upgrading I need to make sure that I don’t miss any storage ...
2 votes
1 answer
42 views

Council and Technical committee accounts disappeared after runtime update

I am working on Substrate-based node update. After updating from polkadot-v0.9.10 to polkadot-v0.9.11, Council and Technical committee accounts disappeared from the blockchain state. Additional info: ...
2 votes
1 answer
73 views

How to execute a runtime upgrade that takes more weight than one block can hold

I'm trying to execute a runtime upgrade on a running parachain. I'm using the cumulus parachainSystem pallet to do, using the authorize -> enact flow. My parachain have the contracts pallet, with ...
3 votes
1 answer
109 views

Adding pallet-gilt to a running chain breaks the chain

I am running a simple 2-validator substrate chain with my own keys (https://github.com/paritytech/substrate, branch = polkadot-v0.9.27). I have removed pallet-gilt from the runtime and what I am ...
  • 53
0 votes
1 answer
24 views

parachainSystem.ValidationFunctionStored

The validation function has been scheduled to apply. What does this event mean? When my upgrade will be executed?
  • 147
0 votes
2 answers
46 views

parachainSystem.OverlappingUpgrades

Attempt to upgrade validation function while existing upgrade pending I stuck with this error. Can anyone have idea how fix it?
  • 147
1 vote
2 answers
83 views

Is it possible to schedule a sudo upgrade?

We've tried to use the scheduler pallet using both enact_authorized_upgrade and setCode, but because the scheduler pallet executes on_initialize and it appears that the upgrades cannot happen without ...
  • 159
0 votes
1 answer
21 views

`FailedToExtractRuntimeVersion` when calling `set_code` during a parachain runtime upgrade

I was updating the runtime via sudo with some specific wasm file. What is the reason of error while upgrading the runtime?
  • 147
3 votes
1 answer
23 views

Must I migrate storage during upgrade if it uses an enum that has a new element?

So the question is quite simple. Let's say I have an original definition of nested enums like so: #[derive(MaxEncodedLen, Debug, Encode, Decode, Copy, Clone, Eq, PartialEq, TypeInfo)] pub enum ...
  • 338
2 votes
0 answers
50 views

Forkless upgrade from v0.9.16 to v0.9.17 fails

I am working on a Substrate node update. I have a node from Substrate repository that runs on v0.9.16. When I am executing forkless upgrade to v0.9.17 via polkadot apps (v0.121.2-89-x) it fails and I ...
1 vote
1 answer
20 views

Node client updates require where they should not be according to Polkadot's release notes

I am working on a Substrate node update. I am following Polkadot's releases not to skip migrations. Some node runtime updates require node client updates. This information can be found in Polkadot's ...
2 votes
1 answer
56 views

ink Smart Contract "dies" after the node runtime update

I am working on Substrate node update. During the testing, I found out that the deployed smart contract (incrementer, tag: v3.0.0-rc4) "dies" during the node updates from: v0.8.27 to v0.8....
1 vote
0 answers
30 views

Skipping node client's intermediate versions

The substrate node consists of 2 parts: runtime and outer node (or node client). The Substrate has forkless upgrade functionality for the runtime updates. Sometimes node client should be updated first ...
1 vote
1 answer
28 views

Substrate upgrade to 0.9.26: the trait bound `Event: From<pallet_transaction_payment::Event<Runtime>>` is not satisfied

When trying to upgrade to Substrate v 0.9.26, I see this error: the trait bound `Event: From<pallet_transaction_payment::Event<Runtime>>` is not satisfied In my config I have the ...
0 votes
0 answers
15 views

error: failed to select a version for `zstd-sys` when trying to upgrade to Substrate v0.9.27 [duplicate]

I am trying to upgrade to Substrate version 0.9.27. I have pointed to the polkadot-v0.9.27 branch and then tried to build clean. What I see is the following error: error: failed to select a version ...
1 vote
1 answer
59 views

Export state of a running chain and run it as alice

Hello everyone, I'm trying to spin up a test chain(with imported real chain data) with alice(so I can start it from genesis and start producing blocks with --alice flag) and after dumping the state of ...
  • 131
1 vote
1 answer
38 views

How Polkadot transition Sudo into On chain governance?

From my understanding, Polkadot has sudo governance in the initial phase. Currently, Polkadot completely changed into on-chain governance by pallet_democracy, pallet_membership, pallet_collective. ...
  • 354
2 votes
0 answers
94 views

Why isn't our Runtime updating with `set_code`

We've gone through the tutorial for running upgrades. We've been able to successfully upgrade using the Polkadot UI. However, when we do the same thing with our custom Runtime, although the tx says it'...
0 votes
0 answers
12 views

Error upgrading parachain on Kusama: `parachainSystem.ProhibitedByPolkadot`

As a sudo of a parachain on Kusama, i am making the first runtime upgrade. Initially, i made the upgrade as a sudo unchecked weight and setCode without checks. The transaction looked successful it ...
3 votes
1 answer
47 views

Is there a way to add a pallet with genesis config through a runtime upgrade?

I have a chain running with some pallets in the runtime. Now I want to add a new (already existing) pallet in the runtime, but this pallet has some genesis config entries. Is it possible to add this ...
1 vote
1 answer
28 views

Polkadot runtime upgrade mechanism and voting

according to substrate docs: To perform a forkless runtime upgrade, Substrate uses existing runtime logic to update the Wasm runtime stored on the blockchain to a new consensus-breaking version with ...
0 votes
2 answers
93 views

Is it possible to integrate node-authorization pallet after genesis?

In the Permissioned Network tutorial on Substrate docs, it's shown how to created a permissioned network from scratch along with the node-authorization pallet to manage the validator set. However, in ...
  • 146
2 votes
2 answers
47 views

I'm getting some issue during storage migration

I'm trying to trigger the storage migration on polkadot UI for our parachain. I'm trying different types to do this but getting some issues: Type 1 : If I simply upload the wasm file from sudo > ...
0 votes
1 answer
35 views

About parachain auction and parachain upgrade

Once a team successfully bid for a parachain slot, how long is the window that they can leave the slot empty? What will happen if they cannot successfully connect their chain in before the window ...
  • 165
0 votes
1 answer
54 views

Can you update a genesis configuration via forkless upgrade?

If I have a substrate based blockchain live with a genesis configuration & it also is included a parachain in Polkadot. Now if I want to do a forkless upgrade to the chain, is it possible to ...
1 vote
0 answers
32 views

Exported method `TryRuntime_on_runtime_upgrade` is not found

cargo run --features try-runtime try-runtime \ --execution Native \ --chain dev \ on-runtime-upgrade \ live \ --uri ws://xxxxxxxx I implemented try-runtime according to the ...
3 votes
1 answer
91 views

Update Substrate node from v2.0.1 to v3.0.0 in live network

I am updating the Substrate node from v2.0.1 to v3.0.0 in live network*. The initial plan was to merge the v3 code by following the official guidelines, build the new wasm and use a forkless runtime ...
0 votes
1 answer
41 views

Do changes from unbounded to bounded storage need runtime migration?

Currently across the substrate code base, there are a lot of PRs updating storage items to bounded forms, example: https://github.com/paritytech/substrate/pull/11591/ I am wondering what is the ...
2 votes
1 answer
54 views

RPC node encounter `Cannot create a runtime error=Other(\"runtime requires function imports which are not present on the host:` after upgrade

I got a problem with upgrading my chain I've upgraded my chain from version A (Client+runtime) to version B (Client+runtime). I remove some host functions in client version B because runtime version B ...
0 votes
2 answers
40 views

Pallet declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(0)`

After a runtime upgrade on Frontier, these warnings are logged: In this case, the pallets are related to Frontier only, but that seems possible for any FRAME pallets. Does anything need to be done ...
  • 146
1 vote
1 answer
75 views

parachain-system can not get ParachainInherentData After runtime upgrade

Before this setCode upgrade, our parachain works well. After setCode upgrade, we get the following error log. Jun 02 09:39:36 Parami-AWS-SFO-DANA-01 parami[490]: 2022-06-02 09:39:36 ⚠️ ParachainSystem ...
0 votes
1 answer
74 views

Guide or Best practice for parachain Runtime Upgrade(Exception handle or rollback)!

The forkless runtime upgrade is an excellent feature! I have searched many documents on runtime upgrade, but no guide found for handling upgrade exceptions or rollback. The most exception often ...
6 votes
1 answer
75 views

best practice to test a runtime with large chain state before runtime upgrade?

As the chain state goes larger and larger, it gets hard to export/fetch the chain state. Are there any other tools aside from fork-off-substrate and try-runtime for performing a runtime migration?
0 votes
1 answer
47 views

sudo authorizeUpgrade return invalid?

What is sudo invalid mean? This error happened when I did a parachain authorizeUpgrade. I had upgrade success many times in some way. But this is the first time I got this error. Is it mean code ...
1 vote
2 answers
99 views

How do I know if I will need a storage migration along a forkless upgrade?

I have a blockchain running a version of Frontier from september 2021, and want to upgrade it to the latest commits. I'm prepared to do a forkless upgrade, but who do I know if I will need storage ...
  • 146
1 vote
1 answer
51 views

(FIXED) Substrate forkless upgrade tutorial: pallet_scheduler has breaking changes [closed]

(This question was originally asked here: https://stackoverflow.com/questions/72056703/substrate-forkless-upgrade-tutorial-pallet-scheduler-has-breaking-changes) I am following the Substrate forkless ...
  • 817
2 votes
2 answers
72 views

Ethereum chain as a Substrate chain

Is it technically possible to upgrade Ethereum to be Substrate compatible blockchain? I understand there is likely to be strong resistance toward such idea in ETH community but I am interested only ...
2 votes
2 answers
142 views

Debug corrupted on dev update

We are performing upgrade on a chain, in the dev side just to ensure all is OK we do step by step using a forked state of the live chain, we got corrupted state log which we want to debug in order to ...
  • 242
1 vote
2 answers
107 views

Runtime upgrade error: host doesn't provide such function: env:ext_storage_root_version_2

Our goal is to migrate code to the newer substrate version and keep the block history. My old running node substrate version is tag = 'monthly-2021-09+1' -> New substrate version is branch = "...
  • 175
1 vote
1 answer
35 views

If on_runtime_upgrade exceeds block time

I'm running a migration, and I'd like to understand if on_runtime_upgrade exceeds block time, Substrate still can handle this correctly or not? What are the consequences?
  • 138
1 vote
0 answers
43 views

Abnormal large delays between wasm-code getting stored and applied

We had a runtime upgrade on kusama-parachain recently (9050 -> 9060), where the parachain stalled for 20min. Eventually, it self healed, but I find it abnormal as I have never seen such a big delay ...
  • 193
3 votes
2 answers
65 views

Runtime upgrade error: parachainSystem.ValidationDataNotAvailable

Follow this doc: https://docs.substrate.io/tutorials/v3/forkless-upgrades/#upgrade-the-runtime-1. Scheduled and set_code show an error: ValidationDataNotAvailable. Do I miss something? How to fix this ...
8 votes
1 answer
213 views

How would someone go without the SUDO pallet?

I've seen in multiple online networks(chains) that they do not use the pallet sudo. We're trying to figure out how to take the pallet out of our network in order to leave everything to Governance. For ...
3 votes
1 answer
34 views

How does frequent updates to polkadot affect the operation of the polkadot chain itself?

I understand the concept of forkless updates, in that the code of the runtime is stored on the chain itself, and a runtime upgrade would entail updating this storage value on the chain. But looking at ...