Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Mango Service installation not working
-
Hy,
according to this
https://help.infiniteautomation.com/installing-services/
I want to use mango 2.57 as a service on Windows XP,
I follow the instructions, the service is created,
I start it but seems that mango is not up.
How I can discover the problem? Following is the log of yajsw.
Thanks,
AntonioWARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|YAJSW: yajsw-stable-11.11
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|OS : Windows XP/5.1/x86
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
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|ahessian jmx service bound to port 15002
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:18:59|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|started process with pid 4232
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|stopping process with pid/timeout 4232 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:00|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|started process with pid 4496
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|stopping process with pid/timeout 4496 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:06|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|started process with pid 7768
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|stopping process with pid/timeout 7768 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:12|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|started process with pid 6456
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|stopping process with pid/timeout 6456 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:18|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:23|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:23|started process with pid 3300
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|stopping process with pid/timeout 3300 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:24|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:29|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:29|started process with pid 7112
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|too many restarts
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|process not in state RUNNING -> Delaying stop
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|calling onStop
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - timeout: 30000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service wrapper.control -> stopping application
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - after shutdown
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service stop - before notify
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:30|Win service terminated
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|YAJSW: yajsw-stable-11.11
WARNING|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|OS : Windows XP/5.1/x86
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
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|ahessian jmx service bound to port 15002
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:46|started process with pid 6304
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|stopping process with pid/timeout 6304 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:47|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:52|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:52|started process with pid 1944
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|stopping process with pid/timeout 1944 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:53|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:58|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:58|started process with pid 5276
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|stopping process with pid/timeout 5276 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:19:59|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:04|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:04|started process with pid 4972
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|stopping process with pid/timeout 4972 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:05|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|started process with pid 6776
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|restart process due to default exit code rule
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|restart internal RUNNING
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:10|stopping process with pid/timeout 6776 45000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:11|process exit code: 4
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|working dir C:\MA_HOME\bin
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|started process with pid 1488
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|too many restarts
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|process not in state RUNNING -> Delaying stop
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|calling onStop
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - timeout: 30000
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service wrapper.control -> stopping application
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - after shutdown
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service stop - before notify
INFO|wrapper|Service com.serotonin.m2m2.Main|18-04-26 16:20:16|Win service terminated -
Hi etantonio,
I wonder if your ma.log file is changing when you try to start it? Did you install Mango in
C:\MA_HOME
? What's yourwrapper.java.command =
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? -
Yes, Mango is in C:\MA_HOME
there's no ma.log in C:\MA_HOME\logs
and following is my wrapper.conf and seems to me it is ok.
# 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 <yajsw>/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
-
Can you check C:\MA_HOME\bin\logs (if it's there) for any log files?
-
yes, ma.log is in C:\MA_HOME\bin\logs
but it is written only when I try to start mango using ma-start.bat
not if i try to start the Mango Service,
Mango Service seems started from service interface but it is not.
Thanks
AntonioThe system is a Windows XP SP3
-
The service works without problem on Windows 7 but is not working on Windows XP, I will start it from command line
-
I believe YAJSW should work on Windows XP, but glad you found a solution!