The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.34 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Raspbian: automatic restart of minimserver after reboot doesn't work - catsup - 14-12-2020 21:03

Forum Jump:


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