Post Reply 
Synology DSM 4.2 is incompatible with MinimServer
10-03-2013, 22:52 (This post was last modified: 10-03-2013 23:14 by winxi.)
Post: #26
RE: Synology DSM 4.2 is incompatible with MinimServer
(10-03-2013 21:59)Rairwave Wrote:  Is it normal to run so many instances of minimserver.ja ?

Thanks!!!!!

Hi, thanks for this very helpful information and no, so many instances of MinimServer are not normal Smile. In fact, there should be just one.

I wasn't even aware that there is an official package 'Java Manager' from Synology. This package isn't available for my NAS (DS211) and I dind't find much documentation for it. Am I right that this package is just about installing Oracle Java at the NAS?

Basically, the MinimServer package is optimized to work with the Java package by patters (please see the MinimServer installation guide for more information). However, it is designed to work with other kinds of Java installations also. Since you use an official package from Synology, this should definitely be supported, too.

The problem is that the status check is performed by matching the output of ps, just as you posted it and the current package requires the string 'minimserver.jar' to be there. Your output is truncated to '... minimserver.ja'. This is due to the longer path of the java executable with the 'Java Manager'. So, the package center always thinks that MinimServer is stopped and with pressing run you add another instance and you will get an error message like mentioned in your initial post.

This will be fixed in the next version of the package. To fix it yourself now, you have two options:

First option: Uninstall the Java Manager and MinimServer. Reboot your NAS. Install the Java package by patters and MinimServer.

Second option: Edit the file '/var/packages/MinimServer/scripts/start-stop-status' and change line 10 from
Code:
ps -w | grep "^ *[0-9]* minimser.*java -jar.*[m]inimserver.jar" > /dev/null
to
Code:
ps -w | grep "^ *[0-9]* minimser.*java -jar.*[m]inimserver" > /dev/null
Important: Reboot the NAS.

I recommend the second option. When you get it working with this, this confirms my presumption.

Thanks!

Edit: if you choose option two, you should also change lines 91, 130 and 150 from
Code:
PID=`ps -w | grep "^ *[0-9]* minimser.*java -jar.*[m]inimserver.jar" | awk '{print $1}'`
to
Code:
PID=`ps -w | grep "^ *[0-9]* minimser.*java -jar.*[m]inimserver" | awk '{print $1}'`
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Synology DSM 4.2 is incompatible with MinimServer - winxi - 10-03-2013 22:52

Forum Jump:


User(s) browsing this thread: 1 Guest(s)