Pm2 command throws illegal instruction error on raspberry pi


#1

Hello BigClown community.

I am new to your products. I am setting up a Rasp Zero.pm2 command is giving an error. Could you please suggest what could be the problem

pi@hub:~ pm2 Illegal instruction pi@hub:~ pm2 show bcg

pi@hub:~ $ uname -a
Linux hub 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l GNU/Linux

‘bcf list’ command works though


#2

Hi, could be related that you use bc-raspbian on untested Rpi Zero. Rpi Zero has lower ARM architecture ARMv6, Rpi3 has ARMv8. So some instructions which is using PM2 are not supported. If you reinstall pm2 it could install the right binary versions and msot probably work.


#3

This for your response Martin.
When I used Raspi3 instead of RaspiZero, these problems were solved.