aseegy
January 4, 2023, 8:16am
1
Hello,
a few weeks ago something to my computer happened, I found it that it was restarted but not logged on. Once I have restarted the storj service (manually) it seemed to work fine, but in reality I am noticing that the online percentage on my stats is slowly but continuosly decreasing.
For satellite us.2storj.io :
23/12: 94.28%
04/01: 94/11%
ap1.storj.io :
23/12: 93.96%
04/01: 93.39%
eu1.storj.io :
23/12: 94.89%
04/01: 94.42%
etc.
Is this something I should be worried about or is the network realising my outage of a few weeks back? Lasted a couple of days I guess, I do not know exactly how long the computer was offline.
By looking at the logs I do not see specific errors (BTW the log is now more than 1GB big, can I clean it someway?)
Thanks!
If the score keeps decreasing you will get suspended at some point. Take a look at /api/sno/satellite/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S
and than search for auditHistory
. It will tell you in which timeframe you missed some audits.
Logrotate is your friend.
1 Like
Alexey
January 4, 2023, 9:52am
3
You can use this script to get a report when your node were not available to the satellites:
Would you mind to provide dashboard from the uptimerobot?
And also, please, provide result of the command:
PowerShell
foreach ($item in ((Invoke-WebRequest http://localhost:14002/api/sno).Content | ConvertFrom-Json).satellites.id) {
((Invoke-WebRequest http://localhost:14002/api/sno/satellite/$item).Content | ConvertFrom-Json).auditHistory.windows |
Where-Object{$_.totalCount -ne $_.onlineCount} | ForEach-Object{Write-Host $item; $_ | Format-Table -AutoSize}
}
bash
for item in…
2 Likes
aseegy
January 4, 2023, 1:01pm
4
Here you go:
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T00:00:00Z 10 0
12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T12:00:00Z 10 3
12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-21T12:00:00Z 11 8
12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T00:00:00Z 14 0
12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T12:00:00Z 13 7
12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo
windowStart totalCount onlineCount ----------- ---------- ----------- 2022-12-27T12:00:00Z 20 18
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T00:00:00Z 14 0
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T12:00:00Z 13 7
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-21T12:00:00Z 8 6
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T00:00:00Z 5 0
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T12:00:00Z 6 0
1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE
windowStart totalCount onlineCount ----------- ---------- ----------- 2022-12-27T12:00:00Z 9 8
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount ----------- ---------- ----------- 2022-12-18T00:00:00Z 7 0
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T12:00:00Z 9 2
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-21T12:00:00Z 17 12
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T00:00:00Z 6 0
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount ----------- ---------- ----------- 2022-12-22T12:00:00Z 7 4
121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-27T12:00:00Z 5 4
12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T00:00:00Z 1 0
12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T00:00:00Z 5 0
12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T12:00:00Z 6 2
12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T00:00:00Z 5 0
12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T12:00:00Z 5 3
12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T00:00:00Z 3 0
12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-18T12:00:00Z 3 1
12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-21T12:00:00Z 4 1
12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T00:00:00Z 3 0
12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB
windowStart totalCount onlineCount
----------- ---------- -----------
2022-12-22T12:00:00Z 4 2
Is it correct that there are not entries regarding January? I see that the most recent audit happened on the 27/12 and had a quite good result 4 online out of 5 (should have been 5 though).
The script will hide the 100% uptime windows and only print out any time window with downtime.
4/5 translates into 80% uptime. So events like these will decrease your uptime (average over the last 30 days).
2 Likes
aseegy
January 13, 2023, 9:50am
6
Thanks for the clarification! Very helpful indeed such script.
Now I have had some more inconvenients (windows updates) which restarted the computer and apparently the service did not start automatically.
I have checked and every time that I restart the computer I have to manually restart the service as well (in the past this was not the case). It is important to correct this otherwise I will keep loosing reputation.
Thanks.
Stob
January 13, 2023, 11:13am
7
Check in services.msc that both Storagenode services are set to automatic:
If both are set to ‘Automatic’ then you should check the storagenode.log file for the reason why the node doesn’t start on boot.
Alexey
January 14, 2023, 4:22am
8
Usually this happened if some required system services did not start before the node start, i.e. slow boot.
The fix:
Please, show result of the PowerShell command:
get-service storagenode | select -Property RequiredServices
I recommend to setup the dependency and delayed auto start for the storagenode service (from elevated PowerShell or cmd.exe):
sc.exe config storagenode depend= dnscache start= delayed-auto
aseegy
January 14, 2023, 4:54pm
9
Hello!
Here the result of the first command:
PS C:\> get-service storagenode | select -Property RequiredServices
RequiredServices
----------------
{LanmanServer, Dnscache}
I have also performed the second command as per your suggestion:
PS C:\> sc.exe config storagenode depend= dnscache start= delayed-auto
[SC] ChangeServiceConfig SUCCESS
I will now restart the computer and check whether Storj V3 results online even without logging in. I will post results here.
aseegy
January 14, 2023, 5:13pm
10
Yes! It worked just fine.
I have restarted the computer:
UpTime Robot did not show any alarm;
I logged in Windows checked the services and Storj was already running, this means that it started automatically;
Thanks a lot, I am sure that with this correction I will be able to offer a better service.
1 Like