Backup e Restore

cancel
Showing results for 
Search instead for 
Did you mean: 
amaestri
Member II

Backup e Restore

Salve a tutti.

Ho l'esigenza di trasferire un'installazione di Alfresco da una macchina ad un'altra.

Ho seguito le note per il backup e il restore di Alfresco ma sembra che ci sia qualche problema nelle configurazioni.

In origine la mia installazione era situata sotto '/dati/alfresco.3.4d'.
Ho fatto un tar.bzip della dir di cui sopra, ho fatto un mysqldump del db ed ho copiato i due file sulla nuova macchina.
Qui ho scompattato il tar.bzip e importato il dump del DB ed ho provato ad startare Alfresco.

Ma nel catalina.out dopo tutta la serie di start ottengo quanto segue:



Jun 6, 2011 4:00:47 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1cc0af6]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@e3cd9c]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Jun 6, 2011 4:00:47 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@1cfe433]) and a value of type [com.sun.xml.bind.v2.runtime.Coordinator[]] (value [[Lcom.sun.xml.bind.v2.runtime.Coordinator;@18f11d3]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Jun 6, 2011 4:00:47 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.alfresco.repo.security.authentication.AuthenticationUtil.ThreadLocalStack] (value [org.alfresco.repo.security.authentication.AuthenticationUtil$ThreadLocalStack@17bcfe3]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Jun 6, 2011 4:00:47 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@18d6cf4]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Jun 6, 2011 4:00:48 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive awe.war
Jun 6, 2011 4:00:51 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive wcmqs.war
WARN : org.apache.myfaces.shared_impl.util.LocaleUtils - Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
WARN : org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'baseUrl' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.lang.String) throws java.net.URISyntaxException]: [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.net.URI)]
Jun 6, 2011 4:00:54 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
16:00:57,328  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 309 Web Scripts (+0 failed), 319 URLs
16:00:57,329  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
16:00:57,329  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
16:00:57,473  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1245.715ms)
16:00:57,500  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:00:57,572  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
16:00:57,718  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:00:57,721  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
16:00:57,828  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:00:57,832  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
Jun 6, 2011 4:00:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 6, 2011 4:00:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 6, 2011 4:00:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 6, 2011 4:00:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/26  config=null
Jun 6, 2011 4:00:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 33485 ms
WARN : org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - WQS unable to connect to repository: Not Found
WARN : org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - WQS unable to connect to repository: Not Found
WARN : org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - WQS unable to connect to repository: Not Found

Qualcuno mi può aiutare? Posso anche inviare il log completo a chi interessa.

Grazie,
Alex.
1 Reply
openpj
Moderator
Moderator

Re: Backup e Restore

Una volta che hai provato a ripristinare la nuova istanza ti sei assicurato di aver configurato opportunamente il file alfresco-global.properties all'interno di tomcat/shared/classes/alfresco?

Mi riferisco alla property dir.root e a tutte le referenze per il database.