Forums / Install & configuration / Suddenly I have a kernel (50) database connection error

Suddenly I have a kernel (50) database connection error

Author Message

Peter Gray

Thursday 10 February 2005 11:14:30 am

The site was working yesterday. The settings in site.ini and override/site.ini.append.php are unchanged and (except for database name/user/password details) are the same as another site I have which is running just fine. Enabling debug makes it seem as if it's stopped reading site.ini.append.php, as it uses the default settings in site.ini (which of course don't work). Other errors indicate that it's unable to write to files in var/cache, though these are all writeable.

Any suggestions? Currently all anyone can see is the admin login page with the error showing.

I could code the correct settings into site.ini, I suppose - would this cause other problems?

The database and all the data is still there, I can see it via phpMyAdmin.

Norbert Suck

Friday 11 February 2005 5:35:58 am

At my site it ist the same. After installing on the adminsite and on the user site there is the same message.
I done the installation two or three times, deleting the database, but nothing happenend.
Whats wrong?

Peter Gray

Friday 11 February 2005 8:19:44 am

What I don't understand is that the site was up and running and had been since before Christmas, but suddenly vanished on Thursday. All the site.ini and site.ini.append.php files seem to be correct (when compared with another site I have which is still working fine), but eZ seems not to be looking at any of the override settings.

I think I'll try hard coding the settings into site.ini and see if it works (after acking up the original, of course!).

I've seen a few posts with people having this sort of problem when installing, but not with it happening spontaneously in this way with a functioning site.

Norbert Suck

Friday 11 February 2005 4:41:32 pm

Now I taken older Versions of EZ-CMS but there ist the same story.
And no one from EZ will answer to this thread.
I think I don´t want to use this again!

Łukasz Serwatka

Saturday 12 February 2005 1:02:38 am

Hi

Did you test your connection? Do you use firewall? Remove var/cache and var/(prefix)/cache and try again. Check MySQL configuration and max_connection variable.

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?> 

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Peter Gray

Saturday 12 February 2005 3:24:32 am

Thanks for those suggestions. The database connection is fine. I can connect and see the database using phpMyAdmin, and if I hard code the connection settings into site.ini, it connects to the database fine (but of course because of other settings the site doesn't work properly).

I have manually cleared the cache as you suggested, but it makes no difference, I still get the same error. It looks to me as if all override settings are being ignored, though I can't think why that should be, nor why it should have started to happen after the site has been up and running for more than two months. Enabling debug indicates that everything it's trying to do comes from site.ini, not from any of the overrides.

eZ version is 3.4, php 4.3.10, mysql 4.0.22.

I'm now completely stuck. Any further thoughts?

Łukasz Serwatka

Saturday 12 February 2005 4:50:59 am

Are you sure that administrator didn`t make any upgrades or changes? This looks like permission problem? Does settings/override and settings/siteaccess files has the same permissions what settings/ files?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Peter Gray

Saturday 12 February 2005 6:43:50 am

Yes, it looks like some kind of permission problem, but there is no difference in the settings and permissions between the working site I have and this site which has suddenly stopped working. The only difference I can see (they are with the same host but on different servers) is the Linux kernel version on the two machines: 2.6.10-1.12_FC2 on the broken site and 2.6.10-1.9_FC2 on the working site. I don't know if any upgrades may have been made recently, but there's been no recent change in PHP or MySQL versions.

What should the permissions for the files be set to? Currently they are 666 in settings/override and settings/siteaccess.

If I backed up the data in the database and did a clean reinstall would I be able to import the data back into the database?

Norbert Suck

Saturday 12 February 2005 10:27:28 am

I have checked all. NO firewall is running, all changes are correct.
But nothing happened after four hour working.
My Administrator hasn&#180;t changed anything. Safe mode is on!

But I have checked so much, no version of ez is working.
The database is working. I&#180;ve checked it on the server. they runs, but with the program it doesn&#180;t have any connections.

any other changes to do???

Gabriel Ambuehl

Saturday 12 February 2005 10:37:49 am

It generally is helpful for safe_mode to be OFF.

Visit http://triligon.org

Norbert Suck

Saturday 12 February 2005 10:43:12 am

Sorry but my provider says: We can&#180;t take safe mode off.
So Ez doesn&#180;t runs without???

Norbert Suck

Saturday 12 February 2005 10:46:03 am

Is there any version which runs with safe mode?

Gabriel Ambuehl

Saturday 12 February 2005 10:52:25 am

I don't think so. I'm however not entirely sure.

Visit http://triligon.org

Peter Gray

Saturday 12 February 2005 2:27:30 pm

I wonder if this is the key to my problem? Having done a quick check, I can see that the broken site has safe_mode on, while the working site has safe_mode off.

Could it be as simple as that?

Łukasz Serwatka

Saturday 12 February 2005 2:35:31 pm

Hi,

You can disable safe_mode for your eZ dir. Ask for help administrator.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Peter Gray

Saturday 12 February 2005 2:45:32 pm

Just sent up the request to support. They're usually quite fast, even on Saturday nights. Hope that solves it.

I've just realised I've posted from two different accounts. Nonetheless both Pete Grays are me.

Norbert Suck

Tuesday 15 February 2005 11:00:36 pm

Now I have worked on EZ for several days. I had a talk to administrator, we made the safe mode off and installed it new.
We have took different versions of Ez but there is still the same message.
So we installed it into another side with more features of the account. But nothing happend.

Is there PHP 5 needed????