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

unable to start ag-solo with bootstrap since runStake was added to rewards #5212

Closed
arirubinstein opened this issue Apr 25, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@arirubinstein
Copy link
Contributor

Describe the bug

2022-04-25T04:49:43.752Z SwingSet: vat: v1: lienBridge settled; remaining: [ 'ammCreatorFacet', 'ammGovernorCreatorFacet', 'distributor', 'economicCommitteeCreatorFacet', 'reserveCreatorFacet', 'reserveGovernorCreatorFacet', 'reservePublicFacet', 'runStakeCreatorFacet', 'runStakeGovernorCreatorFacet', 'vaultFactoryCreator', 'vaultFactoryGovernorCreator', 'vaultFactoryVoteCreator' ]
2022-04-25T04:49:43.783Z SwingSet: vat: v1: CORE_EVAL failed: (Error#1)
2022-04-25T04:49:43.785Z SwingSet: vat: v1: Error#1: runStakeCreatorFacet not permitted, only [ 'chainTimerService', 'bankManager', 'loadVat', 'vaultFactoryCreator', 'ammCreatorFacet', 'zoe' ]
2022-04-25T04:49:43.787Z SwingSet: vat: v1: Error: (a string) not permitted, only (an object)
 at construct ()
 at Error (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:5943)
 at makeError (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:2705)
 at fail (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:2832)
 at baseAssert (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:2850)
 at get (.../vats/src/core/utils.js:233)
 at ()
 at startRewardDistributor (.../run-protocol/src/econ-behaviors.js:469)
 at startRewardDistributor ()
 at call ()
 at ()

2022-04-25T04:49:43.789Z SwingSet: vat: v1: Error#1 ERROR_NOTE: Rejection from: (Error#2) : 60 . 0
2022-04-25T04:49:43.790Z SwingSet: vat: v1: Error#2: Event: 59.1
2022-04-25T04:49:43.791Z SwingSet: vat: v1: Error: Event: 59.1
 at construct ()
 at Error (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:5943)
 at trackTurns (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:8346)
 at handle (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:9058)
 at rawBootstrap (.../vats/src/core/boot.js:130)
 at ()
 at ()

2022-04-25T04:49:43.792Z SwingSet: vat: v1: BOOTSTRAP FAILED: (Error#1)
2022-04-25T04:49:43.793Z SwingSet: vat: v1: Error#1 ERROR_NOTE: Rejection from: (Error#3) : 1 . 1
2022-04-25T04:49:43.794Z SwingSet: vat: v1: Error#3: Event: 0.1
2022-04-25T04:49:43.795Z SwingSet: vat: v1: Error: Event: 0.1
 at construct ()
 at Error (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:5943)
 at trackTurns (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:8346)
 at handle (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/lockdown-subprocess-xsnap.js:9058)
 at deliver (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/supervisor-subprocess-xsnap.js:15717)
 at dispatchToUserspace (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/supervisor-subprocess-xsnap.js:16067)
 at runWithoutMetering (/usr/src/agoric-sdk/packages/SwingSet/src/supervisors/subprocess-xsnap/supervisor-subprocess-xsnap.js:16516)
 at ()

2022-04-25T04:49:43.796Z SwingSet: vat: v1: Error#1 ERROR_NOTE: Sent as error:liveSlots:v1#70001
2022-04-25T04:49:43.797Z SwingSet: ls: v1: Logging sent error stack (Error#1)
2022-04-25T04:49:43.800Z SwingSet: kernel: ##### KERNEL PANIC: kp40.policy panic: rejected {"body":"{\"@qclass\":\"error\",\"errorId\":\"error:liveSlots:v1#70001\",\"message\":\"(a string) not permitted, only (an object)\",\"name\":\"Error\"}","slots":[]} #####
portHandler threw (Error#1)
Error#1: kernel panic kp40.policy panic: rejected {"body":"{\"@qclass\":\"error\",\"errorId\":\"error:liveSlots:v1#70001\",\"message\":\"(a string) not permitted, only (an object)\",\"name\":\"Error\"}","slots":[]}

  at panic (.../swingset-vat/src/kernel/kernel.js:235:18)
  at doResolve (.../swingset-vat/src/kernel/kernelQueue.js:59:1)
  at resolve (.../swingset-vat/src/kernel/kernelSyscall.js:271:1)
  at kernelSyscallHandler (.../swingset-vat/src/kernel/kernelSyscall.js:346:8)
  at vatSyscallHandler (.../swingset-vat/src/kernel/kernel.js:1201:6)
  at Object.syscallFromWorker (.../swingset-vat/src/kernel/vat-loader/manager-helper.js:253:12)
  at handleUpstream (.../swingset-vat/src/kernel/vat-loader/manager-subprocess-xsnap.js:89:11)
  at handleCommand (.../swingset-vat/src/kernel/vat-loader/manager-subprocess-xsnap.js:115:14)
  at handleCommand (packages/xsnap/src/replay.js:110:26)
  at runToIdle (packages/xsnap/src/xsnap.js:198:42)
  at runMicrotasks (<anonymous>)

panic: Error: kernel panic kp40.policy panic: rejected {"body":"{\"@qclass\":\"error\",\"errorId\":\"error:liveSlots:v1#70001\",\"message\":\"(a string) not permitted, only (an object)\",\"name\":\"Error\"}","slots":[]}

goroutine 12 [running]:
github.com/Agoric/agoric-sdk/golang/cosmos/x/swingset.InitGenesis({{0x7fbd8f0ff708, 0xc00004c068}, {0x7fbd8f12b4a0, 0xc0000d9e80}, {{0x0, 0x0}, {0xc000efe320, 0x10}, 0x0, {0x34b17b25, ...}, ...}, ...}, ...)
        /usr/src/agoric-sdk/golang/cosmos/x/swingset/genesis.go:65 +0x477
github.com/Agoric/agoric-sdk/golang/cosmos/x/swingset.AppModule.InitGenesis({{}, {{0x7fbd8f0cd950, 0xc0000db410}, {0x7fbd8f1305f8, 0xc0000da5a0}, {{0x7fbd8f126138, 0xc0000da5a0}, 0xc0000e60e8, {0x7fbd8f0cd950, 0xc0000db380}, ...}, ...}}, ...)
        /usr/src/agoric-sdk/golang/cosmos/x/swingset/module.go:145 +0x105
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x7fbd8f0ff708, 0xc00004c068}, {0x7fbd8f12b4a0, 0xc0000d9e80}, {{0x0, 0x0}, {0xc000efe320, 0x10}, 0x0, ...}, ...}, ...)
        /go/pkg/mod/github.com/agoric-labs/[email protected]/types/module/module.go:320 +0x29d
github.com/Agoric/agoric-sdk/golang/cosmos/app.(*GaiaApp).InitChainer(_, {{0x7fbd8f0ff708, 0xc00004c068}, {0x7fbd8f12b4a0, 0xc0000d9e80}, {{0x0, 0x0}, {0xc000efe320, 0x10}, 0x0, ...}, ...}, ...)
        /usr/src/agoric-sdk/golang/cosmos/app/app.go:733 +0x1f2
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000f6f040, {{0x34b17b25, 0xed9f81efb, 0x0}, {0xc000efe320, 0x10}, 0xc0005384a0, {0x7fbd8ffefee0, 0x0, 0x0}, ...})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/baseapp/abci.go:62 +0x475
github.com/tendermint/tendermint/abci/client.(*committingClient).InitChainSync(0xc000da0000, {{0x34b17b25, 0xed9f81efb, 0x0}, {0xc000efe320, 0x10}, 0xc0005384a0, {0x7fbd8ffefee0, 0x0, 0x0}, ...})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/abci/client/committing_client.go:314 +0x118
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0x7fbd8d52f985, {{0x34b17b25, 0xed9f81efb, 0x0}, {0xc000efe320, 0x10}, 0xc0005384a0, {0x7fbd8ffefee0, 0x0, 0x0}, ...})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/proxy/app_conn.go:77 +0x55
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(_, {{{0xb, 0x0}, {0x7fbd8e8942b0, 0x7}}, {0xc000efe320, 0x10}, 0x1, 0x0, {{0x0, ...}, ...}, ...}, ...)
        /go/pkg/mod/github.com/agoric-labs/[email protected]/consensus/replay.go:319 +0xd98
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc000fe9e40, {0x7fbd8f12c800, 0xc0010fd110})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/consensus/replay.go:268 +0x3c8
github.com/tendermint/tendermint/node.doHandshake({_, _}, {{{0xb, 0x0}, {0x7fbd8e8942b0, 0x7}}, {0xc000efe320, 0x10}, 0x1, 0x0, ...}, ...)
        /go/pkg/mod/github.com/agoric-labs/[email protected]/node/node.go:325 +0x1b8
