Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Default Horde database deleted by cPanel upgrade!

    From within WHM this evening I carried out a cPanel upgrade, to receive the latest version cPanel 11.24.5-S38506 - WHM 11.24.2 - X 3.9.

    The upgraded system ends up in the following error message when I log into the Horde webmail:

    A fatal error has occurred
    DB Error: no such database
    Details have been logged for the administrator

    The log file tells me the following:
    HORDE [emergency] [horde] DB Error: no such database: [nativecode=1049 ** Unknown database 'horde'] …

    What did happen with the Horde database during the cPanel upgrade process? Did the upgrade process delete the Horde database? Unbelievable!!! In such case, all the user's preferences are gone!!!

    How to sort it out? How to bring the Horde database back?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    If you have an database backup then you can restore the Horde database backup from the available backup.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Default Upgrade scripts bugs bugs

    The horde database has now been regenerated from backup, after the fatal database deletion carried out by the cPanel upgrade process. Without this MySQL database backup system set up some months ago, all the user’s preferences etc. would have been lost forever. How is this possible? I know the horde database has been redesigned over some time, the histories table is not included any longer as an example.

    Was that the original intention of the upgrade script? To drop the histories table? Then the script dropped the complete database instead? Bugs bugs bugs. Can we thrust the upgrade scripts for the future?

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Ivalde View Post
    The horde database has now been regenerated from backup, after the fatal database deletion carried out by the cPanel upgrade process. Without this MySQL database backup system set up some months ago, all the user’s preferences etc. would have been lost forever. How is this possible? I know the horde database has been redesigned over some time, the histories table is not included any longer as an example.

    Was that the original intention of the upgrade script? To drop the histories table? Then the script dropped the complete database instead? Bugs bugs bugs. Can we thrust the upgrade scripts for the future?
    There was a logic flaw in the Horde update scripts that caused this. The problem is resolved in 11.25.0
    Kenneth
    Product Manager
    cPanel, Inc.

  5. #5
    Member
    Join Date
    Jan 2006
    Posts
    17

    Default

    We have no Horde-DB backup - or is this done automatically with cpanel-backup? Should we create a new empty db?

  6. #6
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Check /var/cpanel/horde

    There may be a dump of the Horde database in /var/cpanel/horde. The file format would be horde.backup.sql.XXXXXXXXXX. You can restore the database by first making sure the database exists, creating it if necessary, then importing from the dump using a command like this:

    Code:
    # mysql -uroot -p horde < horde.backup.sql.XXXXXXXXXX
    Replace the X characters with the actual numbers in the filename, and enter the MySQL root password when prompted.

    If there is no good backup in /var/cpanel/horde, you can run /scripts/reinstallhorde to completely reinstall Horde with an initial database.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  7. #7
    Member
    Join Date
    Jan 2006
    Posts
    17

    Default

    Hi

    OK, this backups were quite old and there was no data inside.. I restored the DB-Files from our normal backup and I just placed the MyISAM Files there.. seems to work...

    Regards

Similar Threads & Tags
Similar threads

  1. how to find who deleted database from cpanel
    By ankush k in forum New User Questions
    Replies: 4
    Last Post: 07-27-2011, 04:57 AM
  2. Horde database error during upgrade.
    By MarcelB in forum E-mail Discussions
    Replies: 0
    Last Post: 02-10-2008, 04:47 AM
  3. New horde skin/theme deleted each upgrade
    By pcsousa in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-20-2007, 09:26 AM
  4. Horde giving me a database error after cpanel upgrade?
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-21-2006, 09:13 PM
  5. Replies: 0
    Last Post: 05-29-2006, 12:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube