cancel
Showing results for 
Search instead for 
Did you mean: 

'Schema auto-update failed' after installation (OS X/MySQL)

bcm
Champ in-the-making
Champ in-the-making
I installed the Tomcat-bundled version of Alfresco Community 2.9.0B on a MacBook Pro running Leopard and configured it to use a MySQL database. Like many others apparently, I get that "Schema auto-update failed" exception when I start the server. The nested exception message is "A previous schema upgrade failed.  Revert to the original database before attempting the upgrade again."

Having searched through these forums at length, I've tried all the different suggestions like: remove your alf_data directory, drop and recreate your database, etc. I didn't expect any of these things to help, since I've never gotten the server to start up or create a table in the database, and of course they didn't.

After the message "Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect" is logged, there is a noticeable hang of several seconds before the exception is logged. I suspect that this is the period of time in which Tomcat is waiting for its attempt at connecting to the database server to time out.

I read somewhere in these forums that earlier versions of Alfresco swallowed an exception that actually provided information as to what's going wrong with the database connection attempt, and that recent builds are no longer swallowing it. Can anybody confirm what build or version this occurred in? Is 2.9.0B not recent enough?

I created the database with the db_setup.sql script. The relevant bits of the various config files are excerpted below.

Is there anything else I can do to diagnose the problem?

Thanks!

== custom-repository.properties

db.driver=org.gjt.mm.mysql.Driver                                                                                                                                                      
db.url=jdbc:mysql://localhost/alfresco  

== custom-hibernate-dialect.properties

hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
2 REPLIES 2

steve
Champ in-the-making
Champ in-the-making
Hi,
You can get this error if the user you are connecting alfresco to in the DB does not have the correct permissions to access the database tables.
I logged this as ETWOTWO-522 (for Oracle, but I suspect this is the same for most/all dbs) but it has yet to be resolved.

Steve

bcm
Champ in-the-making
Champ in-the-making
Thanks for the heads up.

I found a few hours after posting this that my MySQLinstallation was broken. I was installing another application, and when it tried to connect to the database server, it spit out an error from MySQL telling me that the server couldn't create a database file. That was handy information that helped me fix the database server problem  :shock:  Once that was fixed, I tried Alfresco again, and it worked.

So, let this thread be a bump for the bug you logged!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.