Successful rate on GUI and Docker difference

Yeah very interesting find though.

My successrate on docker actually got higher with the last update. Had 10% before, got 30% now.

and about power consuprion my 5node pc, take 75-80W it is about 16w per node with HDD consuption and HDD cooling.

Thats actually pretty good. My 2 nodes are running on a Dell it maxes at around 35watts.

How to run Success Rate on Windows GUI…?!
I found only for Docker…

For the Windows GUI you need to specify the path to the logs.

Ok.

Or i try it via Linux on Wndows 10 from the marketplace.

You do not need to. You can use a PowerShell version from the link above

ok.
I change the path in to this
if (-not $Path) {
.\successrate.ps1 -Path c:\Programme\Storj\storage node\storagenode.log

this is the path to my logs.

when i run this on PowerShell, PowerShell open und 0,5Sec later it close…
where is my fault?!

param(
$Path
)

if (-not $Path) {
.\successrate.ps1 -Path c:\Programme\Storj\storage node\storagenode.log
} else {
$log = Get-Content $Path
}

You can download the script from the RAW tab on the GitHub and just run

.\successrate.ps1 -Path "c:\Programme\Storj\storage node\storagenode.log"

Without modification any code.

param(
$Path
)

if (-not $Path) {
$log = cmd.exe /c “docker logs storagenode 2>&1”
} else {
$log = Get-Content $Path
}

that is the original path.

but i dont use docker…
this skrip cant find my logs…

Do not modify the script please. Re-download the original version and do not touch anything in it.
Just run it with parameter -Path "C:\Program Files\Storj\Storage Node\storagenode.log"

Or give me result of the command (PowerShell):

sls "log.output" 'C:\Program Files\Storj\Storage Node\config.yaml'

PS C:\WINDOWS\system32> sls “log.output” ‘C:\Program Files\Storj\Storage Node\config.yaml’

C:\Program Files\Storj\Storage Node\config.yaml:83:log.output: winfile:///C:\Program Files\Storj\Storage
Node\storagenode.log

So, you need to:

  1. Download the script from the https://raw.githubusercontent.com/AlexeyALeonov/success_rate/master/successrate.ps1 and save it
  2. Open the PowerShell in the folder where you downloaded it
  3. Run it:
.\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagenode.log"

I Download the Script in th folder Downloads and save it.
Then i go on the script with the mouse, right click and start with powershell…

result Nothing
PS start and close in 0,5sec

if you have discord, i can show you…

Please, do not skip steps.
I do not mention the mouse anywhere in my instruction as you can see.
You must open a PowerShell and execute script from there.

If you want to create a clickable version, then you should do it other way around.
For example, you can create a shortcut for the script in the needed place, then modify that shortcut to run the script with a parameter.
The executable will be powershell.exe, argument - full path to the script, then add -Path "C:\Program Files\Storj\Storage Node\storagenode.log"; pause after the name of the script, so the Target field would looks like:

powershell.exe C:\Users\Phillip\Downloads\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagenode.log"; pause

This shortcut will be clickable

1 Like

OK thx

i just try it how you write it to me at the first time.
this is the result from PS

PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Ausführungsrichtlinie ändern
Die Ausführungsrichtlinie trägt zum Schutz vor nicht vertrauenswürdigen Skripts bei. Wenn Sie die Ausführungsrichtlinie
ändern, sind Sie möglicherweise den im Hilfethema “about_Execution_Policies” unter
“https:/go.microsoft.com/fwlink/?LinkID=135170” beschriebenen Sicherheitsrisiken ausgesetzt. Möchten Sie die
Ausführungsrichtlinie ändern?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist “N”): A
PS C:\WINDOWS\system32> .\successrate.ps1 -Path “C:\Program Files\Storj\Storage Node\storagenode.log”

.\successrate.ps1 : Die Datei “C:\WINDOWS\system32\successrate.ps1” kann nicht geladen werden. Die Datei
“C:\WINDOWS\system32\successrate.ps1” ist nicht digital signiert. Sie können dieses Skript im aktuellen System nicht
ausführen. Weitere Informationen zum Ausführen von Skripts und Festlegen der Ausführungsrichtlinie erhalten Sie unter
“about_Execution_Policies” (https:/go.microsoft.com/fwlink/?LinkID=135170)…
In Zeile:1 Zeichen:1

  • .\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagen …
  •   + CategoryInfo          : Sicherheitsfehler: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess

In your case you need to open a Policy execution more wide:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

You usually do not need to, if you cloned the repo. But with downloads it could happen.

THX it work -
sry for wasting time… ;(

1 Like

THAT WAS THE PROBLE; -> ```
Set-ExecutionPolicy -ExecutionPolicy Unrestricted


Whit this comand it work, maybe update the READ ME :smiley: