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

Error: Service(Client(VersionInvalid("cannot deserialize module: UnknownOpcode(192)"))) #178

Closed
scab24 opened this issue Apr 9, 2023 · 6 comments · Fixed by #182
Closed

Comments

@scab24
Copy link

scab24 commented Apr 9, 2023

When I try to run "substrate-contracts-node --dev" I get this error:

WARN main wasm-runtime: Cannot create a runtime error=Other("cannot deserialize module: UnknownOpcode(192)")

Error: Service(Client(VersionInvalid("cannot deserialize module: UnknownOpcode(192)"))

I'm use MAC M1

============================

substrate-contracts-node 0.24.0-fe448511262

====
rustup +nightly show
Default host: aarch64-apple-darwin
rustup home: /Users/secoalba/.rustup

installed toolchains

stable-aarch64-apple-darwin (default)
nightly-2023-03-14-aarch64-apple-darwin
nightly-aarch64-apple-darwin

installed targets for active toolchain

aarch64-apple-darwin
wasm32-unknown-unknown

active toolchain

stable-aarch64-apple-darwin (default)
rustc 1.68.2 (9eb3afe9e 2023-03-27)

Default host: aarch64-apple-darwin
rustup home: /Users/secoalba/.rustup

installed toolchains

stable-aarch64-apple-darwin (default)
nightly-2023-03-14-aarch64-apple-darwin
nightly-aarch64-apple-darwin

installed targets for active toolchain

aarch64-apple-darwin
wasm32-unknown-unknown

active toolchain

nightly-aarch64-apple-darwin (overridden by +toolchain on the command line)
rustc 1.70.0-nightly (700938c07 2023-04-04)

@klimenkoOleg
Copy link

klimenkoOleg commented Apr 19, 2023

This is due to version incompatibility.

Create in the root of the project file 'rust-toolchain.toml' and place the following content:

channel = "nightly-2023-01-01"
components = [ "rustfmt" ]
targets = [ "wasm32-unknown-unknown" ]
profile = "minimal"

The rebuild using
cargo build --release

This worked for me, I also use Mac with M1 CPU.

@wottpal
Copy link

wottpal commented Apr 27, 2023

For everyone stumbling across this one, either fix it by using the provided binary instead, or install substrate-contracts-node again with an older fixed nightly build of the rust toolchain like:

rustup install nightly-2023-02-07-aarch64-apple-darwin
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-02-07-aarch64-apple-darwin
cargo +nightly-2023-02-07 install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked

@vineshtk
Copy link

facing same error with ubuntu 22.04

@scab24
Copy link
Author

scab24 commented May 4, 2023

Thank you very much, it is working properly, I appreciate it very much.

@athei athei linked a pull request May 4, 2023 that will close this issue
@vineshtk
Copy link

vineshtk commented May 8, 2023

For everyone stumbling across this one, either fix it by using the provided binary instead, or install substrate-contracts-node again with an older fixed nightly build of the rust toolchain like:

rustup install nightly-2023-02-07-aarch64-apple-darwin
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-02-07-aarch64-apple-darwin
cargo +nightly-2023-02-07 install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked

Thanks for the help, this works .

@athei
Copy link
Member

athei commented May 8, 2023

Should be fixed with the latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants