Rest environment not initialized

Jmcg14

New Member
Apr 7, 2018
1
0
1
30
I'm trying to build some scripts to set up user accounts and roles on a server but am running into an issue with the pveum command. Specifically editing a password with pveum passwd user@pve password, for example, I'm met with an error that reads:

"REST environment not initialized at /usr/share/perl5/PVE/RESTEnvironment.pm line 163, <DATA> line 751."

Following the error the password fails to be set. I am however able to set the password through the web UI. I looked through the perl module but don't understand enough to make sense of it. If anyone's experienced this error I'd love to know how to resolve it.

Here is the output of pveversion, if it helps: pve-manager/4.4-22/2728f613 (running kernel: 4.4.114-1-pve)
 

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!