# Can\`t find the successrate.sh file

**URL:** <https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889>\
**Category:** troubleshooting\
**Tags:** docker\
**Created:** [February 25, 2020, 6:35pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889 "2020-02-25T18:35:21Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frieseba](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/frieseba/32/6488_2.png) [@Frieseba](https://forum.storj.io/u/Frieseba)\
**Post date:** [February 25, 2020, 6:35pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/1 "2020-02-25T18:35:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Nymjey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nymjey/32/60_2.png) [@Nymjey](https://forum.storj.io/u/Nymjey)\
**Post date:** [February 25, 2020, 6:43pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/2 "2020-02-25T18:43:11Z")

</div>

👇 Does this help? 👇

> **[GitHub - ReneSmeekes/storj\_success\_rate](https://github.com/ReneSmeekes/storj_success_rate)**
>
> Contribute to ReneSmeekes/storj\_success\_rate development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Frieseba](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/frieseba/32/6488_2.png) [@Frieseba](https://forum.storj.io/u/Frieseba)\
**Post date:** [February 25, 2020, 7:16pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/3 "2020-02-25T19:16:30Z")

</div>

No, dont see how this could help.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [February 25, 2020, 7:17pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/4 "2020-02-25T19:17:13Z")

</div>

you can download it from this github

---

<div class="post-metadata">

**Author:** ![Frieseba](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/frieseba/32/6488_2.png) [@Frieseba](https://forum.storj.io/u/Frieseba)\
**Post date:** [February 25, 2020, 7:22pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/5 "2020-02-25T19:22:18Z")

</div>

`Thanks…I was blind 🙂

---

<div class="post-metadata">

**Author:** ![xgDkAbzkp9yi](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/xgdkabzkp9yi/32/7831_2.png) [@xgDkAbzkp9yi](https://forum.storj.io/u/xgDkAbzkp9yi)\
**Post date:** [November 5, 2024, 1:56pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/6 "2024-11-05T13:56:08Z")

</div>

Thanks for keeping this topic. I was able to find it and use the script in 2024.

---

<div class="post-metadata">

**Author:** ![EasyRhino](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/easyrhino/32/1133_2.png) [@EasyRhino](https://forum.storj.io/u/EasyRhino)\
**Post date:** [November 6, 2024, 4:45pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/7 "2024-11-06T16:45:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mtone](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mtone/32/1123_2.png) [@mtone](https://forum.storj.io/u/mtone)\
**Post date:** [November 6, 2024, 8:08pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/8 "2024-11-06T20:08:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 7, 2024, 4:26am UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/9 "2024-11-07T04:26:51Z")

</div>

Yes. If you run your docker commands with `sudo`, then you need to run this script with `sudo` too.

---

<div class="post-metadata">

**Author:** ![EasyRhino](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/easyrhino/32/1133_2.png) [@EasyRhino](https://forum.storj.io/u/EasyRhino)\
**Post date:** [November 7, 2024, 5:47pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/10 "2024-11-07T17:47:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 8, 2024, 4:50am UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/11 "2024-11-08T04:50:59Z")

</div>

This is weird. I checked it on my nodes, this script still working as expected.  
Please try this way:

```auto
sudo bash -c "./successrate.sh mynodename"

```

---

<div class="post-metadata">

**Author:** ![EasyRhino](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/easyrhino/32/1133_2.png) [@EasyRhino](https://forum.storj.io/u/EasyRhino)\
**Post date:** [November 8, 2024, 5:21pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/12 "2024-11-08T17:21:57Z")

</div>

nope same problem just spits out 0% everything.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 9, 2024, 4:10am UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/13 "2024-11-09T04:10:03Z")

</div>

It should work. However, you may also add your user to the `docker` group and re-login (or restart the shell):

```auto
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.

---

<div class="post-metadata">

**Author:** ![EasyRhino](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/easyrhino/32/1133_2.png) [@EasyRhino](https://forum.storj.io/u/EasyRhino)\
**Post date:** [November 12, 2024, 4:46pm UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/14 "2024-11-12T16:46:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nitrobass24](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nitrobass24/32/1129_2.png) [@nitrobass24](https://forum.storj.io/u/nitrobass24)\
**Post date:** [January 12, 2025, 3:28am UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/15 "2025-01-12T03:28:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 12, 2025, 9:18am UTC](https://forum.storj.io/t/can-t-find-the-successrate-sh-file/4889/16 "2025-01-12T09:18:53Z")

</div>

You need either to clone the repo or to download a `raw` version.
