Agoric / dapp-offer-up

Offer Up is a simple Dapp for the Agoric smart contract platform that permits users to explore items for sale in a marketplace
6 stars 5 forks source link

trouble starting contract around mint4k step on M1 Mac w/VirtioFS #10

Closed migueldingli1997 closed 7 months ago

migueldingli1997 commented 10 months ago

System:

What I did:

What I got:

image

Here are some logs:

Docker logs from start:docker ``` 2023-12-06 14:16:44 2023-12-06T13:16:44.075Z launch-chain: Launching SwingSet kernel 2023-12-06 14:16:49 2023-12-06T13:16:49.798Z SwingSet: vat: v1: ----- KREAd.2 11 awaiting KREAd initialization 2023-12-06 14:16:50 2023-12-06T13:16:50.003Z SwingSet: vat: v1: issuer KREAdCHARACTER: new Promise 2023-12-06 14:16:50 2023-12-06T13:16:50.005Z SwingSet: vat: v1: brand KREAdCHARACTER: new Promise 2023-12-06 14:16:50 2023-12-06T13:16:50.006Z SwingSet: vat: v1: issuer KREAdITEM: new Promise 2023-12-06 14:16:50 2023-12-06T13:16:50.007Z SwingSet: vat: v1: brand KREAdITEM: new Promise 2023-12-06 14:16:50 2023-12-06T13:16:50.007Z SwingSet: vat: v1: ----- KREAd.2 12 CONTRACT INIT SUCCESS! 2023-12-06 14:16:50 2023-12-06T13:16:50.008Z SwingSet: vat: v1: instance kread settled; remaining: [] 2023-12-06 14:16:50 2023-12-06T13:16:50.012Z SwingSet: vat: v1: issuer KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] 2023-12-06 14:16:50 2023-12-06T13:16:50.016Z SwingSet: vat: v1: brand KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] 2023-12-06 14:16:50 2023-12-06T13:16:50.018Z SwingSet: vat: v1: issuer KREAdITEM settled; remaining: [] 2023-12-06 14:16:50 2023-12-06T13:16:50.019Z SwingSet: vat: v1: brand KREAdITEM settled; remaining: [] 2023-12-06 14:16:50 2023-12-06T13:16:50.058Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-903e41a7c448a41b456298404a1c32c69302574209c6a5228723ed19e2dd99f2a693641196445bc27a90e19e1dfadfe6b3d9c9a93f080ffa33a70908e5af4fff' }, exportedGetManifest: 'getManifestForAddAssetToVault', vatAdminSvc: Promise [Promise] {} } 2023-12-06 14:16:50 2023-12-06T13:16:50.062Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-80e6fe68b299c82c2d26802c312bc37966a559f7b28f87d058887a79a9db48ad97da2240e71e3f98986071da8fc3c5d02358bec577b17a89cee2b1cb3cd23958' }, exportedGetManifest: 'getManifestForPriceFeed', vatAdminSvc: Promise [Promise] {} } 2023-12-06 14:16:51 2023-12-06T13:16:51.010Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForAddAssetToVault', behaviors: [ 'INVITE_PSM_COMMITTEE_MANIFEST', 'PSM_MANIFEST', 'addAssetToVault', 'getManifestForAddAssetToVault', 'getManifestForPsm', 'getManifestForPsmGovernance', 'inviteCommitteeMembers', 'inviteToEconCharter', 'makeAnchorAsset', 'publishInterchainAssetFromBank', 'publishInterchainAssetFromBoardId', 'registerScaledPriceAuthority', 'startEconCharter', 'startPSM' ] } 2023-12-06 14:16:51 2023-12-06T13:16:51.011Z SwingSet: vat: v1: coreProposal: addAssetToVault 2023-12-06 14:16:51 2023-12-06T13:16:51.012Z SwingSet: vat: v1: coreProposal: publishInterchainAssetFromBank 2023-12-06 14:16:51 2023-12-06T13:16:51.012Z SwingSet: vat: v1: coreProposal: registerScaledPriceAuthority 2023-12-06 14:16:51 2023-12-06T13:16:51.507Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForPriceFeed', behaviors: [ 'createPriceFeed', 'ensureOracleBrands', 'getManifestForPriceFeed', 'instanceNameFor', 'startPriceFeeds' ] } 2023-12-06 14:16:51 2023-12-06T13:16:51.508Z SwingSet: vat: v1: coreProposal: createPriceFeed 2023-12-06 14:16:51 2023-12-06T13:16:51.508Z SwingSet: vat: v1: ----- RunPriceFeed.2 2 createPriceFeed 2023-12-06 14:16:51 2023-12-06T13:16:51.509Z SwingSet: vat: v1: coreProposal: ensureOracleBrands 2023-12-06 14:16:51 2023-12-06T13:16:51.509Z SwingSet: vat: v1: ----- RunPriceFeed.2 3 ensureOracleBrands 2023-12-06 14:16:51 2023-12-06T13:16:51.523Z SwingSet: vat: v1: oracleBrand stATOM: new Promise 2023-12-06 14:16:51 2023-12-06T13:16:51.526Z SwingSet: vat: v1: oracleBrand stATOM settled; remaining: [] 2023-12-06 14:16:51 2023-12-06T13:16:51.554Z SwingSet: vat: v1: ----- RunPriceFeed.2 4 got terms 2023-12-06 14:16:51 2023-12-06T13:16:51.579Z SwingSet: vat: v1: ----- RunPriceFeed.2 5 awaiting startInstance 2023-12-06 14:16:51 2023-12-06T13:16:51.595Z SwingSet: vat: v1: instance stATOM-USD price feed: new Promise 2023-12-06 14:16:51 2023-12-06T13:16:51.620Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM: new Promise 2023-12-06 14:16:51 2023-12-06T13:16:51.625Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM settled; remaining: [ 'stATOM-USD price feed' ] 2023-12-06 14:16:51 2023-12-06T13:16:51.645Z SwingSet: vat: v1: ----- RunPriceFeed.2 6 registered stATOM-USD price feed Object [Alleged: InstanceHandle] {} 2023-12-06 14:16:51 2023-12-06T13:16:51.645Z SwingSet: vat: v1: ----- RunPriceFeed.2 7 distributing invitations [ 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', 'agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h', 'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', 'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', 'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', 'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', 'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', 'agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m', 'agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d' ] 2023-12-06 14:16:51 2023-12-06T13:16:51.646Z SwingSet: vat: v1: ----- RunPriceFeed.2 8 createPriceFeed complete 2023-12-06 14:16:51 2023-12-06T13:16:51.647Z SwingSet: vat: v1: instance stATOM-USD price feed settled; remaining: [] 2023-12-06 14:16:51 2023-12-06T13:16:51.657Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce 2023-12-06 14:16:51 2023-12-06T13:16:51.658Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang 2023-12-06 14:16:51 2023-12-06T13:16:51.660Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h 2023-12-06 14:16:51 2023-12-06T13:16:51.670Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk 2023-12-06 14:16:51 2023-12-06T13:16:51.673Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf 2023-12-06 14:16:51 2023-12-06T13:16:51.675Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft 2023-12-06 14:16:51 2023-12-06T13:16:51.677Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4 2023-12-06 14:16:51 2023-12-06T13:16:51.678Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82 2023-12-06 14:16:51 2023-12-06T13:16:51.680Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m 2023-12-06 14:16:51 2023-12-06T13:16:51.682Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d 2023-12-06 14:16:51 2023-12-06T13:16:51.685Z SwingSet: vat: v1: Add Asset immediately [Function (anonymous)] 2023-12-06 14:16:52 2023-12-06T13:16:52.112Z SwingSet: ls: v5: Logging sent error stack (TypeError#1) 2023-12-06 14:16:52 2023-12-06T13:16:52.114Z SwingSet: ls: v5: TypeError#1: target has no method getDisplayInfo , has [ 'isMyClock', 'isMyTimerService' ] 2023-12-06 14:16:52 2023-12-06T13:16:52.115Z SwingSet: ls: v5: TypeError: target has no method "getDisplayInfo", has ["isMyClock","isMyTimerService"] 2023-12-06 14:16:52 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-06 14:16:52 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-06 14:16:52 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) 2023-12-06 14:16:52 at apply () 2023-12-06 14:16:52 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-06 14:16:52 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-06 14:16:52 at () 2023-12-06 14:16:52 2023-12-06 14:16:52 2023-12-06T13:16:52.116Z SwingSet: ls: v5: TypeError#1 ERROR_NOTE: Sent as error:liveSlots:v5#70001 2023-12-06 14:16:52 2023-12-06T13:16:52.118Z SwingSet: ls: v5: Logging sent error stack (TypeError#2) 2023-12-06 14:16:52 2023-12-06T13:16:52.118Z SwingSet: ls: v5: TypeError#2: target has no method getAllegedName , has [ 'isMyClock', 'isMyTimerService' ] 2023-12-06 14:16:52 2023-12-06T13:16:52.119Z SwingSet: ls: v5: TypeError: target has no method "getAllegedName", has ["isMyClock","isMyTimerService"] 2023-12-06 14:16:52 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-06 14:16:52 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-06 14:16:52 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) 2023-12-06 14:16:52 at apply () 2023-12-06 14:16:52 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-06 14:16:52 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-06 14:16:52 at () 2023-12-06 14:16:52 2023-12-06 14:16:52 2023-12-06T13:16:52.119Z SwingSet: ls: v5: TypeError#2 ERROR_NOTE: Sent as error:liveSlots:v5#70002 2023-12-06 14:16:52 2023-12-06T13:16:52.514Z SwingSet: xsnap: v4: UnhandledPromiseRejectionWarning: (TypeError#1) 2023-12-06 14:16:52 2023-12-06T13:16:52.515Z SwingSet: xsnap: v4: TypeError#1: Cannot deliver receive to target; typeof target is null 2023-12-06 14:16:52 2023-12-06T13:16:52.515Z SwingSet: xsnap: v4: TypeError: Cannot deliver "receive" to target; typeof target is "null" 2023-12-06 14:16:52 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-06 14:16:52 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-06 14:16:52 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:86) 2023-12-06 14:16:52 at apply () 2023-12-06 14:16:52 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-06 14:16:52 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-06 14:16:52 at () ```
Console logs from docker:make mint4k ``` yarn run v1.22.19 $ cd contract; docker-compose exec agd make -C /workspace/contract mint4k make: Entering directory '/workspace/contract' make FUNDS=1000000000ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA fund-acct make[1]: Entering directory '/workspace/contract' agd tx bank send validator agoric1qupryrguze6d4p9rrw6f2rnytqll7pahpk65ru 1000000000ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA \ --keyring-backend=test --chain-id=agoriclocal --gas=auto --gas-adjustment=1.2 --yes -b block \ -o json >,tx.json gas estimate: 87435 jq '{code: .code, height: .height}' ,tx.json { "code": 4, "height": "0" } make[1]: Leaving directory '/workspace/contract' cd /usr/src/agoric-sdk && \ yarn --silent agops vaults open --wantMinted 4000 --giveCollateral 1000 >/tmp/want4k.json && \ yarn --silent agops perf satisfaction --executeOffer /tmp/want4k.json --from user1 --keyring-backend=test Removing intrinsics.Symbol.dispose Removing intrinsics.Symbol.asyncDispose running with options { offerId: 'openVault-1701869596634', collateralBrand: 'ATOM', wantMinted: 4000, giveCollateral: 1000 } Removing intrinsics.Symbol.dispose Removing intrinsics.Symbol.asyncDispose { sharedOpts: { keyringBackend: 'test' }, opts: { executeOffer: '/tmp/want4k.json', from: 'agoric1qupryrguze6d4p9rrw6f2rnytqll7pahpk65ru' } } Following :published.wallet.agoric1qupryrguze6d4p9rrw6f2rnytqll7pahpk65ru Executing [ '--node=http://0.0.0.0:26657', '--chain-id=agoriclocal', '--from=agoric1qupryrguze6d4p9rrw6f2rnytqll7pahpk65ru', 'tx', 'swingset', 'wallet-action', '--allow-spend', '{"body":"#{\\"method\\":\\"executeOffer\\",\\"offer\\":{\\"id\\":\\"openVault-1701869596634\\",\\"invitationSpec\\":{\\"callPipe\\":[[\\"getCollateralManager\\",[\\"$0.Alleged: BoardRemoteATOM brand\\"]],[\\"makeVaultInvitation\\"]],\\"instancePath\\":[\\"VaultFactory\\"],\\"source\\":\\"agoricContract\\"},\\"proposal\\":{\\"give\\":{\\"Collateral\\":{\\"brand\\":\\"$0\\",\\"value\\":\\"+1000000000\\"}},\\"want\\":{\\"Minted\\":{\\"brand\\":\\"$1.Alleged: BoardRemoteIST brand\\",\\"value\\":\\"+4000000000\\"}}}}}","slots":["board05557","board0257"]}\n', '--keyring-backend=test', '--yes' ] wallet update { status: { id: 'openVault-1701642390004', invitationSpec: { callPipe: [Array], instancePath: [Array], source: 'agoricContract' }, proposal: { give: [Object], want: [Object] }, result: 'UNPUBLISHED' }, updated: 'offerStatus' } wallet update { status: { id: 'openVault-1701642390004', invitationSpec: { callPipe: [Array], instancePath: [Array], source: 'agoricContract' }, numWantsSatisfied: 1, proposal: { give: [Object], want: [Object] }, result: 'UNPUBLISHED' }, updated: 'offerStatus' } wallet update { status: { id: 'openVault-1701642390004', invitationSpec: { callPipe: [Array], instancePath: [Array], source: 'agoricContract' }, numWantsSatisfied: 1, payouts: { Collateral: [Object], Minted: [Object] }, proposal: { give: [Object], want: [Object] }, result: 'UNPUBLISHED' }, updated: 'offerStatus' } ```
Transaction json file from mint4k ```json { "height": "0", "txhash": "50C0FB3D545889E39DAE885E75F0DEA2ABED19A8F188F7BF7EBB17D116D4DF4D", "codespace": "sdk", "code": 4, "data": "", "raw_log": "signature verification failed; please verify account number (0) and chain-id (): unauthorized", "logs": [], "info": "", "gas_wanted": "0", "gas_used": "36738", "tx": null, "timestamp": "", "events": [] } ```
0xpatrickdev commented 10 months ago

