[midPoint] Deployment issues
Pavol Mederly
mederly at evolveum.com
Thu Aug 25 17:42:46 CEST 2016
Brian,
when talking about VM, you mean Java Virtual Machine where midPoint
runs, or a virtual machine as in "hardware virtualization" (like
VirtualBox etc) ?
I suppose the later. Please check how much heap has your tomcat
available. It should be at least 1 GB; for any reasonable use 4 GB is
recommended. See
https://wiki.evolveum.com/display/midPoint/System+Requirements
<https://wiki.evolveum.com/display/midPoint/System+Requirements>.
Pavol Mederly
Software developer
evolveum.com
On 25.08.2016 17:38, Ly, Brian wrote:
>
> So I’ve increased the memory on the VM to 16gb which should be plenty.
> I still get the same error. It seems to be a memory leak in the
> application.
>
> *From:*midPoint [mailto:midpoint-bounces at lists.evolveum.com] *On
> Behalf Of *Ly, Brian
> *Sent:* Thursday, August 25, 2016 11:10 AM
> *To:* 'midPoint General Discussion'
> *Subject:* Re: [midPoint] Deployment issues
>
> I have chmod the entire /usr/share/tomcat8/ directory to 777 and
> restarted tomcat8. Then it created a midpoint folder in this directory
> (/usr/share/tomcat8/midpoint) which it did not have before. I then
> also chmod this folder to 777.
>
> The contents of this directory contains [config.xml export
> icf-connectors idm-legacy import keystore.jceks log
> midpoint-activiti.h2.db midpoint.h2.db schema tmp] which seems to
> be correct.
>
> Whereas the contents of /var/lib/tomcat8/webapps/midpoint contains
> [css fonts img js less META-INF PageSecurityQuestions.html
> status.html WEB-INF]
>
> But when I try to deploy midpoint I get the same msg: “FAIL -
> Application at context path /midpoint could not be started”
>
> Is there another OS, tomcat, jdk combination I should try? I’m running
> it on a VM.
>
> New catalina.out excerpt below:
>
> Aug 25, 2016 9:59:46 AM
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor doRun
>
> SEVERE:
>
> java.lang.OutOfMemoryError: Java heap space
>
> at java.util.Arrays.copyOfRange(Arrays.java:3664)
>
> at java.lang.String.<init>(String.java:207)
>
> at java.io.DataInputStream.readUTF(DataInputStream.java:661)
>
> at java.io.DataInputStream.readUTF(DataInputStream.java:564)
>
> at
> org.apache.tomcat.util.bcel.classfile.ConstantUtf8.getInstance(ConstantUtf8.java:38)
>
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:81)
>
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:55)
>
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:176)
>
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:85)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2045)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1991)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1961)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1915)
>
> at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1158)
>
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:780)
>
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
>
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
>
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
>
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>
> at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1293)
>
> at
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:666)
>
> at
> org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:217)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>
> at
> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
>
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
>
> Aug 25, 2016 9:59:46 AM org.apache.catalina.util.LifecycleBase start
>
> INFO: The start() method was called on component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/midpoint]]
> after start() had already been called. The second call will be ignored.
>
> Aug 25, 2016 9:59:47 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 9:59:57 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:07 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:17 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:27 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:37 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:47 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:00:57 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:01:07 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Aug 25, 2016 10:01:18 AM org.apache.tomcat.util.net.NioEndpoint
> checkParachute
>
> SEVERE: SEVERE:Memory usage is low, parachute is non existent, your
> system may start failing.
>
> Goes on like this..
>
> The VM currently has 2gb of ram. I will try to add more memory to the
> VM to see if that helps
>
> *From:*midPoint [mailto:midpoint-bounces at lists.evolveum.com] *On
> Behalf Of *Ivan Noris
> *Sent:* Thursday, August 25, 2016 10:55 AM
> *To:* midPoint General Discussion
> *Subject:* Re: [midPoint] Deployment issues
>
> Good idea, but according to the log, no:
>
> Setting midpoint.home to '/usr/share/tomcat8/midpoint'.
>
> midpoint.home = /usr/share/tomcat8/midpoint/
>
> (so no "webapps")
>
> BTW are you starting the Tomcat as root? MidPoint will try to create
> the midpoint.home directory and its content (so it must be writeable).
> Specifically, config.xml will be created there upon the first start.
>
> No other thoughts yet; I may be able to install Tomcat 8 on my Ubuntu
> as well later.
>
> I
>
> ------------------------------------------------------------------------
>
> *From: *"Jason Everling" <jeverling at bshp.edu
> <mailto:jeverling at bshp.edu>>
> *To: *"midPoint General Discussion" <midpoint at lists.evolveum.com
> <mailto:midpoint at lists.evolveum.com>>
> *Sent: *Thursday, August 25, 2016 5:41:13 PM
> *Subject: *Re: [midPoint] Deployment issues
>
> Isn't the midpoint home folder created as 'midpoint' by default
> and the webapp by default is 'midpoint' ? I would think that those
> can collide if they are both in tomcat webapp directory?
>
>
> JASON
>
> On Thu, Aug 25, 2016 at 9:31 AM, Ivan Noris
> <Ivan.Noris at evolveum.com <mailto:Ivan.Noris at evolveum.com>> wrote:
>
> Hi Brian,
>
> we are deploying the midpoint.war also to webapps folder, so that
> certainly works.
>
> When you changed server.xml, didn't you accidentally made some typo?
>
> Also can you paste more from catalina.out?
>
> Thanks,
>
> Ivan
>
> ------------------------------------------------------------------------
>
> *From: *"Brian Ly" <Brian.Ly at uhn.ca <mailto:Brian.Ly at uhn.ca>>
> *To: *"gustav.palos at evolveum.com
> <mailto:gustav.palos at evolveum.com>" <gustav.palos at evolveum.com
> <mailto:gustav.palos at evolveum.com>>, "midPoint General
> Discussion" <midpoint at lists.evolveum.com
> <mailto:midpoint at lists.evolveum.com>>
> *Sent: *Thursday, August 25, 2016 5:18:20 PM
>
>
> *Subject: *Re: [midPoint] Deployment issues
>
> Yes, I installed based on those instructions,
>
> I installed JDK7 and tomcat8 on Ubuntu 16.04 using the apt-get
> install method. Then I used wget to download midpoint to the
> server and extracted it using tar. I then moved the war file
> into the tomcat webapps folder and changed the server.xml to
> change the size limitation. Tomcat creates a midpoint folder
> in the webapps directory since I did not change the location
> of the MidPoint Home Directory (midpoint.home) but it should
> be able to deploy in the tomcat webapps directory right?
>
> Brian
>
> *From:*midPoint [mailto:midpoint-bounces at lists.evolveum.com
> <mailto:midpoint-bounces at lists.evolveum.com>] *On Behalf Of
> *Pálos Gustáv
> *Sent:* Thursday, August 25, 2016 12:26 AM
> *To:* midPoint General Discussion
> *Subject:* Re: [midPoint] Deployment issues
>
> Hi Brian,
>
> do you install midpoint & configure it over this manual?
>
> https://wiki.evolveum.com/display/midPoint/Installation+Guide
>
> is configured midpoint.home directory writable for the user,
> who run the tomcat?
>
> Gustav
>
> 2016-08-24 22:35 GMT+02:00 Ly, Brian <Brian.Ly at uhn.ca
> <mailto:Brian.Ly at uhn.ca>>:
>
> Hi
>
> I am trying out midpoint and I cannot seem to deploy it using
> tomcat. I am receiving a “FAIL - Application at context path
> /midpoint could not be started” error message in tomcat when I
> try to deploy midpoint.
>
> Can you please assist me?
>
> I am running Ubuntu server 16.04, tomcat 8, latest midpoint
> release, latest java jdk
>
>
> This e-mail may contain confidential and/or privileged
> information for the sole use of the intended recipient.
> Any review or distribution by anyone other than the person for
> whom it was originally intended is strictly prohibited.
> If you have received this e-mail in error, please contact the
> sender and delete all copies.
> Opinions, conclusions or other information contained in this
> e-mail may not be that of the organization.
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> --
>
> Gustáv Pálos
>
> Identity Engineer
>
> evolveum.com <http://evolveum.com/>
>
>
> This e-mail may contain confidential and/or privileged
> information for the sole use of the intended recipient.
> Any review or distribution by anyone other than the person for
> whom it was originally intended is strictly prohibited.
> If you have received this e-mail in error, please contact the
> sender and delete all copies.
> Opinions, conclusions or other information contained in this
> e-mail may not be that of the organization.
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
>
> Ivan Noris
> Senior Identity Engineer
> evolveum.com <http://evolveum.com>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
> CONFIDENTIALITY NOTICE:
> This e-mail together with any attachments is proprietary and
> confidential; intended for only the recipient(s) named above and
> may contain information that is privileged. You should not retain,
> copy or use this e-mail or any attachments for any purpose, or
> disclose all or any part of the contents to any person. Any views
> or opinions expressed in this e-mail are those of the author and
> do not represent those of the Baptist School of Health
> Professions. If you have received this e-mail in error, or are not
> the named recipient(s), you are hereby notified that any review,
> dissemination, distribution or copying of this communication is
> prohibited by the sender and to do so might constitute a violation
> of the Electronic Communications Privacy Act, 18 U.S.C. section
> 2510-2521. Please immediately notify the sender and delete this
> e-mail and any attachments from your computer.
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
>
> Ivan Noris
> Senior Identity Engineer
> evolveum.com
>
>
> This e-mail may contain confidential and/or privileged information for
> the sole use of the intended recipient.
> Any review or distribution by anyone other than the person for whom it
> was originally intended is strictly prohibited.
> If you have received this e-mail in error, please contact the sender
> and delete all copies.
> Opinions, conclusions or other information contained in this e-mail
> may not be that of the organization.
>
>
> This e-mail may contain confidential and/or privileged information for
> the sole use of the intended recipient.
> Any review or distribution by anyone other than the person for whom it
> was originally intended is strictly prohibited.
> If you have received this e-mail in error, please contact the sender
> and delete all copies.
> Opinions, conclusions or other information contained in this e-mail
> may not be that of the organization.
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160825/f5e67655/attachment.htm>
More information about the midPoint
mailing list