Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storagenode-updater ignores version.check-interval parameter #3752

Open
MaxMaximus opened this issue Jan 19, 2020 · 6 comments
Open

Storagenode-updater ignores version.check-interval parameter #3752

MaxMaximus opened this issue Jan 19, 2020 · 6 comments
Labels
Enhancement New feature or request SNO Storage Node

Comments

@MaxMaximus
Copy link

MaxMaximus commented Jan 19, 2020

Hello.

I wanted to reduce frequency of checks for a new version.
I found corresponding parameter in the config.yaml:

# Interval to check the version
# version.check-interval: 15m0s

I removed # and replaced default value "15m0s" by "3h0m0s", saved config.yaml, restarted Storagenode-updater service.
But it still does check for a new versions each 15 min (default). Also looks like Storagenode-updater do each ver check twice? Or at least duplicate logs entries about it:

2020-01-19T02:33:49.133+0300	INFO	Stop/Shutdown request received.
2020-01-19T02:33:51.472+0300	INFO	Configuration loaded from: C:\Program Files\Storj\Storage Node\config.yaml
2020-01-19T02:33:51.495+0300	INFO	Invalid configuration file key: storage.allocated-disk-space
2020-01-19T02:33:51.495+0300	INFO	Invalid configuration file key: storage.allocated-bandwidth
2020-01-19T02:33:51.495+0300	INFO	Invalid configuration file key: contact.external-address
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: server.debug-log-traffic
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: server.private-address
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: operator.email
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: server.address
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: storage.path
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file key: operator.wallet
2020-01-19T02:33:51.496+0300	INFO	Invalid configuration file value for key: log.caller
2020-01-19T02:33:51.655+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T02:33:52.292+0300	INFO	storagenode version is up to date
2020-01-19T02:33:52.292+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T02:33:52.437+0300	INFO	storagenode-updater version is up to date
2020-01-19T02:48:51.646+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T02:48:52.306+0300	INFO	storagenode version is up to date
2020-01-19T02:48:52.306+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T02:48:52.458+0300	INFO	storagenode-updater version is up to date
2020-01-19T03:03:51.641+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T03:03:52.223+0300	INFO	storagenode version is up to date
2020-01-19T03:03:52.223+0300	INFO	Downloading versions from https://version.storj.io
2020-01-19T03:03:52.368+0300	INFO	storagenode-updater version is up to date
.................

P.S.
I currently use latest windows GUI version v. 0.29.3.

@egonelbre
Copy link
Member

egonelbre commented Jan 20, 2020

storagenode-updater and storagnode have two different flags. The messages you are seeing come from the storagenode-updater not storagenode. storagenode-updater uses flag --check-interval.

@MaxMaximus
Copy link
Author

Are there two separate udaters running?
"storagenode-updater" dedicated to version monitoring and SW updates and buit-in updater in the main "storagenode" service?

@egonelbre
Copy link
Member

@MaxMaximus not really, they serve different purposes, however I agree that they could be improved.

storagenode-updater is dedicated to seeing whether there are updates available and automatically updates storagenode-updater itself and storagenode.

storagenode version check is used in the dashboard to show whether there are new versions available. It doesn't do any updating on its own.

Currently we still need both because not all OS-s have storagenode-updater and we need to signal the operators somehow that they should update.

@MaxMaximus
Copy link
Author

OK, make sense then.
I have tried --check-interval option and it works fine for storagenode-updater both as a command line parameter and from config.yaml.

But wouldn't it be better to use same parameter for both parts? They set actually same thing - how often to check server for a new ver of client.
Or you plan to remove ver check code from storagenode (after addition of storagenode-update in all packages) and corresponding config parameter later?

@egonelbre
Copy link
Member

Sorry for not noticing the question later. Yes, probably in a future date the version-checker interval won't be needed.

@ifraixedes ifraixedes added the Enhancement New feature or request label Jan 31, 2020
@kaloyan-raev kaloyan-raev added the SNO Storage Node label Aug 13, 2021
@kaloyan-raev kaloyan-raev added this to To do in Storage Node Aug 13, 2021
@profclems profclems moved this from To do to Backlog 🗒 in Storage Node Sep 20, 2021
@storjrobot
Copy link

This issue has been mentioned on Storj Community Forum (official). There might be relevant details there:

https://forum.storj.io/t/updater-interval/19163/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request SNO Storage Node
Projects
Status: No status
Storage Node
Backlog 🗒
Development

No branches or pull requests

5 participants