I am also seeing this, after deleting my existing containers and images and re-downloading.

What i can tell -

`$ agd status` ```json {"NodeInfo":{"protocol_version":{"p2p":"8","block":"11","app":"0"},"id":"3973d1735fbabba63839cfa6b3d7dc95504ae528","listen_addr":"tcp://0.0.0.0:26656","network":"agoriclocal","version":"0.34.23","channels":"40202122233038606100","moniker":"localnet","other":{"tx_index":"on","rpc_address":"tcp://0.0.0.0:26657"}},"SyncInfo":{"latest_block_hash":"8EFE1E6C5957EF04F2F7F4E3B658EFD49F7D7BC4A92E14D79C1E33FECBE8B64D","latest_app_hash":"AB53168F4059E8D2DBDD56E16C1F329BE05D497FDE0187F1387468E2DCC74913","latest_block_height":"968","latest_block_time":"2023-12-03T22:36:17.428098473Z","earliest_block_hash":"B16E2F8E6594242421436D3AFC93C2A5010DD21AFE8661735DF0AD32FF5038FC","earliest_app_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","earliest_block_height":"680","earliest_block_time":"2023-12-03T21:55:04.450693762Z","catching_up":false},"ValidatorInfo":{"Address":"6F0962C24D75CE83F9E80310DCBE538242D034A2","PubKey":{"type":"tendermint/PubKeyEd25519","value":"L+pZHhLJ1fpqJblGnyIfqxRWJZZPRNI4oOEouS/9rWY="},"VotingPower":"5000"}} ```
`yarn docker:logs` ```bash $ cd contract; docker-compose logs --tail 200 -f dapp-game-places-agd-1 | waiting for block... dapp-game-places-agd-1 | 2 dapp-game-places-agd-1 | ENV_SETUP starting dapp-game-places-agd-1 | ENV_SETUP finished dapp-game-places-agd-1 | 4:22PM ERR WARNING: The minimum-gas-prices config in app.toml is set to the empty string. This defaults to 0 in the current version, but will error in the next version (SDK v0.45). Please explicitly put the desired minimum-gas-prices in your app.toml. dapp-game-places-agd-1 | Removing intrinsics.Symbol.dispose dapp-game-places-agd-1 | Removing intrinsics.Symbol.asyncDispose dapp-game-places-agd-1 | 4:22PM ERR WARNING: The minimum-gas-prices config in app.toml is set to the empty string. This defaults to 0 in the current version, but will error in the next version (SDK v0.45). Please explicitly put the desired minimum-gas-prices in your app.toml. dapp-game-places-agd-1 | Loading slog sender modules: @agoric/telemetry/src/slog-file.js @agoric/telemetry/src/flight-recorder.js dapp-game-places-agd-1 | 2023-12-06T16:22:26.651Z launch-chain: Launching SwingSet kernel dapp-game-places-agd-1 | block produced dapp-game-places-agd-1 | 2023-12-06T16:22:31.587Z SwingSet: vat: v1: ----- KREAd.2 11 awaiting KREAd initialization dapp-game-places-agd-1 | 2023-12-06T16:22:31.777Z SwingSet: vat: v1: issuer KREAdCHARACTER: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:31.779Z SwingSet: vat: v1: brand KREAdCHARACTER: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:31.780Z SwingSet: vat: v1: issuer KREAdITEM: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:31.780Z SwingSet: vat: v1: brand KREAdITEM: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:31.780Z SwingSet: vat: v1: ----- KREAd.2 12 CONTRACT INIT SUCCESS! dapp-game-places-agd-1 | 2023-12-06T16:22:31.781Z SwingSet: vat: v1: instance kread settled; remaining: [] dapp-game-places-agd-1 | 2023-12-06T16:22:31.785Z SwingSet: vat: v1: issuer KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] dapp-game-places-agd-1 | 2023-12-06T16:22:31.788Z SwingSet: vat: v1: brand KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] dapp-game-places-agd-1 | 2023-12-06T16:22:31.789Z SwingSet: vat: v1: issuer KREAdITEM settled; remaining: [] dapp-game-places-agd-1 | 2023-12-06T16:22:31.790Z SwingSet: vat: v1: brand KREAdITEM settled; remaining: [] dapp-game-places-agd-1 | 2023-12-06T16:22:31.826Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-903e41a7c448a41b456298404a1c32c69302574209c6a5228723ed19e2dd99f2a693641196445bc27a90e19e1dfadfe6b3d9c9a93f080ffa33a70908e5af4fff' }, exportedGetManifest: 'getManifestForAddAssetToVault', vatAdminSvc: Promise [Promise] {} } dapp-game-places-agd-1 | 2023-12-06T16:22:31.830Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-80e6fe68b299c82c2d26802c312bc37966a559f7b28f87d058887a79a9db48ad97da2240e71e3f98986071da8fc3c5d02358bec577b17a89cee2b1cb3cd23958' }, exportedGetManifest: 'getManifestForPriceFeed', vatAdminSvc: Promise [Promise] {} } dapp-game-places-agd-1 | 2023-12-06T16:22:32.748Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForAddAssetToVault', behaviors: [ 'INVITE_PSM_COMMITTEE_MANIFEST', 'PSM_MANIFEST', 'addAssetToVault', 'getManifestForAddAssetToVault', 'getManifestForPsm', 'getManifestForPsmGovernance', 'inviteCommitteeMembers', 'inviteToEconCharter', 'makeAnchorAsset', 'publishInterchainAssetFromBank', 'publishInterchainAssetFromBoardId', 'registerScaledPriceAuthority', 'startEconCharter', 'startPSM' ] } dapp-game-places-agd-1 | 2023-12-06T16:22:32.749Z SwingSet: vat: v1: coreProposal: addAssetToVault dapp-game-places-agd-1 | 2023-12-06T16:22:32.750Z SwingSet: vat: v1: coreProposal: publishInterchainAssetFromBank dapp-game-places-agd-1 | 2023-12-06T16:22:32.751Z SwingSet: vat: v1: coreProposal: registerScaledPriceAuthority dapp-game-places-agd-1 | 2023-12-06T16:22:33.220Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForPriceFeed', behaviors: [ 'createPriceFeed', 'ensureOracleBrands', 'getManifestForPriceFeed', 'instanceNameFor', 'startPriceFeeds' ] } dapp-game-places-agd-1 | 2023-12-06T16:22:33.221Z SwingSet: vat: v1: coreProposal: createPriceFeed dapp-game-places-agd-1 | 2023-12-06T16:22:33.221Z SwingSet: vat: v1: ----- RunPriceFeed.2 2 createPriceFeed dapp-game-places-agd-1 | 2023-12-06T16:22:33.221Z SwingSet: vat: v1: coreProposal: ensureOracleBrands dapp-game-places-agd-1 | 2023-12-06T16:22:33.222Z SwingSet: vat: v1: ----- RunPriceFeed.2 3 ensureOracleBrands dapp-game-places-agd-1 | 2023-12-06T16:22:33.236Z SwingSet: vat: v1: oracleBrand stATOM: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:33.238Z SwingSet: vat: v1: oracleBrand stATOM settled; remaining: [] dapp-game-places-agd-1 | 2023-12-06T16:22:33.279Z SwingSet: vat: v1: ----- RunPriceFeed.2 4 got terms dapp-game-places-agd-1 | 2023-12-06T16:22:33.303Z SwingSet: vat: v1: ----- RunPriceFeed.2 5 awaiting startInstance dapp-game-places-agd-1 | 2023-12-06T16:22:33.319Z SwingSet: vat: v1: instance stATOM-USD price feed: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:33.349Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM: new Promise dapp-game-places-agd-1 | 2023-12-06T16:22:33.351Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM settled; remaining: [ 'stATOM-USD price feed' ] dapp-game-places-agd-1 | 2023-12-06T16:22:33.376Z SwingSet: vat: v1: ----- RunPriceFeed.2 6 registered stATOM-USD price feed Object [Alleged: InstanceHandle] {} dapp-game-places-agd-1 | 2023-12-06T16:22:33.377Z SwingSet: vat: v1: ----- RunPriceFeed.2 7 distributing invitations [ 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', 'agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h', 'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', 'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', 'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', 'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', 'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', 'agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m', 'agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d' ] dapp-game-places-agd-1 | 2023-12-06T16:22:33.378Z SwingSet: vat: v1: ----- RunPriceFeed.2 8 createPriceFeed complete dapp-game-places-agd-1 | 2023-12-06T16:22:33.378Z SwingSet: vat: v1: instance stATOM-USD price feed settled; remaining: [] dapp-game-places-agd-1 | 2023-12-06T16:22:33.389Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce dapp-game-places-agd-1 | 2023-12-06T16:22:33.391Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang dapp-game-places-agd-1 | 2023-12-06T16:22:33.393Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h dapp-game-places-agd-1 | 2023-12-06T16:22:33.398Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk dapp-game-places-agd-1 | 2023-12-06T16:22:33.402Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf dapp-game-places-agd-1 | 2023-12-06T16:22:33.404Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft dapp-game-places-agd-1 | 2023-12-06T16:22:33.406Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4 dapp-game-places-agd-1 | 2023-12-06T16:22:33.408Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82 dapp-game-places-agd-1 | 2023-12-06T16:22:33.410Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m dapp-game-places-agd-1 | 2023-12-06T16:22:33.412Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d dapp-game-places-agd-1 | 2023-12-06T16:22:33.415Z SwingSet: vat: v1: Add Asset immediately [Function (anonymous)] dapp-game-places-agd-1 | 2023-12-06T16:22:33.809Z SwingSet: ls: v5: Logging sent error stack (TypeError#1) dapp-game-places-agd-1 | 2023-12-06T16:22:33.811Z SwingSet: ls: v5: TypeError#1: target has no method getDisplayInfo , has [ 'isMyClock', 'isMyTimerService' ] dapp-game-places-agd-1 | 2023-12-06T16:22:33.812Z SwingSet: ls: v5: TypeError: target has no method "getDisplayInfo", has ["isMyClock","isMyTimerService"] dapp-game-places-agd-1 | at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) dapp-game-places-agd-1 | at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) dapp-game-places-agd-1 | at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) dapp-game-places-agd-1 | at apply () dapp-game-places-agd-1 | at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) dapp-game-places-agd-1 | at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) dapp-game-places-agd-1 | at () dapp-game-places-agd-1 | dapp-game-places-agd-1 | 2023-12-06T16:22:33.812Z SwingSet: ls: v5: TypeError#1 ERROR_NOTE: Sent as error:liveSlots:v5#70001 dapp-game-places-agd-1 | 2023-12-06T16:22:33.813Z SwingSet: ls: v5: Logging sent error stack (TypeError#2) dapp-game-places-agd-1 | 2023-12-06T16:22:33.814Z SwingSet: ls: v5: TypeError#2: target has no method getAllegedName , has [ 'isMyClock', 'isMyTimerService' ] dapp-game-places-agd-1 | 2023-12-06T16:22:33.814Z SwingSet: ls: v5: TypeError: target has no method "getAllegedName", has ["isMyClock","isMyTimerService"] dapp-game-places-agd-1 | at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) dapp-game-places-agd-1 | at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) dapp-game-places-agd-1 | at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) dapp-game-places-agd-1 | at apply () dapp-game-places-agd-1 | at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) dapp-game-places-agd-1 | at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) dapp-game-places-agd-1 | at () dapp-game-places-agd-1 | dapp-game-places-agd-1 | 2023-12-06T16:22:33.814Z SwingSet: ls: v5: TypeError#2 ERROR_NOTE: Sent as error:liveSlots:v5#70002 dapp-game-places-agd-1 | 2023-12-06T16:22:34.184Z SwingSet: xsnap: v4: UnhandledPromiseRejectionWarning: (TypeError#1) dapp-game-places-agd-1 | 2023-12-06T16:22:34.185Z SwingSet: xsnap: v4: TypeError#1: Cannot deliver receive to target; typeof target is null dapp-game-places-agd-1 | 2023-12-06T16:22:34.186Z SwingSet: xsnap: v4: TypeError: Cannot deliver "receive" to target; typeof target is "null" dapp-game-places-agd-1 | at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) dapp-game-places-agd-1 | at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) dapp-game-places-agd-1 | at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:86) dapp-game-places-agd-1 | at apply () dapp-game-places-agd-1 | at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) dapp-game-places-agd-1 | at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) dapp-game-places-agd-1 | at () dapp-game-places-agd-1 | ```
docker images | grep main
ghcr.io/agoric/agoric-3-proposals   main                        64a949e6267f   2 days ago     3.19GB
migueldingli1997 commented 10 months ago

