MinimServer Forum
No MinimServer on DS216Air - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: No MinimServer on DS216Air (/showthread.php?tid=3150)



No MinimServer on DS216Air - el_lobo666 - 29-04-2016 13:49

Hello there,

So the story is quite short. For some time my Minim Server acted weird. Every time my NAS rebooted, I had to manually turn the app on. But after upgrading to DSM6.0 turning has been failing at first so i had to do it again. So it worked then. I thought It might be caused by old version of Java Embeded (currently have version 1.8.0_91-0039). Upgraded it yesterday. Today MinimServer didn't start at all. There was some info in the log. I upgraded Minim Server then. No improvement, only the log says No Data. Well, I knew it would be a problem after upgrading Java as it happened before, just don't remember how to solve it. So again, MinimServer version is 0.8.4, DSM 6.0

How to make it working? How to make it booting itself every time after NAS is booting (every day at 11.00 am)? I am not too patient when comes to the computers so I afraid if there's no respond my NAS will have crash course with the nearest wall, which will be unfortunate also for the Minim...Dodgy

Thank you!

Greg


RE: No MinimServer on DS216Air - simoncn - 29-04-2016 14:11

What NAS model do you have? The thread title says it is a DS216Air but I don't see any model with that name.

Which package did you use to install Java?

Are you able (after your recent updates) to start MinimServer manually?


RE: No MinimServer on DS216Air - el_lobo666 - 29-04-2016 15:45

(29-04-2016 14:11)simoncn Wrote:  What NAS model do you have? The thread title says it is a DS216Air but I don't see any model with that name.

Which package did you use to install Java?

Are you able (after your recent updates) to start MinimServer manually?

Sorry, It's DS213 Air and the package is ejdk-8u91-linux-armv6-vfp-hflt.tar it's actually the only one I found and the installing process went flawless.

And this is the reason I ask for help. No way to start the app manually. It only shows info saying Failed to run package service. MinimServer start error: see system log. Does it ask for DSM log? MinimServer log states No Data.


RE: No MinimServer on DS216Air - simoncn - 29-04-2016 21:33

(29-04-2016 15:45)el_lobo666 Wrote:  Sorry, It's DS213 Air and the package is ejdk-8u91-linux-armv6-vfp-hflt.tar it's actually the only one I found and the installing process went flawless.

And this is the reason I ask for help. No way to start the app manually. It only shows info saying Failed to run package service. MinimServer start error: see system log. Does it ask for DSM log? MinimServer log states No Data.

You are using the wroing version of Java for this NAS. There is a tutorial in this post that gives detailed instructions for installing Java on your NAS. The version of Java mentioned there is slightly out of date and the correct version is now ejdk-8u91-linux-arm-sflt.tar.gz.

To view the error message in the system log, you need to use Synology Log Center.


RE: No MinimServer on DS216Air - el_lobo666 - 30-04-2016 11:37

Yeah, my bad. I just believed that wrong version wouldn't install. Will try to fix the problem, which happened to extend last night. I did try to uninstal the Java package. Somehow it didn't go well, left some rubbish behind which I can't get rid of. And it stops me from installing the proper version. It says there is still installed Java on volume1\@appstore which is not accessible from DSM interface. I wish I paid more attention when friend of mine tried to teach me about Linux few years back...


RE: No MinimServer on DS216Air - el_lobo666 - 30-04-2016 13:20

Ok, I found what causes the problem. It's a file /etc/profile which gives the false information about Java being installed. Is there any way to edit this?

#/etc/profile: system-wide .profile file for ash.

umask 022

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
export PATH

PGDATA=/var/services/pgsql
export PGDATA

TERMINFO=/usr/share/terminfo
export TERMINFO

TERM=${TERM:-cons25}
export TERM

PAGER=more
export PAGER

export LC_ALL=en_US.utf8
export LANG=en_US.utf8

PS1="`hostname`> "

alias dir="ls -al"
alias ll="ls -la"

ulimit -c unlimited

if [ -f /etc.defaults/.bashrc_profile ]; then
source /etc.defaults/.bashrc_profile
fi
PATH=$PATH:/volume1/@appstore/java8/ejdk1.8.0_91/linux_armv6_vfp_hflt/jre
JAVA_HOME=/volume1/@appstore/java8/ejdk1.8.0_91/linux_armv6_vfp_hflt/jre
CLASSPATH=.:/volume1/@appstore/java8/ejdk1.8.0_91/linux_armv6_vfp_hflt/jre

As you can see the last three lines are IMO causing all the mess (and obviously my lack of experience)


RE: No MinimServer on DS216Air - simoncn - 30-04-2016 15:50

You can do the following:

1) use ssh to login as admin
2) from an SSH terminal window, copy the file to an accessible location
3) use File Explorer to download the file
4) edit the file
5) use File Explorer to upload the edited file
6) from an SSH terminal window, use sudo to change the edited file ownership to root:root
7) from an SSH terminal window, use sudo to copy the edited file to its original location
8) reboot the NAS

Take great care while doing this, as any mistakes might make your NAS unusable.


RE: No MinimServer on DS216Air - el_lobo666 - 30-04-2016 18:50

Ok, got it, right now I try to commit connection through Telnet. Fingers crossed Wink


RE: No MinimServer on DS216Air - el_lobo666 - 22-05-2016 19:27

Ok, I've tried everything I possibly could and still no success. So I gained access through Telnet window (I heard SSH is only for Mac computers) and also can see the file through WinSCP. But have no clue how to get to the file through the Telnet terminal window, how to change the ownership of the edited file (simple replacing it through WinSCP doesn't work despite someone reported on different forum they managed it this way, but didn't say how) and how to edit the file. Is it about deleting those last three lines? I am completely lost when it goes to take any actions via Telnet. So maybe can anyone tell me how to use the tools I already know how to access? Step by step? I'm a bit desperate. I think of replacing NAS by different brand and change server to different also, as this one looks like too much hassle when any trouble pops up. Do I really need to learn Java programming to make sure I can listen to the music?


RE: No MinimServer on DS216Air - simoncn - 22-05-2016 22:08

If you don't have the necessary Linux expertise to make these changes to the /etc/profile file, the safest solution (easier than buying a new NAS) would be to back up all your data, then perform a DSM reset to factory defaults, then restore your data from the backup. The factory reset should remove the incorrect lines from the /etc/profile file.