Node doesn't start

I have 2 nodes, configured through the Toolbox. By unknown reason the mainnode stopped and cannot start. The second node running Ok.

I discovered that by some reason storagenode.exe file disappeared from Program files folder, so I copied it form the second node folder, but that doesn’t help.

Trying to start the node through CMD shows me that wallet is not set (thogh it’s set in config file):

C:\WINDOWS\system32>“C:\Program Files\Storj\Storage Node\storagenode.exe” run --config-dir “C:\Program File\Storj\Storage Node\” --identity-dir “C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode\” --log.output=stderr
2023-12-08T16:06:30+02:00 INFO Anonymized tracing enabled {“process”: “storagenode”}
2023-12-08T16:06:30+02:00 WARN Operator email address isn’t specified. {“process”: “storagenode”}
2023-12-08T16:06:30+02:00 ERROR Invalid configuration. {“process”: “storagenode”, “error”: “operator wallet address isn’t specified”}
Error: operator wallet address isn’t specified

1 Like

Well, it sounds like it can’t see the config file. Are you sure it is still there? Maybe try editing and saving it and see if it allows for that. Given that the first exe just disappeared, it sounds like something changed unexpectedly.

1 Like

Yes,
config file is in its place and I can save it.

Maybe need to reinstall the node?

1 Like

Worth a shot just keep your identity info backed up so it doesn’t get overwritten.

Cannot reinstall. maybe because I have the second node installed?

When I start the installer it allows only to repair the node, no install button. But even if I press Repair, it stucks at the process when trying to start the node.

What I did before installing: removed the node from services, removed the Storj folder from Program Files.

PLease help to resolve.

please try to add another backslash at the end and make sure that you uses straight quotes, not curly ones, i.e.

--config-dir "C:\Program File\Storj\Storage Node\\" --identity-dir "C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode\"

However, it’s better to check logs, when the installer cannot start the service.

Now it tells, that identity is not there, though it’s there… Where to look for logs when node cannot start?

C:\WINDOWS\system32>“C:\Program Files\Storj\Storage Node\storagenode.exe” run --config-dir “C:\Program File\Storj\Storage Node\” --identity-dir “C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode" --log.output=stderr
2023-12-09T07:56:29+02:00 INFO Anonymized tracing enabled {“process”: “storagenode”}
2023-12-09T07:56:29+02:00 ERROR Failed to load identity. {“process”: “storagenode”, “error”: “file or directory not found: open C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode" --log.output=stderr\identity.cert: The filename, directory name, or volume label syntax is incorrect.”, “errorVerbose”: “file or directory not found: open C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode" --log.output=stderr\identity.cert: The filename, directory name, or volume label syntax is incorrect.\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdRun:51\n\tmain.newRunCmd.func1:32\n\tstorj.io/private/process.cleanup.func1.4:402\n\tstorj.io/private/process.cleanup.func1:420\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomOptions:113\n\tmain.main:30\n\truntime.main:267”}
Error: Failed to load identity: file or directory not found: open C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode” --log.output=stderr\identity.cert: The filename, directory name, or volume label syntax is incorrect.
storj.io/common/identity.Config.Load:326
main.cmdRun:51
main.newRunCmd.func1:32
storj.io/private/process.cleanup.func1.4:402
storj.io/private/process.cleanup.func1:420
github.com/spf13/cobra.(*Command).execute:852
github.com/spf13/cobra.(*Command).ExecuteC:960
github.com/spf13/cobra.(*Command).Execute:897
storj.io/private/process.ExecWithCustomOptions:113
main.main:30
runtime.main:267

Then please try the same trick - add a double backslash at the end of the path to the identity folder.

By default it’s in the installation directory, "%ProgramFiles%\Storj\Storage Node\storagenode.log"

I would recommend to use a PowerShell instead of CMD to see it, i.e.

Get-Content "$env:ProgramFiles\Storj\Storage Node\storagenode.log" -Tail 20 -Wait

It seems that log doesn’t show the problem. As I wrote before, the storagenode.exe disappeared form the program files, so the node just stopped without saving any faults to log file.

