You are here
Liraz Siri - Fri, 2009/07/10 - 14:30
A very serious bug slipped through in the latest release of Joomla 2009.07. One of the installation scripts had broken authentication to the MySQL database which results in this error on installation:
Database Error: Unable to connect to the database:Could not connect to MySQL
Many thanks to Janadmin who first reported this.There are absolutely no excuses for such a serious bug slipping into a release. We'll be changing our testing process to make sure something like this never happens again.
Meanwhile I've unreleased Joomla 2009.07 until we fix it. We're working on that right now.
Apologies to anyone who has been effected by this.
Forum:
Temporary fix
For those who have already downloaded the 2009.07 release, the issue can be remedied by running the following command:
We are still in the early stages of looking into what caused this issue and if there are any other issues that slipped through. Once all issues are fixed, we will release a new version.
Again, apologies to anyone who has been effected by this.
But live is running
Hello alon, the live version of 2009.7 is running without a problem. I tested this on both servers today, the same servers where the install version is not running. I hope this helps a bit to solve it.
best regards janadmin.
Diagnosis
We tracked down the cause of this issue to a sanity check raising an exception in one of the installer hooks, let me explain.
The installer hook 40regen-joomla-secrets job is to regenerate a random Joomla secret key as well as set a random password for the Joomla MySQL account.
Joomla's configuration files were updated with the new password, and the call was made to the di-live component 72mysql-conf to update the database accordingly. An exception was raised and the password was never set, so Joomla could not connect to MySQL post installation:
Q: But then why was the MySQL root password set correctly?
A: Because the live-installer hooks and di-live components are run in different contexts (ie. one in the chroot, other not).
Q: But its always been like this, why was an exception raised now?
A: 70mysql-conf has been thoroughly updated for our upcoming release to support new and exciting use-cases (more to come on this). One of which requires that there is only one unique instance of MySQL started when not running within a chroot. One of the sanity checks raised an exception when it received an unexpected exitcode due to the pre-initialization state of MySQL in the new installation.
The fix was simple, but the consequences were severe. This issue should never had made its way into a release, and for that we apologize. We have updated our testing protocol to make sure history doesn't repeat itself.
I am currently uploading a new version to be released.
2009.07.1 released
To those following this thread, a new version has been released which solves this issue, get it here.
Solved
It's solved, I am up and running with 1.5.12. Thx and best regards for a Joomla user.
Applicability to 2009.6 mediawiki?
Alon,
is this applicable to the 200.6 mediawiki as well?
I receive the same "out of memory" errors as janadmin on my mediawiki installations. Only after the upgrade did things break. My guess is there is also a secret key issue, but I'm not sure how to fix it.
I tried running 40regen-mediawiki-secret and 40regen-mysql-secret but I think I have to do something else... Any ideas?
Chris.
Not related
The bug this thread discusses was only applicable to the specific Joomla release, and was fixed the same day.
You mentioned "out of memory", I saw your other post - I'll comment there.
Out of Memory - Serious Apache problems!
Running Joomla - turnkey linux.distro, on vmware esx.
Out of Memory...
Database Error: "Unable to connect to the database:Could not connect to MySQL"
Your database just died due to memory starvation
New thread for a new problem + we need more information
With Joomla third party modules are sometimes to blame for excessive memory consumption.
New tread for Out of Memory
Its now posted in a new tread
http://www.turnkeylinux.org/forum/support/20100915/out-memory-serious-apache-problems
Add new comment