Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2004, 11:00 PM
Registered User
 
Join Date: Mar 2003
Posts: 64
Christleo
[line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]

A fatal error has occurred:

DB Error: connect failed

[line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]

Details have been logged for the administrator.


I got this error when i logged into my Horde, webmail... please advice..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-26-2004, 09:26 AM
Registered User
 
Join Date: Sep 2003
Posts: 3
97cobracpe
I'm getting the exact same error. Mine started after I moved to a new server.

Both old and new servers were running WHM 9.2.0 cPanel 9.2.0-R24

Horde still works on the old server, but not on the new server. I made sure to move the datavase for horde over as well.

Any other with the problem? Is there a fix?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-26-2004, 09:52 AM
Registered User
 
Join Date: Sep 2003
Posts: 3
97cobracpe
Fixed it. I searched further and found this thread.
Horde reinstall?

I simply set a new password for mysql (via whm) and all was good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-26-2004, 11:30 AM
Registered User
 
Join Date: Mar 2003
Posts: 64
Christleo
same error pla.. can't work!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-27-2004, 09:46 AM
Registered User
 
Join Date: Feb 2004
Posts: 18
jalons
At my wits end

Ok, I'm really sick of Horde, but anyway.

I'm getting that infamous error:
A fatal error has occurred:
DB Error: connect failed
[line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]
Details have been logged for the administrator.

I've done the following in attempt to resolve this issue:
1. Checked the ownership of the files in /usr/local/cpanel/base/horde
1.A For good measure, I chown -R cpanel.cpanel horde

2. I've done "Reset Local MySQL Root Password" as well as "Set MySQL Root Password" via WHM

3. I've done /scripts/resethorde and /scripts/fullhordereset and edited the mysql database to insert the password.

4. I have relinked the mysql.sock in /tmp to /var/lib/mysql/mysql.sock

5. I have a feeling this is MySQL related, so here is the contents of /etc/my.cnf

[mysqld]
set-variable = max_connections=500
safe-show-database

This server is running 9.2.0-RELEASE_20

Any help would be greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-27-2004, 02:19 PM
Registered User
 
Join Date: Feb 2004
Posts: 18
jalons
Resolved

I had to call in the big guns to get this resolved. Thanks cPanel support

The horde database was deleted from mysql. The fix for this was to run mysqladmin create horde and then run /scripts/fullhordereset.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-28-2004, 05:26 AM
Registered User
 
Join Date: Mar 2003
Posts: 64
Christleo
The horde database was deleted from mysql. The fix for this was to run mysqladmin create horde and then run /scripts/fullhordereset.

how? able to post the thread?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-28-2004, 12:05 PM
Registered User
 
Join Date: Feb 2004
Posts: 18
jalons
Readding horde db

I'm unable to post the exact fix, as the cPanel support took care of this.

You'll want to ensure that the Horde db is in face missing in action.

mysqlshow |grep horde

If this comes up blank, try the following:

mysql_setpermission

mysqladmin create horde

/scripts/fullhordereset

HTH, HAND
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-28-2004, 09:32 PM
Registered User
 
Join Date: Nov 2002
Posts: 1
Amjad
Wink Re: Readding horde db

Thanks Jalons. Nice HTH.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-06-2004, 11:37 PM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Apr 2004
Posts: 16
othellotech
thanks, that fixed the first problem of not finding the DB
now we get
Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc

anyone else seeing this ? know a fix ?
__________________
Rob Golding, Othello Technology Systems Ltd, est 1996 - AS29527
looking to buy UK based Cpanel hosts and domain regsitrars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 05-07-2004, 06:12 AM
Registered User
 
Join Date: Mar 2003
Posts: 413
jeroman8
Hi, same problem here !!

horde databas was missing from Mysql (??!!???!!!)

Anyway, I exported the structire from another
server for Horde.

Created the databse "horde" using phpmyadmin from
the link in WHM.

Then I run the following sql query: (structure)


# phpMyAdmin SQL Dump
# version 2.5.6-rc1
# http://www.phpmyadmin.net
#
# Värd: localhost
# Skapad: 07 maj 2004 kl 13:10
# Serverversion: 4.0.18
# PHP-version: 4.2.3
#
# Databas : `horde`
#

# --------------------------------------------------------

#
# Struktur för tabell `horde_categories`
#

