[xwiki-users] How do I run the attachment porter?
Greets, I modified xwiki.properties and set: xwiki.store.attachment.hint = file xwiki.store.attachment.versioning.hint = file xwiki.store.attachment.recyclebin.hint = file ... and when I started XWiki I got the Java stacktrace below. I don't see anything obvious in them that would explain, but figure that they are probably because I did not run the attachment porter script; after all, the instructions do say up front: "If you're using the standalone packaging (the ZIP or EXE packagings) then you already have wiki pages and attachments in the database (since database is the default at the moment). Thus you'll need to apply the instructions for the next section and run the Filesystem Attachment Porter." OK, I saved the Filesystem Attachment Porter to my install dir, /data/xwiki, as porter.groovy. Then I installed groovy with "yum install groovy" on CentOS-7.3. Then I said: # groovy porter.groovy .. and got this: /bin/build-classpath: Could not find ../../jvm/java/lib Java extension for this JVM /bin/build-classpath: error: Some specified jars were not found org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /data/xwiki/porter.groovy: 1: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it -> ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 1, column 1. {{groovy}} ^ 1 error I am not familiar with Groovy. What have I done wrong - am I invoking it wrong? Thanks much Doug stacktrace --- javax.servlet.ServletException: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [init.vm] at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:136) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.Ht
[xwiki-users] environment.permanentDirectory default value: data/ or /var/local/xwiki ?
Interestingly, whereas it says below "By default it's defined to be data", the commented-out line containing it in my unmodified xwiki.properties reads: # environment.permanentDirectory=/var/local/xwiki/ I don't have a /var/local/xwiki. I installed standalone 8.4.4 into /data, and do have a /data/xwiki/data/ with the expected contents. Doug -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Douglas Landau Sent: Tuesday, March 21, 2017 6:13 PM To: XWiki Users Subject: [xwiki-users] A question regarding attachment storage and environment.permanentDirectory Greets, I have a request for my new xwiki: please store attachments as files rather than in the DB. OK, I found the instructions at: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I set these: xwiki.store.attachment.hint = file xwiki.store.attachment.versioning.hint = file xwiki.store.attachment.recyclebin.hint = file I don't have any attachments yet so think I don't need to run the Filesystem Attachment Porter. My question is regarding this bit of advice: The directory in which the attachments are stored in the filesystem is defined with the parameter environment.permanentDirectory in the xwiki.properties file. By default it's defined to be data, which is a directory relative to where the Java Servlet Container was started. It's recommend to modify this value to be absolute sure that you can start the Servlet Container from any directory and still have XWiki find the attachments located in this work directory. For example: environment.permanentDirectory=/opt/tomcat6/data --- OK. My questions are: - The comment above that variable in xwiki.properties says: #-# Note if the system property xwiki.data.dir is set then this property is not used. OK, so it's not quite that simple, I will also need to set xwiki.data.dir. I don't see it occurring anywhere in any file other than in that comment, so I guess I'm not using it, and setting environment.PermanentDirectory won't take effect unless I do. But wait a sec: I thought this var WAS setting the location of "the data directory". So: 1. What is the difference between them? Between xwiki.data.dir and environment.PermanentDirectory ? 2. Should I do this? I don't have any motivation to do so other than the warning above, which I do not understand. How/why does moving the data dir allow one to start the servlet container from any directory and still have XWiki find the attachments? Thanks much Doug The information contained in this transmission may contain West Marine proprietary, confidential and/or privileged information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, please send an email to netad...@westmarine.com. The information contained in this transmission may contain West Marine proprietary, confidential and/or privileged information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, please send an email to netad...@westmarine.com.
[xwiki-users] A question regarding attachment storage and environment.permanentDirectory
Greets, I have a request for my new xwiki: please store attachments as files rather than in the DB. OK, I found the instructions at: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I set these: xwiki.store.attachment.hint = file xwiki.store.attachment.versioning.hint = file xwiki.store.attachment.recyclebin.hint = file I don't have any attachments yet so think I don't need to run the Filesystem Attachment Porter. My question is regarding this bit of advice: The directory in which the attachments are stored in the filesystem is defined with the parameter environment.permanentDirectory in the xwiki.properties file. By default it's defined to be data, which is a directory relative to where the Java Servlet Container was started. It's recommend to modify this value to be absolute sure that you can start the Servlet Container from any directory and still have XWiki find the attachments located in this work directory. For example: environment.permanentDirectory=/opt/tomcat6/data --- OK. My questions are: - The comment above that variable in xwiki.properties says: #-# Note if the system property xwiki.data.dir is set then this property is not used. OK, so it's not quite that simple, I will also need to set xwiki.data.dir. I don't see it occurring anywhere in any file other than in that comment, so I guess I'm not using it, and setting environment.PermanentDirectory won't take effect unless I do. But wait a sec: I thought this var WAS setting the location of "the data directory". So: 1. What is the difference between them? Between xwiki.data.dir and environment.PermanentDirectory ? 2. Should I do this? I don't have any motivation to do so other than the warning above, which I do not understand. How/why does moving the data dir allow one to start the servlet container from any directory and still have XWiki find the attachments? Thanks much Doug The information contained in this transmission may contain West Marine proprietary, confidential and/or privileged information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, please send an email to netad...@westmarine.com.
[xwiki-users] Admin+Export.xar To large to Import
Hi All, I needed to move my Xwiki (using the internal DB) as such I used the Admin export feature so I could import it on the new install. When I go to import it it advises that it cannot because it is larger then 32mb (Just over 44mb is the actual size). I found some information on changing the pref using http:///xwiki/bin/edit/XWiki/XWikiPreferences?editor=object but this did not resolve. Could I please seek some help on how I can re-import my Wiki onto the new install? Thanks Mitch -- View this message in context: http://xwiki.475771.n2.nabble.com/Admin-Export-xar-To-large-to-Import-tp7603187.html Sent from the XWiki- Users mailing list archive at Nabble.com.
[xwiki-users] Admin+Export.xar To large to Import
Hi All, I needed to move my Xwiki (using the internal DB) as such I used the Admin export feature so I could import it on the new install. When I go to import it it advises that it cannot because it is larger then 32mb (Just over 44mb is the actual size). I found some information on changing the pref using http:///xwiki/bin/edit/XWiki/XWikiPreferences?editor=object but this did not resolve. Could I please seek some help on how I can re-import my Wiki onto the new install? Thanks Mitch -- View this message in context: http://xwiki.475771.n2.nabble.com/Admin-Export-xar-To-large-to-Import-tp7603186.html Sent from the XWiki- Users mailing list archive at Nabble.com.
[xwiki-users] Install XWiki as whom?
Thanks! I installed it (the standalone version) as root and ran it briefly a few times as root. Now when I try to run it as myself it fails because I can't overwrite logs that have already been started. Should start over and reinstall as myself? Or rather, as the user as whom I wish to run? Or maybe I should just chmod -R the whole thing and go with it? Any other complications or steps I am not thinking of yet? Thanks!! rez_spb wrote: >One more tip: you actually shouldn't run Tomcat as root, this could get messy >pretty fast. The information contained in this transmission may contain West Marine proprietary, confidential and/or privileged information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, please send an email to netad...@westmarine.com.
Re: [xwiki-users] New translation issue ?
I see in http://l10n.xwiki.org/xwiki/bin/view/Platform/PlatformXWikiUserProfileTranslations_-1630831696_XWiki-XWikiUsers_displayHiddenDocuments-hint_fr#History that it's been translated by Xavier Richard after 8.4.4 release. It should end up in 8.4.5 (if released) and it should be included in 9.1. On Tue, Mar 21, 2017 at 4:16 PM, Pascal BASTIEN wrote: > Hello, > > On xWiki 8.4.4 hints text on the preference page of user profiles are not > translated. > In french version: > < AFFICHER LES DOCUMENTS CACHÉS > The wiki contains documents that are not displayed by default. These hidden > >> > > I found that these hints are in this page: > XWiki.UserProfileTranslations (with XWiki.TranslationDocumentClass) > with english langage only. > > Others labels of profile page are in ApplicationResources.properties like > usualy > https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties > > You probably have a good reason for that (probably the lenght of text?, but > anyway > I must translate; XWiki.UserProfileTranslations? > > I must open an issue about it? > > Thxs > > Pascal B -- Thomas Mortagne
[xwiki-users] New translation issue ?
Hello, On xWiki 8.4.4 hints text on the preference page of user profiles are not translated. In french version: <> I found that these hints are in this page: XWiki.UserProfileTranslations (with XWiki.TranslationDocumentClass) with english langage only. Others labels of profile page are in ApplicationResources.properties like usualy https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties You probably have a good reason for that (probably the lenght of text?, but anyway I must translate; XWiki.UserProfileTranslations? I must open an issue about it? Thxs Pascal B
[xwiki-users] How to manage applications list?
Hello, I didn't manage to display applications lists by default for user on page: http://localhost:8080/xwiki/bin/view/Applications/ I know that I can display default application on left bar with "Administration - applications panel": http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=panels.applications Is it a normal feature that "Applications list" and Applications list on left bar didn't display same lists? Like my nice screenshot: https://snag.gy/NemQSX.jpg Anyway, I didn't found the page (or the way) where is store applications entry... Thxs for your help Pascal