Ref: https://discord.com/channels/585576150827532298/1181964987665748029/1182055652768616478

It looks like it might be a bug in the custom entrypoint script. I was recommended the following change:

+ entrypoint: /usr/src/upgrade-test-scripts/start_agd.sh
- entrypoint: /workspace/contract/scripts/run-chain.sh

Unfortunately the chain still seems to get stuck at block 968 and the signature verification failures still happen, I assume because of the chain being stuck.

migueldingli1997 commented 10 months ago

I'm now following a guide shared via Discord that walks through setting up and using the dapp-game-places template: https://docs.google.com/document/d/138QmOF3nVhjl-3t-VnM53fg_jbGSIPrB5Mr53KKX5rc

My only main difference is that I'm working from a Mac. Could this be the reason behind my troubles?

Unfortunately at the yarn docker:logs step I never see the messages showing blocks with a status of commit. To make sure the right image is being pulled for ghcr.io/agoric/agoric-3-proposals, I removed the existing image and re-ran yarn start:docker which prompted it to pull an image with image ID 64a949e6267f (not sure if this is relevant).

The chain still seems to get stuck at block 968 and I never see the commit messages. The log is pretty much the same as I had posted originally. Here it is again:

Docker logs from start:docker ``` 2023-12-11 10:40:52 waiting for block... 2023-12-11 10:40:52 2 2023-12-11 10:40:52 ENV_SETUP starting 2023-12-11 10:40:55 ENV_SETUP finished 2023-12-11 10:40:59 2023-12-11T09:40:59.345Z launch-chain: Launching SwingSet kernel 2023-12-11 10:41:03 block produced 2023-12-11 10:41:06 2023-12-11T09:41:06.422Z SwingSet: vat: v1: ----- KREAd.2 11 awaiting KREAd initialization 2023-12-11 10:41:06 2023-12-11T09:41:06.621Z SwingSet: vat: v1: issuer KREAdCHARACTER: new Promise 2023-12-11 10:41:06 2023-12-11T09:41:06.626Z SwingSet: vat: v1: brand KREAdCHARACTER: new Promise 2023-12-11 10:41:06 2023-12-11T09:41:06.627Z SwingSet: vat: v1: issuer KREAdITEM: new Promise 2023-12-11 10:41:06 2023-12-11T09:41:06.628Z SwingSet: vat: v1: brand KREAdITEM: new Promise 2023-12-11 10:41:06 2023-12-11T09:41:06.628Z SwingSet: vat: v1: ----- KREAd.2 12 CONTRACT INIT SUCCESS! 2023-12-11 10:41:06 2023-12-11T09:41:06.629Z SwingSet: vat: v1: instance kread settled; remaining: [] 2023-12-11 10:41:06 2023-12-11T09:41:06.634Z SwingSet: vat: v1: issuer KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] 2023-12-11 10:41:06 2023-12-11T09:41:06.640Z SwingSet: vat: v1: brand KREAdCHARACTER settled; remaining: [ 'KREAdITEM' ] 2023-12-11 10:41:06 2023-12-11T09:41:06.643Z SwingSet: vat: v1: issuer KREAdITEM settled; remaining: [] 2023-12-11 10:41:06 2023-12-11T09:41:06.645Z SwingSet: vat: v1: brand KREAdITEM settled; remaining: [] 2023-12-11 10:41:06 2023-12-11T09:41:06.726Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-903e41a7c448a41b456298404a1c32c69302574209c6a5228723ed19e2dd99f2a693641196445bc27a90e19e1dfadfe6b3d9c9a93f080ffa33a70908e5af4fff' }, exportedGetManifest: 'getManifestForAddAssetToVault', vatAdminSvc: Promise [Promise] {} } 2023-12-11 10:41:06 2023-12-11T09:41:06.730Z SwingSet: vat: v1: evaluateBundleCap { manifestBundleRef: { bundleID: 'b1-80e6fe68b299c82c2d26802c312bc37966a559f7b28f87d058887a79a9db48ad97da2240e71e3f98986071da8fc3c5d02358bec577b17a89cee2b1cb3cd23958' }, exportedGetManifest: 'getManifestForPriceFeed', vatAdminSvc: Promise [Promise] {} } 2023-12-11 10:41:07 2023-12-11T09:41:07.639Z SwingSet: vat: v1: coreProposal: addAssetToVault 2023-12-11 10:41:07 2023-12-11T09:41:07.639Z SwingSet: vat: v1: coreProposal: publishInterchainAssetFromBank 2023-12-11 10:41:07 2023-12-11T09:41:07.640Z SwingSet: vat: v1: coreProposal: registerScaledPriceAuthority 2023-12-11 10:41:08 2023-12-11T09:41:08.071Z SwingSet: vat: v1: coreProposal: createPriceFeed 2023-12-11 10:41:08 2023-12-11T09:41:08.072Z SwingSet: vat: v1: ----- RunPriceFeed.2 2 createPriceFeed 2023-12-11 10:41:08 2023-12-11T09:41:08.072Z SwingSet: vat: v1: coreProposal: ensureOracleBrands 2023-12-11 10:41:08 2023-12-11T09:41:08.073Z SwingSet: vat: v1: ----- RunPriceFeed.2 3 ensureOracleBrands 2023-12-11 10:41:08 2023-12-11T09:41:08.088Z SwingSet: vat: v1: oracleBrand stATOM: new Promise 2023-12-11 10:40:55 9:40AM ERR WARNING: The minimum-gas-prices config in app.toml is set to the empty string. This defaults to 0 in the current version, but will error in the next version (SDK v0.45). Please explicitly put the desired minimum-gas-prices in your app.toml. 2023-12-11 10:40:57 Removing intrinsics.Symbol.dispose 2023-12-11 10:40:57 Removing intrinsics.Symbol.asyncDispose 2023-12-11 10:40:57 9:40AM ERR WARNING: The minimum-gas-prices config in app.toml is set to the empty string. This defaults to 0 in the current version, but will error in the next version (SDK v0.45). Please explicitly put the desired minimum-gas-prices in your app.toml. 2023-12-11 10:40:59 Loading slog sender modules: @agoric/telemetry/src/slog-file.js @agoric/telemetry/src/flight-recorder.js 2023-12-11 10:41:07 2023-12-11T09:41:07.637Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForAddAssetToVault', behaviors: [ 'INVITE_PSM_COMMITTEE_MANIFEST', 'PSM_MANIFEST', 'addAssetToVault', 'getManifestForAddAssetToVault', 'getManifestForPsm', 'getManifestForPsmGovernance', 'inviteCommitteeMembers', 'inviteToEconCharter', 'makeAnchorAsset', 'publishInterchainAssetFromBank', 'publishInterchainAssetFromBoardId', 'registerScaledPriceAuthority', 'startEconCharter', 'startPSM' ] } 2023-12-11 10:41:08 2023-12-11T09:41:08.069Z SwingSet: vat: v1: execute { exportedGetManifest: 'getManifestForPriceFeed', behaviors: [ 'createPriceFeed', 'ensureOracleBrands', 'getManifestForPriceFeed', 'instanceNameFor', 'startPriceFeeds' ] } 2023-12-11 10:41:08 2023-12-11T09:41:08.277Z SwingSet: vat: v1: Add Asset immediately [Function (anonymous)] 2023-12-11 10:41:09 2023-12-11T09:41:09.098Z SwingSet: ls: v5: Logging sent error stack (TypeError#1) 2023-12-11 10:41:09 2023-12-11T09:41:09.103Z SwingSet: ls: v5: TypeError#1: target has no method getDisplayInfo , has [ 'isMyClock', 'isMyTimerService' ] 2023-12-11 10:41:08 2023-12-11T09:41:08.090Z SwingSet: vat: v1: oracleBrand stATOM settled; remaining: [] 2023-12-11 10:41:08 2023-12-11T09:41:08.133Z SwingSet: vat: v1: ----- RunPriceFeed.2 4 got terms 2023-12-11 10:41:08 2023-12-11T09:41:08.150Z SwingSet: vat: v1: ----- RunPriceFeed.2 5 awaiting startInstance 2023-12-11 10:41:08 2023-12-11T09:41:08.177Z SwingSet: vat: v1: instance stATOM-USD price feed: new Promise 2023-12-11 10:41:08 2023-12-11T09:41:08.209Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM: new Promise 2023-12-11 10:41:08 2023-12-11T09:41:08.210Z SwingSet: vat: v1: instance scaledPriceAuthority-stATOM settled; remaining: [ 'stATOM-USD price feed' ] 2023-12-11 10:41:08 2023-12-11T09:41:08.234Z SwingSet: vat: v1: ----- RunPriceFeed.2 6 registered stATOM-USD price feed Object [Alleged: InstanceHandle] {} 2023-12-11 10:41:08 2023-12-11T09:41:08.235Z SwingSet: vat: v1: ----- RunPriceFeed.2 7 distributing invitations [ 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', 'agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h', 'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', 'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', 'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', 'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', 'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', 'agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m', 'agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d' ] 2023-12-11 10:41:08 2023-12-11T09:41:08.236Z SwingSet: vat: v1: ----- RunPriceFeed.2 8 createPriceFeed complete 2023-12-11 10:41:08 2023-12-11T09:41:08.236Z SwingSet: vat: v1: instance stATOM-USD price feed settled; remaining: [] 2023-12-11 10:41:08 2023-12-11T09:41:08.249Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce 2023-12-11 10:41:08 2023-12-11T09:41:08.251Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang 2023-12-11 10:41:08 2023-12-11T09:41:08.253Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h 2023-12-11 10:41:08 2023-12-11T09:41:08.258Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk 2023-12-11 10:41:08 2023-12-11T09:41:08.262Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf 2023-12-11 10:41:08 2023-12-11T09:41:08.264Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft 2023-12-11 10:41:08 2023-12-11T09:41:08.266Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4 2023-12-11 10:41:08 2023-12-11T09:41:08.269Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82 2023-12-11 10:41:08 2023-12-11T09:41:08.271Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric15xddzse9lq74cyt6ev9d7wywxerenxdgxsdc3m 2023-12-11 10:41:08 2023-12-11T09:41:08.274Z SwingSet: vat: v1: awaiting depositFacet for stATOM-USD price feed member agoric1w5wmck6q2xrt20ax3njlk2k87m4t4l2y2xgw2d 2023-12-11 10:41:09 2023-12-11T09:41:09.105Z SwingSet: ls: v5: TypeError: target has no method "getDisplayInfo", has ["isMyClock","isMyTimerService"] 2023-12-11 10:41:09 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-11 10:41:09 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-11 10:41:09 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) 2023-12-11 10:41:09 at apply () 2023-12-11 10:41:09 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-11 10:41:09 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-11 10:41:09 at () 2023-12-11 10:41:09 2023-12-11 10:41:09 2023-12-11T09:41:09.108Z SwingSet: ls: v5: TypeError#1 ERROR_NOTE: Sent as error:liveSlots:v5#70001 2023-12-11 10:41:09 2023-12-11T09:41:09.113Z SwingSet: ls: v5: Logging sent error stack (TypeError#2) 2023-12-11 10:41:09 2023-12-11T09:41:09.114Z SwingSet: ls: v5: TypeError#2: target has no method getAllegedName , has [ 'isMyClock', 'isMyTimerService' ] 2023-12-11 10:41:09 2023-12-11T09:41:09.115Z SwingSet: ls: v5: TypeError: target has no method "getAllegedName", has ["isMyClock","isMyTimerService"] 2023-12-11 10:41:09 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-11 10:41:09 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-11 10:41:09 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:93) 2023-12-11 10:41:09 at apply () 2023-12-11 10:41:09 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-11 10:41:09 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-11 10:41:09 at () 2023-12-11 10:41:09 2023-12-11 10:41:09 2023-12-11T09:41:09.116Z SwingSet: ls: v5: TypeError#2 ERROR_NOTE: Sent as error:liveSlots:v5#70002 2023-12-11 10:41:09 2023-12-11T09:41:09.785Z SwingSet: xsnap: v4: UnhandledPromiseRejectionWarning: (TypeError#1) 2023-12-11 10:41:09 2023-12-11T09:41:09.786Z SwingSet: xsnap: v4: TypeError#1: Cannot deliver receive to target; typeof target is null 2023-12-11 10:41:09 2023-12-11T09:41:09.787Z SwingSet: xsnap: v4: TypeError: Cannot deliver "receive" to target; typeof target is "null" 2023-12-11 10:41:09 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:243) 2023-12-11 10:41:09 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:357) 2023-12-11 10:41:09 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:86) 2023-12-11 10:41:09 at apply () 2023-12-11 10:41:09 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:163) 2023-12-11 10:41:09 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:511) 2023-12-11 10:41:09 at () 2023-12-11 10:41:09 ```
migueldingli1997 commented 10 months ago