CREATE TABLE `horde_categories` (
`category_id` int(11) NOT NULL default '0',
`group_uid` varchar(255) NOT NULL default '',
`user_uid` varchar(255) default NULL,
`category_name` varchar(255) NOT NULL default '',
`category_data` text,
`category_serialized` smallint(6) NOT NULL default '0',
`category_updated` timestamp(14) NOT NULL,
PRIMARY KEY (`category_id`),
KEY `category_category_name_idx` (`category_name`),
KEY `category_group_idx` (`group_uid`),
KEY `category_user_idx` (`user_uid`),
KEY `category_serialized_idx` (`category_serialized`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `horde_categories_categories`
#

CREATE TABLE `horde_categories_categories` (
`category_id_parent` int(11) NOT NULL default '0',
`category_id_child` int(11) NOT NULL default '0',
PRIMARY KEY (`category_id_parent`,`category_id_child`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `horde_prefs`
#

CREATE TABLE `horde_prefs` (
`pref_uid` varchar(255) NOT NULL default '',
`pref_scope` varchar(16) NOT NULL default '',
`pref_name` varchar(32) NOT NULL default '',
`pref_value` text,
PRIMARY KEY (`pref_uid`,`pref_scope`,`pref_name`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `horde_users`
#

CREATE TABLE `horde_users` (
`user_uid` varchar(255) NOT NULL default '',
`user_pass` varchar(32) NOT NULL default '',
PRIMARY KEY (`user_uid`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `kronolith_events`
#

CREATE TABLE `kronolith_events` (
`event_id` bigint(20) NOT NULL default '0',
`calendar_id` varchar(255) NOT NULL default '',
`event_description` text,
`event_location` text,
`event_keywords` text,
`event_exceptions` text,
`event_title` varchar(80) default NULL,
`event_category` varchar(80) default NULL,
`event_recurtype` varchar(11) default '0',
`event_recurinterval` varchar(11) default NULL,
`event_recurdays` varchar(11) default NULL,
`event_recurenddate` datetime default NULL,
`event_start` datetime default NULL,
`event_end` datetime default NULL,
`event_alarm` int(11) default '0',
`event_modified` int(11) NOT NULL default '0',
PRIMARY KEY (`event_id`),
KEY `kronolith_calendar_idx` (`calendar_id`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `kronolith_events_seq`
#

CREATE TABLE `kronolith_events_seq` (
`id` int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

# --------------------------------------------------------

#
# Struktur för tabell `mnemo_memos`
#

CREATE TABLE `mnemo_memos` (
`memo_owner` varchar(255) NOT NULL default '',
`memo_id` int(11) NOT NULL default '0',
`memo_desc` varchar(64) NOT NULL default '',
`memo_body` text,
`memo_category` int(11) NOT NULL default '0',
`memo_private` smallint(6) NOT NULL default '1',
`memo_modified` int(11) NOT NULL default '0',
PRIMARY KEY (`memo_owner`,`memo_id`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `nag_tasks`
#

CREATE TABLE `nag_tasks` (
`task_owner` varchar(255) NOT NULL default '',
`task_id` int(11) NOT NULL default '0',
`task_name` varchar(64) NOT NULL default '',
`task_desc` text,
`task_modified` int(11) NOT NULL default '0',
`task_due` int(11) default NULL,
`task_priority` int(11) NOT NULL default '0',
`task_category` int(11) NOT NULL default '0',
`task_completed` smallint(6) NOT NULL default '0',
`task_private` smallint(6) NOT NULL default '1',
PRIMARY KEY (`task_owner`,`task_id`)
) TYPE=MyISAM;

# --------------------------------------------------------

#
# Struktur för tabell `turba_objects`
#

CREATE TABLE `turba_objects` (
`object_id` varchar(32) NOT NULL default '',
`owner_id` varchar(255) default NULL,
`object_name` varchar(255) default NULL,
`object_alias` varchar(32) default NULL,
`object_email` varchar(255) default NULL,
`object_homeaddress` varchar(255) default NULL,
`object_workaddress` varchar(255) default NULL,
`object_homephone` varchar(25) default NULL,
`object_workphone` varchar(25) default NULL,
`object_cellphone` varchar(25) default NULL,
`object_fax` varchar(25) default NULL,
`object_title` varchar(255) default NULL,
`object_company` varchar(255) default NULL,
`object_notes` text,
`object_type` varchar(255) NOT NULL default 'Object',
`object_members` blob,
PRIMARY KEY (`object_id`),
KEY `turba_owner_idx` (`owner_id`)
) TYPE=MyISAM;

------------------

Then I run /scripts/fullhordereset

and it works :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-08-2004, 10:04 AM
HollyRidge's Avatar
Registered User
 
Join Date: Feb 2003
Location: Garner NC USA
Posts: 117
HollyRidge is on a distinguished road
Quote:
Originally posted by othellotech
thanks, that fixed the first problem of not finding the DB
now we get
Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc

anyone else seeing this ? know a fix ?
Seeing this too on one system. Anyone found a fix for it yet?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-10-2004, 11:32 AM
Registered User
 
Join Date: Jul 2003
Posts: 116
Arvand is on a distinguished road
Quote:
Originally posted by othellotech
thanks, that fixed the first problem of not finding the DB
now we get
Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc

anyone else seeing this ? know a fix ?
Same here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-10-2004, 11:58 AM
Registered User
 
Join Date: Jul 2003
Posts: 116
Arvand is on a distinguished road
Quote:
Originally posted by othellotech
thanks, that fixed the first problem of not finding the DB
now we get
Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc

anyone else seeing this ? know a fix ?
Here is a fix but it will probably be overwritten next time cPanel updates. I don't know why it is doing this... It shouldn't do NOTICE errors. Anyway, go to that file (/usr/local/cpanel/base/horde/imp/templates/menu/menu.inc), open it up and after <?php put

error_reporting(E_ALL ^ E_NOTICE);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-16-2004, 08:15 AM
Registered User
 
Join Date: May 2004
Location: Iceland
Posts: 1
frosti
Re: Readding horde db

Quote:
Originally posted by jalons
I'm unable to post the exact fix, as the cPanel support took care of this.

You'll want to ensure that the Horde db is in face missing in action.

mysqlshow |grep horde

If this comes up blank, try the following:

mysql_setpermission

mysqladmin create horde

/scripts/fullhordereset

HTH, HAND
I had this error but using your fix, the Horde IMP is now up and running! - Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc