Calico pod with CrashLoopBackOff caused by service account

I have Calico installed on my cluster but a few days ago pod routing stopped working. I noticed the calico pods went offline and from the logs I got this:

2021-07-12 08:36:43.524 [INFO][1] main.go 92: Loaded configuration from environment config=&config.Config{LogLevel:"info", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", DatastoreType:"kubernetes"}
2021-07-12 08:36:43.525 [FATAL][1] main.go 105: Failed to start error=failed to build Calico client: open /var/run/secrets/kubernetes.io/serviceaccount/token: permission denied

How can I solve the problem? Thank you in advance

Kubernetes version: v1.21.1

Calico version: latest


I have updated Kubernetes on both master and worker nodes. Now it seems to work again without other modifications