Error while running core-eval to execute a null upgrade: The 'governedParams' term must be an object like Electorate … #10423
Replies: 2 comments 1 reply
-
|
The error term must be an object like "Electorate" is usually due to not providing a fresh invitation. I improved that error message when upgrading vaults.
The original |
Beta Was this translation helpful? Give feedback.
-
You are correct. I was mis-reading it. Hmm. This contract doesn't use paramGovernance. (It does have API governance, of a sort.) But there's nothing here that would respond to In fact, nothing here imports As I recall from upgrading |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
While running a core eval to execute a null upgrade to the KREAd contract, the chain logs display the error below.
I am failing to pinpoint where and why the error is being triggered, but my debug attempt can be seen in the section Additional Context.
Note that before the error is triggered, we can see the message that
vat v54 upgraded from incarnation 0 to 1, but later it loggedkernel: kernel terminating vat v54 (failure=true).Error message:
The complete log history can be seen below.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The core-eval should be properly executed and the KREAd vat incarnation should have increased from 0 to 1.
Platform Environment
Additional context
At the core-eval builder I am fetching the
kreadKitPand thekreadCommitteeCreatorFacet, both available at the bootstrap powers.The kreadKitP hold the
privateArgsused to initiate the contract and through the kreadCommitteeCreatorFacet I get a newinitialPoserInvitationto include in the privateArgs argument passed toupgradeContract.The
bundleIDpassed can be confirmed at the KREAd Agoric Mainnet release, more specifically at the start-kread.js. The same bundleID can be seen being used at the agoric-3-proposals 53:kread-start.The initialPoserInvitation is then used by KREAd contract as an argument for
handleParamGovernanceconst { makeDurableGovernorFacet } = handleParamGovernance( zcf, privateArgs.initialPoserInvitation, {}, );The error message present on the chain logs point us to
/governance/src/contractHelper.js:44which regards the validateElectorate function ofcontractHelper. This function is called during the execution offacetHelpersfunction, which is the return value ofhandleParamGovernance.I noticed that the KREAd contract did not provided the
storageNodeandmarshallerto handleParamGovernance, and that may resulted in a faultyparamManagerobject and consequently an unexpected behavior atvalidateElectoratedue to:const invitation = paramManager.getInternalParamValue(CONTRACT_ELECTORATE).Although I am not certain of my suspicion, due to the fact that this problem was not raised when the contract was first initiated, and the fact that no other issue was triggered during the execution of
makeParamManagerFromTermsScreenshots
2024-11-07T18:51:43.240Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-ebdae5ff750e5f5a1edac4d020eb35c02dc9c7321c3a6fde9362f4d935003a332a5d8250e73ea4074bdc501c4841374e564eb4624dbf71ee89ff66362357f34e' }, manifestGetterName: 'getManifestForUpgradeKread', vatAdminSvc: Promise [Promise] {} } 2024-11-07T18:51:43.319Z SwingSet: vat: v1: execute { manifestGetterName: 'getManifestForUpgradeKread', bundleExports: [ 'getManifestForUpgradeKread', 'upgradeKread' ] } 2024-11-07T18:51:43.319Z SwingSet: vat: v1: coreProposal: upgradeKread 2024-11-07T18:51:43.320Z SwingSet: vat: v1: LOG: upgrading Kread 2024-11-07T18:51:43.465Z SwingSet: vat: v1: LOG: KREAd adminFacet Object [Alleged: adminFacet] {} 2024-11-07T18:51:43.479Z SwingSet: vat: v1: LOG: KREAd privateArgs { powers: { storageNode: Object [Alleged: ChainStorageNode] {}, marshaller: Object [Alleged: Board readonlyMarshaller] {} }, clock: Object [Alleged: timerClock] {}, seed: 303 } 2024-11-07T18:51:43.479Z SwingSet: vat: v1: LOG: KREAd initialPoserInvitation Object [Alleged: Zoe Invitation payment] {} 2024-11-07T18:51:43.498Z SwingSet: kernel: attempting to upgrade vat v54 from incarnation 0 to source b1-5ce9bb36ceb21c4af80b3c11098ac049ddfaa1898cf7a9e33d100c44f5fc68e5a14a96a5d2f9af0117929b3e5b4ab58c4a404416fb5688b03a2c0e398194e6b2 2024-11-07T18:51:44.963Z SwingSet: vat: v54: provideRecorderKits { infoKit: 'info', characterKit: 'character', itemKit: 'item', marketCharacterKit: 'market-characters', marketItemKit: 'market-items', marketCharacterMetricsKit: 'market-metrics-character', marketItemMetricsKit: 'market-metrics-item' } { characterKit: { payload: [ { name: { payload: [Array] }, character: { payload: [Array] }, inventoryKit: { payload: [Array] }, history: { payload: [Array] } } ] }, itemKit: { payload: [ { id: { payload: 0 }, item: { payload: [Array] }, history: { payload: [Array] } } ] }, marketCharacterKit: { payload: [ { payload: [ [Object], [Object] ] } ] }, marketItemKit: { payload: [ { payload: [ [Object], [Object] ] } ] }, marketCharacterMetricsKit: { payload: [ { amountSold: { payload: 0 }, collectionSize: { payload: 0 }, averageLevel: { payload: 0 }, marketplaceAverageLevel: { payload: 0 }, latestSalePrice: { payload: 0 }, putForSaleCount: { payload: 0 } } ] }, marketItemMetricsKit: { payload: [ { amountSold: { payload: 0 }, collectionSize: { payload: 0 }, averageLevel: { payload: 0 }, marketplaceAverageLevel: { payload: 0 }, latestSalePrice: { payload: 0 }, putForSaleCount: { payload: 0 } } ] } } 2024-11-07T18:51:45.195Z SwingSet: kernel: vat v54 upgraded from incarnation 0 to 1 with source b1-5ce9bb36ceb21c4af80b3c11098ac049ddfaa1898cf7a9e33d100c44f5fc68e5a14a96a5d2f9af0117929b3e5b4ab58c4a404416fb5688b03a2c0e398194e6b2 2024-11-07T18:51:45.482Z SwingSet: ls: v54: Logging sent error stack (Error#1) 2024-11-07T18:51:45.482Z SwingSet: ls: v54: Error#1: The 'governedParams' term must be an object like { Electorate: { type: 'invitation', value: { brand: Object [Alleged: Zoe Invitation brand] {}, value: [ { description: 'questionPoser', handle: [Object], installation: [Object], instance: [Object] } ] } } } , but was { Electorate: { type: 'invitation', value: { brand: Object [Alleged: Zoe Invitation brand] {}, value: [ { description: 'questionPoser', handle: [Object], installation: [Object], instance: [Object] } ] } } } 2024-11-07T18:51:45.482Z SwingSet: ls: v54: Error: The 'governedParams' term must be an object like {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}}, but was {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}} at apply () at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60) at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:352) at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:482) at (.../governance/src/contractHelper.js:44) at () 2024-11-07T18:51:45.483Z SwingSet: ls: v54: Error#1 ERROR_NOTE: Sent as error:liveSlots:v54#70001 2024-11-07T18:51:45.483Z SwingSet: xsnap: v54: Error#1 ERROR_NOTE: Sent as error:liveSlots:v54#70002 2024-11-07T18:51:45.483Z SwingSet: ls: v54: Logging sent error stack (Error#1) 2024-11-07T18:51:45.485Z SwingSet: kernel: kernel terminating vat v54 (failure=true) 2024-11-07T18:51:46.386Z SwingSet: vat: v1: LOG: KREAd contract upgraded! 2024-11-07T18:51:46.388Z SwingSet: ls: v2: Logging sent error stack (RemoteError#1) 2024-11-07T18:51:46.388Z SwingSet: ls: v2: RemoteError#1: The 'governedParams' term must be an object like {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}}, but was {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}} 2024-11-07T18:51:46.388Z SwingSet: ls: v2: Error: The 'governedParams' term must be an object like {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}}, but was {"Electorate":{"type":"invitation","value":{"brand":"[Alleged: Zoe Invitation brand]","value":[{"description":"questionPoser","handle":"[Alleged: InvitationHandle]","installation":"[Alleged: BundleIDInstallation]","instance":"[Alleged: InstanceHandle]"}]}}} at construct () at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:56) at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:281) at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:434) at map () at map () at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:356) at deliver (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1084) at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1509) at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:60) at ()Beta Was this translation helpful? Give feedback.
All reactions