Raspbian: automatic restart of minimserver after reboot doesn't work
|
14-12-2020, 21:03
Post: #1
|
|||
|
|||
Raspbian: automatic restart of minimserver after reboot doesn't work
Fortunately, I managed to solve the java issue (thnx to Simon) on my RPI 2.
In general, minimserver works fine, streams music etc. Great! However, unfortunately, the automatic restart of minimserver doesn't work. To avoid any other conflict with the installation attempt and the java issue, I uninstalled minimserver (using the keep config option which led to another issue when re-installing - details as below) and finally re-installed minimserver from scratch. It again works fine except for the automatic restart. Here are the details: While uninstalling I have chosen to keep the config file. During re-installation, this error occurred: un-taring done before pi@bwtmusic:~ $ minimserver/bin/setup mv: der Aufruf von stat für '/home/pi/.minimserver/bin/setup' ist nicht möglich: Datei oder Verzeichnis nicht gefunden pi@bwtmusic:~ $ So the setup program in .minimserver was not found. I played arround for a while but figured to throw away e.th. and start from scratch as I doen't have much (config etc.) to loose: rm -rf ./minimserver pi@bwtmusic:~ $ rm -rf ./.minimserver pi@bwtmusic:~ $ tar -xvf MinimServer-2.0.16-linux-armhf.tar.gz minimserver/ minimserver/data/ minimserver/.build-time minimserver/libsys/ minimserver/opt/ minimserver/opt/bin/ minimserver/etc/ minimserver/lib minimserver/minimserver-2.0.16/ minimserver/minimserver-2.0.16/LICENSE.txt minimserver/minimserver-2.0.16/lib/ minimserver/minimserver-2.0.16/lib/minimui-2.0.120.jar minimserver/minimserver-2.0.16/lib/ohnet(linux-armhf)-1.30.3937.zip minimserver/minimserver-2.0.16/lib/minim.jar minimserver/minimserver-2.0.16/lib/minimserver-2.0.132.jar minimserver/minimserver-2.0.16/lib/mserver.jar minimserver/minimserver-2.0.16/lib/minimlaunch$-2.0.103.jar minimserver/minimserver-2.0.16/lib/minimscript$-2.0.103.jar minimserver/minimserver-2.0.16/lib/minimserver-2.0.16.jmpkg minimserver/minimserver-2.0.16/lib/jminim-2.0.132.jar minimserver/minimserver-2.0.16/lib/minimreader-2.0.107.jar minimserver/minimserver-2.0.16/lib/mscript.jar minimserver/minimserver-2.0.16/bin/ minimserver/minimserver-2.0.16/bin/scriptdemo.sh minimserver/minimserver-2.0.16/bin/uninstall minimserver/minimserver-2.0.16/bin/mscript minimserver/minimserver-2.0.16/bin/startd minimserver/minimserver-2.0.16/bin/stopall minimserver/minimserver-2.0.16/bin/starti minimserver/minimserver-2.0.16/bin/startc minimserver/minimserver-2.0.16/bin/setup minimserver/minimserver-2.0.16/bin/update minimserver/minimserver-2.0.16/icons/ minimserver/minimserver-2.0.16/icons/server144.png minimserver/libext/ minimserver/bin minimserver/icons pi@bwtmusic:~ $ minimserver/bin/setup MinimServer desktop integration is disabled MinimServer automatic startup is disabled Do you want to change these settings (y/n)? y Enable desktop integration for MinimServer (y/n)? n Enable automatic startup for MinimServer (y/n)? y Acquiring root privilege for system configuration update... MinimServer automatic startup has been enabled pi@bwtmusic:~ $ pi@bwtmusic:~ $ minimserver/bin/startc MinimServer 2.0.16, Copyright © 2012-2020 Simon Nash. All rights reserved. autoUpdate: installed package 'minimserver-update-178' Enter command (? for help): autoUpdate: relaunching >MinimServer 2.0.16 update 178, Copyright © 2012-2020 Simon Nash. All rights reserved. starting MinimServer[bwtmusic] Enter content directory, or null to continue: Enter command (? for help): #>/home/pi/Music > MinimServer[bwtmusic] is running > >props MinimServer 2.0.16, Copyright © 2012-2020 Simon Nash. All rights reserved. By downloading, installing or using this software, you accept all the terms in the https://minimworld.com/eula-popup.html as well as the following license conditions: 1. You may not redistribute this software (with or without modification) and you may not sell or distribute any product containing this software (with or without modification). 2. You may not modify, decompile, disassemble or reverse engineer this software. 3. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 4. The ohNet component is subject to separate copyright and license terms. For these terms, see https://minimserver.com/minimserver2/lic...tml#ohNet. Accept these license conditions for MinimServer[bwtmusic] (y/n)? #y .autoUpdate=true contentDir=/home/pi/Music displayName=MinimServer[bwtmusic] http.port=9790 indexTags=Artist, Date, Genre, All Artists, Composer .logFile=minimserver.log .logLevel=info mergeFolderAlbums=false ohnet.debug=Default ohnet.port=9791 showExtras=true startupScan=true .updateReminder=1 > >exit stopping MinimServer[bwtmusic] MinimServer[bwtmusic] is stopped pi@bwtmusic:~ $ $minimserver/bin/startd ps -ax |grep minim 1299 pts/0 S 0:00 /bin/sh minimserver/bin/startd 1301 pts/0 Sl 0:31 java -jar /home/pi/minimserver/lib/mserver.jar --launchrc --set watch.view=log --nohup 1359 pts/0 S+ 0:00 grep --color=auto minim $ systemctl status minimserver.service ● minimserver.service - LSB: Start and stop MinimServer Loaded: loaded (/etc/init.d/minimserver; generated) Active: active (exited) since Mon 2020-12-14 12:00:04 CET; 8h ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 881) CGroup: /minimserver.service Dez 14 11:59:44 bwtmusic systemd[1]: Starting LSB: Start and stop MinimServer... Dez 14 11:59:45 bwtmusic su[269]: (to pi) root on none Dez 14 11:59:45 bwtmusic su[269]: pam_unix(su:session): session opened for user pi by (uid=0) Dez 14 12:00:04 bwtmusic systemd[1]: Started LSB: Start and stop MinimServer. pi@bwtmusic:~ $ So far so good, then I reboot the Raspi ... After the reboot: $ps -ax |grep minim 723 pts/0 S+ 0:00 grep --color=auto minim No minimserver process running $ systemctl status minimserver.service ● minimserver.service - LSB: Start and stop MinimServer Loaded: loaded (/etc/init.d/minimserver; generated) Active: active (exited) since Mon 2020-12-14 20:30:21 CET; 1min 25s ago Docs: man:systemd-sysv-generator(8) Process: 250 ExecStart=/etc/init.d/minimserver start (code=exited, status=0/SUCCESS) Dez 14 20:29:57 bwtmusic systemd[1]: Starting LSB: Start and stop MinimServer... Dez 14 20:29:57 bwtmusic su[254]: (to pi) root on none Dez 14 20:29:58 bwtmusic su[254]: pam_unix(su:session): session opened for user pi by (uid=0) Dez 14 20:30:21 bwtmusic systemd[1]: Started LSB: Start and stop MinimServer. Checking again as it may take some time to startup ... pi@bwtmusic:~ $ ps -ax |grep minim 727 pts/0 S+ 0:00 grep --color=auto minim $ ls -ltr /etc/init.d/minimserver -rwxr-xr-x 1 root root 1516 Dez 14 20:15 /etc/init.d/minimserver pi@bwtmusic:~ $ file /etc/init.d/minimserver /etc/init.d/minimserver: POSIX shell script, ASCII text executable pi@bwtmusic:~ $ $ ls -ltr /etc/init.d/minimserver-init.sh ls: Zugriff auf '/etc/init.d/minimserver-init.sh' nicht möglich: Datei oder Verzeichnis nicht gefunden pi@bwtmusic:~ $ File not found ... $ ls -ltr /var/log/minimserver-init.log -rw-r--r-- 1 root root 0 Dez 14 20:29 /var/log/minimserver-init.log Starting manually all fine: $ minimserver/bin/startd pi@bwtmusic:~ $ !ps ps -ax |grep minim 779 pts/0 S 0:00 /bin/sh minimserver/bin/startd 781 pts/0 Sl 0:11 java -jar /home/pi/minimserver/lib/mserver.jar --launchrc --set watch.view=log --nohup 802 pts/0 S+ 0:00 grep --color=auto minim pi@bwtmusic:~ $ I *believe* s.th. is wrong in /etc/init.d/minimserver, but I am not sure what. Any help is greatly appreciated. Thanks catsup |
|||
14-12-2020, 22:27
Post: #2
|
|||
|
|||
RE: Raspbian: automatic restart of minimserver after reboot doesn't work
When automatic startup fails, what is in the files minimserver.log and minimserver-out.log in the minimserver/data directory?
It is normal for the /etc/init.d directory to not contain a minimserver-init.sh file amd it is also normal for the /var/log/minimserver-init.log file to have a length of 0 bytes. |
|||
15-12-2020, 14:49
(This post was last modified: 15-12-2020 21:50 by catsup.)
Post: #3
|
|||
|
|||
RE: Raspbian: automatic restart of minimserver after reboot doesn't work
Thanks Simon, this is the content of
$ ls -ltr minimserver/data/minimserver.log -rw-r--r-- 1 pi pi 563 Dez 15 14:26 minimserver/data/minimserver.log MinimServer 2.0.16 update 178, Copyright © 2012-2020 Simon Nash. All rights reserved. OpenJDK Runtime Environment (build 11.0.9.1+1-LTS) OpenJDK Client VM (build 11.0.9.1+1-LTS, mixed mode) Platform default charset is UTF-8 System platform is linux-armhf Using platform default language German (de-DE) Current time is Mon Dec 14 21:02:36 CET 2020 in time zone Europe/Berlin starting MinimServer[bwtmusic] MinimServer[bwtmusic] is running Startup complete received signal SIGHUP ending MinimServer stopping MinimServer[bwtmusic] MinimServer[bwtmusic] is stopped $ ls -ltr minimserver/data/minimserver-out.log -rw-r--r-- 1 pi pi 85 Dez 15 14:27 minimserver/data/minimserver-out.log Error occurred during initialization of VM Server VM is only supported on ARMv7+ VFP Hm, it looks like that the non-default java environment $ java -version openjdk version "11.0.9.1" 2020-11-06 LTS OpenJDK Runtime Environment Zulu11.43+100-CA (build 11.0.9.1+1-LTS) OpenJDK Client VM Zulu11.43+100-CA (build 11.0.9.1+1-LTS, mixed mode) $ echo $PATH /usr/lib/jvm/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch32hf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games $ echo $JAVA_HOME /usr/lib/jvm/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch32hf is not being picked during boot. As said, starting MinimServer manually with startd works just fine. Any idea to fix the - probably - Java environment/path issue? Thanks a lot! catsup |
|||
15-12-2020, 21:54
(This post was last modified: 16-12-2020 07:55 by simoncn.)
Post: #4
|
|||
|
|||
RE: Raspbian: automatic restart of minimserver after reboot doesn't work
I suggest you put a symbolic link to the Zulu java executable in the /usr/local/bin directory, as follows:
sudo ln -s /usr/lib/jvm/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch32hf/bin/java /usr/local/bin If you do this, you can remove your custom setting for PATH. Edit: added sudo to the command. |
|||
16-12-2020, 00:24
Post: #5
|
|||
|
|||
RE: Raspbian: automatic restart of minimserver after reboot doesn't work
(15-12-2020 21:54)simoncn Wrote: I suggest you put a symbolic link to the Zulu java executable in the /usr/local/bin directory, as follows: Hi Simon, thanks, this workaround worked! MinimServer now is starting after reboot. Thanks catsup P.S.: the symlink command has to be performed with sudo. |
|||
16-12-2020, 07:56
Post: #6
|
|||
|
|||
RE: Raspbian: automatic restart of minimserver after reboot doesn't work
I'm glad to hear this is all working now. I have edited my previous post to add sudo.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)