• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved mailmng-server returns "bad lexical cast" error

grAlex

New Pleskian
Hello,

Plesk version: 17.5.3 CentOS 7 1705170317.16

I've got a weird error and I hope you can help me with it:

Code:
[root@server bin]# ./mailmng-server  --get-mailbox-size-limit
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)
[root@server bin]#

From panel logs I've got more details:

Code:
[2017-07-16 16:24:55] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailmng-server' '--get-max-letter-size'] with exit code [1]
[2017-07-16 16:24:55] ERR [1] '/usr/local/psa/admin/bin/mailmng-server' '--get-max-letter-size' failed with code 1.

stdout:
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)


stderr:
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)

[2017-07-16 16:24:59] ERR [panel] mailmng-server failed: Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target):
0: /usr/local/psa/admin/plib/Service/Agent.php:219
        Service_Agent->execAndGetResponse(string 'mailmng-server', array, NULL null, array)
1: /usr/local/psa/admin/plib/Service/Driver/Mail/Plesk/Server/Abstract.php:251
        Service_Driver_Mail_Plesk_Server_Abstract->_callMailMng(string 'server', array, NULL null, array)
2: /usr/local/psa/admin/plib/Service/Driver/Mail/Plesk/Server/Abstract.php:273
        Service_Driver_Mail_Plesk_Server_Abstract->_callMailMngServer(array)
3: /usr/local/psa/admin/plib/Service/Driver/Mail/Plesk/Server/Abstract.php:90
        Service_Driver_Mail_Plesk_Server_Abstract->getMaxLetterSize()
4: /usr/local/psa/admin/htdocs/server/mail.php:407
        require(string '/usr/local/psa/admin/htdocs/server/mail.php')
5: /usr/local/psa/admin/htdocs/plesk.php:44
[2017-07-16 16:24:59] ERR [1] mailmng-server failed: Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)

[root@server plesk]#

strace fails with buffer overflow error:

Code:
*** buffer overflow detected ***: strace terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7fc8e7785077]
/lib64/libc.so.6(+0x10d230)[0x7fc8e7783230]
/lib64/libc.so.6(+0x10efe7)[0x7fc8e7784fe7]
strace[0x4040a1]
strace[0x416cfe]
strace[0x402706]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc8e7697b35]
strace[0x402929]
======= Memory map: ========
00400000-00469000 r-xp 00000000 09:02 6556626                            /usr/bin/strace
00668000-00669000 r--p 00068000 09:02 6556626                            /usr/bin/strace
00669000-0066a000 rw-p 00069000 09:02 6556626                            /usr/bin/strace
0066a000-0068c000 rw-p 00000000 00:00 0                                  [heap]
7fc8e7460000-7fc8e7475000 r-xp 00000000 09:02 6556484                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc8e7475000-7fc8e7674000 ---p 00015000 09:02 6556484                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc8e7674000-7fc8e7675000 r--p 00014000 09:02 6556484                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc8e7675000-7fc8e7676000 rw-p 00015000 09:02 6556484                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc8e7676000-7fc8e782d000 r-xp 00000000 09:02 6556597                    /usr/lib64/libc-2.17.so
7fc8e782d000-7fc8e7a2c000 ---p 001b7000 09:02 6556597                    /usr/lib64/libc-2.17.so
7fc8e7a2c000-7fc8e7a30000 r--p 001b6000 09:02 6556597                    /usr/lib64/libc-2.17.so
7fc8e7a30000-7fc8e7a32000 rw-p 001ba000 09:02 6556597                    /usr/lib64/libc-2.17.so
7fc8e7a32000-7fc8e7a37000 rw-p 00000000 00:00 0
7fc8e7a37000-7fc8e7a57000 r-xp 00000000 09:02 6555715                    /usr/lib64/ld-2.17.so
7fc8e7c48000-7fc8e7c4b000 rw-p 00000000 00:00 0
7fc8e7c54000-7fc8e7c56000 rw-p 00000000 00:00 0
7fc8e7c56000-7fc8e7c57000 r--p 0001f000 09:02 6555715                    /usr/lib64/ld-2.17.so
7fc8e7c57000-7fc8e7c58000 rw-p 00020000 09:02 6555715                    /usr/lib64/ld-2.17.so
7fc8e7c58000-7fc8e7c59000 rw-p 00000000 00:00 0
7fff6f047000-7fff6f068000 rw-p 00000000 00:00 0                          [stack]
7fff6f17f000-7fff6f180000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
select(16384, [3 5 7Aborted

Not too sure on how to deal with it. Could you please guide on how to diagnose and resolve it.

Regards,
Alex.
 
I've been seeing this error lately on both 12.5 and Onyx when using trying to enable submission (port 587) in the panel. On the latest Plesk server I tested this it doesn't fail on get, but on set-max-letter-size:
# /usr/local/psa/admin/bin/mailmng-server --get-max-letter-size
78643200
# echo $?
# /usr/local/psa/admin/bin/mailmng-server --set-max-letter-size --size=10240000
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)
Fatal error: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >(bad lexical cast: source type value could not be interpreted as target)
# echo $?
1
 
Hello Burnley,

Thanks for your reply. Not too sure what you mean, but submission is fine:

Code:
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      1391/master

and the error persists. And even if I disable submission in master.cf the error persists.

Is there anything else I need to check?

Regards,
Alex.
 
Well, my postfix config was missing

Code:
message_size_limit = 102400000

After I've added the line into /etc/postfix/main.cf the error has gone. Seems the issue is now solved.

We're using custom setup for Postfix with multiple instances.

Regards,
Alex
 
Back
Top