ava-labs / subnet-evm

Launch your own EVM as an Avalanche Subnet
https://docs.avax.network/subnets/create-a-fuji-subnet
GNU Lesser General Public License v3.0
243 stars 220 forks source link

Issue building the project #1037

Open boubou158 opened 9 months ago

boubou158 commented 9 months ago

Hi,

I am trying to build this project to be able to deploy locally DFK subnet.

When I run the command ./scripts/build.sh ~/.avalanchego/plugins/mDV3QWRXfwgKUWb9sggkv4vQxAQR4y2CyKrt5pLZ5SzQ7EHBv

I am facing this issue:

image

Operating System Windows 11

I am clueless on how to fix that.

Does anyone knows where does this come from?

EDIT: After managing to run the build of avalanchego and the command cd subnet-evm ./scripts/build.sh ~/.avalanchego/plugins/mDV3QWRXfwgKUWb9sggkv4vQxAQR4y2CyKrt5pLZ5SzQ7EHBv

following the tutorial here: https://docs.avax.network/deprecated/dfk-subnet-node

I am having this issue: image

But the file in the plugins directory exists so i am a bit confused: image

Thank you!

ceyonur commented 9 months ago

This seems a problem with Windows file paths. Could you try to manually set the file path via --plugin-dir https://docs.avax.network/nodes/configure/avalanchego-config-flags#--plugin-dir-string

ceyonur commented 9 months ago

Keep in mind that Windows support is currently experimental https://github.com/ava-labs/avalanchego#supported-platforms

boubou158 commented 9 months ago

Hi @ceyonur ,

I actually solved it by using cygwin64 terminal, it seemed that git bash was adding too many \ and that was the reason the file was not found. I have tried to apply the chain configuration for C chain and the subnet: state-sync-enabled to true but i am not sure how to double check it got applied while bootstrapping the chains the first time?

Thank you :)

ceyonur commented 9 months ago

For C-chain you don't need to set it to any value (by default it starts with state sync). For the Subnet-EVM there is a log printed for StateSyncEnabled in the startup (should be true/false). In either case you should be seeing logs Starting state sync.

boubou158 commented 8 months ago

Hi @ceyonur ,

After trying everything i could, issues is still here: image

Even by using --plugin-dir, it will compute a wrong path with multiple slashes leading to a file not found exception.

Do you have any other suggestions?

Thank you