MMS for NAS (Synology, QNAP)?

Report bugs & feature requests for MediaMonkey Server and learn about the newest builds.

Moderators: drakinite, Gurus

Zonky
Posts: 246
Joined: Thu Aug 26, 2010 6:39 am

MMS for NAS (Synology, QNAP)?

Post by Zonky »

Hi,

I've read that MMS will be release for NAS, too.
...It is designed for portability so that it can eventually be deployed on any Linux server/NAS
taken from https://www.mediamonkey.com/forum/viewt ... 31&t=90809.

Currently I can download the server just for Windows OS. Is there already any Alpha available for e.g. Synology NAS I could test?

Michael
Peke
Posts: 17446
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: MMS for Synology NAS?

Post by Peke »

Hi,
No test packages ATM, but we already tested it on QNAP and Pi thus it should be possible to make port to Synology models that have support for Node.js 9.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
jiri
Posts: 5417
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MMS for Synology NAS?

Post by jiri »

We don't provide Synology builds yet, but if you are a little adventurous, you can download the MMS at https://github.com/mediamonkeyserver/mms and run it on your Synology, providing you have/can install Node.js 8+.

Jiri
Zonky
Posts: 246
Joined: Thu Aug 26, 2010 6:39 am

Re: MMS for Synology NAS?

Post by Zonky »

So, just curious, a docker container does not yet exist which would certainly simplify this task?

Michael
jpurssey
Posts: 6
Joined: Sun Feb 25, 2018 2:45 am

Re: MMS for Synology NAS?

Post by jpurssey »

FYI. The log of an attempted Synology installation

This is the installation log on my Synology NAS DS214se DSM6.2

Code: Select all

npm install mediamonkeyserver
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=0.7.4 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] superagent has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=2.3.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated strtok2@1.0.4: depricated, use strtok3 & music-metadata instead
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=2.2.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?sear ... ion=1.2.11 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=1.3.4 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=1.3.6 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] fresh has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?sear ... sion=0.3.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN enoent ENOENT: no such file or directory, open '/volume1/homes/john/package.json'
npm WARN john No description
npm WARN john No repository field.
npm WARN john No README data
npm WARN john No license field.

npm ERR! code EINTEGRITY
npm ERR! sha1-YKYmaAdlQst+T1cZnUrG830sX0o= integrity checksum failed when using sha1: wanted sha1-YKYmaAdlQst+T1cZnUrG830sX0o= but got sha1-wz+HWdaODO7kiA5OZg1stQ8r6gc=. (6994561 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR! /var/services/homes/john/.npm/_logs/2018-09-25T11_36_20_134Z-debug.log
jiri
Posts: 5417
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MMS for Synology NAS?

Post by jiri »

Please get the sources directly from https://github.com/mediamonkeyserver/mm ... master.zip a then 'npm install' it. Let us know!

Thanks,
Jiri
Zonky
Posts: 246
Joined: Thu Aug 26, 2010 6:39 am

Re: MMS for Synology NAS?

Post by Zonky »

Just tried to install on my Synology NAS with CLI:

Code: Select all

npm install mediamonkeyserver


After a while I see this error:

Code: Select all

Find out more about deployment here:

  http://bit.ly/2vY88Kr

npm WARN saveError ENOENT: no such file or directory, open '/volume1/web/mms/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/volume1/web/mms/package.json'
npm WARN mms No description
npm WARN mms No repository field.
npm WARN mms No README data
npm WARN mms No license field.

+ mediamonkeyserver@0.1.4
added 246 packages in 554.323s
I guess the installation fails, correct?

OTH, when starting with command

Code: Select all

admin@ISAR:/volume1/web/mms/node_modules/mediamonkeyserver$ npm start
, I get this error:
> mediamonkeyserver@0.1.4 start /volume1/web/mms/node_modules/mediamonkeyserver
> node server.js

module.js:540
throw err;
^

Error: Cannot find module '/volume1/web/mms/node_modules/mediamonkeyserver/server.js'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediamonkeyserver@0.1.4 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediamonkeyserver@0.1.4 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /var/services/homes/admin/.npm/_logs/2019-02-16T15_57_43_051Z-debug.log
Do I have to use npm start from within a specific directory. Btw, there are many server.js files in different subdirectories...

Michael

Thanks,
Michael
Ludek
Posts: 4945
Joined: Fri Mar 09, 2007 9:00 am

Re: MMS for Synology NAS?

Post by Ludek »

Hi, which model of Synology do you have?

If it is arm 64 (like mine DS118) then you can use this binary: https://www.dropbox.com/s/76wm63722564g ... 64.7z?dl=0
Just extract it, copy to NAS and run mms-arm64 from that directory.

Docker files (from which this binaries were created) are here: https://github.com/mediamonkeyserver/mm ... er/scripts
Last edited by Ludek on Wed Feb 20, 2019 1:21 pm, edited 1 time in total.
Zonky
Posts: 246
Joined: Thu Aug 26, 2010 6:39 am

Re: MMS for Synology NAS?

Post by Zonky »

Unfortunately it's a DS916+ with Intel CPU :(
Pluti
Posts: 13
Joined: Fri Feb 22, 2019 10:46 am

Re: MMS for Synology NAS?

Post by Pluti »

Same for me. I own a Synology DS218J and did manage to install the MMS 0.2.1 on the NAS.

Code: Select all

> mediamonkeyserver@0.2.1 start /volume1/MMS/mms-master
> node server.js

Using node.js v8.9.4
module.js:540
    throw err;
    ^

Error: Cannot find module 'sqlite3'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/volume1/MMS/mms-master/lib/db/sqlLayer.js:3:15)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/volume1/MMS/mms-master/lib/db/sqlRegistry.js:5:18)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediamonkeyserver@0.2.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediamonkeyserver@0.2.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional log                                                                                                                                                             ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/services/homes/Thor/.npm/_logs/2019-02-22T15_38_22_938Z-debug.  

