Daemon-Technologies / Mining-Bot

26 stars 14 forks source link

Stacks node download on rpi not correct executable #94

Closed friedger closed 3 years ago

friedger commented 3 years ago

Describe the bug On Raspberry Pi 3B, the downloaded executable of stacks-node does not start

Steps To Reproduce On Raspberry Pi 3B,

  1. Start the bot with yarn start
  2. Clicking the Download button
  3. Try starting the stacks node
  4. see error: ./stacks-node: cannot execute binary file: Exec format error

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

Additional context Workaround, download stacks-node (linux-armv7.zip) manually and unzip file

gzelda commented 3 years ago
  1. see error: ./stacks-node: cannot execute binary file: Exec format error

Could you share the os.platform() return result in nodejs?

friedger commented 3 years ago

The bot should check os.arch(). os.platform is linux

gzelda commented 3 years ago

The bot should check os.arch(). os.platform is linux

What is the result of os.arch()? arm64 or arm?

gzelda commented 3 years ago

The bot should check os.arch(). os.platform is linux

I didn't judge the CPU arch for each system. Can update it soon.

friedger commented 3 years ago

For rpi, arch returns arm

gzelda commented 3 years ago

fixed 14665daa2da3670b08be46ab658ba1c8165b03b3