Strange Error in Syslog

Rüdiger Ahrens

New Member
Mar 30, 2026
5
0
1
Hi Guys

See sometimes
Mar 30 12:00:16 mailgateway pmgpolicy[1785]: command 'ip -details -json link show' failed: failed to execute
in syslog. I don't know if it is important.


Can soeane help.
If i execute ip -details -json link show at command line i got a valid JSON

[{"ifindex":1,"ifname":"lo","flags":["LOOPBACK","UP","LOWER_UP"],"mtu":65536,"qdisc":"noqueue","operstate":"UNKNOWN","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"loopback","address":"00:00:00:00:00:00","broadcast":"00:00:00:00:00:00","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":0,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536},{"ifindex":2,"link_index":41,"ifname":"eth0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"bc:24:11:f9:ef:2a","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth"},"inet6_addr_gen_mode":"eui64","num_tx_queues":4,"num_rx_queues":4,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536}]

I am running a mailgateway server as LXC Container on an Proxmox VE Host. Installed form a offical template

Is there something wrong with the rights ?

Thanks Rüdiger
 
Last edited:
Hi Rüdiger,

My first suspicion here will be the $PATH of pmgpolicy process. So the first thing that I would check are:

1. The full path to the ip command. Something like:

Code:
# which ip
/usr/sbin/ip

Then verify your user path by (I'm using root, but it should work with any user):
Code:
# env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

So, /usr/sbin is in my $PATH, so the ip command can be found.

Next step - verify what the value of $PATH of the user is, which is used for the pmgpolicy process. Something like:
Code:
# su - $PMGPOLICY_USERNAME -c env | grep PATH

I'm not 100% sure that the issue is in the $PATH variable, but it seems like a good starting point.

Best,
/NT
 
Hi

thanks
su - $PMGPOLICY_USERNAME -c env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
which ip
/usr/sbin/ip

path is correct

And as far as i can see it runs as root
365 root 20 0 121204 96804 19672 S 0.0 2.3 1:14.81 pmgpolicy
 
Does this container have access to all the necessary interfaces?

Because there may be a difference:

if you run as root "ip -details -json link show" from the host, the result may be one,

if you run the same command in the container, the result may be different (depending on what permissions it has)

Please check both options... it may not give us a solution, but at least we will start somewhere.

Best,
/NT
 
i don't really what you mean.
i tried both via SSh from my work PC or via Proxmox console as root the result is the same
ip -details -json link show

shows in bot cases the sam valid JSON

And as far as i can see the pmgpolicy process runs as root

Is there a chance to get a more detail LOG from pmgpolicy process to see what the service i complaining about.

Cheers Rüdiger
 
This ist what i got from syslog:

2026-04-01T12:00:10.622111+02:00 mailgateway systemd[1]: Reloaded pmgpolicy.service - Proxmox Mail Gateway Policy Daemon.
2026-04-01T12:00:10.748777+02:00 mailgateway pmgpolicy[365]: 2026/04/01-12:00:10 Server closing!
2026-04-01T12:00:10.751125+02:00 mailgateway pmgpolicy[365]: 2026/04/01-12:00:10 Re-exec server during HUP
2026-04-01T12:00:12.522913+02:00 mailgateway pmgpolicy[365]: WARNING: Pid_file created by this same process. Doing nothing.
2026-04-01T12:00:12.523636+02:00 mailgateway pmgpolicy[365]: WARNING: Pid_file created by this same process. Doing nothing.
2026-04-01T12:00:12.524341+02:00 mailgateway pmgpolicy[365]: 2026/04/01-12:00:12 main (type Net::Server::PreForkSimple) starting! pid(365)
2026-04-01T12:00:12.528379+02:00 mailgateway pmgpolicy[365]: Binding open file descriptors
2026-04-01T12:00:12.528924+02:00 mailgateway pmgpolicy[365]: Binding to TCP port 10022 on host 127.0.0.1 with IPv4
2026-04-01T12:00:12.530056+02:00 mailgateway pmgpolicy[365]: Reassociating file descriptor 8 with TCP on [127.0.0.1]:10022, using IPv4
2026-04-01T12:00:12.530190+02:00 mailgateway pmgpolicy[365]: Group Not Defined. Defaulting to EGID '0'
2026-04-01T12:00:12.530309+02:00 mailgateway pmgpolicy[365]: User Not Defined. Defaulting to EUID '0'
2026-04-01T12:00:12.530427+02:00 mailgateway pmgpolicy[365]: Setting up serialization via flock
2026-04-01T12:00:12.532953+02:00 mailgateway pmgpolicy[365]: Policy daemon (re)started
2026-04-01T12:00:12.533114+02:00 mailgateway pmgpolicy[365]: Beginning prefork (5 processes)
2026-04-01T12:00:12.533225+02:00 mailgateway pmgpolicy[365]: Starting "5" children
2026-04-01T12:00:12.586965+02:00 mailgateway pmgpolicy[53849]: command 'ip -details -json link show' failed: failed to execute
2026-04-01T12:00:12.603399+02:00 mailgateway pmgpolicy[53850]: command 'ip -details -json link show' failed: failed to execute
2026-04-01T12:00:12.626400+02:00 mailgateway pmgpolicy[53851]: command 'ip -details -json link show' failed: failed to execute
2026-04-01T12:00:12.632899+02:00 mailgateway pmgpolicy[53853]: command 'ip -details -json link show' failed: failed to execute
2026-04-01T12:00:12.655416+02:00 mailgateway pmgpolicy[53855]: command 'ip -details -json link show' failed: failed to execute
2026-04-01T12:00:12.704999+02:00 mailgateway pmgpolicy[365]: Starting "1" children
2026-04-01T12:00:12.733993+02:00 mailgateway pmgpolicy[365]: Starting "2" children
2026-04-01T12:00:12.759279+02:00 mailgateway pmgpolicy[365]: Starting "2" children
 
Could it bee that the combination mailgateway as LXC Container (Based on Trixie) has an issue with the perl wrapper in pmgpolicy who is calling 'ip -details -json link show' ?

And does it has impact on the function, or can i ignore this error and wait untill it is fixed.
At the moment i don't see any lost off functionallity.