Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Ziggy
Hi,

I cleared the log file and tried it again today. Same thing happened with
the corrupt zip file. here is what was on the log file.


2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/] INFO
.AbstractXWikiMigrationManager  - No storage migration required since
current version is [15429]
2010-01-12 09:13:09,995 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
/templates/documentTags.vm[line 1, column 1]
2010-01-12 09:13:23,786 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
unknown template[line 6, column 3]
2010-01-12 09:14:16,283 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
WARN  web.XWikiAction - Uncaught exception: Error number 0
in 11: Uncaught exception
Wrapped Exception: Java heap space
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: Java heap space
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)


Wrapped Exception:
java.lang.OutOfMemoryError: Java heap space


Thanks


On Mon, Jan 11, 2010 at 6:45 PM, Ziggy zigg...@gmail.com wrote:

 Hi,

 Thanks for your help. I am at home now so i dont have my laptop with me. I
 will check the log as soon i get to work tomorrow.

 Thanks



 On Mon, Jan 11, 2010 at 6:06 PM, Thomas Mortagne 
 thomas.morta...@xwiki.com wrote:

 On Mon, Jan 11, 2010 at 17:43, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  I tried
  http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25and
  it is still generating a corrupt zip file.

 I see only one cause for corrupted zip: an error during the export.
 You should have something in the log I think.

 
  Thanks
 
 
 
  On Mon, Jan 11, 2010 at 4:25 PM, Thomas Mortagne
  thomas.morta...@xwiki.comwrote:
 
  On Mon, Jan 11, 2010 at 17:19, 

Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Thomas Mortagne
On Tue, Jan 12, 2010 at 10:20, Ziggy zigg...@gmail.com wrote:
 Hi,

 I cleared the log file and tried it again today. Same thing happened with
 the corrupt zip file. here is what was on the log file.


 2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/] INFO
 .AbstractXWikiMigrationManager  - No storage migration required since
 current version is [15429]
 2010-01-12 09:13:09,995 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 /templates/documentTags.vm[line 1, column 1]
 2010-01-12 09:13:23,786 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 unknown template[line 6, column 3]
 2010-01-12 09:14:16,283 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 WARN  web.XWikiAction                 - Uncaught exception: Error number 0
 in 11: Uncaught exception
 Wrapped Exception: Java heap space
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 Wrapped Exception: Java heap space
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
    at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

This is weird, are you accessing the wiki in webdav at the same time ?
Anyway since the error here is that there is no memory left i guess
that's what also make export fail.

    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)


 Wrapped Exception:
 java.lang.OutOfMemoryError: Java heap space


 Thanks


 On Mon, Jan 11, 2010 at 6:45 PM, Ziggy zigg...@gmail.com wrote:

 Hi,

 Thanks for your help. I am at home now so i dont have my laptop with me. I
 will check the log as soon i get to work tomorrow.

 Thanks



 On Mon, Jan 11, 2010 at 6:06 PM, Thomas Mortagne 
 thomas.morta...@xwiki.com wrote:

 On Mon, Jan 11, 2010 at 17:43, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  I tried
  http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25and
  it is still 

Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Thomas Mortagne
On Tue, Jan 12, 2010 at 11:21, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Tue, Jan 12, 2010 at 10:20, Ziggy zigg...@gmail.com wrote:
 Hi,

 I cleared the log file and tried it again today. Same thing happened with
 the corrupt zip file. here is what was on the log file.


 2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/] INFO
 .AbstractXWikiMigrationManager  - No storage migration required since
 current version is [15429]
 2010-01-12 09:13:09,995 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 /templates/documentTags.vm[line 1, column 1]
 2010-01-12 09:13:23,786 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 unknown template[line 6, column 3]
 2010-01-12 09:14:16,283 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 WARN  web.XWikiAction                 - Uncaught exception: Error number 0
 in 11: Uncaught exception
 Wrapped Exception: Java heap space
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 Wrapped Exception: Java heap space
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
    at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

 This is weird, are you accessing the wiki in webdav at the same time ?

