# Flows not importing correctly between machines

**URL:** https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336
**Category:** General
**Created:** [9 September 2019 23:28 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336 "2019-09-09T23:28:02Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [9 September 2019 23:28 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/1 "2019-09-09T23:28:02Z")

</div>

(Also partly `DASHBOARD` as well, but....)

As you may have seen I have been working on a dashboard recently for "machine health".

I got the layout nice and was happy.

I exported it and then imported it on another machine.  
Ok, one was a RPI 2 and the new one is a RPz.

The screens are different.  
Why? How?

I'm looking into it, but just to _put it out there_.

Good: (Original machine)

 ![Screenshot%20from%202019-09-10%2009-23-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/517d7948ab6b0f9d4e1341f5b749065a0d5a05b9.png)

Bad: (New machine)

 ![Screenshot%20from%202019-09-10%2009-23-03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/dce6bef8adf79bf22c74b56e35fff910c724c253.png)

Here is what I have found so far:

 ![Screenshot%20from%202019-09-10%2009-24-21](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6fb38f43277c3df426d4dd7d598856f8f7ff0c9f.png)

 ![Screenshot%20from%202019-09-10%2009-24-31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/ed1ab846b7a3e68854f4f07ed9568ab619e1bf9b.png)

Is this a problem/bug?  
No `spacer` on the second one.

This is done by:

```auto
export - to clipboard - whole flow
import - from clipboard

```

in the menu

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [10 September 2019 01:35 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/2 "2019-09-10T01:35:55Z")

</div>

Same versions of everything ?? i.e. Dashboard and NR ?

With all your recent dramas it is a fair chance their are some differences

Also i assume (but would like to confim) - the client where the browser is running is the same machine each time

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 01:44 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/3 "2019-09-10T01:44:07Z")

</div>

(Weird, I didn't get a notification of your reply)

Source machine specs:  
Dashboard: 2.15.5  
NR: 0.20.5  
Machine:

```auto
pi@BedPi:~ $ sysinfo
Raspberry Pi 2 Model B Rev 1.1

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Raspberry Pi reference 2017-09-07
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 496e41575eeb9fa13f394ffb407b7bc1d00b21c2, stage5
pi@BedPi:~ $ 

```

Destination:  
Dashboard: 2.16.2  
NR: 0.20.5  
Machine:

```auto
pi@TelePi:~ $ sysinfo
Raspberry Pi Zero W Rev 1.1

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Raspberry Pi reference 2017-09-07
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 496e41575eeb9fa13f394ffb407b7bc1d00b21c2, stage5
pi@TelePi:~ $ 

```

The destination is newer/later than the source.

The last bit:  
Yes, I am viewing both remote machines from the one machine.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [10 September 2019 02:34 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/4 "2019-09-10T02:34:38Z")

</div>

Corect me if i am wrong - wasn't 2.16 of the Dashboard where they introduced the new visual placement mode (presumably as a long term replacement for spacers) - could this have some effect ?

I think it would be worthwhile duplicating the SD card (as a backup) and then upgrading the Dashboard on the donor machine

Craig

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 02:40 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/5 "2019-09-10T02:40:19Z")

</div>

Well, ok. I'll indulge you on that idea of the versions.

However, if the source is 2.15.5 has a `spacer` in its layout and I import it to 2.16.2 which is later on.

Shouldn't it work? (Backwards compatible)

It isn't that I am taking a dashboard from 2.16.2 and importing it to 2.15.5.  
Which I would understand if the new dashboard threw a _hissy fit_.

So why can't 2.16.2 understand a 2.15.5 one?

I don't mind updating. But it seems weird.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [10 September 2019 02:42 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/6 "2019-09-10T02:42:03Z")

</div>

I am not saying that is the issue - but it is an obvious point of difference between the two machines that directly impacts the Dashboard (presumably you have checked that the nodes being used are the same versions)

As an easy to address test, duplicaitng the SD card and trying an update of the dashboard would seem to me to be the quickest way to isolate this from the variables

Craig

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 02:56 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/7 "2019-09-10T02:56:09Z")

</div>

I updated the `dashboard` on the source machine.

Both 2.16.2

Both machines NR 0.25.0

