ERROR: kernel (50) No database connection could be made, the system might not behave properly

Author Message

Damon Dimitri

Monday 12 January 2004 8:58:21 am

Hi,

I have a freshly installed version of eZpub 3 on my server. I ran the install and everything was seamless. Once the install was finished I was brought to this page where there is an error. I have tried reinstalling and have double and trippled checked my database settings. It still does not work. Please help someone. Thank you very much in advance.

D Dimitri

gabriel landaeta

Saturday 17 January 2004 7:12:11 pm

HI DIMITRI I WAS THE SAME PROBLEM TAHT YOU UNTIL I DECIDE TO DO A BRUTE FORCE AND TRY EVERYTHING, INCLUDING READING ALL THE DOCUMENTATION, THEN CASUALLY I TRY AGAIN(LIKE THE TEN TIME OF NORMAL SETUP) TO CHOOSE AL THE KINDS OF SITES AND I CREATE DIFERENTS DATABASE FOR ANY SITE KIND AND THAT`S IT AT LEAST THE ERROR (50) KERNEL ERROR DID NOT APPEAR ANYMORE. GOOD LUCK

kevin wei

Saturday 17 January 2004 9:38:43 pm

i have this error too

but when i install it first time, i have no problem, i use forum temlpate.
the second day , all is ok , i can browse first page & login in admin page.but if i click "login" on frontpage .i get this error "ERROR: kernel (50) No database connection could be made, the system might not behave properly". and cannot login as a user.

why i can login in admin page?

Lazaro Ferreira

Sunday 18 January 2004 7:32:38 am

Hi,

Check you siteaccess DatabaseSettings

Every siteaccess has its own DatabaseSettings

If you have changed your siteaccess DatabaseSettings you should clear cache

Lazaro
http://www.mzbusiness.com

kevin wei

Sunday 18 January 2004 6:01:16 pm

i find a interesting thing that all setting is ok,but some time later i cannot login as user,but can login in admin panel ,get error:ERROR: kernel (50) No database connection could be made, the system might not behave properly

i know all setting is ok.

but if i overwriting all files under /settings/override/ ,then i can login as a user.

why?

Lazaro Ferreira

Monday 19 January 2004 1:26:02 am

Hi,

Don't forget there is four places to check in order:

settings/siteaccess/your_user_site/site.ini.append
settings/siteaccess/your_admin_site/site.ini.append
settings/override/site.ini.append
settings/site.ini
-------------------------------------------------------
Also check your SiteURL settings, in every file, it must match the URL you are trying to access from in every case

Also check your PHP version 4.2.2, is reported to be unstable with EZP, you should upgrade to 4.3.x

Lazaro
http://www.mzbusiness.com

Nick Woods

Monday 19 January 2004 1:34:35 am

I'm having similar problems and found that the setup wizard dint create any files in

settings/siteaccess/your_user_site/site.ini.append
settings/siteaccess/your_admin_site/site.ini.append

I created them manually and that error has gone but i cant logon to the admin site - i get the user and password field but it just keeps coming back to the logon everytime. If I put in an invalid user id I get an error so it must be connected to the database but then losing its way.

I'm using php 4.2.2 (on linux) so my next step is to upgrade to the latest version

Peter Troxler

Tuesday 10 February 2004 8:18:43 am

It's just a fact -- this installer does not everything it should do -- some people call that beta; i'd call it a blunder, rubbish, shit, incompetence ... you name it

What I had to do:
(1) edit site.ini
(2) create a installationhomefolder/settings/siteaccess/myextrasite and installationhomefolder/settings/siteaccess/myextrasite_admin folder with a site.ini.append for each extra site (the first site (layout) I selected was taken as the "main" installation ... I believe I had seen somewhere a setting to change this, but don't remember)

content of these files --

in site.ini edit the following section

[DatabaseSettings]
DatabasePluginPath=
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezmysql
Server=localhost
User=the_username_you_selected_for_your_database
Password=the_password_you_selected_for_your_database
Database=the_database_you_selected_for_your_main_installation

in the site.ini.append files paste the following section

[DatabaseSettings]
DatabasePluginPath=
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezmysql
Server=localhost
User=the_username_you_selected_for_your_database
Password=the_password_you_selected_for_your_database
Database=the_database_you_selected_for_your_extra_installation

I wonder what my next problem will be ....

Alberto Pipio

Tuesday 10 February 2004 12:34:21 pm

Symptoms:
This error started to occur suddenly every time I wanted to login in non administrative site (the administrative site continues to run Ok).

Causes:
The last changes I made before this site went wrong was deleting de lines:
SiteList[]
(right above SiteList[]=<my site name> line)
and
AvailableSiteAccessList[]
(right above AvailableSiteAccessList[]=<my site name>)
in site.ini.append.php file
I thought this lines were a installation bug (silly me)

Solution:
After I put back those lines every thing started to work fine again.

Roger Andersen

Saturday 27 March 2004 4:05:41 am

Nothing works okay! A few months ago the installation worked, now its just that damn kernel error showing up all the time!

Alexandre Cunha

Saturday 27 March 2004 8:43:48 pm

look at DatabaseSettings and verify if you have a space before database name.
Remove the space and try again.

http://AlexandreCunha.com

Roger Andersen

Monday 29 March 2004 6:29:33 am

I've done that. The wizard dont seem to be editing those files at all. I've added the information myself and it wont work even if I have spaces or not..

oscar maj

Tuesday 04 May 2004 4:30:37 pm

Got the same issue here - If this is the standard Im out of here ;) good luck guys..
To many scripts out there to fight with this 1. Will be back to test after a new ver.

l8r

Naoto Kurihara

Saturday 08 May 2004 1:22:44 pm

I had same problem after the new installation. I checked with phpAdmin to see if installation process created any tables. And I found many tables. So I thought the information I entered were good in installation process.

I read this theread from top. I did most of them. And the problem was not fixed. Then I decided to look at the "site.ini" file and found "Databse" parameter was something I did not recognized. That said <b>"nextgen"</b>. So I went ahead to changed it my database name. Below is portion of my "site.ini" file

# ====== start =====

[DatabaseSettings]
DatabasePluginPath=
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezmysql
Server=localhost
User=[user_name]
Password=[password]
#Database=nextgen # <b>this is the problem in my case.....</b>

# ====== end =====

Good luck.

Vadym Savchuk

Friday 21 May 2004 5:48:47 am

Hello guys. Please specify which options did you select during the installation process (packages, database, language, etc). Thank you.

Stef. Tester

Friday 28 May 2004 6:43:43 pm

I've got with the first install exactly the same message, despite i've tried to do it without console access, via ftp.
I chmod'ed the /dirs claimed by the install script towards even 777, but after finishing install this error message appeared.

And there were no database details written, despite giving the correct ones during install.
Afterwards there were simply the 'old' default ones.

Only with shell/console access and changing the chown and chmod EXACTLY as the install script told me, it worked and all data was written.

BTW. i have had to change the /var dir towards Apache2 user wwwrun.www - this is IMHO no really wise and secure procedure ...

Greets Stef.

Stuart DH

Thursday 03 June 2004 2:28:07 am

I see that this problem still exists in 3.4. I've now tried to install 3.4 three times and I simply can't get it to work. Here's a brief rundown of what I've been doing

Apache 1.3.29 (Unix)
Mysql 4.0.18-standard
PHP 4.3.4

Set-up DB (wildsco_ez) using Cpanel on webspace
32MB PHP memory limit and Imagemagick installed

Finetune - All required CHMODs to 777

Email - Sendmail
Database - Mysql

Database Initialization
Localhost
Username and password identical to Cpanel set-up

Language Support &#8211; Primary: English (UK), no additional

Site Type &#8211; Plain

Site Functionality &#8211; All except for weblog and forum

Site Access Configuration &#8211; URL

Site Details &#8211; Title: Plain
Site URL: www&#8230;/ez/index.php
User Path: plain
Admin Path: plain_admin
Database: wildsco_ez

Site Administration &#8211; All usual details

Site Finished Screen show all OK with message that first login will take 30 to 60 seconds to initialise

However, if I click on admin link I get the Kernel (50) error and can't login

http://www.wildaboutbritain.co.uk

omar bullet

Monday 05 July 2004 4:53:44 am

I get the same error if i try to connect to admin page from an external machine. But on the same machine i don't get that error. btw its WinXP with Sp1.

Stuart DH

Monday 05 July 2004 5:06:53 am

The fault appears to lie in the finetune forgetting to tell you to CHMOD the settings/siteaccess folder as well.

You won't get the problem on a windows server because you don't need to CHMOD on windows.

http://www.wildaboutbritain.co.uk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.