Connection error 401: Permission denied - invalid csrf token requires relogin

Liam

Active Member
Oct 15, 2014
6
0
41
I keep getting this error:
Connection error 401: Permission denied - invalid csrf token

I keep getting this error after a while and I just need to login again and i can continue to work. but it happens all the time and gets in the way of my configuration.
I am not sure what to look at.

I am able to log in and modify my config, migrate vms, all the things you would want to do, but every so often this error pops up and I have to relogin. This just started happening after adding a new host to the cluster.
 
Hello,

Are you using Nginx Proxy on the node? - if yes please provide us with the Nginx config.
 
Hi, I am trying to configure nginx proxy manager for easy access to my VMs and I'm getting the same error but only when I try to connect to the host machine. Here's what I've come up with so far:

Code:
location / {
    return 302 https://dl580.lan:8006/?console=shell&novnc=1&vmid=0&vmname=&node=dl580&resize=on&cmd=;
}

location /win7 {
    return 302 https://dl580.lan:8006/?console=kvm&novnc=1&vmid=700107010&vmname=windows7&node=dl580&resize=on;
}

location /android1 {
    return 302 https://dl580.lan:8006/?console=kvm&novnc=1&vmid=700507050&vmname=android1&node=dl580&resize=on;
}

The first one is the host and I get a csrf token error when I open the page. It successfully loads when I refresh.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!