Successful rate on GUI and Docker difference

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:

As I write before:

If you would follow the instruction it should work as designed.
I just requested only least rights. The Unrestricted is too wide.

1 Like

========== AUDIT =============
Critically failed: 0
Critical Fail Rate: 0,00%
Recoverable failed: 0
Recoverable Fail Rate: 0,00%
Successful: 56
Success Rate: 100,00%
========== DOWNLOAD ==========
Failed: 0
Fail Rate: 0,00%
Canceled: 2
Cancel Rate: 0,18%
Successful: 1101
Success Rate: 99,82%
========== UPLOAD ============
Rejected: 0
Acceptance Rate: 100,00%
---------- accepted ----------
Failed: 0
Fail Rate: 0,00%
Canceled: 17
Cancel Rate: 0,03%
Successful: 54993
Success Rate: 99,97%
========== REPAIR DOWNLOAD ===
Failed: 0
Fail Rate: 0,00%
Canceled: 0
Cancel Rate: 0,00%
Successful: 0
Success Rate: 0,00%
========== REPAIR UPLOAD =====
Failed: 0
Fail Rate: 0,00%
Canceled: 0
Cancel Rate: 0,00%
Successful: 35000
Success Rate: 100,00%

That the Result auf my Storage after 133h.

Is that good or bad?!

Doesn’t matter for honestly :slight_smile:
Since your storagenode is Online, not suspended and not disqualified - it is working fine.
The only matter - the audit and suspend scores on the web-dashboard.
In the output of the script this is AUDIT-related “metrics”.

This script was made for just to make Operators happy to be able to compare “score” :smiley:
You can post your results there: