MinimServer Forum
Minimserver licence error after upgrade to Synology DSM 7 - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Minimserver licence error after upgrade to Synology DSM 7 (/showthread.php?tid=6666)

Pages: 1 2


Minimserver licence error after upgrade to Synology DSM 7 - stigmil - 21-08-2022 19:12

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.


RE: Minimserver licence error after upgrade to Synology DSM 7 - simoncn - 21-08-2022 22:17

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



RE: Minimserver licence error after upgrade to Synology DSM 7 - stigmil - 22-08-2022 17:55

(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


RE: Minimserver licence error after upgrade to Synology DSM 7 - simoncn - 22-08-2022 19:38

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?


RE: Minimserver licence error after upgrade to Synology DSM 7 - stigmil - 22-08-2022 21:49

(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?


RE: Minimserver licence error after upgrade to Synology DSM 7 - simoncn - 22-08-2022 21:53

I will investigate why this didn't solve this problem and post back here when I have more information.


RE: Minimserver licence error after upgrade to Synology DSM 7 - simoncn - 22-08-2022 22:40

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.


RE: Minimserver licence error after upgrade to Synology DSM 7 - stigmil - 23-08-2022 07:53

(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!


RE: Minimserver licence error after upgrade to Synology DSM 7 - simoncn - 23-08-2022 10:14

Thanks for confirming this. MinimServer 2.1.2-2107 is now available for download from the MinimServer Downloads page.


RE: Minimserver licence error after upgrade to Synology DSM 7 - s_sachin - 17-09-2022 10:55

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