Cloudflared Update version

When i go to the teams dashboard i get this
IMG_20211216_111552

Even if i am using the latest version

That Connector ID that you hide must match the Generated Connector ID: log line in the cloudflared log output.

Perhaps you updated it, but there’s still a process running with the old binary in memory?

Ya it’s different, what should I do? Like no downtime

You can run the same Tunnel in 2 Connectors (i.e., cloudflared processes) at the same time (or more, in fact).

That means you can:

  • Have cloudflared 2021.11.0 running
  • Start the same tunnel, with same config, with 2021.12.0 (could be in the same machine, but in that case, make sure to use a different metrics: port or to not set it at all so you get a random one)
  • You now have 2 Connectors for the same Tunnel
  • Make sure the new Connector is healthy (you can see in the logs or in host:metricsport/ready )
  • You can now stop the old Connector
  • You now have a single Connector again with 2021.12.0 running and without downtime

By the way thanks, It’s seems a lot work can i not just restart it

Hey just restarted and tunnel is using the latest 2021.12.0 but in dashboard it shows outdated

You can. But you asked for no downtime, so that’s the recipe for no downtime.

If you restart the process, there’s downtime. It’ll generally be a couple seconds, but for some users that’s still not acceptable.

4 Likes

Can you share the first 100 lines of the log of the process you just restarted?

No need to hide away IDs, those are not secrets. No one can use your Tunnels or anything just because they know your ID.

1 Like

@nuno.diegues level":“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“warn”,“time”:“2021-12-16T09:23:43Z”,“message”:“observer channel buffer is full”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:43Z”,“message”:“Unregistered tunnel connection”}
{“level”:“info”,“connIndex”:0,“time”:“2021-12-16T09:23:44Z”,“message”:“Unregistered tunnel connection”}
{“level”:“info”,“connIndex”:2,“time”:“2021-12-16T09:23:44Z”,“message”:“Unregistered tunnel connection”}
{“level”:“info”,“connIndex”:1,“time”:“2021-12-16T09:23:44Z”,“message”:“Unregistered tunnel connection”}
{“level”:“info”,“connIndex”:3,“time”:“2021-12-16T09:23:44Z”,“message”:“Unregistered tunnel connection”}
{“level”:“info”,“time”:“2021-12-16T09:24:13Z”,“message”:“Tunnel server stopped”}
{“level”:“info”,“time”:“2021-12-16T09:24:13Z”,“message”:“Metrics server stopped”}
{“level”:“info”,“tunnelID”:“8a79ba35-f98d-491d-b6d6-c69266861e5a”,“time”:“2021-12-16T09:24:14Z”,“message”:“Starting tunnel”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Version 2021.12.0”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“GOOS: linux, GOVersion: devel +83057bb541 Tue Nov 9 16:16:51 2021 +0100, GoArch: amd64”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Settings: map[config:/etc/cloudflared/config.yml cred-file:/home/cloudcreatr/.cloudflared/8a79ba35-f98d-491d-b6d6-c69266861e5a.json credentials-file:/home/cloudcreatr/.cloudflared/8a79ba35-f98d-491d-b6d6-c69266861e5a.json logfile:/home/cloudcreatr/cloudcreatr.com/logs/cloudflared.log loglevel:info no-autoupdate:true p:quic protocol:quic]”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Generated Connector ID: b76d8478-f338-4eef-be8a-d6d59e2a68af”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Warp-routing is enabled”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“cloudflared will not automatically update if installed by a package manager.”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Initial protocol quic”}
{“level”:“info”,“time”:“2021-12-16T09:24:14Z”,“message”:“Starting metrics server on 127.0.0.1:36175/metrics”}
{“level”:“warn”,“time”:“2021-12-16T09:24:14Z”,“message”:“Your version 2021.12.0 is outdated. We recommend upgrading it to 2021.12.1”}
{“level”:“info”,“connIndex”:0,“location”:“SIN”,“time”:“2021-12-16T09:24:15Z”,“message”:“Connection bd489f13-9363-4176-a239-993c0c598c88 registered”}
{“level”:“info”,“connIndex”:1,“location”:“BOM”,“time”:“2021-12-16T09:24:15Z”,“message”:“Connection 91da752a-df7f-41a6-a781-79364a5542fa registered”}
{“level”:“info”,“connIndex”:2,“location”:“SIN”,“time”:“2021-12-16T09:24:16Z”,“message”:“Connection 70ebe193-0eae-4ee4-8c8e-a48e0412113a registered”}
{“level”:“info”,“connIndex”:3,“location”:“BOM”,“time”:“2021-12-16T09:24:17Z”,“message”:“Connection 950f643d-6c99-493e-b761-e7f16b9266b3 registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:53:53Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:0,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:53:53Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:0,“location”:“SIN”,“time”:“2021-12-16T09:53:54Z”,“message”:“Connection 5e83d54c-bedc-493c-b373-9c55472f8cee registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:00Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:1,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:00Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:1,“location”:“BOM”,“time”:“2021-12-16T09:54:00Z”,“message”:“Connection 9c90bd42-2500-43f3-93d0-e71e625ef8f9 registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:06Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:3,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:06Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:3,“location”:“BOM”,“time”:“2021-12-16T09:54:06Z”,“message”:“Connection d462ba29-1d8b-469c-b3b6-93adadfa5320 registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:10Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:2,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:10Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:2,“location”:“SIN”,“time”:“2021-12-16T09:54:10Z”,“message”:“Connection 21a5307b-4834-41da-b9dc-4c1205897731 registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:14Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:0,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:14Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:0,“location”:“SIN”,“time”:“2021-12-16T09:54:15Z”,“message”:“Connection 70ac6a94-81ef-4e24-88b4-b4039ec5b812 registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:18Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:1,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:18Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:1,“location”:“BOM”,“time”:“2021-12-16T09:54:19Z”,“message”:“Connection 32701b26-713f-4158-8832-c529aee2558e registered”}
{“level”:“error”,“error”:“timeout: no recent network activity”,“time”:“2021-12-16T09:54:24Z”,“message”:“Failed to receive datagram from transport, closing session manager”}
{“level”:“warn”,“connIndex”:3,“error”:“failed to accept QUIC stream: timeout: no recent network activity”,“time”:“2021-12-16T09:54:24Z”,“message”:“Failed to serve quic connection”}
{“level”:“info”,“connIndex”:3,“location”:“BOM”,“time”:“2021-12-16T09:54:25Z”,“message”:“Connection 759b3245-7ccc-49d2-a416-f53cbe2fdfc8 registered”}

