Proxmox : starting worker failed: unable to parse worker upid

proxmox

Proxmox : starting worker failed: unable to parse worker upid

First of all, back up the following files:

# nano /usr/share/perl5/PVE/Tools.pm
# nano /usr/share/pve-manager/ext4/pvemanagerlib.js

 

proxmox

Now edit the files. In Tools.pm change:

Code:
if ($upid =~ m/^UPID:([a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([^:\s]+):([^:\s]*):([^:\s]+):$/) {

to

Code:
if ($upid =~  m/^UPID:([a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8,9}):([0-9A-Fa-f]{8}):([^:\s]+):([^:\s]*):([^:\s]+):$/)  {

In pvemanagerlib.js change:

Code:
var res = upid.match(/^UPID:(\S+):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([^:\s]+):([^:\s]*):([^:\s]+):$/);

to:

Code:
var res =  upid.match(/^UPID:(\S+):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8,9}):([^:\s]+):([^:\s]*):([^:\s]+):$/);

After editing these files, restart pvedaemon and apache2, then refresh the web interface. After that you should be able to create VMs again.

# /etc/init.d/pvedaemon restart

Share Button