MX got timeout

plnt

Member
Jan 20, 2022
8
3
8
31
Hi guys,

We have a long-term problem with our MX cluster 8.2.0 because MX1 is getting constant timeouts. And not only MX1 but also other nodes in the cluster.
The website is slow and getting error messages with timeouts. Connecting via API where ANTISPAM is set on domains and adding and removing domains from transport also ends with timeouts. Adding anything via API is va banque.
I wanted to somehow increase the PHP Pool on MX servers for the proxy service but I couldn't do it. It only has 3 workers, which seems a bit low to me.

Example of error from API >

Bash:
[Thu Jul 10 08:03:03.887018 2025] [proxy_fcgi:error] [pid 2710157:tid 2710167] [remote 194.1.216.65:56741] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PVE2_Exception: Not logged into Proxmox host. No Login access ticket found or ticket expired. in /var/www/clients/client21/web65/web/class/pmg.php:147\nStack trace:\n#0 /var/www/clients/client21/web65/web/class/pmg.php(543): PMGService->action()\n#1 /var/www/clients/client21/web65/web/email_content_antispam.php(74): PMGService->get()\n#2 {main}\n thrown in /var/www/clients/client21/web65/web/class/pmg.php on line 147', referer: https://ourwebsite.sk/hosting-email

[Thu Jul 10 08:38:58.813208 2025] [proxy_fcgi:error] [pid 2710100:tid 2710108] [remote 195.160.182.66:51563] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PVE2_Exception: Not logged into Proxmox host. No Login access ticket found or ticket expired. in /var/www/clients/client21/web65/web/class/pmg.php:147\nStack trace:\n#0 /var/www/clients/client21/web65/web/class/pmg.php(543): PMGService->action()\n#1 /var/www/clients/client21/web65/web/email_content_antispam.php(74): PMGService->get()\n#2 {main}\n thrown in /var/www/clients/client21/web65/web/class/pmg.php on line 147', referer: https://ourwebsite.sk/hosting-email

[Thu Jul 10 08:38:58.817329 2025] [proxy_fcgi:error] [pid 1733339:tid 1733347] [remote 176.116.114.29:14378] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PVE2_Exception: Not logged into Proxmox host. No Login access ticket found or ticket expired. in /var/www/clients/client21/web65/web/class/pmg.php:147\nStack trace:\n#0 /var/www/clients/client21/web65/web/class/pmg.php(543): PMGService->action()\n#1 /var/www/clients/client21/web65/web/email_content_antispam.php(74): PMGService->get()\n#2 {main}\n thrown in /var/www/clients/client21/web65/web/class/pmg.php on line 147', referer: https://ourwebsite.sk/hosting-email

[Thu Jul 10 08:39:28.081610 2025] [proxy_fcgi:error] [pid 1155067:tid 1155147] [remote 176.116.114.29:14438] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PVE2_Exception: Not logged into Proxmox host. No Login access ticket found or ticket expired. in /var/www/clients/client21/web65/web/class/pmg.php:147\nStack trace:\n#0 /var/www/clients/client21/web65/web/class/pmg.php(543): PMGService->action()\n#1 /var/www/clients/client21/web65/web/email_content_antispam.php(74): PMGService->get()\n#2 {main}\n thrown in /var/www/clients/client21/web65/web/class/pmg.php on line 147', referer: https://ourwebsite.sk/hosting-email

[Thu Jul 10 08:41:15.807996 2025] [proxy_fcgi:error] [pid 2710100:tid 2710107] [remote 195.160.182.66:51563] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PVE2_Exception: Not logged into Proxmox host. No Login access ticket found or ticket expired. in /var/www/clients/client21/web65/web/class/pmg.php:147\nStack trace:\n#0 /var/www/clients/client21/web65/web/class/pmg.php(543): PMGService->action()\n#1 /var/www/clients/client21/web65/web/email_content_antispam.php(74): PMGService->get()\n#2 {main}\n thrown in /var/www/clients/client21/web65/web/class/pmg.php on line 147', referer: https://ourwebsite.sk/hosting-email
 

Attachments

  • Screenshot 2025-07-15 at 9.14.00 AM.png
    Screenshot 2025-07-15 at 9.14.00 AM.png
    72.3 KB · Views: 6
  • Screenshot 2025-07-15 at 9.17.55 AM.png
    Screenshot 2025-07-15 at 9.17.55 AM.png
    10.4 KB · Views: 6
  • Screenshot 2025-07-15 at 9.20.39 AM.png
    Screenshot 2025-07-15 at 9.20.39 AM.png
    40.1 KB · Views: 6
  • Screenshot 2025-07-15 at 9.26.56 AM.png
    Screenshot 2025-07-15 at 9.26.56 AM.png
    7.5 KB · Views: 6
  • Screenshot 2025-07-15 at 9.30.36 AM.png
    Screenshot 2025-07-15 at 9.30.36 AM.png
    534.2 KB · Views: 6
The errors you're seeing, like the "Not logged into Proxmox host" issue, indicate authentication problems with your API calls. Have you checked if there's a session timeout or if the authentication tokens are expiring too quickly?


Regarding your PHP pool configuration, increasing the number of workers can indeed help with handling more concurrent requests. What steps did you take when you tried to increase the PHP pool, and what issues did you encounter?


Also, for your MX cluster timeouts, have you reviewed the system logs to see if there are any resource constraints or network issues causing these timeouts across different nodes?
 
We checked the API call and it seems to be OK. The voice does not correspond to reality. It simply times out. And the web interface does that.

I tried various ways to raise workers, e.g. via >

Bash:
systemctl status pmgproxy | grep worker


mkdir /etc/systemd/system/pmgproxy.service.d
vim /etc/systemd/system/pmgproxy.service.d/override.conf

[Service]
Environment="MAX_WORKERS=8" "MAX_CONN=1500" "MAX_REQUESTS=20000"

systemctl daemon-reload
systemctl restart pmgproxy

But without success. Sometimes the service did not start, other times it did but with default parameters.

I have not yet noticed any performance problems and the same is true for the entire infrastructure network.