@GregorR1, the Node-RED flows are created under /data folder, so that is normally the location where you need to copy your flow file to.
My github repository is currently not copying/deploying any flows - so that is why you can’t find them.
Note that the shared volume node_red_data is also mapped to the /data folder so you can access them also via samba (windows share) thanks to the samba service (see also docker compose file).
Hi @GregorR1,
Do you mean that your device is downloading the application update over and over again? If so, could you grant us support access to the device and let us know the uuid of the device?
Changing the dockerfile back to what it was before doesn’t seem to have made a difference to the constant updating - the new device is still “factory build” and it is repeatedly downloading the target, but not doing anything with it
I’ve tried to have a look at the device, but it’s currently showing as offline. Has the power to the device been disconnected? I do have another question, which is how are you powering the device? What you’re seeing might be related to an unstable power source.
If the device comes back, please let us know, and we’ll investigate what’s happening on-device!
It took approximately 2 minutes for me to actually get a shell into this device, and whilst that usually indicates a very poor network connection, actually typing a command at the command prompt is very responsive. However, any execution of a command is incredibly slow, which also explains why it took so long for a shell prompt. This definitely suggests there’s an issue with SD card access as it tries to execute commands from the media. I know previously in the thread you’d mentioned you’d swapped cards? Have you been able to try an alternative make of card, instead of another of the same type? I think it’s well worth doing so to rule out any incompatibilities we might be seeing here.
Hi @hedss unfortunately I don’t have any other types of SD cards in the office. Could it be something I’ve done in my docker file that’s causing this? I can send you the files over if that would help?
I don’t think there’s anything you could have done in your Dockerfile to cause this. The kernel error is pointing to an issue with the SD card, as does the lag in response from the host OS CLI. I’ve seen another couple of kernel errors pointing to the SD card since initially reporting it to you.
The only other possibility here might be the power source for the Pi4, as I mentioned previously. Is this running off a dedicated PSU, or is it being powered via a laptop USB port, or potentially a hub? I’ve personally seen issues with running a Pi4 from both laptop and hub (purposefully for testing, I might add!).
However, I’d really urge trying with another SD card if possible if you’re able to get your hands on one, as this could also be an issue with the model which we’ve never seen before (it’s extremely uncommon but could be a factor). As Andy mentioned previously, we personally recommend SanDisk Extreme Pro cards, as they’re tested very heavily and have a good wear rating.
Hi @hedss the Pi 4 is being powered by a dedicated 3A power supply so it shouldn’t be an issue. It has run the standard raspbian etc fine. Would it be of any help if I were to add you as a collaborator on the GitHub repository so that you can see what I’m trying to push? It may be that it’s something I have done that has caused this as I’ve been doing most things by trial and error since I’ve never used docker etc before.
If you’d like me to have a look, I’m more than happy to have a quick inspection to make sure it’s nothing you’re doing. My Github username is the same as my forum one (ie. hedss).
I’m still fairly confident it can’t be unless your service is trying to directly access the block device partitions, it shouldn’t have an impact on the SD card. I agree it sounds like the power definitely isn’t an issue here, though!
Thanks for the access. I’ve looked over the project, and I can’t see anything that would suggest what you’re doing would cause this. I’ve also very quickly run it on a Pi4 here to ensure that updates work, which they do with no issues.
I’m afraid this really does point to the SD card either being faulty (or possibly incompatible).
I’ll try a brand new one of the same model and see what happens. Failing that I’ll try and get a Sandisk one for tomorrow.
Also I’ve noticed that I can’t delete any of the devices that I’ve added? Why is this?
Edit: I was typing in the device name rather than the application name