Node-Red boots with Pi 3, but errors when using a Pi Zero W?

390 views
Skip to first unread message

Rob Jameson

unread,
Feb 16, 2018, 1:03:30 PM2/16/18
to Node-RED
Hi Everyone,

I'm moving from prototyping on a Pi 3 to installing a Pi Zero W. I moved the SD card and now on the Pi Zero W, node-red won't boot!  It worked fine on the Pi 3, so I have no idea what the issue could be.  I've tried on a second Zero W and am getting the same issue. :(

Here's what terminal tells me when trying to boot node-red manually from the GUI or command line:




Starting as a systemd service.
Started Node-RED graphical event wiring tool..
nodered.service: main process exited, code=killed, status=11/SEGV
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
nodered.service: main process exited, code=killed, status=11/SEGV
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
nodered.service: main process exited, code=killed, status=11/SEGV
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
nodered.service: main process exited, code=killed, status=11/SEGV
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
nodered.service: main process exited, code=killed, status=11/SEGV
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
nodered.service start request repeated too quickly, refusing to start.
Failed to start Node-RED graphical event wiring tool..
Unit nodered.service entered failed state.

Dave C-J

unread,
Feb 16, 2018, 1:08:08 PM2/16/18
to node...@googlegroups.com
One is arm 7 and the other arm 6. You need a different node.js binary (at least)   
For what it's worth you could go the other way.  
--
Sent from phone.

Dave C-J

unread,
Feb 16, 2018, 1:14:20 PM2/16/18
to node...@googlegroups.com
You may be able to apt purge nodes and nodered. Then remove any node libraries in /etc/apt/sources.list.d and then run our upgrade script. 
--
Sent from phone.

Rob Jameson

unread,
Feb 18, 2018, 9:13:47 PM2/18/18
to Node-RED
Hi Dave,

Thanks for writing me back.

Ok this is news to me... I didn't realize if you started developing on a Pi 3, I couldn't use that node-red install on another Pi.

Since, I can import flows to node-red, I'm going to try a clean install of Jessie, and then import my flows from the 3. That should be no problem right?

Bobo

unread,
Feb 19, 2018, 2:56:49 AM2/19/18
to Node-RED
Don't worry, it's news to a lot of us I think :)

cflurin

unread,
Feb 19, 2018, 3:46:33 AM2/19/18
to Node-RED
 
Since, I can import flows to node-red, I'm going to try a clean install of Jessie, and then import my flows from the 3. That should be no problem right?

I would install stretch instead of jessie

Dave C-J

unread,
Feb 19, 2018, 4:04:34 AM2/19/18
to node...@googlegroups.com
Just to be clear. It not a Node-RED Issue.  More an issue for Node-RED. The node.js binary is different for the different Arm processors used by the piZero so you need to use the correct one. We take care of that with the upgrade script the first time you run it. But once you have done so it's set for that processor until you uninstall node.js (not node-red) and re-run the script to reinstall Node.js.

You can run the arm6 binary (used by 0) on the arm 7 (pi 2,3) so you don't actually need to reinstall if you are going that way. But you do from 7 to 6.
--
Sent from phone.

Bobo

unread,
Feb 19, 2018, 4:19:43 AM2/19/18
to Node-RED
Certainly a trap for young players. Perhaps a quick one liner in the install instructions might be a good idea.

Dave C-J

unread,
Feb 19, 2018, 4:33:22 AM2/19/18
to node...@googlegroups.com
Maybe. Not sure where though ? By the time folk start swapping SD cards around they are no longer installing or upgrading. 
--
Sent from phone.

Bobo

unread,
Feb 19, 2018, 5:47:05 AM2/19/18
to Node-RED
In the Raspberry Pi notes?

I am bad at that, swapping sd cards. It's a sideways upgrade ;)

fil

unread,
Feb 19, 2018, 11:36:03 AM2/19/18
to Node-RED
Fwiw I installed on a Pi-Zero-w yesterday following the guide here: https://nodered.org/docs/hardware/raspberrypi

prior to the node red i had only installed mosquitto and clients after flashing the sd card with stretch-lite and finished the basic config-wifi credentials update/upgrade. expand fs...

However prior to starting the node red instructions i did install npm with : sudo apt-get install npm

and iirc i think i also used a sudo prefix on the first script o cut n pasted from the page. 

Colin Law