I think it's a Mac Apply Silicon issue because my colleague managed to run it on his Linux machine, and I've managed to run it on an Ubuntu VM.

migueldingli1997 commented 10 months ago

Must be a Mac issue because my colleague managed to run it on his Linux machine, and I've managed to run it on an Ubuntu VM.

Other than that I've noticed a small difference between the container on my Mac and the container on the Linux machines when I run docker container ls.

The port mappings on the Mac are: 0.0.0.0:1317->1317/tcp, 0.0.0.0:26656-26657->26656-26657/tcp, 9090/tcp

The port mappings on the Linux machine are: 0.0.0.0:1317->1317/tcp, :::1317->1317/tcp, 0.0.0.0:26656-26657->26656-26657/tcp, :::26656-26657->26656-26657/tcp, 9090/tcp

The difference is that the mappings prefixed with ::: seem to be missing.

migueldingli1997 commented 10 months ago

I've tried running through the guide again with an Ubuntu VM (22.04.3 LTS) virtualized on my Mac M1 host, and unfortunately ran into a different issue now:

Docker logs from docker:logs after running start:docker ``` $ yarn start:docker; yarn docker:logs yarn run v1.22.21 $ cd contract && docker compose up -d [+] Running 1/1 \u2714 Container demo-agd-1 Started 0.0s Done in 0.43s. yarn run v1.22.21 $ cd contract; docker compose logs --tail 200 -f demo-agd-1 | exec /workspace/contract/scripts/run-chain.sh: exec format error demo-agd-1 exited with code 1 Done in 0.29s. ``` Emphasis on `demo-agd-1 | exec /workspace/contract/scripts/run-chain.sh: exec format error`.
migueldingli1997 commented 10 months ago

