NethermindEth / nethermind

A robust execution client for Ethereum node operators.
https://nethermind.io/nethermind-client
GNU General Public License v3.0
1.23k stars 428 forks source link

Issue using launcher after installing with homebrew (Apple M1) #4495

Open Meekohi opened 2 years ago

Meekohi commented 2 years ago

Describe the bug Homebrew installation for macOS 12.5.1 (Apple M1) doesn't seem to work. Nethermind.Runner doesn't exist in the homebrew installation as best I can tell (should be ./bin/nethermind maybe?)

To Reproduce

brew tap nethermindeth/nethermind
brew install nethermind
nethermind-launcher

? Start Nethermind Ethereum Node
? Select network Ethereum (mainnet)
? Select sync Fast sync

There was an error when starting ./Nethermind.Runner
Error: spawn ./Nethermind.Runner ENOENT

nethermind 1.14.0 From: https://github.com/nethermindeth/homebrew-nethermind/blob/HEAD/nethermind.rb

see https://github.com/NethermindEth/homebrew-nethermind/blob/d9c12ff20c3025a1f1a0226619148c74110b0f6e/nethermind.rb#L22-L24 where the renaming happens.

tkstanczak commented 2 years ago

@FalcoXYZ ?

FalcoXYZ commented 2 years ago

@Meekohi Can you try running "nethermind" instead of the launcher? Does that work?

One other thing I would suggest trying is the following commands:

codesign -s - /opt/homebrew/Cellar/nethermind/1.14.0/bin/nethermind
codesign -s - /opt/homebrew/Cellar/nethermind/1.14.0/bin/nethermind-launcher
codesign -s - /opt/homebrew/Cellar/nethermind/1.14.0/bin/nethermind-cli

Please try running Nethermind after.

Let me know if that works!

Meekohi commented 2 years ago

@FalcoXYZ Yes, running nethermind directly works after doing the codesign above 👍🏼

FalcoXYZ commented 2 years ago

@Meekohi Would it be possible to try running nethermind directly without the codesign commands? Just so we can check if that was the issue or not?

You can remove and reinstall nethermind by using the following commands:

brew rm nethermind
brew install nethermind
Meekohi commented 2 years ago

Yes I tried it before codesign and it did not work (immediately was killed with no error message)

FalcoXYZ commented 2 years ago

Can you please confirm whether or not the codesign fixes the issues you were facing? Are nethermind, nethermind-launcher and nethermind-cli broken for you before the codesign and do they work after using the codesign commands? Just want to double-check! I'm already checking for a possible solution :)

Meekohi commented 2 years ago

No worries @FalcoXYZ -- I think the code-signing and ENOENT issues are two independent problems.

After codesigning, there is still the issue of

➜  ~ nethermind-launcher 
? Start Nethermind Ethereum Node
? Select network Ethereum (mainnet)
? Select sync Fast sync
There was an error when starting ./Nethermind.Runner
Error: spawn ./Nethermind.Runner ENOENT

Which is simply because it is trying to run ./Nethermind.Runner but it has been renamed to nethermind (code referenced in the original post). Happy to run any other tests you think will be helpful.