Deleted the roundcube folder

delalibera

Member
Jan 6, 2014
20
0
1
cPanel Access Level
Reseller Owner
Please, I need help

I deleted the roundcube folder in /usr/local/cpanel/base/3rdparty/roundcube

I tried to fix the problem by running
/scripts/upcp
/usr/local/cpanel/bin/update-roundcube --force

but it did not work

Please I need help
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

You should be able to address this issue via the following command:

Code:
/scripts/check_cpanel_rpms
This should detect the issue with the missing directory on cPanel versions 58 or newer, and prompt you to reinstall the Roundcube RPM.

Thank you.
 

carlose

Member
Feb 1, 2017
5
1
3
Virginia Beach, VA
cPanel Access Level
Root Administrator
To help others:

I had an issue with Roundcube loading a generic "Server Error", while Horde and SquirrelMail both still functioned without issue. The cPanel error logs showed this error:

[2017-02-01 15:21:22 +0800] warn [webmaild] The subprocess (php) exited with an error: The subprocess reported error number 255 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 159.
Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x243d970)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 74
Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x243d970), "subprocess_name", "php", "subprocess_read_handle", IO::Handle=GLOB(0x29e4830), "subprocess_write_handle", GLOB(0x243e060)) called at cpsrvd.pl line 6318
cpanel::cpsrvd::cgiHandler("app", "php", "document", "./3rdparty/roundcube/index.php") called at cpsrvd.pl line 6132
cpanel::cpsrvd::phpHandler("document", "./3rdparty/roundcube/index.php") called at cpsrvd.pl line 5336
cpanel::cpsrvd::dodoc_webmaild() called at cpsrvd.pl line 1608
cpanel::cpsrvd::dodoc(HASH(0x13a7770)) called at cpsrvd.pl line 1367
cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 849
cpanel::cpsrvd::script() called at cpsrvd.pl line 319

I then began troubleshooting through the few forum posts regarding this error but was experiencing trouble with re-installation of Roundcube. Running:

PHP:
/scripts/upcp --force
did not correct. While running:

PHP:
/usr/local/cpanel/bin/update-roundcube-db
I discovered the following error:

Please review the version update notes at the top of bin/update-roundcube-db
While running:

PHP:
rpm -e --nodeps cpanel-roundcubemail
/usr/local/cpanel/bin/update-roundcube --force
I discovered the following error:

[2017-02-01 17:46:52 +0800] ATTENTION DEVELOPER: there seems to be a file or directory missing insrc/3rdparty/gpl/roundcube_schema/upgrade/ (and downgrade/) for this new version: 1.1.4.cp1
Steps to resolve:

Move Roundcube install folder (for backup purposes):

From:
/usr/local/cpanel/base/3rdparty/roundcube
To:
/usr/local/cpanel/base/3rdparty/roundcube.bak
Run the following commands:

PHP:
/scripts/upcp --force
rpm -e --nodeps cpanel-roundcubemail
/usr/local/cpanel/bin/update-roundcube --force
/usr/local/cpanel/bin/update-roundcube-sqlite-db --force
Finally, Roundcube is working again. I would imagine this is a "fix"/alternative for completely removing Roundcube and reinstalling/updating. Below are the system details:

CPANEL= /etc/cpupdate.conf:
/etc/redhat-release:CentOS release 6.8 (Final)
/usr/local/cpanel/version:11.62.0.8
/var/cpanel/envtype:virtuozzo
CPANEL=release

httpd -v:
Server version: Apache/2.4.18 (Unix)
Cpanel::Easy::Apache v3.32.9 rev9999

php -v:
PHP 5.5.31 (cgi-fcgi) (built: Jan 26 2016 00:35:39)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies

mysql -V:
mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapper
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
ATTENTION DEVELOPER: there seems to be a file or directory missing in src/3rdparty/gpl/roundcube_schema/upgrade/ (and downgrade/) for this new version: 1.1.4.cp1
Please review the version update notes at the top of bin/update-roundcube
Hello,

I'd also like to note that internal case CPANEL-11031 was included with cPanel version 62.0.8 to fix an issue where the above error message occurred when the Roundcube update script would attempt to downgrade a database instead of trying to update it:

Fixed case CPANEL-11031: Fix bug in roundcube db schema update.

Thank you.