unread,
Feb 19, 2018, 11:56:29 AM2/19/18
to node...@googlegroups.com
On 19 February 2018 at 16:36, 'fil' via Node-RED <node...@googlegroups.com> wrote:
Fwiw I installed on a Pi-Zero-w yesterday following the guide here: https://nodered.org/docs/hardware/raspberrypi

prior to the node red i had only installed mosquitto and clients after flashing the sd card with stretch-lite and finished the basic config-wifi credentials update/upgrade. expand fs...

However prior to starting the node red instructions i did install npm with : sudo apt-get install npm

and iirc i think i also used a sudo prefix on the first script o cut n pasted from the page. 


Are you asking a question here, or just saying this is what you did?  If so you have not said whether it works or not.  Sudo should not be used with the bash curl script. Installing npm before the script should not do any harm as it will be replaced by the script anyway.

Colin.


 


On Monday, 19 February 2018 10:47:05 UTC, Bobo wrote:
In the Raspberry Pi notes?

I am bad at that, swapping sd cards. It's a sideways upgrade ;)

On Monday, 19 February 2018 17:33:22 UTC+8, Dave C-J wrote:
Maybe. Not sure where though ? By the time folk start swapping SD cards around they are no longer installing or upgrading. 
--
Sent from phone.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/60a4893c-44f3-4d9e-b4c2-c3892bf3b830%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Feb 19, 2018, 1:09:05 PM2/19/18
to node...@googlegroups.com
Running the script as sudo should have said

Root user detected. Typically install as a normal user. No need for sudo.


Are you really sure you want to install as root ? (y/N) ? 



to which the the default and correct answer for 99% of users is no... 

fil

unread,
Feb 19, 2018, 1:14:31 PM2/19/18
to Node-RED
Sorry I should have elaborated, Yes the install went smoothly and successfully and i seem to recall without the sudo prefix on the bash curl command i received permission errors logged in as the default pi user and it failed to run. Tho it was only one of many installations i performed and i didnt keep diligent notes..   BTW, this is a headless system without a gui desktop so there were warnings regarding no directories to save icons in..    

npm needs to be installed in advance as its used in the procedure and isnt installed in stretch-lite out of the box. but that becomes apparent if you work your way through.   


On Monday, 19 February 2018 16:56:29 UTC, Colin Law wrote:
On 19 February 2018 at 16:36, 'fil' via Node-RED <node...@googlegroups.com> wrote:
Fwiw I installed on a Pi-Zero-w yesterday following the guide here: https://nodered.org/docs/hardware/raspberrypi

prior to the node red i had only installed mosquitto and clients after flashing the sd card with stretch-lite and finished the basic config-wifi credentials update/upgrade. expand fs...

However prior to starting the node red instructions i did install npm with : sudo apt-get install npm

and iirc i think i also used a sudo prefix on the first script o cut n pasted from the page. 


Are you asking a question here, or just saying this is what you did?  If so you have not said whether it works or not.  Sudo should not be used with the bash curl script. Installing npm before the script should not do any harm as it will be replaced by the script anyway.

Colin.


 


On Monday, 19 February 2018 10:47:05 UTC, Bobo wrote:
In the Raspberry Pi notes?

I am bad at that, swapping sd cards. It's a sideways upgrade ;)

On Monday, 19 February 2018 17:33:22 UTC+8, Dave C-J wrote:
Maybe. Not sure where though ? By the time folk start swapping SD cards around they are no longer installing or upgrading. 
--
Sent from phone.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Dave C-J

unread,
Feb 19, 2018, 1:20:37 PM2/19/18
to node...@googlegroups.com
One of the first things the script does is to install node.js and npm so no need to install it first unless you want to for some other reason. The upgrading does not need it, and should work fine with the lite versions. Maybe you were preloading some other nodes first ? 

If you can see the error re icons I'd be interested to see what they were - you may still have the log at  /var/log/nodered-install.log

fil

unread,
Feb 19, 2018, 3:46:49 PM2/19/18
to Node-RED
just searched the file for instances of "warn"


dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove node which isn't installed
warning...@0.1.0 /home/pi/.node-red/node_modules/warning-symbol
and
npm WARN using --force I sure hope you know what you are doing.
npm WARN deprecated i18next...@1.10.3: you can use npm install i18next from version 2.0.0
npm WARN deprecated nodem...@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated node...@1.4.8: Use uuid module instead


which indicates i did find the need for the sudo prefix on the bash curl script, 

