Hi I have some additional modules that I use.
i2c-bus
ina219
ina219-sync
A couple of times recently these have disappeared and node red has stopped because they are called upon in settings.js
I notice that they have been replaced as hidden files called:
.i2c-bus-eVViQg5K
.ina219-tsDZ2lkp
.ina219-sync-cWMQSGw7
Not sure what you're asking. Tailscale is enabled on my GLinet router. The docker nodered container is standard with node modules and setting.js etc in the data folder.
The first time it happened I just renamed the altered folders back to the original and it worked again. I then made a copy of the data folder and twice since then have just restored that copy. The altered folders looked normal with nothing untoward in the package.json
Is package.json still asking for ina219? I would not have expected that to work when the folder has, apparently, been renamed. Or perhaps it did not work.
Have you looked into the files in the renamed folder to see if they are identical to the original? It is odd though, I cannot see why a hacker would rename the folder. Rather he would hack the contents.
I agree. The renamed folder still references ina219 and did not work until I renamed it to the original again. Very strange and not what a hacker would do I think. Something or someone did however make the change.
Just to recap. Node red failed and complained of something within settings.js.
I tracked it down to:
Those odd names look like the temporary folder names you get when updating a package with npm. Sometimes, npm cannot delete them for reasons I've never managed to track down.
But to me, the implication is that something tried to update the package but failed.
Well, you probably need to work out why npm is failing and fix that. It is likely to be a permissions issue I would guess. But then I don't use Docker that much so not sure what might be happening.