For the sake of the exercise I renamed the ORIGINAL flow `Machine_Health_x` and exported it to the clipboard, and renamed it back to normal.

On the destination machine (which is now updated. ssh'ed to it and `node-red-stop` `node-red-start`. I prefer that to `node-red-restart` only that I see things happening better.)

Imported the flow.

SAME.

I was going to export the `spacer` but obviously that's never going to be done.

Standby for another test scenario shortly.

Pics to show:  
No comments this time.

 ![Screenshot%20from%202019-09-10%2012-53-04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/bdd5cc6c41b269a8208ad9b1ca14932f845470a3.png) ![Screenshot%20from%202019-09-10%2012-53-08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/74e7ed3c64726493066df127ca07fc17fcd78dd7.jpeg) ![Screenshot%20from%202019-09-10%2012-53-11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/60e7af8b222386f9691c896516a017cf9d369c58.png) ![Screenshot%20from%202019-09-10%2012-53-29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4749da8f7eb3f9b864ef0f3ce363a534b0a0e940.png) ![Screenshot%20from%202019-09-10%2012-53-38](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3c740d7344c44271670c9f7bfdf5265696e32a53.png)

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 03:05 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/8 "2019-09-10T03:05:46Z")

</div>

For another test I made a whole new flow.

See pics.

 ![Screenshot%20from%202019-09-10%2012-59-59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/41fd306d8b12901c7be82788bd6d4c7ced6a4e09.png) ![Screenshot%20from%202019-09-10%2013-00-04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f0df3b5fc194e666f59069659934fd2b8710a1bd.png)

Not rocket science.

See the space in the picture.

Now when I import it to the other machine

![Screenshot%20from%202019-09-10%2013-00-40](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/cf5ab4120f5fb7987930d24fc990dee720362ffd.png)

This is the clipboard

```auto
[{"id":"7df28960.69c3f","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"7f04e85f.dc9a5","type":"comment","z":"7df28960.69c3f","name":"TEST FLOW","info":"","x":260,"y":80,"wires":[]},{"id":"eb42e04.dd725a","type":"ui_button","z":"7df28960.69c3f","name":"","group":"6d1158d6.a6ee18","order":1,"width":"3","height":"1","passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"HELLO","payloadType":"str","topic":"","x":170,"y":190,"wires":[["3bc6e6fa.99a0ba"]]},{"id":"3bc6e6fa.99a0ba","type":"ui_text","z":"7df28960.69c3f","group":"6d1158d6.a6ee18","order":3,"width":"3","height":"1","name":"","label":"text","format":"{{msg.payload}}","layout":"row-spread","x":340,"y":190,"wires":[]},{"id":"6d1158d6.a6ee18","type":"ui_group","z":"","name":"Group 1","tab":"a2899bec.f8999","order":1,"disp":true,"width":"12","collapse":false},{"id":"a2899bec.f8999","type":"ui_tab","z":"","name":"TEST","icon":"dashboard","order":6,"disabled":false,"hidden":false}]

```

The spacer isn't there - to the best of my knowledge.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [10 September 2019 04:05 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/9 "2019-09-10T04:05:23Z")

</div>

Dumb question - have you tried to flush your browsers cache ?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 04:15 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/10 "2019-09-10T04:15:55Z")

</div>

Good question. I've fallen for that before.  
And points for checking.

Sorry, I'm not trying to be difficult. Flushing the cache is a good suggestion. But is/would PRIVATE BROWSING be just as good?

The RPI's are password locked for editing and as they are my machines, I don't have the passwords handy. (Don't go there please.)

I opened a PRIVATE window on my NUC.  
Loaded NR edit and imported the flow to the NUC's NR.  
No `spacer` node listed.

 ![Screenshot%20from%202019-09-10%2014-12-51](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5a24499db1b5b9c00a21f3f0aa66be7813847485.png)

Out of interest, do you get the `spacer` if you import the flow?

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [10 September 2019 05:22 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/11 "2019-09-10T05:22:13Z")

</div>

I tried the import, no spacer

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 September 2019 05:26 UTC](https://discourse.nodered.org/t/flows-not-importing-correctly-between-machines/15336/12 "2019-09-10T05:26:47Z")

</div>

Thank you! @krambriw  
It isn't me going mad.
