Pb de restauration de sauvegarde (Alf_data + MYSQL)

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

Pb de restauration de sauvegarde (Alf_data + MYSQL)

Bonjour à tous,

J'ai récemment installé Alfresco version Community 3.2r2 sur un serveur (Win xp).
J'ai aussi paramétré un utilitaire de sauvegarde qui me copie quotidiennement le dossier C:\Alfresco (répertoire d'installation d'Alfresco) sur un disque dur externe.

Suite à une coupure de courant pendant la nuit suivie d'un redemarrage du serveur, il m'est impossible d'accéder de nouveau à l'application. J'obtient le message d'erreur suivant :

Etat HTTP 404 -

type Rapport d'�tat

message

description La ressource demand�e () n'est pas disponible.
Apache Tomcat/6.0.18


Je décide donc de remplacer les répertoires "Alf_data" et le répertoire "MYSQL" dans le dossier C:\Alfresco et redemarrer celui-ci (Tomcat + mysql) => Sans succès

Voici la log que j'obtient :
6 mai 2010 00:14:34 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
6 mai 2010 00:14:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 365 ms
6 mai 2010 00:14:34 org.apache.catalina.core.StandardService start
INFO: D´┐¢marrage du service Catalina
6 mai 2010 00:14:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
6 mai 2010 00:14:35 org.apache.catalina.core.StandardContext addApplicationListe
ner
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is
already configured for this context. The duplicate definition has been ignored.
00:14:39,875  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from class path resource [alfresco/repository.properties]
00:14:39,875  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from class path resource [alfresco/domain/transaction.properties]
00:14:39,875  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from URL [file:/C:/Alf/tomcat/shared/classes/alfresco-global.properties]

00:14:39,953  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:14:51,703  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor Repository Template Processor for extension ftl
00:14:51,703  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor Repository Script Processor for extension js
00:14:56,359  INFO  [domain.schema.SchemaBootstrap] Schema managed by database d
ialect org.hibernate.dialect.MySQLInnoDBDialect.
00:14:58,171  INFO  [domain.schema.SchemaBootstrap] No changes were made to the
schema.
00:14:58,953  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'sysAdmin' subsystem, ID: [sysAdmin, default]
00:14:58,953  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:14:58,968  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
00:15:00,109  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'thirdparty' subsystem, ID: [thirdparty, default]
00:15:00,109  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:00,203  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'thirdparty' subsystem, ID: [thirdparty, default] complete
00:15:00,203  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'OOoDirect' subsystem, ID: [OOoDirect, default]
00:15:00,203  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:01,156  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
00:15:02,093  INFO  [repo.admin.ConfigurationChecker] The Alfresco root data dir
ectory ('dir.root') is: C:\Alf\alf_data
00:15:02,125  INFO  [admin.patch.PatchExecuter] Checking for patches to apply ..
.
00:15:02,390  INFO  [admin.patch.PatchExecuter] No patches were required.
00:15:02,421 User:System INFO  [repo.module.ModuleServiceImpl] Found 1 module(s)
.
00:15:02,468 User:System INFO  [repo.module.ModuleServiceImpl] Starting module '
org.alfresco.module.vti' version 1.2.
00:15:02,625  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'fileServers' subsystem, ID: [fileServers, default]
00:15:02,656  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:02,812  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
00:15:02,812  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:02,890  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] c
omplete
00:15:02,890  WARN  [org.alfresco.fileserver] CIFS server name is longer than 15
characters, truncated to ADMIN-F286D6460
00:15:02,921  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'fileServers' subsystem, ID: [fileServers, default] complete
00:15:02,921  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'imap' subsystem, ID: [imap, default]
00:15:02,921  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:02,968  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'imap' subsystem, ID: [imap, default] complete
00:15:02,968  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'email' subsystem, ID: [email, outbound]
00:15:02,968  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:03,000  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'email' subsystem, ID: [email, outbound] complete
00:15:03,000  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'email' subsystem, ID: [email, inbound]
00:15:03,015  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:03,046  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] I
nvalid JavaBean property 'blockedSenders' being accessed! Ambiguous write method
s found next to actually used [public void org.alfresco.email.server.EmailServer
.setBlockedSenders(java.lang.String)]: [public void org.alfresco.email.server.Em
ailServer.setBlockedSenders(java.util.List)]
00:15:03,046  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] I
nvalid JavaBean property 'allowedSenders' being accessed! Ambiguous write method
s found next to actually used [public void org.alfresco.email.server.EmailServer
.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.Emai
lServer.setAllowedSenders(java.lang.String)]
00:15:03,062  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'email' subsystem, ID: [email, inbound] complete
00:15:03,062  INFO  [repo.usage.UserUsageTrackingComponent] Enabled - calculate
missing user usages …
00:15:03,078  INFO  [repo.usage.UserUsageTrackingComponent] Found 0 users to rec
alculate
00:15:03,078  INFO  [repo.usage.UserUsageTrackingComponent] … calculated missi
ng usages for 0 users
00:15:03,078  INFO  [management.subsystems.ChildApplicationContextFactory] Start
ing 'Synchronization' subsystem, ID: [Synchronization, default]
00:15:03,093  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
00:15:03,171  INFO  [management.subsystems.ChildApplicationContextFactory] Start
up of 'Synchronization' subsystem, ID: [Synchronization, default] complete
00:15:03,234  INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0
_18-b07; maximum heap size 910,250MB
00:15:03,234  INFO  [service.descriptor.DescriptorService] Alfresco started (Com
munity): Current version 3.3.0 (2765) schema 4009 - Originally installed version
3.2.0 (r2 2440) schema 3300
00:15:14,609  INFO  [module.vti.VtiServer] Vti server started successfully on po
rt: 7070
00:15:14,609  ERROR [web.context.ContextLoader] Context initialization failed
java.lang.RuntimeException: No root found for :
   root path: /app:company_home/st:sites
        at org.alfresco.module.vti.handler.alfresco.VtiPathHelper$2.doWork(VtiPa
thHelper.java:487)
        at org.alfresco.module.vti.handler.alfresco.VtiPathHelper$2.doWork(VtiPa
thHelper.java:469)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:508)
        at org.alfresco.module.vti.handler.alfresco.VtiPathHelper.onBootstrap(Vt
iPathHelper.java:467)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onAppl
icationEvent(AbstractLifecycleBean.java:56)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.finish
Refresh(AbstractApplicationContext.java:858)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:419)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(Context
LoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        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:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
6 mai 2010 00:15:14 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
6 mai 2010 00:15:14 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d´┐¢marrage du contexte [/alfresco] suite aux erreurs pr´┐¢c´┐¢
dentes
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class
reloading, using NOPLoggerRepository.
6 mai 2010 00:15:15 org.apache.catalina.startup.HostConfig deployWAR
INFO: D´┐¢ploiement de l'archive mobile.war de l'application web
00:15:18,109  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 51 We
b Scripts (+0 failed), 58 URLs
00:15:18,109  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Pac
kage Description Documents (+0 failed)
00:15:18,109  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Sch
ema Description Documents (+0 failed)
00:15:18,109  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised
Spring Surf Container Web Script Container (in 639.2331ms)
00:15:18,156  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:18,218  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
00:15:18,234  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:18,234  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
00:15:18,265  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:18,265  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
6 mai 2010 00:15:18 org.apache.catalina.startup.HostConfig deployWAR
INFO: D´┐¢ploiement de l'archive share.war de l'application web
log4j:WARN No appenders could be found for logger (org.quartz.core.QuartzSchedul
erThread).
log4j:WARN Please initialize the log4j system properly.
00:15:21,687  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 225 W
eb Scripts (+0 failed), 232 URLs
00:15:21,687  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Pac
kage Description Documents (+0 failed)
00:15:21,687  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Sch
ema Description Documents (+0 failed)
00:15:21,718  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised
Spring Surf Container Web Script Container (in 1229.9962ms)
00:15:21,765  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:21,828  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
00:15:21,937  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:21,953  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
00:15:22,015  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
00:15:22,015  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
6 mai 2010 00:15:22 org.apache.coyote.http11.Http11Protocol start
INFO: D´┐¢marrage de Coyote HTTP/1.1 sur http-8080
6 mai 2010 00:15:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 48430 ms
Exception in thread "AlfrescoJbpmJobExecutor:192.168.1.22:1" java.lang.NullPoint
erException
        at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:80
)