Code: Select all

0 info it worked if it ends with ok
1 verbose cli [ '/volume1/@appstore/Node.js_v8/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'start' ]
2 info using npm@5.6.0
3 info using node@v8.9.4
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle mediamonkeyserver@0.2.1~prestart: mediamonkeyserver@0.2.1
6 info lifecycle mediamonkeyserver@0.2.1~start: mediamonkeyserver@0.2.1
7 verbose lifecycle mediamonkeyserver@0.2.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle mediamonkeyserver@0.2.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/volume1/MMS/mms-master/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
9 verbose lifecycle mediamonkeyserver@0.2.1~start: CWD: /volume1/MMS/mms-master
10 silly lifecycle mediamonkeyserver@0.2.1~start: Args: [ '-c', 'node server.js' ]
11 silly lifecycle mediamonkeyserver@0.2.1~start: Returned: code: 1  signal: null
12 info lifecycle mediamonkeyserver@0.2.1~start: Failed to exec start script
13 verbose stack Error: mediamonkeyserver@0.2.1 start: `node server.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid mediamonkeyserver@0.2.1
15 verbose cwd /volume1/MMS/mms-master
16 verbose Linux 3.10.105
17 verbose argv "/volume1/@appstore/Node.js_v8/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v8.9.4
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error mediamonkeyserver@0.2.1 start: `node server.js`
22 error Exit status 1
23 error Failed at the mediamonkeyserver@0.2.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
jiri
Posts: 5417
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MMS for Synology NAS?

Post by jiri »

Zonky, have you tried the compiled generic linux64 version from https://www.mediamonkey.com/beta/mms/MM ... -0.2.1.rar ? We haven't tested with an Intel Synology NAS, but I guess that this might work.

Pluti, have you tried the compiled generic armv7 linux version from https://www.mediamonkey.com/beta/mms/MM ... -0.2.1.zip ?

Jiri
Zonky
Posts: 246
Joined: Thu Aug 26, 2010 6:39 am

Re: MMS for Synology NAS?

Post by Zonky »

jiri wrote: Mon Feb 25, 2019 4:31 am Zonky, have you tried the compiled generic linux64 version from https://www.mediamonkey.com/beta/mms/MM ... -0.2.1.rar ? We haven't tested with an Intel Synology NAS, but I guess that this might work.
Now you lost me completely. This rar file contains just four files: ffmpeg, ffprobe, mms and node_sqlite3.node.

My installation that failed before, downloaded many many files and put them into many folders and subfolders. I can't locate those mentioned four files from above within the created file structure. At least I don't know if I should replace existing ones.

I'm missing some instructions on how to use MMS or how to install it anyway. I'm not that Linux guy, however, I'm running several Linux installation including a professional firewall and I'm able to use command line interface or shell commands to administer such operating systems. But MMS is a very special application, that needs some detailed documentation on how to install and run.

Michael
Ludek
Posts: 4945
Joined: Fri Mar 09, 2007 9:00 am

Re: MMS for Synology NAS?

Post by Ludek »

Zonky wrote: Tue Feb 26, 2019 3:18 pm This rar file contains just four files: ffmpeg, ffprobe, mms and node_sqlite3.node.
Yes, those 4 files are binaries, so you don't need to install nodejs anymore.
Just extract those 4 files into a directory and run 'mms' from the directory.

PS: We are planning to add Synology packages directly in the near future (to make the install/testing easier)
Pluti
Posts: 13
Joined: Fri Feb 22, 2019 10:46 am

Re: MMS for Synology NAS?

Post by Pluti »

jiri wrote: Mon Feb 25, 2019 4:31 am Pluti, have you tried the compiled generic armv7 linux version from https://www.mediamonkey.com/beta/mms/MM ... -0.2.1.zip ?

Jiri
Hi Jiri,

Thank you for your suggestion. I'm no Linux expert too. I try my best but I got this when I tried your suggestion.

Code: Select all

Thor@Asgard:/volume1/MMS$ ./mms
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
./mms: /lib/libstdc++.so.6: no version information available (required by ./mms)
Using node.js v8.11.3
./mms: relocation error: /volume1/MMS/node_sqlite3.node: symbol _ZNSt7__cxx1112basic
jiri
Posts: 5417
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MMS for Synology NAS?

Post by jiri »

Ok, we've released a new (0.2.2) version, it includes armv7 and armv8 builds that should work on respective Synology NASes. Please check out the downloads at http://forum.mediamonkey.com/viewtopic. ... 93#p456193 and let us know!

Thanks,
Jiri
Post Reply