Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Synology - extra "/n" causing minor issue
11-05-2020, 10:26
Post: #1
Synology - extra "/n" causing minor issue
Hi Simon

MinimServer 2.0.9 update 157

I have had a minor problem on my Synology DS918+ where I am getting a “Operation Failed” message when running the Processes tab in Resource Monitor. I had it before updating to 157.

I raised a Synology ticket and I have received the following response:

(
After some digging, our developer found this is a parsing issue caused by the third-party package, MinimServer. It included an extra "/n" which caused the issue.

Even though in Linux guideline, it didn't disallow the extra "/n", but it's a very uncommon practice. We will suggest you contact the package developer to address such an issue.

(2) comm %s
The filename of the executable, in parentheses.
This is visible whether or not the executable is
swapped out.

)

The last part of their response seems a bit confusing to me; I hope it makes sense to you.

Regards
David
Find all posts by this user
Quote this message in a reply
11-05-2020, 12:03 (This post was last modified: 11-05-2020 12:14 by simoncn.)
Post: #2
RE: Synology - extra "/n" causing minor issue
Thanks for letting me know about this. I have reproduced the "operation failed" problem and I would like to fix it.

I have tried hard to work out where this extra "/n" is but I have not been successful. I have looked in all the places I can think of. Please can you ask your Synology contact for more detailed information. Many thanks.
Find all posts by this user
Quote this message in a reply
11-05-2020, 13:55
Post: #3
RE: Synology - extra "/n" causing minor issue
Hi Simon
I have passed on your request to Synology. I will pass on their reply when received.
Regards
David
Find all posts by this user
Quote this message in a reply
12-05-2020, 10:12
Post: #4
RE: Synology - extra "/n" causing minor issue
Hi Simon
Below is the response to my request for more details:

-------------------------------------------------------
According to our developer, there was an extra '/n' after Publisher 1:0.

root@DS918plus:/proc/16079/task/16079# cat /proc/16079/task/16079/stat
16079 (Publisher 1:0
) S 13185 12574 12574 0 -1 1077952576 1 92 0 0 0 0 0 0 20 0 55 0 12700 5708382208 160944 18446744073709551615 4194304 4196596 140725159788672 140141980081760 140142841419935 0 4 2 16800973 1 0 0 -1 1 0 0 0 0 0 6295024 6295595 13197312 140725159795489 140725159795635 140725159795635 140725159796676 0
--------------------------------------------------------

I hope that helps.
Regards
David
Find all posts by this user
Quote this message in a reply
12-05-2020, 17:17
Post: #5
RE: Synology - extra "/n" causing minor issue
Thanks very much for this. I think there is some confusion on the Synology side. The application with the extra '\n' is Publisher 1:0, not MinimServer. The corresponding display from MinimServer on my DS118 running DSM 6.2 is:

admin@DS118:~$ cat /proc/7403/task/7403/stat
7403 (java) S 7401 7008 7008 0 -1 1077952768 623 86 11 0 1 1 0 0 20 0 44 0 5450 3704983552 20275 18446744073709551615 1 1 0 0 0 0 0 2 16800973 0 0 0 17 2 0 0 143 0 0 0 0 0 0 0 0 0 0

There is no '\n' (newline) there.

However, the Processes tab of Resource Monitor does not work when MinimServer is running. Here is the output from the ps command:

/volume1/@appstore/MinimServer/lib/minimjre(linux-arm64)-14.dir/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/mserver.jar --launchrc --noprompt --nohup --noconsole

The path of the executable is /volume1/@appstore/MinimServer/lib/minimjre(linux-arm64)-14.dir/jre/bin/java. Perhaps Resource Monitor is unable to parse this for some reason. On my DS713+ (which uses a different java executable), the ps output is:

/var/packages/java8/target/ejdk1.8.0_211/linux_i586/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/mserver.jar --launchrc --noprompt --nohup --noconsole

This has a different path for java (no special characters and shorter). On the DS713+, Resource Monitor is working correctly.
Find all posts by this user
Quote this message in a reply
12-05-2020, 18:41
Post: #6
RE: Synology - extra "/n" causing minor issue
Hi Simon
Synology did identify Publisher 1:0 has the culprit with the additional /n has quoted in my reply this morning.
I have just reconfirmed stopping MinimServer on my DS918+ does resolve the problem.
I have just reinstalled MinimServer on my old DS214play, which is now solely for backup, and like your DS713+ it worked correctly. However on the 214 there is no “Service” tab in Resource Monitor and only Processes are available. That machine is running 6.2.2 (4) whilst the 918 is running 6.2.2(5).

Is it worth sending your reply to Synology?

It has been a many years since I worked with linux (it was mainly unix actually).
Regards
David
Find all posts by this user
Quote this message in a reply
12-05-2020, 21:29
Post: #7
RE: Synology - extra "/n" causing minor issue
Please do send my reply to Synology as there is no other way that the mystery can be solved. You can ask them to contact me directly so that you don't need to be in the loop passing messages back and forth. I will PM you my email address.

Your DS918+ has an Intel processor which means the MinimServer command line would be similar to my DS713+. I think this means that my theory about differences in the command line is not correct. My DS118 is running 6.2.2(4) so it isn't down to DSM level differences. Very puzzling!

I have also tried my DS115 and it has the problem. It is running 6.2.2(2).
Find all posts by this user
Quote this message in a reply
14-05-2020, 10:15
Post: #8
RE: Synology - extra "/n" causing minor issue
Morning Simon

My daily update from Synology. Why do these little characters such as newline, tab etc have always caused such trouble?

-----------------------------
Dear David,


Here is more information from our developer. Sorry if the translation is off.

In this process, its comm had an extra '\n'

root@DS918plus:/proc/16079/task/16079# cat /proc/16079/task/16079/stat
16079 (Publisher 1:0
) S 13185 12574 12574 0 -1 1077952576 1 92 0 0 0 0 0 0 20 0 55 0 12700 5708382208 160944 18446744073709551615 4194304 4196596 140725159788672 140141980081760 140142841419935 0 4 2 16800973 1 0 0 -1 1 0 0 0 0 0 6295024 6295595 13197312 140725159795489 140725159795635 140725159795635 140725159796676 0

And from this process cmd, it looks like it's from MiniServer > mserver.jar.

/var/packages/Java8/target/j2sdk-image/jre/bin/java-jar/volume1/@appstore/MinimServer/lib/mserver.jar--launchrc--noprompt--nohup--noconsole

The issue is not with java. It's with the Publisher, which is coming from MiniServer.



If there is any problem, please feel free to contact us
Find all posts by this user
Quote this message in a reply
14-05-2020, 12:09
Post: #9
RE: Synology - extra "/n" causing minor issue
Thanks for this. I now understand that Publisher 1:0 is something that the MinimServer process is creating. This is not coming from MinimServer itself but from the ohNet component that MinimServer uses for UPnP protocol support. I will report this problem to the ohNet developers.

Thanks very much for your persistence in tracking this down.
Find all posts by this user
Quote this message in a reply
14-05-2020, 16:04
Post: #10
RE: Synology - extra "/n" causing minor issue
No problem. Glad to help you on your great product.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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