Ha no it has nothing to do with WebDav i think, it's just that there
is a webdav filter looking at all requests if i understood well what
is in web.xml

So indeed the issue is that the JVM doe snot have enouth memory to
finish the export it seems. Make you have a page very big or
something.

You should try to allocate more.

 Anyway since the error here is that there is no memory left i guess
 that's what also make export fail.

    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)


 Wrapped Exception:
 java.lang.OutOfMemoryError: Java heap space


 Thanks


 On Mon, Jan 11, 2010 at 6:45 PM, Ziggy 

Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Thomas Mortagne
On Tue, Jan 12, 2010 at 11:25, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Tue, Jan 12, 2010 at 11:21, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
 On Tue, Jan 12, 2010 at 10:20, Ziggy zigg...@gmail.com wrote:
 Hi,

 I cleared the log file and tried it again today. Same thing happened with
 the corrupt zip file. here is what was on the log file.


 2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/] INFO
 .AbstractXWikiMigrationManager  - No storage migration required since
 current version is [15429]
 2010-01-12 09:13:09,995 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 /templates/documentTags.vm[line 1, column 1]
 2010-01-12 09:13:23,786 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
 unknown template[line 6, column 3]
 2010-01-12 09:14:16,283 [
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
 WARN  web.XWikiAction                 - Uncaught exception: Error number 0
 in 11: Uncaught exception
 Wrapped Exception: Java heap space
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 Wrapped Exception: Java heap space
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
    at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

 This is weird, are you accessing the wiki in webdav at the same time ?

 Ha no it has nothing to do with WebDav i think, it's just that there
 is a webdav filter looking at all requests if i understood well what
 is in web.xml

 So indeed the issue is that the JVM doe snot have enouth memory to
 finish the export it seems. Make you have a page very big or

*very big page

 something.

 You should try to allocate more.

 Anyway since the error here is that there is no memory left i guess
 that's what also make export fail.

    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)


 Wrapped Exception:
 

Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Ziggy
Hi,

No i am not using WEBDAV. Its a fresh installation of Xwiki and i have only
created about 4 pages so far.

Here are the steps i took to install it.

- Installed Tomcat 6.0
- Installed Xwiki Enterprise 2.1.1
- set up the hibernate configuration to mysql
- Installed the default set of wiki pages which provide the blog, spaces etc
(i.e. xwiki-enterprise-wiki-2.1.1.xar )
- Created a couple of wiki pages to test it.

Thats all i have done so far and is what i am trying to export. I must
mention that i did not change any configuration in Tomcat in terms of how
much memory is allocated to tomcat. Everything is at their default values.

I have seen in several wiki configuration that they recommend increasing the
amount of memory allocated to tomcat. Do you think that maybe i need to play
around with the memory allocation within Tomcat?

Thanks