Merci d'avance pour votre aide.
8 Replies
pilate
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Fais-tu la sauvegarde avec les serveurs éteint ?
lax
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Non, le serveur tourne en permanence et en l'occurrence, pendant la copie…
dranakan
Active Member

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Hello,

Bon, ces logs ne me parlent pas… mais as-tu tenté un ré-indexage ? (index.recovery.mode=FULL).
bertrandf
Active Member

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Vous vous êtes amusé à supprimer le dossier "Sites" à la racine de votre Alfresco ?
No root found for : root path: /app:company_home/st:sites

Le problème semble lié au VTI-Module, avez-vous essayez de démarrer votre Alfresco sans ce module (reprendre l'ancien alfresco.war) ?

Sujets similaires :
http://forums.alfresco.com/en/viewtopic.php?f=3&t=20697
http://forums.alfresco.com/fr/viewtopic.php?f=8&t=3545&start=0
lax
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Oui j'ai essayer toutes les combinaisons concernant les index :

Suppression du dossier d'index lucene et restauration du backup fait par Alfresco.
Suppression de tous les dossiers d'index et passage à "FULL" de l' index.recovery.mode.

Ce qui m'étonne le plus c'est qu'une restauration complète du dossier C:\Alfresco datant du dimanche 02/05/2010 (Alfresco marchait parfaitement ce jour là et même le lendemain) ne me permet toujours pas de lancer l'application….

La sauvegarde à chaud comme je la fait n'est peut-être pas valide….J'ai un doute sur la copie de la base tel quelle (répertoire Mysql au complet) sans arrêt du serveur… Cela a-t-il le même effet qu'un SQL DUMP selon vous ?

Déjà merci pour les premières réponses…
pilate
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

La copie du dossier MySql doit se faire à froid normalement. Le dump permet de figer la base pendant l'opération, aussi les données alf_data ne peuvent pas être modifiées.
ahmedbnf
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Bonjour,
j'ai installé alfresco 3.3 et j'ai fait quelque modification sur le fichier alfersco/extension/workflow-context.xml pour que je puisse créer mon propre workflow .
Mon probléme c'est lorsque je lance tomcat il me génère après son lancement l'exception suivante :

INFO: Server startup in 139211 ms
Exception in thread "AlfrescoJbpmJobExecutor:192.168.95.50:1" java.lang.NullPoin
terException
        at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:80

SVP Veuillez m'aider Smiley Happy
adrien
Member II

Re: Pb de restauration de sauvegarde (Alf_data + MYSQL)

Bonjour,

Pourquoi ne pas créer votre propre sujet et non pas ressusciter un thread d'il y a 2 ans ?

Ces règles sont valables sur tous les forums. Vous aurez de meilleures réponses et vous ne polluerez pas les autres.