from syslog: "Use of uninitialized value in concatenation"

bread-baker

Member
Mar 6, 2010
432
0
16
this is probably a not too important issue, but the following is caused an emergency log rotation for /var/log/syslog :

Code:
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in addition (+) at /usr/sh
are/perl5/PVE/OpenVZ.pm line 81.
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in addition (+) at /usr/sh
are/perl5/PVE/OpenVZ.pm line 81.
...
# and a diff line number:
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in concatenation (.) or string at /usr/bin/pvestatd line 208.
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in concatenation (.) or string at /usr/bin/pvestatd line 208.
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in concatenation (.) or string at /usr/bin/pvestatd line 208.

as I said it is probably a small issue that is already known to devs, however it clutters and filles up /var/log/syslog .
 
Code:
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in addition (+) at /usr/sh
are/perl5/PVE/OpenVZ.pm line 81.
Oct  4 06:33:04 fbc158 pvestatd[396670]: WARNING: Use of uninitialized value in addition (+) at /usr/sh
are/perl5/PVE/OpenVZ.pm line 81.[/QUOTE]
IIRC, this was also printed out when doing a pveca -l.  The memory usage showed a raw number in scientific notation instead of a percentage being used.  But I was in a hurry and working on something else at the same time, so I didn't document it.  My bad.
 
Hi
I got lots of these:
Feb 26 15:14:40 k66 pvedaemon[1625]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:40 k66 pvedaemon[1625]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:41 k66 pvedaemon[1624]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:41 k66 pvedaemon[1624]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:42 k66 pvedaemon[1625]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:42 k66 pvedaemon[1625]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:43 k66 pvedaemon[1624]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:43 k66 pvedaemon[1624]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:44 k66 pvedaemon[1627]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:44 k66 pvedaemon[1627]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:45 k66 pvestatd[2022]: WARNING: Use of uninitialized value in addition (+) at /usr/share/perl5/PVE/OpenVZ.pm line 213.
Feb 26 15:14:45 k66 pvestatd[2022]: WARNING: Use of uninitialized value in multiplication (*) at /usr/share/perl5/PVE/OpenVZ.pm line 215.
Feb 26 15:14:45 k66 pvedaemon[1624]: WARNING: Use of uninitialized value $value in numeric eq (==) at /usr/share/perl5/PVE/OpenVZ.pm line 823.
Feb 26 15:14:45 k66 pvedaemon[1624]: WARNING: Use of uninitialized value $value in numeric eq (==) at /usr/share/perl5/PVE/OpenVZ.pm line 825.


point here seems to be: if you migrate an openvz-container to the new proxmox it expects a lot of things to be there (obviously in the config file) which there are not. after manually confirming memory-settings for each container everything is quiet again in the syslog.

regards
hk
 

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!