PS C:\Users\Office 1> Get-Content “E:\log\storagenode_3.log” -Tail 20 -Wait
2023-12-08T10:08:51+02:00 INFO Event collection enabled {“instance ID”: “1A7RfyAPHUPEiV62GwRNw5wsSVopfaZtcT7kG1ByeBqCczkNJJ”}
2023-12-08T10:08:51+02:00 INFO db.migration Database Version {“version”: 54}
2023-12-08T10:08:51+02:00 DEBUG db Database version is up to date {“version”: 54}
2023-12-08T10:08:52+02:00 DEBUG trust Fetched URLs from source; updating cache {“source”: “https://www.storj.io/dcs-satellites”, “count”: 4}
2023-12-08T10:08:52+02:00 DEBUG trust Satellite is trusted {“id”: “12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S”}
2023-12-08T10:08:52+02:00 DEBUG trust Satellite is trusted {“id”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”}
2023-12-08T10:08:52+02:00 DEBUG trust Satellite is trusted {“id”: “121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6”}
2023-12-08T10:08:52+02:00 DEBUG trust Satellite is trusted {“id”: “1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE”}
2023-12-08T10:08:52+02:00 INFO preflight:localtime start checking local system clock with trusted satellites’ system clock.
2023-12-08T10:08:55+02:00 INFO preflight:localtime local system clock is in sync with trusted satellites’ system clock.
2023-12-08T10:08:55+02:00 DEBUG servers started {“items”: [“debug”, “server”]}
2023-12-08T10:08:55+02:00 INFO Node 1A7RfyAPHUPEiV62GwRNw5wsSVopfaZtcT7kG1ByeBqCczkNJJ started
2023-12-08T10:08:55+02:00 INFO Public server started on [::]:28967
2023-12-08T10:08:55+02:00 INFO Private server started on 127.0.0.1:7778
2023-12-08T10:08:55+02:00 INFO bandwidth Performing bandwidth usage rollups
2023-12-08T10:08:55+02:00 INFO trust Scheduling next refresh {“after”: “4h38m7.152900631s”}
2023-12-08T10:08:55+02:00 DEBUG pieces:trash starting to empty trash
2023-12-08T10:08:55+02:00 INFO pieces:trash emptying trash started {“Satellite ID”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”}
2023-12-08T10:08:55+02:00 INFO piecestore:cache Startup piece scan omitted by configuration
2023-12-08T10:08:55+02:00 DEBUG services started {“items”: [“version”, “trust”, “contact:chore”, “PieceDeleter”, “pieces:trash”, “piecestore:cache”, “piecestore:monitor”, “retain”, “orders”, “nodestats:cache”, “console:endpoint”, “gracefulexit:blobscleaner”, “gracefulexit:chore”, “collector”, “bandwidth”]}

And again the same:

C:\WINDOWS\system32>“C:\Program Files\Storj\Storage Node\storagenode.exe” run --config-dir “C:\Program File\Storj\Storage Node\” --identity-dir “C:\Users\Office 1\AppData\Roaming\Storj\Identity\storagenode\” --log.output=stderr
2023-12-09T10:00:28+02:00 INFO Anonymized tracing enabled {“process”: “storagenode”}
2023-12-09T10:00:28+02:00 WARN Operator email address isn’t specified. {“process”: “storagenode”}
2023-12-09T10:00:28+02:00 ERROR Invalid configuration. {“process”: “storagenode”, “error”: “operator wallet address isn’t specified”}
Error: operator wallet address isn’t specified

1 Like

Seems it’s related to the latest Windows update. They removed the services. You need to re-install the storagenode package.
I would recommend just uninstall it, remove the %ProgramFiles%\Storj folder and install it back.
Make sure, that your identity folder is backed up, or even better - copied/moved to the data location.

1 Like

OK,
but I have 2 nodes running on same PC. Do I need to reinstall both nodes?

1 Like

Well, I completely stuck.

I removed both nodes and tried to install the new one, but the process ends with the error:

fault

UPD.
When the installation stops on the starting services the erorr comes out:

Product: Storj V3 Storage Node – Error 1920. Service ‘Storj V3 Storage Node’ (storagenode) failed to start. Verify that you have sufficient privileges to start system services.

1 Like

You need to remove the "%ProgramFiles%\Storj" folder before install, it cannot install the node, if that folder is exist. This is done for safety reasons to prevent accidental destruction of a running node.
So, when you remove this folder you likely know what are you doing.

The exact reason of the not starting service you can see in your logs.

I removed that folder, but it doesn’t help.
It’s strange that when I start new installation it shows be update button, not install button:

storj

It looks like windows prevents starting the storagenode service. What could be the reason for that?

Windows log says: The Storj V3 Storage Node service failed to start due to the following error:
The system cannot find the file specified.

This is only mean, that you didn’t uninstall the service. You need to uninstall the service (to clear a registry) and need to remove the installation folder (to remove a safety check), then - install.

You are right. Had to uninstall it in the Programm and apps. it’s never mentioned here on this forum site, instead you advise to delete the Storj folder form Programm Files.

Now I was albe to install and make it running the main node. Now need to add the second node.

1 Like

I got the following error on the second node:

2023-12-10T12:59:16+02:00 ERROR trust Failed to fetch URLs from source {“source”: “https://www.storj.io/dcs-satellites”, “error”: “HTTP source: Get "https://www.storj.io/dcs-satellites\”: write tcp 192.168.8.248:53203->34.120.119.150:443: wsasend: An established connection was aborted by the software in your host machine.“, “errorVerbose”: “HTTP source: Get "https://www.storj.io/dcs-satellites\”: write tcp 192.168.8.248:53203->34.120.119.150:443: wsasend: An established connection was aborted by the software in your host machine.\n\tstorj.io/storj/storagenode/trust.(*HTTPSource).FetchEntries:68\n\tstorj.io/storj/storagenode/trust.(*List).fetchEntries:90\n\tstorj.io/storj/storagenode/trust.(*List).FetchURLs:49\n\tstorj.io/storj/storagenode/trust.(*Pool).fetchURLs:286\n\tstorj.io/storj/storagenode/trust.(*Pool).Refresh:191\n\tstorj.io/storj/storagenode.(*Peer).Run:904\n\tmain.cmdRun:120\n\tmain.newRunCmd.func1:32\n\tstorj.io/private/process.cleanup.func1.4:402\n\tstorj.io/private/process.cleanup.func1:420\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomOptions:113\n\tstorj.io/private/process.ExecWithCustomConfigAndLogger:78\n\tstorj.io/private/process.ExecWithCustomConfig:73\n\tstorj.io/private/process.Exec:63\n\tmain.(*service).Execute.func1:77\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:75”}
2023-12-10T12:59:17+02:00 FATAL Unrecoverable error {“error”: “trust: failed to fetch from source "https://www.storj.io/dcs-satellites\”: HTTP source: Get "https://www.storj.io/dcs-satellites\“: write tcp 192.168.8.248:53203->34.120.119.150:443: wsasend: An established connection was aborted by the software in your host machine.”, “errorVerbose”: “trust: failed to fetch from source "https://www.storj.io/dcs-satellites\”: HTTP source: Get "https://www.storj.io/dcs-satellites\“: write tcp 192.168.8.248:53203->34.120.119.150:443: wsasend: An established connection was aborted by the software in your host machine.\n\tstorj.io/storj/storagenode/trust.(*List).fetchEntries:96\n\tstorj.io/storj/storagenode/trust.(*List).FetchURLs:49\n\tstorj.io/storj/storagenode/trust.(*Pool).fetchURLs:286\n\tstorj.io/storj/storagenode/trust.(*Pool).Refresh:191\n\tstorj.io/storj/storagenode.(*Peer).Run:904\n\tmain.cmdRun:120\n\tmain.newRunCmd.func1:32\n\tstorj.io/private/process.cleanup.func1.4:402\n\tstorj.io/private/process.cleanup.func1:420\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomOptions:113\n\tstorj.io/private/process.ExecWithCustomConfigAndLogger:78\n\tstorj.io/private/process.ExecWithCustomConfig:73\n\tstorj.io/private/process.Exec:63\n\tmain.(*service).Execute.func1:77\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:75”}

For the next node the official suggestion is to use docker. Unofficial - you can use Win GUI Storj Node Toolbox.
See also

You need to allow the connection to this address in your blocking software (firewall, antivirus, whatever).

This usualy happens when antivirus programs detect unusual behavior of services/.exe’s.
Today My norton security online blocked an stream from storagenode.exe on the port assinged, claiming it behaves like an crypto miner with the onlinetraffic and asked to use the power eraser. (im sure it would have removed the storagenode.exe)
If i hadn’t defined exeptions maybe it would automaticaly remove it.

2 Likes

You are right, that was my Antivirus, which deleted storagenode.exe.
Now I added it to exceptions.

1 Like