@nuno.diegues i ran a tunnel manually and it too shows outdated, so try to update using apt and it says everything is up to date. I am using cloudflare PKG

Ah, I see the confusion/problem.

There was a release just a bit ago (2021.12.1)!

I have just tested in a brand new docker image with Ubuntu and it pulled 2021.12.1 when I set up https://pkg.cloudflare.com/ and did apt-get install cloudflared

Well, it’s says the same thing

Worked on my end:

[email protected]:/# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Ign:5 https://pkg.cloudflare.com focal InRelease
Get:6 https://pkg.cloudflare.com focal Release [7821 B]
Get:7 https://pkg.cloudflare.com focal Release.gpg [516 B]
Get:8 https://pkg.cloudflare.com focal/main amd64 Packages [13.8 kB]
Fetched 22.1 kB in 1s (38.8 kB/s)
Reading package lists... Done
[email protected]:/# apt-get install cloudflared
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  cloudflared
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 17.4 MB of archives.
After this operation, 36.7 MB of additional disk space will be used.
Get:1 https://pkg.cloudflare.com focal/main amd64 cloudflared amd64 2021.12.1 [17.4 MB]
Fetched 17.4 MB in 3s (5413 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package cloudflared.
(Reading database ... 4660 files and directories currently installed.)
Preparing to unpack .../cloudflared_2021.12.1_amd64.deb ...
Unpacking cloudflared (2021.12.1) ...
Setting up cloudflared (2021.12.1) ...

Could be some caching somewhere. Maybe try again later?

On my other machine it has updated to latest one

@nuno.diegues how to auto update on Ubuntu

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