Symptoms
After updating to cPanel version 132, Roundcube logins no longer function, when reviewing the Dovecot system logs you find errors like the following:
dovecot[820108]: auth: Fatal: passdb-lua: script_init() failed: lua_pcall(/usr/local/cpanel/etc/dovecot/cpauthd.lua) failed: /usr/local/cpanel/etc/dovecot/cpauthd.lua:14: module 'socket' not found:
dovecot[820108]: auth: Fatal: #011no field package.preload['socket']
dovecot[820108]: auth: Fatal: #011no file '/usr/share/lua/5.3/socket.lua'
dovecot[820108]: auth: Fatal: #011no file '/usr/share/lua/5.3/socket/init.lua'
dovecot[820108]: auth: Fatal: #011no file '/usr/lib64/lua/5.3/socket.lua'
dovecot[820108]: auth: Fatal: #011no file '/usr/lib64/lua/5.3/socket/init.lua'
When checking the lua-socket package using rpm package you see the release is still el7 despite the server being el8/el9:
# rpm -qi lua-socket
Name : lua-socket
Version : 3.1.0
Release : 1.el7
Description
This looks to be primarily caused by an el7 package "lua-socket" surviving the elevate from CentOS 7 to AlmaLinux 8 without being replaced by the AlmaLinux 8 version of this package.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-50686. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Replace the EL7 version of the package with EL8. This can be done with the yum command below:
yum -y downgrade lua-socket