Still unsuccessful migrating from 3.4.d to 4.0 (now e)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2012 06:58 PM
I had a similar post earlier last week, but now it's more focused on getting Alfresco 4.0.e to properly migrate the data from 3.4.d. I've spent many an hour following migrating guides and have come up short. I wanted to see if we can pinpoint exactly what's going on, so I'll include the alfresco.log. I still don't know what a lot of the output means, so I appreciate any help in the matter. Here's what I've done:
On the 3.4.d Machine…
1) Mysqldump of database after stopping the alfresco service, made "alfresco.sql"
2) Copied the entire alf_data directory
3) Put them in the same folder (I remember that being a requirement in the Backup & Restore procedure, but now that I think of it, I wonder how that's implemented in a brand new installation of Alfresco on a different machine!)
On the 4.0.e Machine
1) Download and install mysql 5.5.27 and configure all necessary information (alfresco user, new alfresco database, grant all privileges for that user, etc.)
2) Propagated the contents of alfresco.sql into the blank alfresco database
3) Installed Alfresco-4.0.e without postgresql
4) I originally copied just the contentstore and contentstore.deleted from the 3.4.d alf_data folder into the new alf_data folder. Just recently, I tried completely moving the 3.4.d alf_data folder into the /opt/alfresco-4.0.e folder just to see, and moving the new alf_data folder elsewhere. Neither worked.
5) Modified the alfresco-global.properties to add the index.subsystem.name=lucene and index.recovery.mode=FULL, and commented out the SOLR configuration
6) Added the Mysql connector JAR file to tomcat/lib
7) Started Alfresco service
I couldn't log in and checked alfresco.log many times, and I get the errors that you can see in the attachment. I've read that the failure to update schema problem was remedied by dropping the table alf_bootstrap_lock, so I tried that, but it just keeps adding it whenever I restart Alfresco. It doesn't seem to be indexing because I don't see any progress made in the logs. I also read that certain ports can be blocked by the firewall, so I tried temporarily disabling the firewall altogether just to see if that was the case. Unfortunately, nope! So, here I am losing hope that I will be able to move that data to the new version. Any help is greatly appreciated!
Damn, okay so if anybody wants to tell this noob how to attach files in the forums, I'd definitely appreciate it. Thanks!
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2012 07:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2012 11:08 AM
I was trying to find the way to attach files but must be missing something. Below is the log, sorry about that!16:01:35,027 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]16:01:35,098 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete16:01:43,231 WARN [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active/enabled16:01:46,760 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl16:01:46,763 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js16:01:53,757 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.16:01:55,439 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8183105340779268156.txt16:02:02,625 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-6963058047176949773.txt16:02:09,138 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-1248496286295736715.txt16:02:17,030 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-3524395657223590442.txt16:02:22,967 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-4248472783159878558.txt16:02:29,223 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-7841494564058956227.txt16:02:35,312 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8599276401815501812.txt16:02:41,751 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-3482119987163177049.txt16:02:47,812 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-7827465021293680450.txt16:02:53,808 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8850442064257761476.txt16:02:59,914 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5858014926254049588.txt16:03:06,007 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-1276078938086265437.txt16:03:12,051 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-4540091548047593297.txt16:03:17,933 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5103710684233879594.txt16:03:23,868 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-592998049768350869.txt16:03:29,816 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5029107890820814900.txt16:03:35,770 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8295049224847704624.txt16:03:41,835 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5908792400006366762.txt16:03:47,837 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-3852371534114144842.txt16:03:53,795 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-990914112380620938.txt16:03:59,742 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8340947102449815626.txt16:04:34,496 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]16:04:34,575 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete16:04:46,741 WARN [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active/enabled16:04:50,837 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl16:04:50,840 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js16:04:59,616 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.16:05:01,419 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8207704001413618307.txt16:05:07,851 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5920710617772708284.txt16:05:14,112 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-7458587896803989667.txt16:05:20,258 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-4606763847109016185.txt16:05:26,552 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-6482493078342965277.txt16:05:32,959 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-5648111596420512214.txt16:05:38,804 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-1652475915441400005.txt16:05:44,990 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-323307383608195519.txt16:05:51,036 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-2495221590659597873.txt16:05:57,299 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-9155672696683852688.txt16:06:03,360 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-4099633853258127584.txt16:06:09,308 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-8844834145579279736.txt16:06:15,268 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-255706817923859870.txt16:06:21,225 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 2 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-3030324121654232381.txt16:06:27,299 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found 1 potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-4655622940808645662.txt16:06:27,940 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/alfresco-4.0.e/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2472703545782638520.sql (Generated).16:06:27,961 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] Statement execution failed: SQL: alter table JBPM_ACTION add index FK_ACTION_REFACT (REFERENCEDACTION_), add constraint FK_ACTION_REFACT foreign key (REFERENCEDACTION_) references JBPM_ACTION (ID_) Error: Can't create table 'alfresco.#sql-d1f_22' (errno: 121) File: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2472703545782638520.sql Line: 116:06:27,962 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema auto-update failedjava.sql.SQLException: Can't create table 'alfresco.#sql-d1f_22' (errno: 121) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2713) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2663) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:888) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:730) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.alfresco.repo.domain.schema.SchemaBootstrap.executeStatement(SchemaBootstrap.java:1319) at org.alfresco.repo.domain.schema.SchemaBootstrap.executeScriptFile(SchemaBootstrap.java:1269) at org.alfresco.repo.domain.schema.SchemaBootstrap.updateSchema(SchemaBootstrap.java:836) at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1479) at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)16:06:27,966 ERROR [org.springframework.web.context.ContextLoader] Context initialization failedorg.alfresco.error.AlfrescoRuntimeException: 07200000 Schema auto-update failed at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1612) at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209) at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: java.sql.SQLException: Can't create table 'alfresco.#sql-d1f_22' (errno: 121) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2713) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2663) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:888) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:730) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264) at org.alfresco.repo.domain.schema.SchemaBootstrap.executeStatement(SchemaBootstrap.java:1319) at org.alfresco.repo.domain.schema.SchemaBootstrap.executeScriptFile(SchemaBootstrap.java:1269) at org.alfresco.repo.domain.schema.SchemaBootstrap.updateSchema(SchemaBootstrap.java:836) at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1479) … 34 more16:06:56,285 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl16:06:56,390 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js16:06:56,391 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl16:06:56,399 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js16:06:58,630 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 314 Web Scripts (+0 failed), 324 URLs16:06:58,630 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed) 16:06:58,630 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed) 16:06:59,123 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 2707.4324ms)16:06:59,138 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl16:06:59,142 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js16:09:30,547 INFO [org.alfresco.web.site.EditionInterceptor] Unable to retrieve License information from Alfresco: 404
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2012 01:11 AM
Things to check
* Do the user you are using have full permissions to the db to do all the changes?
* Check the exact statement being run in file /opt/alfresco-4.0.e/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2472703545782638520.sql (you get the file name from the log). You may have to grab it before you stop tomcat, it resides in temp directory and can get deleted. Is there a statement trying to create something that already exists?
* Grab the Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade* files, what do they tell you?
* If the above doesn't give you any clues, install a clean alfresco db of the current version, and compare the db tables and see if you have any tables, index, foreign keys that do not match up. That is essentially what Schema validation does for you, so you should be able to see it from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2012 11:48 AM
https://forums.alfresco.com/en/viewtopic.php?f=8&t=45911
I've done this guide with all the steps I've done to upgrade from 3.4.d to 4.0.d, the .e it's the same but with the new ssl certificate for SOLR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2012 05:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2012 07:03 PM
your database connection seems to work because the error comes from the database:
Caused by: java.sql.SQLException: Can't create table 'alfresco.#sql-d1f_22' (errno: 121)I know errno 121 from duplicate foreign key contraints. Have you checked the preupdate files loftux mentioned?
Your imported db dump may have conflicting contraint names or there are tables from previous upgrade attempts?
Regards
Heiko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2012 12:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2012 04:41 PM
you need SQL/MySQL knowledge to fix that issue. All required hints are written to files mentioned in your log:
There are several entries like
WARN [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema validation found .. potential problems, results written to: /opt/alfresco-4.0.e/tomcat/temp/Alfresco/Alfresco-MySQLInnoDBDialect-Validation-Pre-Upgrade-…
You can also look into the migration script mentioned in the log
/opt/alfresco-4.0.e/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2472703545782638520.sqland search for the full statement causing the problem
Can't create table 'alfresco.#sql-d1f_22' (errno: 121)
regards
Heiko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2012 04:14 PM
So, I was able to install a new copy of 4.0.e with a new blank database, so it seems the connector is working. It populated the database with the necessary tables, so that's good! I didn't see any of the errors that I posted earlier, so I hope I'm on the right track.
I noticed when installing the new instance, I got an error when installing the OpenOffice part. It said another application is using the port (8100). I did a nmap, and sure enough, there's an application running on that port, called xprint-server. I'm doing some research on it now, but if anybody has an idea as to how to change the port on xprint-server for CentOS, I'm all ears! Thanks, and I will get back to this forum once I've made progress.