TurnKey Linux Virtual Appliance Library

Moodle upgrade failing

I've had moodle running on a VM for a couple of weeks now.

Today, I did an apt-get upgrade from the web shell (I've since tried it from Webmin and SSH'd into the server as well). There were three packags to upgrade, one of which was moodle. The other two worked fine. The moodle upgade failed with the following

Setting up moodle (1.8.2-1ubuntu4.3) ...
* Reloading web server config apache2 [ OK ]
Failed to connect to database: Access denied for user 'root'@'localhost' (using password: NO) at -e line 5, <> line 1.
Failed to create database (incorrect admin username/password?)
It's also possible that mysql-server wasn't running. After install
is completed, you will need to make sure mysql-server is running
and that you supplied correct information. Try:
sudo dpkg-reconfigure moodle
cp: cannot create regular file `/var/lib/update-notifier/user.d/moodle-reconfigure-required': No such file or directory
dpkg: error processing moodle (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
moodle
E: Sub-process /usr/bin/dpkg returned an error code (1)

The installed version seem to be running fine. It just won't upgrade.

Just for grins (and because we are not in production with this yet), I tried changing the password for root@localhost to what I already knew it to be via phpMyAdmin. Everything still runs fine, even after reboot but the upgrade still fails.

Any ideas on this one?

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)