11.34.1.11 RoundCube error 404

g_rar

Registered
Feb 26, 2013
2
0
1
cPanel Access Level
Root Administrator
After the last autoupdate roundcube stopped working giving a 404 error. Squirrel mail and horde are OK.

I've tried to force update CPanel and Roundcube with no luck.

This is what prints a roundcube force update:
Code:
# /usr/local/cpanel/bin/update-roundcube --force
Roundcube update from 0.8.5.cp1 to 0.8.5.cp1 in progress.
Roundcube will be locked out during this process.
Updating RoundCube (using cPanel version)
info [update-roundcube] Applied patch '0001-Apply-default-values-for-cPanel-webmail-environment.patch'
patching file config/db.inc.php.dist
patching file config/main.inc.php.dist
patching file index.php
patching file program/include/rcube_imap.php
patching file program/include/rcube_imap_generic.php
info [update-roundcube] Applied patch '0002-append-INBOX.-to-avoid-UID-COPY-Unknown-namespace-er.patch'
patching file config/main.inc.php.dist
info [update-roundcube] Applied patch '0003-User-can-select-a-different-skin-when-its-choice-is-.patch'
patching file program/include/rcube_template.php
info [update-roundcube] Applied patch '0003-provide-support-url.patch'
patching file config/main.inc.php.dist
warn [update-roundcube] Error applying patch '0004-Fix-focus-issue-in-IE-when-selecting-message-row.patch'
patching file program/js/list.js
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file program/js/list.js.rej
FAIL - cPanel patch for Roundcube did not apply cleanly.
Archiving current Roundcube data to /var/cpanel/roundcube/roundcube.backup.sql.1361904299
Roundcube DB successfully archived
-rw------- 1 root root 59959 Feb 26 19:44 /var/cpanel/roundcube/roundcube.backup.sql.1361904299
Cleaning old Roundcube data archives
Removing old backup: roundcube.backup.sql.1361889854
Schema update to 0.8.5 was successful
chown: cannot access `/usr/local/cpanel/src/3rdparty/gpl/roundcube/config/main.inc.php': No such file or directory
chown: cannot access `/usr/local/cpanel/src/3rdparty/gpl/roundcube/config/db.inc.php': No such file or directory
Failed to untar Roundcube sources.
Any clue on what's gone wrong?

TY
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
76
308
cPanel Access Level
Root Administrator
Correction:
We used to distribute those patches, several years ago. It appears there is a bug(?) in the update system that doesn't remove files that should be removed. Manually removing them (e.g. rm -rf /usr/local/cpanel/src/3rdparty/gpl/patches/roundcube) is a viable work around at this time.
 
Last edited:

atoomic

Registered
Feb 8, 2013
2
0
1
cPanel Access Level
Root Administrator
it looks like that you have an extra patch on your server which should have been deleted during the upgrade: '0004-Fix-focus-issue-in-IE-when-selecting-message-row.patch'

Delete that patch :
> rm -f /usr/local/cpanel/src/3rdparty/gpl/patches/roundcube/0004-Fix*
then reinstall roundcube
> /usr/local/cpanel/bin/update-roundcube --force
 

g_rar

Registered
Feb 26, 2013
2
0
1
cPanel Access Level
Root Administrator
Correction:
We used to distribute those patches, several years ago. It appears there is a bug(?) in the update system that doesn't remove files that should be removed. Manually removing them (e.g. rm -rf /usr/local/cpanel/src/3rdparty/gpl/patches/roundcube) is a viable work around at this time.
Thank you, after removing all the patches and forcing an update is working again.

Additional information: This server is 4 month old and was installed from scratch. If those patches I had where several years old, some recent update may have fetched them.


it looks like that you have an extra patch on your server which should have been deleted during the upgrade: '0004-Fix-focus-issue-in-IE-when-selecting-message-row.patch'

Delete that patch :
> rm -f /usr/local/cpanel/src/3rdparty/gpl/patches/roundcube/0004-Fix*
then reinstall roundcube
> /usr/local/cpanel/bin/update-roundcube --force

Thank you, didn't try this method but should work too. Patch 0004 was giving error, but the update was also applying two 0003 patches. I don't know if it's the normal behaviour...
 
Last edited: