rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
128 stars 54 forks source link

how to locate and resolve `MiscellaneousError` #775

Closed geometryolife closed 8 months ago

geometryolife commented 8 months ago

Repetition

When I try to publish the simple_blog example, it will appear Transaction error: Transaction execution failed: MiscellaneousError

$ rooch move publish --named-addresses simple_blog=default

INCLUDING DEPENDENCY MoveStdlib
INCLUDING DEPENDENCY MoveosStdlib
INCLUDING DEPENDENCY RoochFramework
BUILDING simple_blog
Publish modules to address: 0xf5ecfc49f55e283119104978b60995b0ec84a5bd760a0305b24b9a4175deff7b
Transaction error: Transaction execution failed: MiscellaneousError

rooch server logs:

2023-09-10T16:26:18.373266Z  WARN connection{remote_addr=127.0.0.1:36882 conn_id=0}: moveos::moveos: execute tx(0xe5f7…d1bf) error: Err(VMError { major_status: LINKER_ERROR, sub_status: None, message: Some("Cannot find ModuleId { address: f5ecfc49f55e283119104978b60995b0ec84a5bd760a0305b24b9a4175deff7b, name: Identifier(\"article\") } in data cache"), exec_state: None, location: Module(ModuleId { address: 0000000000000000000000000000000000000000000000000000000000000002, name: Identifier("move_module") }), indices: [], offsets: [(FunctionDefinitionIndex(7), 0)] })

I want to know how to solve it.

Steps

jolestar commented 8 months ago

Clear the local data and try again.

geometryolife commented 8 months ago

Clear the local data and try again.

It doesn't work, I have already tried to rooch server clean, and even re-executing rooch init to generate a new configuration is the same.

jolestar commented 8 months ago

Seam like it is a bug. The simple_blog can publish via --by-move-action, but can not publish via move contract. @pause125

pause125 commented 8 months ago

Seam like it is a bug. The simple_blog can publish via --by-move-action, but can not publish via move contract. @pause125

I will check it.

pause125 commented 8 months ago

@geometryolife I'm sorry, but I cannot reproduce the issue you are experiencing. I can successfully deploy the simple_blog contract without any issues. If you have any detailed reproducable steps that might help me understand the problem better, please share them with me.

geometryolife commented 8 months ago

@geometryolife I'm sorry, but I cannot reproduce the issue you are experiencing. I can successfully deploy the simple_blog contract without any issues. If you have any detailed reproducable steps that might help me understand the problem better, please share them with me.

Alright, I have supplied the Steps for recurring the bug.

pause125 commented 8 months ago

@geometryolife I'm sorry, but I cannot reproduce the issue you are experiencing. I can successfully deploy the simple_blog contract without any issues. If you have any detailed reproducable steps that might help me understand the problem better, please share them with me.

Alright, I have supplied the Steps for recurring the bug.

how do you start server, and could you please paste the server logs?

geometryolife commented 8 months ago

how do you start server, and could you please paste the server logs?

Already provided available.

Here is screenshot: image