github.com/tendermint/tendermint/node.NewNode(0xc000e6a8c0, {0x7fbd8f0dcfd8, 0xc00116e500}, 0xc0001d3cc0, {0x7fbd8f0bf1a0, 0xc00000fd28}, 0x0, 0x0, 0xc0001d3e20, {0x7fbd8f100498, ...}, ...)
        /go/pkg/mod/github.com/agoric-labs/[email protected]/node/node.go:733 +0x578
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x7fbd8f13ab38, 0xc001117b90}, {0x0, 0x0}, {0x7fbd8f108b68, 0xc0000da5a0}, ...}, ...)
        /go/pkg/mod/github.com/agoric-labs/[email protected]/server/start.go:263 +0x86f
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc000cb2000, {0xc000cb5600, 0x0, 0x4})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/server/start.go:129 +0x193
github.com/spf13/cobra.(*Command).execute(0xc000cb2000, {0xc000cb55c0, 0x4, 0x4})
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0xc000e04f00)
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0xc000f0a210, {0xc000d31188, 0x16})
        /go/pkg/mod/github.com/agoric-labs/[email protected]/server/cmd/execute.go:36 +0x1eb
github.com/Agoric/agoric-sdk/golang/cosmos/daemon.RunWithController(0x0)
        /usr/src/agoric-sdk/golang/cosmos/daemon/main.go:74 +0x118
main.RunAgCosmosDaemon.func2()
        /usr/src/agoric-sdk/golang/cosmos/cmd/libdaemon/main.go:78 +0x1d
created by main.RunAgCosmosDaemon
        /usr/src/agoric-sdk/golang/cosmos/cmd/libdaemon/main.go:75 +0x1fd

Commit: f3a8a51
docker tag:
20220423203848cea155

To Reproduce

Steps to reproduce the behavior:

  1. Boot an ag-solo to a chain with the following bootstrap config mentioned in the genesis:
  2. CHAIN_BOOTSTRAP_VAT_CONFIG="@agoric/vats/decentral-demo-config.json"
  3. chain will fail to init bootstrap

Expected behavior

Bootstrap succeeds

@arirubinstein arirubinstein added the bug Something isn't working label Apr 25, 2022
@dckc dckc changed the title unable to start ag-solo with bootstrap unable to start ag-solo with bootstrap since runStake was added to rewards Apr 25, 2022
@dckc dckc closed this as completed Apr 28, 2022
@Tartuffo Tartuffo added this to the Mainnet 1 milestone May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants