<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mango Service installation not working]]></title><description><![CDATA[<p dir="auto">Hy,<br />
according to this<br />
<a href="https://help.infiniteautomation.com/installing-services/" rel="nofollow ugc">https://help.infiniteautomation.com/installing-services/</a><br />
I want to use mango 2.57 as a service on Windows XP,<br />
I follow the instructions, the service is created,<br />
I start it but seems that mango is not up.<br />
How I can discover the problem? Following is the log of yajsw.<br />
Thanks,<br />
Antonio</p>
<p dir="auto">WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|YAJSW: yajsw-stable-11.11<br />
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|OS   : Windows XP/5.1/x86<br />
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|JVM  : Oracle Corporation/1.8.0_91/C:\Programmi\Java\jre1.8.0_91/32<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|ahessian jmx service bound to port 15002<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|started process with pid 4232<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|stopping process with pid/timeout 4232 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|started process with pid 4496<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|stopping process with pid/timeout 4496 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|started process with pid 7768<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|stopping process with pid/timeout 7768 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|started process with pid 6456<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|stopping process with pid/timeout 6456 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:23|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:23|started process with pid 3300<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|stopping process with pid/timeout 3300 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:29|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:29|started process with pid 7112<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|too many restarts<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|process not in state RUNNING -&gt; Delaying stop<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|calling onStop<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - timeout: 30000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service wrapper.control -&gt; stopping application<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - after shutdown<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - before notify<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service terminated<br />
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|YAJSW: yajsw-stable-11.11<br />
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|OS   : Windows XP/5.1/x86<br />
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|JVM  : Oracle Corporation/1.8.0_91/C:\Programmi\Java\jre1.8.0_91/32<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|ahessian jmx service bound to port 15002<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|started process with pid 6304<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|stopping process with pid/timeout 6304 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:52|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:52|started process with pid 1944<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|stopping process with pid/timeout 1944 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:58|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:58|started process with pid 5276<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|stopping process with pid/timeout 5276 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:04|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:04|started process with pid 4972<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|stopping process with pid/timeout 4972 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|started process with pid 6776<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|restart process due to default exit code rule<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|restart internal RUNNING<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|stopping process with pid/timeout 6776 45000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:11|process exit code: 4<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|working dir C:\MA_HOME\bin<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|started process with pid 1488<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|too many restarts<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|process not in state RUNNING -&gt; Delaying stop<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|calling onStop<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - timeout: 30000<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service wrapper.control -&gt; stopping application<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - after shutdown<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - before notify<br />
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service terminated</p>
]]></description><link>https://forum.mango-os.com/topic/3441/mango-service-installation-not-working</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 12:35:27 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3441.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Apr 2018 14:22:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mango Service installation not working on Fri, 04 May 2018 15:30:22 GMT]]></title><description><![CDATA[<p dir="auto">I believe YAJSW should work on Windows XP, but glad you found a solution!</p>
]]></description><link>https://forum.mango-os.com/post/18287</link><guid isPermaLink="true">https://forum.mango-os.com/post/18287</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 04 May 2018 15:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service installation not working on Fri, 04 May 2018 10:43:51 GMT]]></title><description><![CDATA[<p dir="auto">The service works without problem on Windows 7 but is not working on Windows XP, I will start it from command line</p>
]]></description><link>https://forum.mango-os.com/post/18284</link><guid isPermaLink="true">https://forum.mango-os.com/post/18284</guid><dc:creator><![CDATA[etantonio]]></dc:creator><pubDate>Fri, 04 May 2018 10:43:51 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service installation not working on Fri, 27 Apr 2018 15:20:04 GMT]]></title><description><![CDATA[<p dir="auto">yes, ma.log is in C:\MA_HOME\bin\logs<br />
but it is written only when I try to start mango using ma-start.bat<br />
not if i try to start the Mango Service,<br />
Mango Service seems started from service interface but it is not.<br />
Thanks<br />
Antonio</p>
<p dir="auto">The system is a Windows XP SP3</p>
]]></description><link>https://forum.mango-os.com/post/18186</link><guid isPermaLink="true">https://forum.mango-os.com/post/18186</guid><dc:creator><![CDATA[etantonio]]></dc:creator><pubDate>Fri, 27 Apr 2018 15:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service installation not working on Fri, 27 Apr 2018 15:05:11 GMT]]></title><description><![CDATA[<p dir="auto">Can you check C:\MA_HOME\bin\logs (if it's there) for any log files?</p>
]]></description><link>https://forum.mango-os.com/post/18184</link><guid isPermaLink="true">https://forum.mango-os.com/post/18184</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 27 Apr 2018 15:05:11 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service installation not working on Fri, 27 Apr 2018 15:01:05 GMT]]></title><description><![CDATA[<p dir="auto">Yes, Mango is in C:\MA_HOME<br />
there's no ma.log  in  C:\MA_HOME\logs<br />
and following is my wrapper.conf and seems to me it is ok.</p>
<hr />
<pre><code># WARNING - Do not modify any of the properties when an application
#  using this configuration file has been installed as a service or daemon.
#  Please uninstall the service before modifying this file.  The
#  service must then be reinstalled.


#********************************************************************
# working directory
#********************************************************************

## Edit:
wrapper.working.dir=C:\\MA_HOME\\bin\\


#********************************************************************
# tmp folder
# yajsw creates temporary files named in_.. out_.. err_.. jna..
# per default these are placed in jna.tmpdir.
# jna.tmpdir is set in setenv batch file to &lt;yajsw&gt;/tmp
#********************************************************************
wrapper.tmp.path = ${jna_tmpdir}


#********************************************************************
# Application main class or native executable
# One of the following properties MUST be defined
#********************************************************************

# Java Application main class
wrapper.java.app.mainclass=com.serotonin.m2m2.Main


#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Log Level for console output.  (See docs for log levels)
wrapper.console.loglevel=INFO

# Log file to use for wrapper output logging.
wrapper.logfile=${wrapper_home}\/log\/wrapper.log

# Maximum size that the log file will be allowed to grow to before
#  the log is rolled. Size is specified in bytes.  The default value
#  of 0, disables log rolling by size.  May abbreviate with the 'k' (kB) or
#  'm' (mB) suffix.  For example: 10m = 10 megabytes.
# If wrapper.logfile does not contain the string ROLLNUM it will be automatically added as suffix of the file name
wrapper.logfile.maxsize=10m

# Maximum number of rolled log files which will be allowed before old
#  files are deleted.  The default value of 0 implies no limit.
wrapper.logfile.maxfiles=10

#********************************************************************
# Application Console Properties
#********************************************************************
# Title to use when running as a console
wrapper.console.title=com.serotonin.m2m2.Main

#********************************************************************
# Wrapper Windows Service and Posix Daemon Properties
#********************************************************************
# Name of the service
wrapper.ntservice.name=Mango

# Display name of the service
wrapper.ntservice.displayname=Mango

# Description of the service
wrapper.ntservice.description=Mango Automation

#********************************************************************
# Wrapper Posix Daemon Properties
#********************************************************************
# The following grooy script should set it correctly for most distros
wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}

#********************************************************************
# Wrapper System Tray Properties
#********************************************************************
# enable system tray
wrapper.tray = true

# TCP/IP port. If none is defined multicast discovery is used to find the port
# Set the port in case multicast is not possible.
wrapper.tray.port = 15002

#********************************************************************
# Exit Code Properties
# Restart on non zero exit code
#********************************************************************
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART

#********************************************************************
# Trigger actions on console output
#********************************************************************
# On Exception show message in system tray
wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception


#********************************************************************
# genConfig: further Properties generated by genConfig
#********************************************************************
placeHolderSoGenPropsComeHere=
wrapper.java.command = java

# Edit:
wrapper.java.classpath.1 = C:\\MA_HOME\\overrides\\classes
wrapper.java.classpath.2 = C:\\MA_HOME\\classes
wrapper.java.classpath.3 = C:\\MA_HOME\\overrides\\properties
wrapper.java.classpath.4 = C:\\MA_HOME\\overrides\\lib\\*.jar
wrapper.java.classpath.5 = C:\\MA_HOME\\lib\\*.jar
wrapper.java.additional.1 = -server
wrapper.java.additional.2 = -Dma.home=C:\\MA_HOME
</code></pre>
]]></description><link>https://forum.mango-os.com/post/18183</link><guid isPermaLink="true">https://forum.mango-os.com/post/18183</guid><dc:creator><![CDATA[etantonio]]></dc:creator><pubDate>Fri, 27 Apr 2018 15:01:05 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service installation not working on Thu, 26 Apr 2018 16:33:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi etantonio,</p>
<p dir="auto">I wonder if your ma.log file is changing when you try to start it? Did you install Mango in <code>C:\MA_HOME</code> ? What's your <code>wrapper.java.command = </code> in the wrapper.conf file? Can you check all the classpath entries at the bottom of the wrapper.conf file are correct? Can you share them?</p>
]]></description><link>https://forum.mango-os.com/post/18169</link><guid isPermaLink="true">https://forum.mango-os.com/post/18169</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 26 Apr 2018 16:33:29 GMT</pubDate></item></channel></rss>