cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating Alfresco from windows to linux

carlosdms
Champ in-the-making
Champ in-the-making
Hello all,

I´m trying to move my alfresco installation from a windows 2008 to ubuntu linux. My alfresco version is 3.4.b and what I did is to backup my alf_data dir in windows and then restore it to the  same linux folder, and then mysqldump the database in windows and restore it in my linux MySQL server. It didn´t work. I´m not upgrading, "just" moving from a windows server to linux.  Is this a correct approach? Im setting same permissions, usernames and password in the database.

Database related error logs:

/var/log/mysql/error.log

110705 16:29:02 [Note] Plugin 'FEDERATED' is disabled.
110705 16:29:02  InnoDB: Initializing buffer pool, size = 8.0M
110705 16:29:02  InnoDB: Completed initialization of buffer pool
110705 16:29:02  InnoDB: Started; log sequence number 0 40574967
110705 16:29:02 [Note] Event Scheduler: Loaded 0 events
110705 16:29:02 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.54-1ubuntu4'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)

/var/lib/mysql/webquickstart.log


15:45:39,464 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found

/opt/alfresco-3.4.d/tomcat/logs/catalina.2011-07-05.log


16:36:18,252 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexRecoveryComponent' defined in class path resource [alfresco/index-recovery-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'recoveryMode' threw exception; nested exception is java.lang.IllegalArgumentException: No enum const class org.alfresco.repo.node.index.FullIndexRecoveryComponent$RecoveryMode.FULL
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1341)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        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:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        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:443)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'recoveryMode' threw exception; nested exception is java.lang.IllegalArgumentException: No enum const class org.alfresco.repo.node.index.FullIndexRecoveryComponent$RecoveryMode.FULL
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
        … 38 more

So, as I have not a clear idea because I didnt find many information about this topic, I have tried also a different way:  Using export and import using the web interface, but I get an error message:

    * A system error happened during the operation: A namespace prefix is not registered for uri http://www.alfresco.org/model/webdav/1.0 

Any help or tip or recommendation would be much appreciated. I´m very new to alfresco and im finding difficult to mess with this things from the very beginning.


Carlos.
3 REPLIES 3

carlosdms
Champ in-the-making
Champ in-the-making
Basically following the procedure in http://wiki.alfresco.com/wiki/Export_and_Import helped to make the hole thing to work.

So just tar dir.root and backup database in windows with mysqldump. Then untar dir.root in linux, create database, apply permissions and restore. After that for me it was also neccesary to rebuild indexes adding this line to alfresco.global-properties:
index.recovery.mode = FULL

restart alfresco daemon and test your luck 😉


Carlos.

ramu
Champ in-the-making
Champ in-the-making
An error has occured in the Share component: /share/service/components/dashlets/my-sites.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 07030001 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 07030000 07030001 Failed during processing of IMAP server status configuration from Alfresco: 07030000 Unable to retrieve IMAP server status from Alfresco: 404
Server: Alfresco Spring WebScripts - v1.2.0 (Release 1207) schema 1,000

After done backup and restore process steps please help me

kaynezhang
World-Class Innovator
World-Class Innovator
error code 404 means web script in share can't visit repository data webscript (it's url is  alfresco/service/imap/servstatus)

you can browse http://localhost:8080/alfresco/service/index   and search IMAP to test if imap-enabled web script exists
if it dosen't exsit, please check alfreso application ,make sure you have file
alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\imap\imap-enabled.get.desc.xml
if file imap-enabled.get.desc.xml exists please do as below
Type http://localhost:8080/alfresco/service/index in the web browser.
Click Refresh Web Scripts.

if file imap-enabled.get.desc.xml dose not exist ,make sure you install alfresco correctly