Post Reply 
Minimserver licence error after upgrade to Synology DSM 7
21-08-2022, 19:12
Post: #1
Minimserver licence error after upgrade to Synology DSM 7
Hi,
I've upgraded to DSM 7 on my Synology DS218play and followed (I think) the instructions on reinstalling Minimserver. The package shows to be running but on the Minimserver page it shows Media Server status as "Error" and error messages:
Error opening license file for writing: /var/packages/MinimServer/etc/minimserver-starter.license; resetting to Starter Edition
Error opening license file for writing: /var/packages/MinimServer/etc/minimserver-starter.license

Have I missed something about the licensing?

Thanks for any tips.
Find all posts by this user
Quote this message in a reply
21-08-2022, 22:17 (This post was last modified: 21-08-2022 22:19 by simoncn.)
Post: #2
RE: Minimserver licence error after upgrade to Synology DSM 7
I haven't seen this before. It looks like your MinimServer installation has somehow become corrupted. If you are comfortable logging into a terminal window on your DS218play using SSH, please run the following commands and post the output here. It's best to copy and paste the commands to ensure they are entered correctly.

Code:
ls -l /var/packages/MinimServer/etc
ls -lLd /var/packages/MinimServer/etc
ls -l /var/packages/MinimServer/etc/*.license
Find all posts by this user
Quote this message in a reply
22-08-2022, 17:55
Post: #3
RE: Minimserver licence error after upgrade to Synology DSM 7
(21-08-2022 22:17)simoncn Wrote:  I haven't seen this before. It looks like your MinimServer installation has somehow become corrupted. If you are comfortable logging into a terminal window on your DS218play using SSH, please run the following commands and post the output here. It's best to copy and paste the commands to ensure they are entered correctly.

Code:
ls -l /var/packages/MinimServer/etc
ls -lLd /var/packages/MinimServer/etc
ls -l /var/packages/MinimServer/etc/*.license

Thanks Simon - output as below:

$ ls -l /var/packages/MinimServer/etc
lrwxrwxrwx 1 root root 29 Aug 21 17:50 /var/packages/MinimServer/etc -> /volume1/@appconf/MinimServer

$ ls -lLd /var/packages/MinimServer/etc
drwxr-xr-x 2 MinimServer MinimServer 4096 Feb 6 2021 /var/packages/MinimServer/etc

$ ls -l /var/packages/MinimServer/etc/*.license
-rw-r--r-- 1 root root 0 Feb 6 2021 /var/packages/MinimServer/etc/minimserver.license
-rw-r--r-- 1 root root 129 Apr 2 17:00 /var/packages/MinimServer/etc/minimserver-starter.license
Find all posts by this user
Quote this message in a reply
22-08-2022, 19:38
Post: #4
RE: Minimserver licence error after upgrade to Synology DSM 7
Thanks for this. It explains what is causing the problem.

On DSM 6.x, MinimServer runs as the root user. Synology made changes in DSM 7 that prevent this, so on DSM 7 MinimServer runs as the MinimServer user. The files minimserver.license and minimserver-starter.license are owned by the root user and this is why MinimServer is unable to write to these files on DSM 7.

There is a fix for this problem in MinimServer 2.1.2-2103 (see this section). Please download this version from the MinimServer Downloads page and install it using manual install. This should update all files used by MinimServer to ensure correct ownership and permissions. Does this fix the problem?
Find all posts by this user
Quote this message in a reply
22-08-2022, 21:49
Post: #5
RE: Minimserver licence error after upgrade to Synology DSM 7
(22-08-2022 19:38)simoncn Wrote:  Thanks for this. It explains what is causing the problem.

On DSM 6.x, MinimServer runs as the root user. Synology made changes in DSM 7 that prevent this, so on DSM 7 MinimServer runs as the MinimServer user. The files minimserver.license and minimserver-starter.license are owned by the root user and this is why MinimServer is unable to write to these files on DSM 7.

There is a fix for this problem in MinimServer 2.1.2-2103 (see this section). Please download this version from the MinimServer Downloads page and install it using manual install. This should update all files used by MinimServer to ensure correct ownership and permissions. Does this fix the problem?

Thanks - in fact I installed 2.1.2-2103 manually to get to this point (I thought I was following the instructions). It's showing as the installed version. Uninstall and try again?
Find all posts by this user
Quote this message in a reply
22-08-2022, 21:53
Post: #6
RE: Minimserver licence error after upgrade to Synology DSM 7
I will investigate why this didn't solve this problem and post back here when I have more information.
Find all posts by this user
Quote this message in a reply
22-08-2022, 22:40
Post: #7
RE: Minimserver licence error after upgrade to Synology DSM 7
I have found what is causing these files to have the wrong ownership. Please download a test build of MinimServer 2.1.2-2107 for the DS218play from this link. Installing this version should fix the problem.
Find all posts by this user
Quote this message in a reply
23-08-2022, 07:53
Post: #8
RE: Minimserver licence error after upgrade to Synology DSM 7
(22-08-2022 22:40)simoncn Wrote:  I have found what is causing these files to have the wrong ownership. Please download a test build of MinimServer 2.1.2-2107 for the DS218play from this link. Installing this version should fix the problem.

Very many thanks for this quick fix Simon - all working OK now!
Find all posts by this user
Quote this message in a reply
23-08-2022, 10:14
Post: #9
RE: Minimserver licence error after upgrade to Synology DSM 7
Thanks for confirming this. MinimServer 2.1.2-2107 is now available for download from the MinimServer Downloads page.
Find all posts by this user
Quote this message in a reply
17-09-2022, 10:55
Post: #10
RE: Minimserver licence error after upgrade to Synology DSM 7
I have the same issue, however the 2.1.2-2107 download is only available for Synology and I have this issue on a QNAP NAS. I still tried installing the package but it fails. Please help
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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