I have a somewhat stupid problem: I am searching in vain for the successrate. sh on my Raspberry pi. I also have a node running on a synology and was able to find the file without any problems. config. yaml, revocations. db, trust-cache. json etc I can find all of them, just not the success rate. Where else could I look for the Raspberry?
Does this help?
No, dont see how this could help.
you can download it from this github
`Thanks…I was blind
Thanks for keeping this topic. I was able to find it and use the script in 2024.
this inspired me to try this for the first time but I just get all 0’s when I run successrate.sh, (i’m specifying the name of the docker container). Any obvious thing I need to troubleshoot?
In my docker setup I specify a log path with --mount type=bind,source="/path/storagenode/logs",destination=/app/config/logs \
then it’s easy to run eg ./successrate.sh /path/storagenode/logs/node.log
.
The log level must also be info - warning/error levels won’t log sufficient details to calculate stats.
Yes. If you run your docker commands with sudo
, then you need to run this script with sudo
too.
ah, I noticed the script didn’t work for my nodes that are not named “storagenode”. when I tried to do something like:
sudo ./successrate.sh mynodename
it wouldn’t work.
However if I modified the .sh script so that the default was “mynodename” then it produces output (and takes forever on a node that’s been up for hundreds of hours!)
I don’t know bash scripting for how to fix the prompt so it really works though.
This is weird. I checked it on my nodes, this script still working as expected.
Please try this way:
sudo bash -c "./successrate.sh mynodename"
nope same problem just spits out 0% everything.
It should work. However, you may also add your user to the docker
group and re-login (or restart the shell):
sudo usermod $(id -u) -aG docker
After that docker should be executed without needing to use sudo
. This would allow you to run the script without sudo
too.
Please also make sure that there is no file named mynodename
in the current folder.
lol still nope.
It’s okay, apparently others have not had this problem, and I was able to get results by modifying the hardcode default node name in the script.
If others were having the problem I’d suspect a script problem, but it sounds like it’s just a “me” problem.
I can’t get the file to run correctly on my system.
stephen@truenas:~$ ./successrate.sh
./successrate.sh: line 7: syntax error near unexpected token newline' ./successrate.sh: line 7:
’
Edit: Im an idiot and downloaded the webpage and not the script.
You need either to clone the repo or to download a raw
version.