FreeBSD (FreeNas, TrueNas) missing guide

Thanks for the answer and the binary.
It seems promising, as predicted it seems the stop as the v1.43.1 doesn’t have the updater available.

[storj@StorjJail ~]$ ./storagenode-updater run --identity-dir /mnt/Storj/identity/storagenode --binary-location /opt/storagenode/bin/storagenode --service-name storagenode
2021-11-28T05:59:32.793-0800    INFO    Invalid configuration file value for key        {"Key": "log.encoding"}
2021-11-28T05:59:32.793-0800    INFO    Running on version      {"Service": "storagenode-updater", "Version": "v1.43.0-rc"}
2021-11-28T05:59:32.793-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T05:59:33.023-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T05:59:33.023-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T05:59:33.035-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.0-rc"}
2021-11-28T05:59:33.035-0800    INFO    New version is being rolled out but hasn't made it to this node yet     {"Service": "storagenode-updater"}
^C2021-11-28T05:59:56.842-0800  INFO    Got a signal from the OS: "interrupt"

Awesome. That is basically the best we could hope for because that way you also tested that the updater is following the rollout cursor. 100% cursor is now pushed. Within 15 minutes the updater should retry. Next message I expect to see is an complain around the missing updater binary in the new release. If that happens just let me know and I will upload it.

Spot on the complain arrived, if you can upload the 1.43.1 will see how it goes.

[storj@StorjJail ~]$ ./storagenode-updater run --identity-dir /mnt/Storj/identity/storagenode --binary-location /opt/storagenode/bin/storagenode --service-name storagenode  --log.development --log.level debug
2021-11-28T07:46:31.814-0800    DEBUG   Anonymized tracing disabled
2021-11-28T07:46:31.814-0800    DEBUG   debug server listening on 127.0.0.1:18166
2021-11-28T07:46:31.815-0800    INFO    Running on version      {"Service": "storagenode-updater", "Version": "v1.43.0-rc"}
2021-11-28T07:46:31.815-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T07:46:32.015-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T07:46:32.015-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T07:46:32.032-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.0-rc"}
2021-11-28T07:46:32.032-0800    INFO    Download started.       {"From": "https://github.com/storj/storj/releases/download/v1.43.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.3998979328.zip"}
2021-11-28T07:46:32.181-0800    ERROR   Error updating service. {"Service": "storagenode-updater", "error": "bad status: 404 Not Found", "errorVerbose": "bad status: 404 Not Found\n\tmain.downloadArchive:78\n\tmain.downloadBinary:58\n\tmain.update:39\n\tmain.loopFunc:31\n\tstorj.io/common/sync2.(*Cycle).Run:92\n\tmain.cmdRun:128\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\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.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.main:11\n\truntime.main:255"}


I have uploaded the binary.

it seems it is working as expected !

2021-11-28T08:01:31.821-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T08:01:32.003-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T08:01:32.003-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T08:01:32.014-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.0-rc"}
2021-11-28T08:01:32.015-0800    INFO    Download started.       {"From": "https://github.com/storj/storj/releases/download/v1.43.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.3294963290.zip"}
2021-11-28T08:01:33.836-0800    INFO    Download finished.      {"From": "https://github.com/storj/storj/releases/download/v1.43.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.3294963290.zip"}
2021-11-28T08:01:33.860-0800    INFO    Restarting service.     {"Service": "storagenode-updater"}
2021-11-28T08:01:33.861-0800    INFO    Service restarted successfully. {"Service": "storagenode-updater"}
2021-11-28T08:16:31.832-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T08:16:32.014-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T08:16:32.014-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T08:16:32.026-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.1"}
2021-11-28T08:16:32.026-0800    INFO    Version is up to date   {"Service": "storagenode-updater"}
2021-11-28T08:31:31.825-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T08:31:32.011-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T08:31:32.011-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T08:31:32.026-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.1"}
2021-11-28T08:31:32.026-0800    INFO    Version is up to date   {"Service": "storagenode-updater"}
2021-11-28T08:46:31.838-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-11-28T08:46:32.042-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.43.1"}
2021-11-28T08:46:32.042-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-11-28T08:46:32.057-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.1"}
2021-11-28T08:46:32.057-0800    INFO    Version is up to date   {"Service": "storagenode-updater"}

Great. That means we can include the FreeBSD binaries from now on. Thank you very much for your test run.

1 Like

Thanks to you to get the binary up !

Hello

The version 1.44.1 is now the current version but the storagenode-updater binary for freebsd is not in the repo then i get a 404. Could you please upload it ?

2021-12-02T06:35:06.278-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-12-02T06:35:06.488-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.44.1"}
2021-12-02T06:35:06.489-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-12-02T06:35:06.503-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.1"}
2021-12-02T06:35:06.504-0800    INFO    Download started.       {"From": "https://github.com/storj/storj/releases/download/v1.44.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.2643197403.zip"}
2021-12-02T06:35:06.667-0800    ERROR   Error updating service. {"Service": "storagenode-updater", "error": "bad status: 404 Not Found", "errorVerbose": "bad status: 404 Not Found\n\tmain.downloadArchive:78\n\tmain.downloadBinary:58\n\tmain.update:39\n\tmain.loopFunc:31\n\tstorj.io/common/sync2.(*Cycle).Run:152\n\tmain.cmdRun:128\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\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.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.main:11\n\truntime.main:255"}

Hello,
Just uploaded the binary, should already be available

Working like a charm !

2021-12-02T07:05:06.273-0800    INFO    Downloading versions.   {"Server Address": "https://version.storj.io"}
2021-12-02T07:05:06.467-0800    INFO    Current binary version  {"Service": "storagenode", "Version": "v1.44.1"}
2021-12-02T07:05:06.467-0800    INFO    Version is up to date   {"Service": "storagenode"}
2021-12-02T07:05:06.484-0800    INFO    Current binary version  {"Service": "storagenode-updater", "Version": "v1.43.1"}
2021-12-02T07:05:06.484-0800    INFO    Download started.       {"From": "https://github.com/storj/storj/releases/download/v1.44.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.165985317.zip"}
2021-12-02T07:05:08.263-0800    INFO    Download finished.      {"From": "https://github.com/storj/storj/releases/download/v1.44.1/storagenode-updater_freebsd_amd64.zip", "To": "/tmp/storagenode-updater_freebsd_amd64.165985317.zip"}
2021-12-02T07:05:08.281-0800    INFO    Restarting service.     {"Service": "storagenode-updater"}
2021-12-02T07:05:08.282-0800    INFO    Service restarted successfully. {"Service": "storagenode-updater"}