Symptoms
When attempting to clear the shunt files(pck files) using /usr/local/cpanel/3rdparty/mailman/bin/unshunt, they are not removed, and the following error is seen in /usr/local/cpanel/3rdparty/mailman/logs/error.
Mar 27 11:59:49 2025 (33336) SHUNTING: 1234567890.7654321+ab1c2d34ef5gh6ij789kl0987mn6opqrs543210t Mar 27 11:59:49 2025 (33336)
Uncaught runner exception: a bytes-like object is required, not 'str'
Description
The unshunt task is failing due to invalid characters within the shunt file. This prevents them from being processed and removed.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-46556. Follow this article to receive an email notification when a solution is published in the product.
Workaround
The conflicting pck files can be removed manually to clear these from Mailman. The files are located in the directory /usr/local/cpanel/3rdparty/mailman/qfiles/shunt/ and can be directly removed.
Additional Resources
Comments
1 comment
Update: CPANEL-46556 is solved in the following cPanel & WHM version(s) and newer:
Article is closed for comments.