Post Reply 
Synology DSM 4.2 is incompatible with MinimServer
08-03-2013, 17:47
Post: #21
RE: Synology DSM 4.2 is incompatible with MinimServer
(08-03-2013 17:27)Rairwave Wrote:  Yes, the dependancy of the python package had similar issue going to DSM 4.2. See:
https://github.com/SynoCommunity/spksrc/issues/376
By changing the exit 1 to exit 0, the package center showed 'running', which allowed dependent packages to install. This wasn't happing in earlier version of DSM. Because MinimServer is running fine (only the reported status is wrong) I though about as a similar issue.

This appears to be a different issue. MinimServer has two states: "running" and "stopped". Python has a single state, which was previously set to "stopped" but has now been changed to "running".
Find all posts by this user
Quote this message in a reply
08-03-2013, 17:49 (This post was last modified: 08-03-2013 18:17 by winxi.)
Post: #22
RE: Synology DSM 4.2 is incompatible with MinimServer
(08-03-2013 17:27)Rairwave Wrote:  Yes, the dependancy of the python package had similar issue going to DSM 4.2. See:
https://github.com/SynoCommunity/spksrc/issues/376

in this thread they suggest that the python package should emulate that it is running. this is required due to the more restrictive dependency rules in the dsm 4.2 package center. btw, the more proper fix for the python package would probably be to set the startable key in the INFO file to false. however, this has nothing to do with your issue.

the minimserer package should report its status correctly. i'm running minimserer 0.63.4 with dsm 4.2 without problems. my guess is that you have a somehow corrupted minimserver installation and thus a fresh install might help. if not, we have to investigate this further.
Find all posts by this user
Quote this message in a reply
08-03-2013, 20:13
Post: #23
RE: Synology DSM 4.2 is incompatible with MinimServer
(08-03-2013 16:31)winxi Wrote:  please do the following using the 0.63.4 package:
1) backup minimserver.config
2) uninstall minimserver
3) reboot the nas
4) install minimserver without the option to start it afterwards
5) restore minimserver.config
6) start/stop the package a few times and observe the status in the package center. also make use of the refresh button.

thanks!

Followed these steps exactly, but the status remains 'stopped'. With MinimWatch I see in the log that MinimServer works, so it's not a biggie.
Thanks.
Find all posts by this user
Quote this message in a reply
09-03-2013, 18:21 (This post was last modified: 09-03-2013 18:22 by winxi.)
Post: #24
RE: Synology DSM 4.2 is incompatible with MinimServer
(08-03-2013 20:13)Rairwave Wrote:  Followed these steps exactly, but the status remains 'stopped'. With MinimWatch I see in the log that MinimServer works, so it's not a biggie.
Thanks.

Thanks for trying this! Unfortunately, I'm not able to reproduce this. However, I'm very interested in the reason for your specific problem. Please answer the following questions:

1) Which Synology NAS model do you have?
2) Did you ever try a manual MinimServer installation, this means without the package center?
3) Did you ever install MinimServer on a different volume than volume1, which is the default?
4) If you are famililar with telnet/ssh, please logon to your NAS as root and post here the output of the following command:

Code:
ps -w | grep minim

Many thanks!
Find all posts by this user
Quote this message in a reply
10-03-2013, 21:59 (This post was last modified: 10-03-2013 22:01 by Rairwave.)
Post: #25
RE: Synology DSM 4.2 is incompatible with MinimServer
(09-03-2013 18:21)winxi Wrote:  1) Which Synology NAS model do you have?
2) Did you ever try a manual MinimServer installation, this means without the package center?
3) Did you ever install MinimServer on a different volume than volume1, which is the default?
4) If you are famililar with telnet/ssh, please logon to your NAS as root and post here the output of the following command:
Code:
ps -w | grep minim

1) 1512+
2) No.
3) No.
4) Hereby the output of the command you requested:
XXXXXX> ps -w | grep minim
9683 minimser 2616 S tail -n 1 -f /volume1/@tmp/minimstdinpipe
9684 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9687 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9688 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9689 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9690 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9691 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9692 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9693 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9695 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9696 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9697 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9698 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9699 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9700 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9701 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9703 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9706 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9707 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9708 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9709 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9710 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9711 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9712 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9713 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9714 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9715 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9717 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9719 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9721 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9722 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9723 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9724 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9726 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
9728 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
11216 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
11217 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
11218 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
11219 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
11223 minimser 921m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
19012 root 2548 R grep minim
XXXXXX> uname -a
Linux syn512 3.2.30 #3202 SMP Fri Mar 1 01:04:10 CST 2013 x86_64 GNU/Linux synology_cedarview_1512+
XXXXXX> whoami
root
XXXXXX>