It was 8 am following the evening->all nighter i finished all the soldering and flashing of soc boards with new firmware.  and move the testing onto the systems own dedicated pi board. ...   

nodered-install.log

Colin Law

unread,
Feb 19, 2018, 3:52:42 PM2/19/18
to node...@googlegroups.com
What have those warning messages got to do with using sudo? They are only warnings so you need not worry about them.

Colin

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Dave C-J

unread,
Feb 19, 2018, 4:18:32 PM2/19/18
to node...@googlegroups.com
Log looks good to me - that should be working as far as I can tell.

fil

unread,
Feb 19, 2018, 5:12:45 PM2/19/18
to Node-RED

I took this :
npm WARN using --force I sure hope you know what you are doing.
 to refer to the super user forcing?   

I am way out of my depth here, and am hijacking a thread without benefit to the op, my intent in posting was to suggest following the node-red.org/pi guide would probably resolve his issue but beware for the possibility of jessie/stretch differences perhaps needing a bit of accommodation.  

fil

unread,
Feb 19, 2018, 5:30:05 PM2/19/18
to Node-RED
it is, all good ;)  
as my shorthand above has been turned into a dead link..   
Message has been deleted

Zenofmud

unread,
Feb 23, 2018, 5:58:57 PM2/23/18
to node...@googlegroups.com
If you created the cards on the pi 3 it’s not swappable to the pi zero. This just came up in another thread a couple days ago so you might want to look in the forum for that thread

Paul

On Feb 23, 2018, at 5:43 PM, Rob Jameson <r...@massmosaic.com> wrote:


Hi Everyone,

So first thanks for increasing my knowledge on how this works w/ the Zero W. Unfortunately, I'm still having issues.

I have formatted 3 cards w/ fresh installs of raspbian, gone thru setup (expand filesystem, static IP, etc), and when I boot 2 of the 3 pi 0w's, I am still getting an error w/ starting node-red. I don't think I've done anything wrong... just trying to boot node-red on a 0W and the SD card is basically stock.

Here's my terminal output below:



Starting as a systemd service.
Any ideas?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Colin Law

unread,
Feb 24, 2018, 4:16:13 AM2/24/18
to node...@googlegroups.com
Do you mean that if you plug the cards individually into the same pi
zero that one of them works and two of them don't? If so then there
must be a difference in how you created the cards, or one of them is
not working.

To see the o/p from node-red when running as a systemd service run
node-red-log

Colin

On 23 February 2018 at 22:43, Rob Jameson <r...@massmosaic.com> wrote:
>
> Hi Everyone,
>
> So first thanks for increasing my knowledge on how this works w/ the Zero W.
> Unfortunately, I'm still having issues.
>
> I have formatted 3 cards w/ fresh installs of raspbian, gone thru setup
> (expand filesystem, static IP, etc), and when I boot 2 of the 3 pi 0w's, I
> am still getting an error w/ starting node-red. I don't think I've done
> anything wrong... just trying to boot node-red on a 0W and the SD card is
> basically stock.
>
> Here's my terminal output below:
>
>
>
> Starting as a systemd service.
> Any ideas?

Rob Jameson

unread,
Feb 26, 2018, 1:25:33 PM2/26/18
to Node-RED
Cheers, thank you for the reply Colin. Actually, I deleted that last post, b/c I realized I confused a pi3 card for a 0W card. All is working correctly w. the cards on the Pi 0w's now.... it's just confusing keeping track of 10 micro SD cards!

Zenofmud

unread,
Feb 26, 2018, 1:50:05 PM2/26/18
to node...@googlegroups.com
I take a permenant marker and label each card: A, B,...Z etc then create a text file with the code and what is on that card

Paul

Colin Law

unread,
Feb 26, 2018, 4:41:24 PM2/26/18
to node...@googlegroups.com
On 26 February 2018 at 18:25, Rob Jameson <r...@massmosaic.com> wrote:
> Cheers, thank you for the reply Colin. Actually, I deleted that last post,
> b/c I realized I confused a pi3 card for a 0W card. All is working correctly
> w. the cards on the Pi 0w's now.... it's just confusing keeping track of 10
> micro SD cards!

You can't delete a post from a mailing list because the post has
already been sent to thousands (?) of members of the group.
+1 for Zenofmud's idea of marking the cards, I do something similar
(but I stick a piece of adhesive address label on to make it easier to
mark them).

Colin
Reply all
Reply to author
Forward
0 new messages