Hi, I've tried that :
- Import Sandbox space from xwiki-enterprise-ui-all-4.1.3.xar to 4.1.3 server - OK - Export single page Sandbox.Webhome (from Export option in document page) and Import to the same server - OK - Export all from admin interface and Import only Sandbox space to the same server - KO (same trace as below) - Export only Sandbox space from AdminTools interface and Import the space to the same server - KO (same trace as below) I've uploaded the Sandbox space package here : http://dl.free.fr/ecLFJVlMD After the import failed, if I try to export again, I've the following message : 2012/07/19 07:04:33 [http://localhost:8080/xem/bin/export/XWiki/XWikiPreferences?editor=globaladmin§ion=Export] WARN com.xpn.xwiki.doc.XWikiAttachment - Failed to load content for attachment [XWikiLogo.png@name = [WebHome], type = [DOCUMENT], parent = [name = [Sandbox], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]]. This attachment is broken, please consider re-uploading it. Internal error: Error number 3002 in 3: The attachment could not be found in the filesystem attachment store. This can happen if attachment storage is switched from database to filesystem without first moving all of the database attachments over to the filesystem using a script. But I checked and the Sandbox.WebHome page works fine, even the attachment. Here the export when the error occurs : http://dl.free.fr/gwhDiLzg5 Thanks for help Nicolas -----Message d'origine----- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Eduard Moraru Envoyé : mercredi 18 juillet 2012 17:30 À : XWiki Users Objet : Re: [xwiki-users] Error on import Hi, On Wed, Jul 18, 2012 at 4:40 PM, CHENEAU-GREHALLE Nicolas < nicolas.cheneau-greha...@sesam-vitale.fr> wrote: > Hi, > > I tried that in a previous message ;-) > Well, yes... my bad :) > > At this point, I've managed to migrate by the following method : > - database dump 1 from my linux production server with XWiki 3.4 > - database import from dump 1 to a Windows test server with XWiki 4.1.3 > The migration is ok on this test server but failed in the linux production > server. I don't know why, the .war is the same. > - database dump 2 from the Windows test server (after migration) > - Installation of XWiki 4.1.3 and database import from dump 2 to the linux > production server. The Production server is now in 4.1.3 > > That's weird, but that's the only solution I've found > I have understood something else: that you did a full wiki export from 3.4 and were trying to import to an empty 4.1.3 but was having the exception above. Now that you`ve mentioned that you`ve used a database dump, I assume the migration went well in the end. > > Now, my problem is that I can't export/import between 2 servers. > We're used to test major application improvements on a test server then > export/import on Production server. > I can't do that anymore :( > According the trace, that's something about attachment storage (in file, > in my case) > Does this happen for any page you are trying to export from one server and import to another? Does it happen only for pages with attachments? If so, does it happen for a specific attachment, or it does not matter what file you use? If you find that this happens only for a specific content (page/attachment combination), please upload a xar (and post the link) that reproduces this behaviour so we can try to reproduce it ourselves in the hopes of fixing it. Thanks, Eduard > > > > Nicolas > > -----Message d'origine----- > De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part > de Eduard Moraru > Envoyé : mercredi 18 juillet 2012 15:28 > À : XWiki Users > Objet : Re: [xwiki-users] Error on import > > Hi Nicolas, > > It's not a good idea to bypass the migrations with the import-export trick > that you are trying. The migrations are there for a good reason. > > You should instead show us some details (and logs) of the migration process > failing so that we can try to help you fix it and that your database is > properly migrated. > > Thanks, > Eduard > > On Tue, Jul 17, 2012 at 6:08 PM, CHENEAU-GREHALLE Nicolas < > nicolas.cheneau-greha...@sesam-vitale.fr> wrote: > > > Hi, > > > > > > > > I'm trying to import a package of documents from xwiki 3.4 to a new > > xwiki 4.1.3 instance (the automatic database migration failed, so I > > tried another method). > > > > The attachment storage is "file". > > > > > > > > The file upload is ok, but when I launch the import, I've the message > > below (full stacktrace at the end of this mail) : > > > > > > > > 2012/07/17 14:50:34 > > [http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc > > es?section=Import< > http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc%0Aes?section=Import > >] > > WARN com.xpn.xwiki.web.XWikiAction - Uncaught > > exception: Error number 11015 in 11: Exception while importing > > > > Wrapped Exception: null com.xpn.xwiki.XWikiException: Error number 11015 > > in 11: Exception while importing > > > > Wrapped Exception: null > > > > at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:144) > > > > Caused by: java.lang.NullPointerException: null > > > > at > > com.xpn.xwiki.doc.XWikiAttachmentArchive.getVersions(XWikiAttachmentArch > > ive.java:223) > > > > > > > > Have you some ideas about this problem ? > > > > I try to migrate from 3.4 to 4.x for 3 weeks, so any help would be very > > welcome. > > > > > > > > Thank you > > > > > > > > Best regards, > > > > > > > > Nicolas > > > > > > > > The full stack trace : > > > > > > > > 2012/07/17 14:50:34 > > [http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc > > es?section=Import< > http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc%0Aes?section=Import > >] > > WARN com.xpn.xwiki.web.XWikiAction - Uncaught > > exception: Error number 11015 in 11: Exception while importing > > > > Wrapped Exception: null > > > > com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while > > importing > > > > Wrapped Exception: null > > > > at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:144) > > ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231) > > [xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) > > [xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr > > ocessor.java:431) [struts-1.2.9.jar:1.2.9] > > > > at > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: > > 236) [struts-1.2.9.jar:1.2.9] > > > > at > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > > [struts-1.2.9.jar:1.2.9] > > > > at > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > > [struts-1.2.9.jar:1.2.9] > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > [servlet-api.jar:na] > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > [servlet-api.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:269) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) > > [xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:215) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilt > > er.java:144) [xwiki-platform-wysiwyg-server-4.1.3.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:215) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java: > > 66) [xwiki-platform-webdav-server-4.1.3.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:215) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter. > > doFilter(SavedRequestRestorerFilter.java:208) > > [xwiki-platform-container-servlet-4.1.3.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:215) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter. > > doFilter(SetCharacterEncodingFilter.java:111) > > [xwiki-platform-container-servlet-4.1.3.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:215) [catalina.jar:na] > > > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:188) [catalina.jar:na] > > > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > e.java:213) [catalina.jar:na] > > > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > > e.java:174) [catalina.jar:na] > > > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > :127) [catalina.jar:na] > > > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > > :117) [catalina.jar:na] > > > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > > java:108) [catalina.jar:na] > > > > at > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 > > 51) [catalina.jar:na] > > > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 > > 4) [tomcat-http.jar:na] > > > > at > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc > > essConnection(Http11BaseProtocol.java:665) [tomcat-http.jar:na] > > > > at > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint > > .java:528) [tomcat-util.jar:5.1] > > > > at > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow > > erWorkerThread.java:81) [tomcat-util.jar:5.1] > > > > at > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > > .java:689) [tomcat-util.jar:5.1] > > > > at java.lang.Thread.run(Thread.java:662) [na:1.6.0_29] > > > > Caused by: java.lang.NullPointerException: null > > > > at > > com.xpn.xwiki.doc.XWikiAttachmentArchive.getVersions(XWikiAttachmentArch > > ive.java:223) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > org.xwiki.store.legacy.store.internal.AttachmentArchiveSaveRunnable.<ini > > t>(AttachmentArchiveSaveRunnable.java:70) > > ~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na] > > > > at > > org.xwiki.store.legacy.store.internal.FilesystemAttachmentVersioningStor > > e.getArchiveSaveRunnable(FilesystemAttachmentVersioningStore.java:209) > > ~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na] > > > > at > > org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore$Attachme > > ntSaveTransactionRunnable.<init>(FilesystemAttachmentStore.java:354) > > ~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na] > > > > at > > org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.getAttac > > hmentContentSaveRunnable(FilesystemAttachmentStore.java:153) > > ~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na] > > > > at > > org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.saveAtta > > chmentContent(FilesystemAttachmentStore.java:113) > > ~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na] > > > > at > > com.xpn.xwiki.doc.XWikiDocument.saveAttachmentContent(XWikiDocument.java > > :4279) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > com.xpn.xwiki.doc.XWikiDocument.saveAllAttachments(XWikiDocument.java:42 > > 36) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:760) > > ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > com.xpn.xwiki.plugin.packaging.Package.install(Package.java:616) > > ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at > > com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:316) > > ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:132) > > ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na] > > > > ... 37 common frames omitted > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users