Symptoms
After updating to cPanel version 132, Roundcube logins no longer function, when reviewing the Dovecot system logs you find errors like the following:
CONFIG_TEXT: 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 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
Cause
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.
Resolution
1. Replace the EL7 package with the correct version:
# yum --allowerasing install lua-socket-3.0-0.17.rc1.el8.x86_64
2. If Imunify360 is installed, check the repo file:
# cat /etc/yum.repos.d/imunify360.repo
If baseurl contains a hardcoded el/7/ path, update it to use the dynamic release variable:
CONFIG_TEXT: [imunify360]
name=EL-$releasever - Imunify360
baseurl=https://repo.imunify360.cloudlinux.com/defense360//el/$releasever/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://repo.imunify360.cloudlinux.com/defense360//RPM-GPG-KEY-CloudLinux
3. Run a distrosync on the lua-socket package. This may show it being downgraded, but the package should still include Lua Socket 5.3.
# dnf distrosync lua-socket
4. Restart Dovecot and verify:
# /scripts/restartsrv_dovecot
Comments
1 comment
Update: CPANEL-50686 is solved in the following cPanel & WHM version(s) and newer:
Article is closed for comments.