Hi David, I retried as you suggested, without removing the original XML files from "WEB-INF/bootstrap", and indeed it worked now, thank you.
Regards Stephan Am Dienstag, den 18.09.2007, 15:18 -0700 schrieb David Mead: > Hi Stephan, > > Yes, I do keep all of the original XML under web-inf/bootstrap/common, > and just add and replace with the new XML. I don't delete all the XML > files like you did in step 5. Can you try again and see if that works > for you? > > Thanks, > David M > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 6:13 PM > To: [email protected] > Subject: Re: [magnolia-user] Problem performing a backup and > restoreaccording to the Wikiprocedure > > Hello David, > > I tried out your suggestion, and I can't yet get it to work. I tried to > make a backup from a new magnoliaAuthor instance and then to bootstrap > it from the XML files. I would expect that I should get back the same > state after the backup. > > This is what I did: > > 1) extracted "magnoliaAuthor.war" from a fresh Magnolia Community > Edition magnolia-3.0.3-wars.tgz download > > 2) extracted the "magnoliaAuthor.war" file, removed the "repositories" > subdirectory to force the bootstrap, recreated the "magnoliaAuthor.war" > > 3) deployed the new "magnoliaAuthor.war" in Glassfish: it takes a while > because of the bootstrapping, but all seems to go well, no fatal errors > in the Magnolia logs, and the result is a magnoliaAuthor instance that > appears to work in the same way as an instance that was created from an > original "magnoliaAuthor.war" > > 4) now created backup files according to your procedure, leaving out the > dms backup as I had nothing created there for this test > > 5) again extracted the original "magnoliaAuthor.war" file, removed the > "repositories" subdirectory, removed all XML files from the > "WEB-INF/bootstrap" directory, copied all the XML files created in step > 4) into "WEB-INF/bootstrap/common", and recreated the > "magnoliaAuthor.war" file > > 6) tried to deploy the "magnoliaAuthor.war" created in step 5) again: > the bootstrap process starts, but there are various serious errors in > the Magnolia log files, and the result is non-functional magnoliaAuthor > instance (even the login page does not appear, instead I get a listing > of the files in the root directory of the deployed "magnoliaAuthor" web > application > > So it seems not to be possible to get a complete backup through the > proposed process. Is it necessary to leave some of the original XML > files in the "WEB-INF/bootstrap" directory? > > Regards > Stephan > > Am Montag, den 17.09.2007, 13:25 -0700 schrieb David Mead: > > Hi, > > > > Some weeks back, using 3.0.2, I also ran into problems bootstrapping > > using exported xml. Now I backup using, on Windows, : > > > > wget --http-user=superuser --http-password=superuser > -O.\wgetoutput.txt > > > "http://localhost/authoring/.magnolia/pages/developmentUtils?command=bac > > > kup&templates=on¶graphs=on&dialogs=on&website=on&users=on&groups=on& > > roles=on&secure=on&rootdir=backup" > > > > wget --http-user=superuser --http-password=superuser > > -O\apache-tomcat-5.5.23\webapps\authoring\backup\dms.mystuff.xml > > > "http://localhost/authoring/.magnolia/pages/export.html?mgnlRepository=d > > > ms&mgnlPath=/mystuff&mgnlKeepVersions=false&mgnlFormat=false&ext=.xml&co > > mmand=exportxml&exportxml=Export" > > > > The first is for backing up all the things I cared about except dms, > and > > puts all the xml under webapps\<instancename>\backup\. The second is > > for exporting dms. Before, I ran into bootstrap problems when I > > exported dms from the root node (/). Putting everything under a path > > like /mystuff, then exporting /mystuff, worked around that. > > > > I'm using 3.0.3 now and these backup methods still work for me - I > just > > bootstrapped successfully using the xml from them. > > > > David M > > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] > > Sent: Sunday, September 16, 2007 6:37 PM > > To: [email protected] > > Subject: [magnolia-user] Problem performing a backup and restore > > according to the Wikiprocedure > > > > Hello, > > > > I'm trying to follow the procedure from the Wiki to do a restore from > > backup: > > > > http://www.magnolia.info/wiki/Wiki.jsp?page=RepositoryBackupAndRestore > > > > I wrote a shell script that exports the repositories with wget, as > > outlined under "Automating The Backups". From a test magnoliaAuthor > > instance I have exported the following XML files: > > > > config.xml > > dms.xml > > Expressions.xml > > Store.xml > > usergroups.xml > > userroles.xml > > users.xml > > website.xml > > > > Note that for the workspaces "mgnlVersion" and "mgnlSystem" nothing > was > > exported. > > > > As described under "Creating an instant restore of last night's > backup", > > I extracted a magnolia-3.0.3 "magnoliaAuthor.war" file, deleted all > XML > > files under WEB-INF/bootstrap, and then I put the eight XML files > listed > > above under WEB-INF/bootstrap/common. Then I repackaged the > > "magnoliaAuthor.war" file and deployed it. > > > > The bootstrap process always stops with the stack trace at the end of > > this email ("javax.jcr.nodetype.NoSuchNodeTypeException: {}workItem"). > > > > I must misunderstand something in the backup and restore procedure. > What > > am I doing wrong? > > > > This happens with Glassfish 2 build b58c-fcs on Ubuntu Linux. > > > > Thanks > > Stephan > > > > [#|2007-09-17T00:29:07.056+0200|INFO|sun-appserver9.1| > > > javax.enterprise.system.stream.out|_ThreadID=68;_ThreadName=Thread-392;| > > INFO info.magnolia.cms.beans.config.Bootstrapper > > Bootstrapper.java(bootstrapRepository:118) 17.09.2007 00:29:07 Trying > > to import content from 1 files into repository [Store] > > |#] > > > > [#|2007-09-17T00:29:07.257+0200|SEVERE|sun-appserver9.1| > > javax.enterprise.system.container.web| > > > _ThreadID=68;_ThreadName=Thread-392;_RequestID=b14428b0-5c8b-4acb-bd35-4 > > 0770456c486;|WebModule[/magnoliaAuthor]PWC1275: Exception sending > > context initialized event to listener instance of class > > info.magnolia.cms.servlets.PropertyInitializer > > org.apache.commons.lang.exception.NestableRuntimeException: > > javax.jcr.nodetype.NoSuchNodeTypeException: {}workItem > > at > > > info.magnolia.cms.core.ie.DataTransporter.importXmlStream(DataTransporte > > r.java:290) > > at > > > info.magnolia.cms.core.ie.DataTransporter.importFile(DataTransporter.jav > > a:122) > > at > > > info.magnolia.cms.core.ie.DataTransporter.executeBootstrapImport(DataTra > > nsporter.java:147) > > at > > > info.magnolia.cms.beans.config.Bootstrapper.bootstrapFiles(Bootstrapper. > > java:148) > > at > > > info.magnolia.cms.beans.config.Bootstrapper.bootstrapFiles(Bootstrapper. > > java:132) > > at > > > info.magnolia.cms.beans.config.Bootstrapper.bootstrapRepository(Bootstra > > pper.java:121) > > at > > > info.magnolia.cms.beans.config.Bootstrapper.bootstrapRepositories(Bootst > > rapper.java:84) > > at > > > info.magnolia.cms.beans.config.ConfigLoader.bootstrap(ConfigLoader.java: > > 227) > > at > > > info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:117) > > at > > > info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:98) > > at > > > info.magnolia.cms.servlets.PropertyInitializer.contextInitialized(Proper > > tyInitializer.java:191) > > at > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j > > ava:4515) > > at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:5176 > > ) > > at com.sun.enterprise.web.WebModule.start(WebModule.java:327) > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja > > va:973) > > at > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957) > > at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688) > > at > > > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581 > > ) > > at > > > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222 > > ) > > at > > > com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(We > > bModuleDeployEventListener.java:182) > > at > > > com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(We > > bModuleDeployEventListener.java:278) > > at > > > com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployE > > ventListener(AdminEventMulticaster.java:974) > > at > > > com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployE > > vent(AdminEventMulticaster.java:961) > > at > > > com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminE > > ventMulticaster.java:464) > > at > > > com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(Admi > > nEventMulticaster.java:176) > > at > > > com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multic > > astEvent(DeploymentNotificationHelper.java:308) > > at > > > com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEv > > ent(DeploymentServiceUtils.java:226) > > at > > > com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEv > > ent(ServerDeploymentTarget.java:298) > > at > > > com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(App > > licationStartPhase.java:132) > > at > > > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deplo > > ymentPhase.java:108) > > at > > > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases( > > PEDeploymentService.java:919) > > at > > > com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploy > > mentService.java:591) > > at > > > com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploy > > mentService.java:635) > > at > > > com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(Applicatio > > nsConfigMBean.java:744) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > > a:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > > com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.j > > ava:375) > > at > > > com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.j > > ava:358) > > at > > > com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.j > > ava:464) > > at > > > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.j > > ava:213) > > at > > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) > > at > > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea > > nServerInterceptor.java:815) > > at > > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) > > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown > Source) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90 > > ) > > at $Proxy1.invoke(Unknown Source) > > at > > > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(Sunone > > Interceptor.java:304) > > at > > > com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicIntercep > > tor.java:174) > > at > > > com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplicat > > ion(DeploymentClientUtils.java:145) > > at > > > com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java: > > 537) > > at java.lang.Thread.run(Thread.java:595) > > Caused by: javax.jcr.nodetype.NoSuchNodeTypeException: {}workItem > > at > > > org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewI > > mportHandler.java:96) > > at > > > org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(SysView > > ImportHandler.java:139) > > at > > > org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler. > > java:234) > > at > > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) > > at > > > info.magnolia.cms.core.ie.filters.ImportXmlRootFilter.startElement(Impor > > tXmlRootFilter.java:111) > > at > > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) > > at > > > info.magnolia.cms.core.ie.filters.VersionFilter.startElement(VersionFilt > > er.java:87) > > at > > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) > > at > > > info.magnolia.cms.core.ie.filters.MagnoliaV2Filter.startElement(Magnolia > > V2Filter.java:110) > > at > > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > > at > > > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > > Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl > > $FragmentContentDispatcher.dispatch(Unknown Source) > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno > > wn Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > > Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > > Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > > Source) > > at > > org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) > > at > > org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) > > at > > org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) > > at > > > info.magnolia.cms.core.ie.DataTransporter.importXmlStream(DataTransporte > > r.java:261) > > ... 54 more > > |#] > > > > [#|2007-09-17T00:29:07.258+0200|SEVERE|sun-appserver9.1| > > org.apache.catalina.core.StandardContext| > > > _ThreadID=68;_ThreadName=Thread-392;_RequestID=b14428b0-5c8b-4acb-bd35-4 > > 0770456c486;|PWC1306: Startup of context /magnoliaAuthor failed due to > > previous errors|#] > > > > [#|2007-09-17T00:29:07.265+0200|INFO|sun-appserver9.1| > > > javax.enterprise.system.stream.out|_ThreadID=68;_ThreadName=Thread-392;| > > INFO info.magnolia.cms.beans.config.ShutdownManager > > ShutdownManager.java(contextDestroyed:82) 17.09.2007 00:29:07 > Executing > > shutdown tasks > > |#] > > > > [#|2007-09-17T00:29:07.282+0200|INFO|sun-appserver9.1| > > > javax.enterprise.system.stream.out|_ThreadID=68;_ThreadName=Thread-392;| > > INFO info.magnolia.jackrabbit.ProviderImpl > > ProviderImpl.java(execute:188) 17.09.2007 00:29:07 Shutting down > > repository bound to 'magnoliaAuthor' > > |#] > > > > [#|2007-09-17T00:29:10.282+0200|INFO|sun-appserver9.1| > > > javax.enterprise.system.stream.out|_ThreadID=68;_ThreadName=Thread-392;| > > Shutting down Log4J|#] > > > > > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > > ---------------------------------------------------------------- > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > > ---------------------------------------------------------------- > > > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