On Tue, Jan 12, 2010 at 10:25 AM, Thomas Mortagne thomas.morta...@xwiki.com
 wrote:

 On Tue, Jan 12, 2010 at 11:25, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  On Tue, Jan 12, 2010 at 11:21, Thomas Mortagne
  thomas.morta...@xwiki.com wrote:
  On Tue, Jan 12, 2010 at 10:20, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  I cleared the log file and tried it again today. Same thing happened
 with
  the corrupt zip file. here is what was on the log file.
 
 
  2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/]
 INFO
  .AbstractXWikiMigrationManager  - No storage migration required since
  current version is [15429]
  2010-01-12 09:13:09,995 [
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
  ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
  /templates/documentTags.vm[line 1, column 1]
  2010-01-12 09:13:23,786 [
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
  ERROR internal.DefaultVelocityEngine  - Exception in macro #template at
  unknown template[line 6, column 3]
  2010-01-12 09:14:16,283 [
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25]
  WARN  web.XWikiAction - Uncaught exception: Error
 number 0
  in 11: Uncaught exception
  Wrapped Exception: Java heap space
  com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
  Wrapped Exception: Java heap space
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
 at
 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 at
 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 at
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
 
  This is weird, are you accessing the wiki in webdav at the same time ?
 
  Ha no it has nothing to do with WebDav i think, it's just that there
  is a webdav filter looking at all requests if i understood well what
  is in web.xml
 
  So indeed the issue is that the JVM doe snot have enouth memory to
  finish the export it seems. Make you have a page very big or

 *very big page

  something.
 
  You should try to allocate more.
 
  Anyway since the error here is that there is no memory left i guess
  that's what also make export fail.
 
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
 at
 
 

Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Valdis Vītoliņš
I use following settings for JVM (e.g. options for tomcat)
JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
-XX:MaxPermSize=256m

I found Xar handy for moving data from one (test) instance to another
(production),
though for full backup I use MySQL dump.

Backup: mysqldump -u root -ppassword --opt xwiki  xwiki.sql
Restore: mysql -u root -ppassword -Dxwiki  xwiki.sql

Valdis

 Hi,
 
 No i am not using WEBDAV. Its a fresh installation of Xwiki and i have only
 created about 4 pages so far.
 
 Here are the steps i took to install it.
 
 - Installed Tomcat 6.0
 - Installed Xwiki Enterprise 2.1.1
 - set up the hibernate configuration to mysql
 - Installed the default set of wiki pages which provide the blog, spaces etc
 (i.e. xwiki-enterprise-wiki-2.1.1.xar )
 - Created a couple of wiki pages to test it.
 
 Thats all i have done so far and is what i am trying to export. I must
 mention that i did not change any configuration in Tomcat in terms of how
 much memory is allocated to tomcat. Everything is at their default values.
 
 I have seen in several wiki configuration that they recommend increasing the
 amount of memory allocated to tomcat. Do you think that maybe i need to play
 around with the memory allocation within Tomcat?
 

...
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Ziggy
Thanks guys for your help. I have updated my setenv.bat to the following

set JAVA_OPTS=-server -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=160m
-Djava.awt.headless=true

and i can now export all html pages.

- The export did work but the skin/templates are not quite right. This is
not a problem as i wanted the content i dont mind if it dont look pretty.

Valdis,

I will be using the *.xar backup and an export of the database as part of
the backup. I would like to also export everything as html at once a month
just for extra security.

Just one final question. If i export the mysql database, can i re-import
this on a new instance of xwiki and does it have to be the exact version of
xwiki?

Thanks again.



On Tue, Jan 12, 2010 at 12:40 PM, Valdis Vītoliņš valdis.vitol...@odo.lvwrote:

 I use following settings for JVM (e.g. options for tomcat)
JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
 -XX:MaxPermSize=256m

 I found Xar handy for moving data from one (test) instance to another
 (production),
 though for full backup I use MySQL dump.

 Backup: mysqldump -u root -ppassword --opt xwiki  xwiki.sql
 Restore: mysql -u root -ppassword -Dxwiki  xwiki.sql

 Valdis

  Hi,
 
  No i am not using WEBDAV. Its a fresh installation of Xwiki and i have
 only
  created about 4 pages so far.
 
  Here are the steps i took to install it.
 
  - Installed Tomcat 6.0
  - Installed Xwiki Enterprise 2.1.1
  - set up the hibernate configuration to mysql
  - Installed the default set of wiki pages which provide the blog, spaces
 etc
  (i.e. xwiki-enterprise-wiki-2.1.1.xar )
  - Created a couple of wiki pages to test it.
 
  Thats all i have done so far and is what i am trying to export. I must
  mention that i did not change any configuration in Tomcat in terms of how
  much memory is allocated to tomcat. Everything is at their default
 values.
 
  I have seen in several wiki configuration that they recommend increasing
 the
  amount of memory allocated to tomcat. Do you think that maybe i need to
 play
  around with the memory allocation within Tomcat?
 

 ...
 ___
 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


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Thomas Mortagne
On Tue, Jan 12, 2010 at 13:49, Ziggy zigg...@gmail.com wrote:
 Thanks guys for your help. I have updated my setenv.bat to the following

 set JAVA_OPTS=-server -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=160m
 -Djava.awt.headless=true

 and i can now export all html pages.

 - The export did work but the skin/templates are not quite right. This is
 not a problem as i wanted the content i dont mind if it dont look pretty.

HTML export doe snot support dynamic css like you have in colibri skin yet.

See http://jira.xwiki.org/jira/browse/XWIKI-4615


 Valdis,

 I will be using the *.xar backup and an export of the database as part of
 the backup. I would like to also export everything as html at once a month
 just for extra security.

 Just one final question. If i export the mysql database, can i re-import
 this on a new instance of xwiki and does it have to be the exact version of
 xwiki?

No, but it has to be at least the same version. The database is
automatically upgraded when something changed (that's usually the way
to upgrade a XWiki instance).


 Thanks again.



 On Tue, Jan 12, 2010 at 12:40 PM, Valdis Vītoliņš 
 valdis.vitol...@odo.lvwrote:

 I use following settings for JVM (e.g. options for tomcat)
    JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
 -XX:MaxPermSize=256m

 I found Xar handy for moving data from one (test) instance to another
 (production),
 though for full backup I use MySQL dump.

 Backup: mysqldump -u root -ppassword --opt xwiki  xwiki.sql
 Restore: mysql -u root -ppassword -Dxwiki  xwiki.sql

 Valdis

  Hi,
 
  No i am not using WEBDAV. Its a fresh installation of Xwiki and i have
 only
  created about 4 pages so far.
 
  Here are the steps i took to install it.
 
  - Installed Tomcat 6.0
  - Installed Xwiki Enterprise 2.1.1
  - set up the hibernate configuration to mysql
  - Installed the default set of wiki pages which provide the blog, spaces
 etc
  (i.e. xwiki-enterprise-wiki-2.1.1.xar )
  - Created a couple of wiki pages to test it.
 
  Thats all i have done so far and is what i am trying to export. I must
  mention that i did not change any configuration in Tomcat in terms of how
  much memory is allocated to tomcat. Everything is at their default
 values.
 
  I have seen in several wiki configuration that they recommend increasing
 the
  amount of memory allocated to tomcat. Do you think that maybe i need to
 play
  around with the memory allocation within Tomcat?
 

 ...
 ___
 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




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-12 Thread Ziggy
Ok thanks Thomas.

--


On Tue, Jan 12, 2010 at 1:51 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Tue, Jan 12, 2010 at 13:49, Ziggy zigg...@gmail.com wrote:
  Thanks guys for your help. I have updated my setenv.bat to the following
 
  set JAVA_OPTS=-server -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=160m
  -Djava.awt.headless=true
 
  and i can now export all html pages.
 
  - The export did work but the skin/templates are not quite right. This is
  not a problem as i wanted the content i dont mind if it dont look pretty.

 HTML export doe snot support dynamic css like you have in colibri skin yet.

 See http://jira.xwiki.org/jira/browse/XWIKI-4615

 
  Valdis,
 
  I will be using the *.xar backup and an export of the database as part of
  the backup. I would like to also export everything as html at once a
 month
  just for extra security.
 
  Just one final question. If i export the mysql database, can i re-import
  this on a new instance of xwiki and does it have to be the exact version
 of
  xwiki?

 No, but it has to be at least the same version. The database is
 automatically upgraded when something changed (that's usually the way
 to upgrade a XWiki instance).

 
  Thanks again.
 
 
 
  On Tue, Jan 12, 2010 at 12:40 PM, Valdis Vītoliņš 
 valdis.vitol...@odo.lvwrote:
 
  I use following settings for JVM (e.g. options for tomcat)
 JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
  -XX:MaxPermSize=256m
 
  I found Xar handy for moving data from one (test) instance to another
  (production),
  though for full backup I use MySQL dump.
 
  Backup: mysqldump -u root -ppassword --opt xwiki  xwiki.sql
  Restore: mysql -u root -ppassword -Dxwiki  xwiki.sql
 
  Valdis
 
   Hi,
  
   No i am not using WEBDAV. Its a fresh installation of Xwiki and i have
  only
   created about 4 pages so far.
  
   Here are the steps i took to install it.
  
   - Installed Tomcat 6.0
   - Installed Xwiki Enterprise 2.1.1
   - set up the hibernate configuration to mysql
   - Installed the default set of wiki pages which provide the blog,
 spaces
  etc
   (i.e. xwiki-enterprise-wiki-2.1.1.xar )
   - Created a couple of wiki pages to test it.
  
   Thats all i have done so far and is what i am trying to export. I must
   mention that i did not change any configuration in Tomcat in terms of
 how
   much memory is allocated to tomcat. Everything is at their default
  values.
  
   I have seen in several wiki configuration that they recommend
 increasing
  the
   amount of memory allocated to tomcat. Do you think that maybe i need
 to
  play
   around with the memory allocation within Tomcat?
  
 
  ...
  ___
  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
 



 --
 Thomas Mortagne
 ___
 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


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Vincent Massol
Hi,

Please see:

- http://platform.xwiki.org/xwiki/bin/view/Features/Exports
- http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup

Thanks
-Vincent

On Jan 11, 2010, at 10:00 AM, Ziggy wrote:

 Hi guys,
 
 What is the best way to backup an XWIKI instance? I am using XWiki
 Enterprise 2.1.1.25889. I have seen a couple of options that are available
 but i couldnt find one that suits my needs.
 
 On every wiki page, there is an option to export as pdf, html, rtf or as
 XAR. This is quite good but when i tried to export as html it only exports
 the current page i am looking at.
 
 There is also the import/export tool (
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
 Unfortunately this exports as XAR but i want to export as html.
 
 What i would like to do is backup the content of my wiki as html pages. It
 would be usefull if i can export the whole wiki as html pages. The reason
 for this is i want to be able to backup the contents incase my xwiki
 instance is not accessible. I would like to still be able to access the
 content. The best way for this is to backup the content as html which will
 make it independent of any wiki engine.
 
 Is there a way to export everything as html pages? (Not single pages but the
 whole wiki and for all users).
 
 Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Ziggy
Hi,

Many thanks for your response. I think the example on
http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly what
i needed.

Unfortunately i tried
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to
export all wikis. It does create a zip file but it seems to be
corrupt. I
tried it 3 times and every time the zip files is about 530KB in size. I
think this is wrong because when i use the normal export link, the zip file
that is generated for a single page is more than 1MB.

Do you know why the exported zip archive gets corrupted?

Thanks

On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net wrote:

 Hi,

 Please see:

 - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
 - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup

 Thanks
 -Vincent

 On Jan 11, 2010, at 10:00 AM, Ziggy wrote:

  Hi guys,
 
  What is the best way to backup an XWIKI instance? I am using XWiki
  Enterprise 2.1.1.25889. I have seen a couple of options that are
 available
  but i couldnt find one that suits my needs.
 
  On every wiki page, there is an option to export as pdf, html, rtf or as
  XAR. This is quite good but when i tried to export as html it only
 exports
  the current page i am looking at.
 
  There is also the import/export tool (
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
  Unfortunately this exports as XAR but i want to export as html.
 
  What i would like to do is backup the content of my wiki as html pages.
 It
  would be usefull if i can export the whole wiki as html pages. The reason
  for this is i want to be able to backup the contents incase my xwiki
  instance is not accessible. I would like to still be able to access the
  content. The best way for this is to backup the content as html which
 will
  make it independent of any wiki engine.
 
  Is there a way to export everything as html pages? (Not single pages but
 the
  whole wiki and for all users).
 
  Thanks
 ___
 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


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Thomas Mortagne
On Mon, Jan 11, 2010 at 13:52, Ziggy zigg...@gmail.com wrote:
 Hi,

 Many thanks for your response. I think the example on
 http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly what
 i needed.

 Unfortunately i tried
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to

Could you try 
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25to

 export all wikis. It does create a zip file but it seems to be
 corrupt. I
 tried it 3 times and every time the zip files is about 530KB in size. I
 think this is wrong because when i use the normal export link, the zip file
 that is generated for a single page is more than 1MB.

 Do you know why the exported zip archive gets corrupted?

 Thanks

 On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net wrote:

 Hi,

 Please see:

 - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
 - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup

 Thanks
 -Vincent

 On Jan 11, 2010, at 10:00 AM, Ziggy wrote:

  Hi guys,
 
  What is the best way to backup an XWIKI instance? I am using XWiki
  Enterprise 2.1.1.25889. I have seen a couple of options that are
 available
  but i couldnt find one that suits my needs.
 
  On every wiki page, there is an option to export as pdf, html, rtf or as
  XAR. This is quite good but when i tried to export as html it only
 exports
  the current page i am looking at.
 
  There is also the import/export tool (
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
  Unfortunately this exports as XAR but i want to export as html.
 
  What i would like to do is backup the content of my wiki as html pages.
 It
  would be usefull if i can export the whole wiki as html pages. The reason
  for this is i want to be able to backup the contents incase my xwiki
  instance is not accessible. I would like to still be able to access the
  content. The best way for this is to backup the content as html which
 will
  make it independent of any wiki engine.
 
  Is there a way to export everything as html pages? (Not single pages but
 the
  whole wiki and for all users).
 
  Thanks
 ___
 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




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Thomas Mortagne
On Mon, Jan 11, 2010 at 17:19, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Mon, Jan 11, 2010 at 13:52, Ziggy zigg...@gmail.com wrote:
 Hi,

 Many thanks for your response. I think the example on
 http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly what
 i needed.

 Unfortunately i tried
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to

 Could you try 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25to

Note: http://platform.xwiki.org/xwiki/bin/view/Features/Exports is
wrong about wiki name handling, as far as i can see in the code, you
can't use pattern mayching for wiki names. I'm updating the
documentation.


 export all wikis. It does create a zip file but it seems to be
 corrupt. I
 tried it 3 times and every time the zip files is about 530KB in size. I
 think this is wrong because when i use the normal export link, the zip file
 that is generated for a single page is more than 1MB.

 Do you know why the exported zip archive gets corrupted?

 Thanks

 On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net wrote:

 Hi,

 Please see:

 - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
 - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup

 Thanks
 -Vincent

 On Jan 11, 2010, at 10:00 AM, Ziggy wrote:

  Hi guys,
 
  What is the best way to backup an XWIKI instance? I am using XWiki
  Enterprise 2.1.1.25889. I have seen a couple of options that are
 available
  but i couldnt find one that suits my needs.
 
  On every wiki page, there is an option to export as pdf, html, rtf or as
  XAR. This is quite good but when i tried to export as html it only
 exports
  the current page i am looking at.
 
  There is also the import/export tool (
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
  Unfortunately this exports as XAR but i want to export as html.
 
  What i would like to do is backup the content of my wiki as html pages.
 It
  would be usefull if i can export the whole wiki as html pages. The reason
  for this is i want to be able to backup the contents incase my xwiki
  instance is not accessible. I would like to still be able to access the
  content. The best way for this is to backup the content as html which
 will
  make it independent of any wiki engine.
 
  Is there a way to export everything as html pages? (Not single pages but
 the
  whole wiki and for all users).
 
  Thanks
 ___
 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




 --
 Thomas Mortagne




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Ziggy
Hi,

I tried
http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25 and
it is still generating a corrupt zip file.

Thanks



On Mon, Jan 11, 2010 at 4:25 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Mon, Jan 11, 2010 at 17:19, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  On Mon, Jan 11, 2010 at 13:52, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  Many thanks for your response. I think the example on
  http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly
 what
  i needed.
 
  Unfortunately i tried
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to
 
  Could you try
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25to

 Note: http://platform.xwiki.org/xwiki/bin/view/Features/Exports is
 wrong about wiki name handling, as far as i can see in the code, you
 can't use pattern mayching for wiki names. I'm updating the
 documentation.

 
  export all wikis. It does create a zip file but it seems to be
  corrupt. I
  tried it 3 times and every time the zip files is about 530KB in size. I
  think this is wrong because when i use the normal export link, the zip
 file
  that is generated for a single page is more than 1MB.
 
  Do you know why the exported zip archive gets corrupted?
 
  Thanks
 
  On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net
 wrote:
 
  Hi,
 
  Please see:
 
  - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
  - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup
 
  Thanks
  -Vincent
 
  On Jan 11, 2010, at 10:00 AM, Ziggy wrote:
 
   Hi guys,
  
   What is the best way to backup an XWIKI instance? I am using XWiki
   Enterprise 2.1.1.25889. I have seen a couple of options that are
  available
   but i couldnt find one that suits my needs.
  
   On every wiki page, there is an option to export as pdf, html, rtf or
 as
   XAR. This is quite good but when i tried to export as html it only
  exports
   the current page i am looking at.
  
   There is also the import/export tool (
   http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
   Unfortunately this exports as XAR but i want to export as html.
  
   What i would like to do is backup the content of my wiki as html
 pages.
  It
   would be usefull if i can export the whole wiki as html pages. The
 reason
   for this is i want to be able to backup the contents incase my xwiki
   instance is not accessible. I would like to still be able to access
 the
   content. The best way for this is to backup the content as html which
  will
   make it independent of any wiki engine.
  
   Is there a way to export everything as html pages? (Not single pages
 but
  the
   whole wiki and for all users).
  
   Thanks
  ___
  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
 
 
 
 
  --
  Thomas Mortagne
 



 --
 Thomas Mortagne
 ___
 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


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Thomas Mortagne
On Mon, Jan 11, 2010 at 17:43, Ziggy zigg...@gmail.com wrote:
 Hi,

 I tried
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25 and
 it is still generating a corrupt zip file.

I see only one cause for corrupted zip: an error during the export.
You should have something in the log I think.


 Thanks



 On Mon, Jan 11, 2010 at 4:25 PM, Thomas Mortagne
 thomas.morta...@xwiki.comwrote:

 On Mon, Jan 11, 2010 at 17:19, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  On Mon, Jan 11, 2010 at 13:52, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  Many thanks for your response. I think the example on
  http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly
 what
  i needed.
 
  Unfortunately i tried
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to
 
  Could you try
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25to

 Note: http://platform.xwiki.org/xwiki/bin/view/Features/Exports is
 wrong about wiki name handling, as far as i can see in the code, you
 can't use pattern mayching for wiki names. I'm updating the
 documentation.

 
  export all wikis. It does create a zip file but it seems to be
  corrupt. I
  tried it 3 times and every time the zip files is about 530KB in size. I
  think this is wrong because when i use the normal export link, the zip
 file
  that is generated for a single page is more than 1MB.
 
  Do you know why the exported zip archive gets corrupted?
 
  Thanks
 
  On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net
 wrote:
 
  Hi,
 
  Please see:
 
  - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
  - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup
 
  Thanks
  -Vincent
 
  On Jan 11, 2010, at 10:00 AM, Ziggy wrote:
 
   Hi guys,
  
   What is the best way to backup an XWIKI instance? I am using XWiki
   Enterprise 2.1.1.25889. I have seen a couple of options that are
  available
   but i couldnt find one that suits my needs.
  
   On every wiki page, there is an option to export as pdf, html, rtf or
 as
   XAR. This is quite good but when i tried to export as html it only
  exports
   the current page i am looking at.
  
   There is also the import/export tool (
   http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport).
   Unfortunately this exports as XAR but i want to export as html.
  
   What i would like to do is backup the content of my wiki as html
 pages.
  It
   would be usefull if i can export the whole wiki as html pages. The
 reason
   for this is i want to be able to backup the contents incase my xwiki
   instance is not accessible. I would like to still be able to access
 the
   content. The best way for this is to backup the content as html which
  will
   make it independent of any wiki engine.
  
   Is there a way to export everything as html pages? (Not single pages
 but
  the
   whole wiki and for all users).
  
   Thanks
  ___
  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
 
 
 
 
  --
  Thomas Mortagne
 



 --
 Thomas Mortagne
 ___
 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




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export and Backup of Wiki Instance

2010-01-11 Thread Ziggy
Hi,

Thanks for your help. I am at home now so i dont have my laptop with me. I
will check the log as soon i get to work tomorrow.

Thanks


On Mon, Jan 11, 2010 at 6:06 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Mon, Jan 11, 2010 at 17:43, Ziggy zigg...@gmail.com wrote:
  Hi,
 
  I tried
  http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25and
  it is still generating a corrupt zip file.

 I see only one cause for corrupted zip: an error during the export.
 You should have something in the log I think.

 
  Thanks
 
 
 
  On Mon, Jan 11, 2010 at 4:25 PM, Thomas Mortagne
  thomas.morta...@xwiki.comwrote:
 
  On Mon, Jan 11, 2010 at 17:19, Thomas Mortagne
  thomas.morta...@xwiki.com wrote:
   On Mon, Jan 11, 2010 at 13:52, Ziggy zigg...@gmail.com wrote:
   Hi,
  
   Many thanks for your response. I think the example on
   http://platform.xwiki.org/xwiki/bin/view/Features/Exports were
 exactly
  what
   i needed.
  
   Unfortunately i tried
  
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=.*:%25to
  
   Could you try
 
 http://localhost:8080/xwiki/bin/export/Space/Page?format=htmlpages=%25to
 
  Note: http://platform.xwiki.org/xwiki/bin/view/Features/Exports is
  wrong about wiki name handling, as far as i can see in the code, you
  can't use pattern mayching for wiki names. I'm updating the
  documentation.
 
  
   export all wikis. It does create a zip file but it seems to be
   corrupt. I
   tried it 3 times and every time the zip files is about 530KB in size.
 I
   think this is wrong because when i use the normal export link, the
 zip
  file
   that is generated for a single page is more than 1MB.
  
   Do you know why the exported zip archive gets corrupted?
  
   Thanks
  
   On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol vinc...@massol.net
  wrote:
  
   Hi,
  
   Please see:
  
   - http://platform.xwiki.org/xwiki/bin/view/Features/Exports
   - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup
  
   Thanks
   -Vincent
  
   On Jan 11, 2010, at 10:00 AM, Ziggy wrote:
  
Hi guys,
   
What is the best way to backup an XWIKI instance? I am using XWiki
Enterprise 2.1.1.25889. I have seen a couple of options that are
   available
but i couldnt find one that suits my needs.
   
On every wiki page, there is an option to export as pdf, html, rtf
 or
  as
XAR. This is quite good but when i tried to export as html it only
   exports
the current page i am looking at.
   
There is also the import/export tool (
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport
 ).
Unfortunately this exports as XAR but i want to export as html.
   
What i would like to do is backup the content of my wiki as html
  pages.
   It
would be usefull if i can export the whole wiki as html pages. The
  reason
for this is i want to be able to backup the contents incase my
 xwiki
instance is not accessible. I would like to still be able to
 access
  the
content. The best way for this is to backup the content as html
 which
   will
make it independent of any wiki engine.
   
Is there a way to export everything as html pages? (Not single
 pages
  but
   the
whole wiki and for all users).
   
Thanks
   ___
   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
  
  
  
  
   --
   Thomas Mortagne
  
 
 
 
  --
  Thomas Mortagne
  ___
  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
 



 --
 Thomas Mortagne
 ___
 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