gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: Upgrading 0.17.1 to 0.19.0 stops at setup_nmctl #2301

Closed rallisf1 closed 1 year ago

rallisf1 commented 1 year ago

Contact Details

grallis@directgroup.gr

What happened?

I know this is not yet documented, or even tested but I thought I'd give it a go.

I run the following command to upgrade

wget -O nm-upgrade.sh https://raw.githubusercontent.com/gravitl/netmaker/release_v0.19.0/scripts/nm-upgrade-0-17-1-to-0-19-0.sh && chmod +x nm-upgrade.sh && ./nm-upgrade.sh

and followed the prompts. Everything was running smooth until running nmctl which produced the error shown in the log output.

I can confirm the upgrade script run until this line:

https://github.com/gravitl/netmaker/blob/0fde3d1b0e713b6f636262e1eac5d06af1d8e315/scripts/nm-upgrade-0-17-1-to-0-19-0.sh#L592

called at this line:

https://github.com/gravitl/netmaker/blob/0fde3d1b0e713b6f636262e1eac5d06af1d8e315/scripts/nm-upgrade-0-17-1-to-0-19-0.sh#L755

Version

v0.17.1

What OS are you using?

Linux

Relevant log output

2023/05/16 15:26:26 $HOME is not defined

Contributing guidelines

rallisf1 commented 1 year ago

OS: Ubuntu 22.04.2 LTS Arch: amd64 Docker version: 20.10.21 docker-compose version 1.29.2 docker-py version: 5.0.3 CPython version: 3.10.6 OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

mattkasun commented 1 year ago

v0.20.6 has a new process to upgrade from v0.17.1 to latest