And the minimserver log:
MinimServer 0.63, Copyright © 2012 Simon Nash. All rights reserved.
starting MinimServer
MinimServer[XXXXXX] is running

Is it normal to run so many instances of minimserver.ja ?

Thanks!!!!!
Find all posts by this user
Quote this message in a reply
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
11-03-2013, 03:54 (This post was last modified: 11-03-2013 03:54 by simoncn.)
Post: #27
RE: Synology DSM 4.2 is incompatible with MinimServer
(10-03-2013 22:52)winxi Wrote:  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've seen this when using old libraries (libc, glibc) that don't support pthreads. If LinuxThreads are being used instead of pthreads, you'll see a separate process for every MinimServer thread. Perhaps Java Manager contains some libraries that are based on LinuxThreads.
Find all posts by this user
Quote this message in a reply
11-03-2013, 08:52 (This post was last modified: 11-03-2013 08:53 by winxi.)
Post: #28
RE: Synology DSM 4.2 is incompatible with MinimServer
(11-03-2013 03:54)simoncn Wrote:  I've seen this when using old libraries (libc, glibc) that don't support pthreads. If LinuxThreads are being used instead of pthreads, you'll see a separate process for every MinimServer thread. Perhaps Java Manager contains some libraries that are based on LinuxThreads.

Thanks for this interesting pointer!

@Rairwave: you can test this by
1) rebooting the NAS.
2) pressing 'run' for MinimServer in the package center just once.
3) If the output of 'ps -w | grep minim' still shows several java processes, this confirms the assumption from Simon.

If this turns out to be true, there have to be applied more changes to the package scripts to make it compatible with the Java Manager. In this case we will provide you with a test package soon.
Find all posts by this user
Quote this message in a reply
11-03-2013, 10:41 (This post was last modified: 11-03-2013 10:46 by Rairwave.)
Post: #29
RE: Synology DSM 4.2 is incompatible with MinimServer
(11-03-2013 08:52)winxi Wrote:  1) rebooting the NAS.
2) pressing 'run' for MinimServer in the package center just once.
3) If the output of 'ps -w | grep minim' still shows several java processes, this confirms the assumption from Simon.

If this turns out to be true, there have to be applied more changes to the package scripts to make it compatible with the Java Manager. In this case we will provide you with a test package soon.

Followed your sequence and this is the output:
BusyBox v1.16.1 (2013-03-01 01:11:16 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

XXXXXX> ps -w | grep minim
9555 minimser 2616 S tail -n 1 -f /volume1/@tmp/minimstdinpipe
14341 root 2548 S grep minim
XXXXXX> whoami
root
XXXXXX> ps -w | grep minim
14791 root 2544 S grep minim
XXXXXX> ps -w | grep minim
14931 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14934 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14935 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14936 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14937 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14938 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14939 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14940 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14941 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14942 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14943 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14944 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14945 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14946 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14947 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14948 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14951 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14953 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14954 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14955 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14956 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14957 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14958 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14959 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14960 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14961 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14962 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14963 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14964 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14965 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14966 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14967 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14968 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14969 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14970 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14971 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14972 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
14973 minimser 919m S /var/packages/JavaManager/target/Java/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/minimserver.ja
15351 root 2548 S grep minim
XXXXXX>

The first and second ps command were right after the reboot, the third was after I started minimserver.

The reason for making use of Synology's new Java Manager is because it allows for faster upgrades of Java which solve recent security issues.
Find all posts by this user
Quote this message in a reply
11-03-2013, 11:48 (This post was last modified: 11-03-2013 11:51 by Rairwave.)
Post: #30
RE: Synology DSM 4.2 is incompatible with MinimServer
(10-03-2013 22:52)winxi Wrote:  Am I right that this package is just about installing Oracle Java at the NAS?

Yes, from what I understand is that the Java Manager is just for installing Java on your NAS:
"Java Manager helps you to install JDK and JRE on your DiskStation to run business applications. .....
Java Manager and Tomcat are available on the models: RS10613xs+, RS3413xs+, DS2413+, DS713+, DS3612xs, RS3412RPxs , RS3412xs, RS2212+, RS2212RP+, DS1812+, DS1512+, RS812RP+, RS812+, DS712+, DS412+, DS3611xs, RS3411RPxs, RS3411xs, RS2211RP+, RS2211+, DS2411+, DS1511+, DS411+II, DS411+, DS1010+, RS810RP+, RS810+, DS710+."

(10-03-2013 22:52)winxi Wrote:  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.

Edit: if you choose option two, you should also change lines 97, 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}'`

I confirm these edits work. Package Manager is now showing MinimServer as running, straight after a reboot.
(Still with 29 java processes, but that is a different matter I know)

Thanks for your help on this one, I am happy!

Edit: line 91 should be 97, changed in above guideline.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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