[SOLVED] NGROK: end of support for V2: how do you update to V3?

To make NR and its dashboard accessible everywhere, a few years ago, I installed NGROK on my Raspberry pi. Not being very comfortable with LINUX (it still hasn't changed :sweat_smile:), I followed this tutorial (without understanding everything :laughing:):

1/ I created a /ngrok folder in /opt
2/ in the /ngrok folder I downloaded: https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip (ATTENTION : V2 which is obsolete today !!)
3/ unzipped the file, deleted .zip
4/ modified the config: sudo nano ngrok.yml
5/ with this:

authtoken: MyTokenxxxxxxx
						region: eu
						console_ui: false
						tunnels:
						    rpi:
						        addr: 192.168.1.54:1880
						        auth: myUser:myPassword
						        bind_tls: true
						        inspect: false
						        proto: http

6/ added a startup service: sudo nano /lib/systemd/system/ngrok.service
7/ with this:

[Unit]
						Description=ngrok
						After=network.target

						[Service]
						ExecStart=/opt/ngrok/ngrok start --all --config /opt/ngrok/ngrok.yml
						ExecReload=/bin/kill -HUP $MAINPID
						KillMode=process
						IgnoreSIGPIPE=true
						Restart=always
						RestartSec=3
						Type=simple

						[Install]
						WantedBy=multi-user.target

8/ start the service:
sudo systemctl enable ngrok.service
sudo systemctl start ngrok.service

My question:
the last "NGROK v3" is here for my Raspberry pi 3B:
sudo wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm.tgz
What do you think: If I repeat the tutorial with this new V3 address, will it overwrite V2? or it's more complicated so can you guide me to replace the old V2 with the new V3?

Thanks in advance

Well, for starters, not sure where you got that download link from but it doesn't appear to be the official download.

https://ngrok.com/download

Just check out the docs to make sure none of the settings have changed:

Ah, better still, the client has an upgrade command


I read the instructions : "Select your operating system, select the version, and copy the link that appears in the Download button". Left clic : save link adress => https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm.tgz

image

It seems to me that I can only update the Config file, and not the complete agent to V3 ?
because the command
pi@pi:/opt/ngrok $ ngrok config upgrade
bash: ngrok : commande introuvable
is not recognized by V2

:thinking:

:rofl: touché.

I didn't expect that to work with the old agent, you will need to install the v3 agent and then run the config upgrade command.

Do you think I should uninstall V2 before installing V3? Or do I try to install V3 as in the tutorial while keeping V2? Could this create a conflict?

Hmm, well I don't think it should matter if you uninstall the old one but it might lose the config so I'd probably just install the new one since the app name seems to be the same so it should just replace it.

As always though, don't assume that anything I say is "Correct" :upside_down_face: Always back stuff up if it is important. Though in this case, you'd probably be able to recreate the config fairly easily since you seem to have the details anyway.

mmh! it smells like µSD card formatting :rofl:

it's good :sunglasses:, I managed to install ngrok v3 by following these instructions:
ngrok - Online in One Line

the config changed like this:

sudo nano /home/pi/.config/ngrok/ngrok.yml
version: "2"
authtoken: xxxxxxx_xxxxxxxxx
region: eu
console_ui: false
tunnels:
 rpi:
  addr: 192.168.1.54:1880
  basic_auth:
   - "myUser:myPass"
  schemes:
   - https
  inspect: false
  proto: http

WARNING: spaces are required for indentation and not TABs!
Tips : do a: ngrok config check to verify that the config is correctly written.

the startup service changed like this:

sudo nano /lib/systemd/system/ngrok.service

						[Unit]
						Description=ngrok
						After=network.target

						[Service]
						ExecStart=/usr/local/bin/ngrok start --all --config /home/pi/.config/ngrok/ngrok.yml
						ExecReload=/bin/kill -HUP $MAINPID
						KillMode=process
						IgnoreSIGPIPE=true
						Restart=always
						RestartSec=3
						Type=simple

						[Install]
						WantedBy=multi-user.target

All I have to do is clean up V2... later... :yawning_face:
I hope this will help some people to access their Node-red, or their Dashboard remotely, because v3.1 and older are no longer supported as of January 15, 2024 for free users !!
:christmas_tree:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.