@BrightSilence
That awk command is pretty useful…
was looking into what was causing suspensions.
looks like we might be able to ignore the other one and use this instead… then we don’t have to look for multiple errors, ofc that wouldn’t protect against the node sending wrong data, but it’s a start i guess…
Which would make the command look something like this right?
remember i’m pretty green at this, i managed to misspell grep… lol
while fumbling around to figure out this… from what i can see on my logs i don’t have any of this entry and it relates to timeout of an audit when it passes over 5minutes and the sat gets salty…
it was my out to get around the whole looking for multiple errors in a row, apparently this can kill a node in short order…
might be a bit rough so i’ll be happy to hear better suggestions before i start to dig into testing a variation of this that will actually hit on my logs and thus do a realworld test before using this error i hope to never see…
docker logs -f --tail 20 storagenode | awk '/('context deadline exceeded; piecestore:'/ {system ("docker stop -t 300 storagenode")}'
did a grep on my 1month log on
context deadline exceeded; piecestore:
got no hits, might be other errors tho, but i’m pretty handicapped at all this still xD
did start with deadline, but that hit on satellite timeout when the network connection was down… was hoping to find something a bit simpler… but this log line seems pretty unique, maybe i should check the forums if it’s used somewhere else…
yeah doesn’t seem to appear on the forums either… so lets trust that littleskunk knows what to look for, i just need to know if i wrote the command some what right… lol
tho it’s pretty harmless so i should just test it out…with some more common log hit…
is there a way to add the below part to the docker run parameters?
so that it will start after a stop and start of docker, so it would auto run after a reboot or such.
logs -f --tail 20 storagenode | awk '/('context deadline exceeded; piecestore:'/ {system ("docker stop -t 300 storagenode")}'
if so then it would be a rough patch for the storj documentation recommendations.
well tested it, didn’t work… guess i need to start reading up on just how to do that awk commandline thing… instead of a couple of pathetic copy paste attempts at modifying it…