713

Fix Proxmox VE Permission denied (invalid ticket 401)

 2 years ago
source link: https://azhuge233.com/fix-proxmox-ve-permission-denied-invalid-ticket-401/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Description

After logged into the web front end, PVE constantly asking me to login again.

Since it’s impossible to stay login, I can’t upload big ISO image(like Windows), a window says Permission denied (invalid ticket 401) will popup during the process.

After some searching in PVE forum, I found out this is a system time issue. Execute the command

journalctl -u pvedaemon
journalctl -u pvedaemon

to check pvedaemon journal, it shows the system start time is 8 hours behind the current time.

Reference

Solution

I found two solutions, one works(for me), another doesn’t.

Solution 1

Install ntpdate to sync time to a ntp server(which didn’t help me).

  1. Install ntpdate
    apt install ntp ntpdate
    apt install ntp ntpdate
  2. Sync time
    ntpdate -u ntp.aliyun.com
    # you can use other ntp server, like time.windows.com
    ntpdate -u ntp.aliyun.com
    # you can use other ntp server, like time.windows.com

Solution 2

Set the motherboard bios time(or RTC, Rea-Time Clock) as the linux standard local time.

  1. Execute command
    timedatectl set-local-rtc 1
    hwclock --localtime --systohc
    timedatectl set-local-rtc 1
    hwclock --localtime --systohc

The final result

Fix Proxmox VE Permission denied (invalid ticket 401)

The local time is the same as the RTC time, and the universal time is different.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK