Open Jovonni opened 5 months ago
Ah, just hit:
6:38AM INF proposal tallied module=x/gov proposal=7 results=passed
2024-06-19T06:38:35.533Z SwingSet: vat: v1: installation ORCA: new Promise
2024-06-19T06:38:35.621Z SwingSet: vat: v1: core eval for ORCA
2024-06-19T06:38:35.623Z SwingSet: vat: v1: CORE_EVAL failed: (ReferenceError#3)
2024-06-19T06:38:35.623Z SwingSet: vat: v1: ReferenceError#3: installContract: get E$1: undefined variable
2024-06-19T06:38:35.624Z SwingSet: vat: v1: ReferenceError: installContract: get E$1: undefined variable
at installContract (#6050:20)
at installContract (#6050:19)
at startDaoContract (#6050:11096)
at startDaoContract (#6050:11066)
at ()
2024-06-19T06:38:35.624Z SwingSet: xsnap: v1: ReferenceError#3 ERROR_NOTE: Sent as error:liveSlots:v1#70003
2024-06-19T06:38:35.625Z SwingSet: ls: v1: Logging sent error stack (ReferenceError#3)
2024-06-19T06:38:35.664Z SwingSet: xsnap: v10: UnhandledPromiseRejectionWarning: (RemoteReferenceError(error:liveSlots:v1#70003)#3)
2024-06-19T06:38:35.664Z SwingSet: xsnap: v10: RemoteReferenceError(error:liveSlots:v1#70003)#3: installContract: get E$1: undefined variable
2024-06-19T06:38:35.665Z SwingSet: xsnap: v10: ReferenceError: installContract: get E$1: undefined variable
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1192)
at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1216)
at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1485)
at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
at ()
I've seen this before on another project, working through it.
seems to be from here:
const installContract = async (
{ consume: { zoe }, installation: { produce: produceInstallation } },
{ name, bundleID },
) => {
const installation = await E$1(zoe).installBundleID(bundleID);
produceInstallation[name].reset();
produceInstallation[name].resolve(installation);
console.log(name, '(re-)installed as', bundleID.slice(0, 8));
return installation;
};
reverted jsconfig back as @samsiegart suggested, that works for the E$1 errors from above anymore:
working through this now
5:38PM INF proposal tallied module=x/gov proposal=11 results=passed
2024-06-19T17:38:59.310Z SwingSet: vat: v1: CORE_EVAL failed: (Error#7)
2024-06-19T17:38:59.310Z SwingSet: vat: v1: Error#7: zone not permitted, only [ 'consume', 'installation', 'instance', 'issuer', 'brand' ]
2024-06-19T17:38:59.311Z SwingSet: vat: v1: Error: "zone" not permitted, only ["consume","installation","instance","issuer","brand"]
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:479)
at get (.../vats/src/core/utils.js:145)
at ()
at produceBoardAuxManager (#6658:92)
at produceBoardAuxManager (#6658:91)
at ()
2024-06-19T17:38:59.311Z SwingSet: xsnap: v1: Error#7 ERROR_NOTE: Sent as error:liveSlots:v1#70007
2024-06-19T17:38:59.311Z SwingSet: ls: v1: Logging sent error stack (Error#7)
2024-06-19T17:38:59.315Z SwingSet: xsnap: v10: UnhandledPromiseRejectionWarning: (RemoteError(error:liveSlots:v1#70007)#7)
2024-06-19T17:38:59.315Z SwingSet: xsnap: v10: RemoteError(error:liveSlots:v1#70007)#7: "zone" not permitted, only ["consume","installation","instance","issuer","brand"]
2024-06-19T17:38:59.315Z SwingSet: xsnap: v10: Error: "zone" not permitted, only ["consume","installation","instance","issuer","brand"]
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1192)
at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1216)
at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1485)
at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
at ()
maybe something wrong with the proposal:
export const permit = harden({
consume: {
agoricNames: true,
brandAuxPublisher: true,
startUpgradable: true,
zoe: true,
board: true,
chainStorage: true,
orchestration: true,
chainTimerService: true
},
installation: {
consume: { [contractName]: true },
produce: { [contractName]: true },
},
instance: { produce: { [contractName]: true } },
// permitting brands
issuer: { consume: { IST: true }, produce: { } },
brand: { consume: { IST: true }, produce: { } },
});
Note: Debugging this during contract startup, progress for previous checkpoint. Bundle installs properly, now at start-up it throws:
2024-06-22T04:26:37.807Z SwingSet: vat: v1: { installation: Object [Alleged: BundleIDInstallation] {}, issuerKeywordRecord: {}, terms: {} }
2024-06-22T04:26:37.808Z SwingSet: vat: v1: orca start args: { installation: Object [Alleged: BundleIDInstallation] {}, issuerKeywordRecord: {}, terms: {} }
4:26AM INF Timed out dur=400 height=1222 module=consensus round=0 step=3
4:26AM INF client state updated client-id=07-tendermint-0 height=0-1475 module=x/ibc/client
4:26AM INF client state updated client-id=07-tendermint-0 height=0-1475 module=x/ibc/client
2024-06-22T04:26:40.505Z SwingSet: xsnap: v39: error during vat dispatch() of startVat,[object Object] (SyntaxError#1)
2024-06-22T04:26:40.506Z SwingSet: xsnap: v39: SyntaxError#1: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
2024-06-22T04:26:40.506Z SwingSet: xsnap: v39: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
at rejectHtmlComments (/bundled-source/.../node_modules/ses/src/transforms.js:75)
at mandatoryTransforms (/bundled-source/.../node_modules/ses/src/transforms.js:237)
at applyTransforms (/bundled-source/.../node_modules/ses/src/transforms.js:252)
at safeEvaluate (/bundled-source/.../node_modules/ses/src/make-safe-evaluator.js:68)
at execute (.../compartment-mapper/src/parse-pre-cjs.js:30)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:102)
at compartmentImportNow (/bundled-source/.../node_modules/ses/src/compartment.js:79)
at require (.../compartment-mapper/src/parse-cjs-shared-export-wrapper.js:140)
at (#1916:7)
at execute (.../compartment-mapper/src/parse-pre-cjs.js:40)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:102)
at compartmentImportNow (/bundled-source/.../node_modules/ses/src/compartment.js:79)
at require (.../compartment-mapper/src/parse-cjs-shared-export-wrapper.js:140)
at (#1915:4)
at execute (.../compartment-mapper/src/parse-pre-cjs.js:40)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:102)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../cosmic-proto/dist/codegen/agoric/vbank/vbank.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../cosmic-proto/dist/codegen/agoric/vbank/genesis.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../cosmic-proto/dist/codegen/agoric/bundle.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../cosmic-proto/dist/codegen/index.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../cosmic-proto/dist/index.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../orchestration/src/exos/stakingAccountKit.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at imports (/bundled-source/.../node_modules/ses/src/module-instance.js:374)
at (.../dapp-agoric-orca-contract/src/orca.contract.js:1)
at execute (/bundled-source/.../node_modules/ses/src/module-instance.js:469)
at compartmentImportNow (/bundled-source/.../node_modules/ses/src/compartment.js:79)
at (/bundled-source/.../node_modules/ses/src/compartment.js:140)
at ()
2024-06-22T04:26:40.506Z SwingSet: xsnap: v39: UnhandledPromiseRejectionWarning: (SyntaxError#1)
2024-06-22T04:26:40.530Z SwingSet: kernel: kernel terminating vat v39 (failure=true)
2024-06-22T04:26:40.539Z SwingSet: ls: v2: Logging sent error stack (Error#4)
2024-06-22T04:26:40.539Z SwingSet: ls: v2: Error#4: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
2024-06-22T04:26:40.539Z SwingSet: ls: v2: Error: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at newVatCallback (.../swingset-vat/src/vats/vat-admin/vat-vat-admin.js:508)
at vatTerminated (.../swingset-vat/src/vats/vat-admin/vat-vat-admin.js:566)
at apply ()
at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:126)
at apply ()
at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:156)
at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:505)
at ()
2024-06-22T04:26:40.540Z SwingSet: ls: v2: Error#4 ERROR_NOTE: Sent as error:liveSlots:v2#70002
2024-06-22T04:26:40.561Z SwingSet: ls: v9: Logging sent error stack (RemoteError(error:liveSlots:v2#70002)#2)
2024-06-22T04:26:40.562Z SwingSet: ls: v9: RemoteError(error:liveSlots:v2#70002)#2: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
2024-06-22T04:26:40.562Z SwingSet: ls: v9: Error: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1192)
at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1216)
at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1485)
at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
at ()
2024-06-22T04:26:40.562Z SwingSet: ls: v9: RemoteError(error:liveSlots:v2#70002)#2 ERROR_NOTE: Sent as error:liveSlots:v9#70002
2024-06-22T04:26:40.566Z SwingSet: vat: v1: CORE_EVAL failed: (RemoteError(error:liveSlots:v9#70002)#2)
2024-06-22T04:26:40.566Z SwingSet: vat: v1: RemoteError(error:liveSlots:v9#70002)#2: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
2024-06-22T04:26:40.566Z SwingSet: vat: v1: Error: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1192)
at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1216)
at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1485)
at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
at ()
2024-06-22T04:26:40.566Z SwingSet: xsnap: v1: RemoteError(error:liveSlots:v9#70002)#2 ERROR_NOTE: Sent as error:liveSlots:v1#70002
2024-06-22T04:26:40.567Z SwingSet: ls: v1: Logging sent error stack (RemoteError(error:liveSlots:v9#70002)#2)
2024-06-22T04:26:40.570Z SwingSet: xsnap: v10: UnhandledPromiseRejectionWarning: (RemoteError(error:liveSlots:v1#70002)#2)
2024-06-22T04:26:40.570Z SwingSet: xsnap: v10: RemoteError(error:liveSlots:v1#70002)#2: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
2024-06-22T04:26:40.570Z SwingSet: xsnap: v10: Error: Vat Creation Error: Error: SyntaxError: Possible HTML comment rejected at <unknown>:2635. (SES_HTML_COMMENT_REJECTED)
at apply ()
at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1192)
at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1216)
at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1485)
at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
at ()
working through it.
fixed with https://github.com/Agoric/agoric-sdk/pull/9564 to bn.js
Finally got the bundle to install, with
yarn start:contract
installing into agoriclocal running inside of agoriclocal-genesis=0 pod, frommultichain-testing
:Now, debugging contract installation on the node for any issues.