Proxmox API error log / error creating VM disk

paultjuh

New Member
Dec 6, 2025
6
1
3
I'm using the third-party proxmox-csi plugin for Kubernetes to create VM disks. As of the new version, I can't create new disks anymore. I get a 500 internal server error from the Proxmox API. I have been looking into the logs for the csi plugin, but I think the details from the server error of the API would be very helpful. I can only find an access log though. Is there a way to enable detailed logging for the API server?
 
I also started pvedaemon in debug modus `pvedaemon start --debug`, but I only get connection logging, no error logging
 
pvedaemon start --debug 1?

pvedaemon start [OPTIONS]
Start the daemon.
--debug <boolean> (default =0)
Debug mode - stay in foreground
Unfortunately that only gives the following:
Code:
2025-12-06 11:38:54.521940 worker[149344]: PVE::APIServer::AnyEvent +1937: (eval): ACCEPT FH9 CONN1
2025-12-06 11:38:54.530285 worker[149344]: PVE::APIServer::AnyEvent +203: client_do_disconnect: close connection AnyEvent::Handle=HASH(0x566a35637ad0)
2025-12-06 11:38:54.530322 worker[149344]: PVE::APIServer::AnyEvent +178: __ANON__: CLOSE FH9
2025-12-06 11:38:54.530350 worker[149344]: PVE::APIServer::AnyEvent +203: client_do_disconnect: DISCONNECT CONN0
 
Unfortunately the same applies to starting `pve-ha-crm` and `pve-ha-lrm` in debug modus: No (useful) logging what so ever, while the server gives a 500 internal server error.
 
I dont test this solution, but you can read this post, may help you
 
  • Like
Reactions: paultjuh
I dont test this solution, but you can read this post, may help you
Thanks, this helped me finding the issue:

Adding the following lines to `/usr/share/perl5/PVE/API2/Storage/Content.pm` to the create function:
Code:
       use Data::Dumper;
       use Sys::Syslog;
       syslog('info', Dumper($param));

The call was missing the extension in the filename (.raw)
 
Last edited:
  • Like
Reactions: Eduardo Taboada