I've good news finally -- I think I narrowed down the problem to Rosetta being enabled. I had this option on Docker Desktop:

image

As soon as I switched it off, the container seems to be working as expected and gets to the block commits. I still see some mysterious errors here and there but these might be expected.

dckc commented 9 months ago

similar report from @tgrecojs : on m1 mac, at the yarn run start:contract step, it hangs at the mint4k step

Executing  [
  '--node=http://0.0.0.0:26657',
  '--chain-id=agoriclocal',
  '--from=agoric1xe269y3fhye8nrlduf826wgn499y6wmnv32tw5',
  'tx',
  'swingset',
  'wallet-action',
  '--allow-spend',
  '{"body":"#{\\"method\\":\\"executeOffer\\",\\"offer\\":{\\"id\\":\\"openVault-1704232656346\\",\\"invitationSpec\\":{\\"callPipe\\":[[\\"getCollateralManager\\",[\\"$0.Alleged: BoardRemoteATOM brand\\"]],[\\"makeVaultInvitation\\"]],\\"instancePath\\":[\\"VaultFactory\\"],\\"source\\":\\"agoricContract\\"},\\"proposal\\":{\\"give\\":{\\"Collateral\\":{\\"brand\\":\\"$0\\",\\"value\\":\\"+1000000000\\"}},\\"want\\":{\\"Minted\\":{\\"brand\\":\\"$1.Alleged: BoardRemoteIST brand\\",\\"value\\":\\"+4000000000\\"}}}}}","slots":["board05557","board0257"]}\n',
  '--keyring-backend=test',
  '--yes'
]
wallet update {
  status: {
    id: 'openVault-1702496757032',
    invitationSpec: {
      callPipe: [Array],
      instancePath: [Array],
      source: 'agoricContract'
    },
    proposal: { give: [Object], want: [Object] },
    result: 'UNPUBLISHED'
  },
  updated: 'offerStatus'
}
wallet update {
  status: {
    id: 'openVault-1702496757032',
    invitationSpec: {
      callPipe: [Array],
      instancePath: [Array],
      source: 'agoricContract'
    },
    numWantsSatisfied: 1,
    proposal: { give: [Object], want: [Object] },
    result: 'UNPUBLISHED'
  },
  updated: 'offerStatus'
}
wallet update {
  status: {
    id: 'openVault-1702496757032',
    invitationSpec: {
      callPipe: [Array],
      instancePath: [Array],
      source: 'agoricContract'
    },
    numWantsSatisfied: 1,
    payouts: { Collateral: [Object], Minted: [Object] },
    proposal: { give: [Object], want: [Object] },
    result: 'UNPUBLISHED'
  },
  updated: 'offerStatus'
}

disabling rosetta disabling VirtioFS in favor of gRPC FUSE made these symptoms go away

see also