# Promote Node to Main Node

**URL:** <https://forum.storj.io/t/promote-node-to-main-node/27612>\
**Category:** troubleshooting\
**Tags:** windows-gui, multiple-nodes\
**Created:** [August 25, 2024, 3:01pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612 "2024-08-25T15:01:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jonas/32/1139_2.png) [@Jonas](https://forum.storj.io/u/Jonas)\
**Post date:** [August 25, 2024, 3:01pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/1 "2024-08-25T15:01:28Z")

</div>

Hello my Storj Friends,

i am facing the issue that none of my nodes run as “main” node

 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/e/1/e16ad0efc44accb7b148b00b3a0589eb09bfd869.png)

this resulted in my last reinstall and that i was only able to install nodes via Toolbox. The .msi installer to install a first node always failed so I used Toolbox even for first node. I followed Alexejs advice ([Storj V3 Storage Node Setup Installer problem - #19 by Alexey](https://forum.storj.io/t/storj-v3-storage-node-setup-installer-problem/12913/19)) to remove .trash-uses-day-dirs-indicator but still the first node doesn’t run as main.

This results in the situation that my nodes do no update and i always need to reinstall them manually. Since I am in vacation in spain it was a little hazzle when they went offline due to too old version and I had to do it from phone via VPN.

Is there any possibility to change a setting to promote the node to be the main so that it updates automatically?

Thanks in advance and regards from sunny Spain.  
Jonas

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [August 25, 2024, 4:02pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/2 "2024-08-25T16:02:15Z")

</div>

@Vadim can help you out with this 🙂

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 25, 2024, 4:10pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/3 "2024-08-25T16:10:29Z")

</div>

there is not problem with that, main only was made that Update button know where to take exe file, it can be only naturally installed windows node, with storj original updater updater.  
I think in 1-2 weeks i will redesign it. Every node is separate node.

---

<div class="post-metadata">

**Author:** ![Julio](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/julio/32/1132_2.png) [@Julio](https://forum.storj.io/u/Julio)\
**Post date:** [August 25, 2024, 8:37pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/4 "2024-08-25T20:37:29Z")

</div>

You could just put the updater.exe in each node dir, and create your own updater service for them. Or make a batch file to have the .exe update nodes manually.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 25, 2024, 8:55pm UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/5 "2024-08-25T20:55:02Z")

</div>

it will not work like that, it is hardcoded storagenode service name to updater, it will stop service with this name only. to update servises must be stoped.  
I use other solution, but i need to make some kind of installer to it to publish it to people.  
I have my own service that update my nodes. but Visual studio Depricated installers that i used. So i have only old version of this with some problems.

---

<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:** [August 26, 2024, 3:43am UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/6 "2024-08-26T03:43:01Z")

</div>

> [@Jonas](#):
>
> .msi installer to install a first node always failed

You need to check the node’s log to see what was a reason.

---

<div class="post-metadata">

**Author:** ![Julio](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/julio/32/1132_2.png) [@Julio](https://forum.storj.io/u/Julio)\
**Post date:** [August 26, 2024, 8:08am UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/7 "2024-08-26T08:08:26Z")

</div>

Yeah umm… sure, it’ll work like that - it’s just called start and stop service.  
here is simple cmd code:  
“C:\Program Files\Storj\Storage Node\storagenode-updater.exe” run --config-dir “C:\Program Files\Storj3\Storage Node\” --binary-location “C:\Program Files\Storj3\Storage Node\storagenode.exe” --log.output “winfile:///C:\Program Files\Storj3\Storage Node\storagenode-updater.log”  
… just stop service previous… and start service after update.

Vadim, when you’re improving your app next… you should fix the error condition that the node your user intends to update be currently running in order to be updated. It forces them to have to manually copy the file over, because it’s obvious that you can’t replace the file of an already running executable and or service.  
When their node can’t even start to update your code with that prerequisite, because older versions can’t even execute, it prevents them from using your upgrade button.

You may wish to terminate/cancel that command line after it executes and updates your node; else the storagenode-updater will comply with the config.yaml re-try 15 minute default, serving no further purpose it’ll run pointlessly forever. lol.

So just augment the paths above, and put it in a .bat file for convenience in your respective node directories. Or make a master update .bat file for all nodes & paths.

Of course execute the aforementioned with Admin rights, and add a stop service / start respective service(s) as prefix & suffix lines should you wish.

2 1/2 cents

---

<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:** [August 26, 2024, 8:14am UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/8 "2024-08-26T08:14:28Z")

</div>

Not hardcoded, it’s just a default name, see

```auto
PS> storagenode-updater.exe run --help | sls "service"
      --service-name string storage node OS service name (default "storagenode")

```

so actually you definitely can run both services for each node with an own service name.

But I do not see where to specify the name for the storagenode-updater service. Seems that one is hardcoded.

---

<div class="post-metadata">

**Author:** ![Julio](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/julio/32/1132_2.png) [@Julio](https://forum.storj.io/u/Julio)\
**Post date:** [August 26, 2024, 8:16am UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/9 "2024-08-26T08:16:58Z")

</div>

Perfect yeah what Alexey says, just add that to command line above.

^5 Alex 🙂 … errrr umm Alexey!

---

<div class="post-metadata">

**Author:** ![Julio](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/julio/32/1132_2.png) [@Julio](https://forum.storj.io/u/Julio)\
**Post date:** [August 26, 2024, 8:27am UTC](https://forum.storj.io/t/promote-node-to-main-node/27612/10 "2024-08-26T08:27:43Z")

</div>

Indeed…  
For those following along at home…  
“C:\Program Files\Storj\Storage Node\storagenode-updater.exe”  
will work fine if you have managed a regular default install. Plus the updater never updates all that often, or if it does - it doesn’t do anything different, so doesn’t matter. Maybe only check that bridge if it causes a problem in some future update, but as you’re running as a standalone, presumeably updated update - lol… who cares?
