Jump to content

Synology Setup


Luke

Recommended Posts

 

hello after the update i have problems

Snapshot of MediaBrowser.WebDashboard.Api.GetDashboardResource generated by ServiceStack on 04/26/2016 11:19:42
Response Status Error Code Exception Message Error trying to resolve Service 'MediaBrowser.WebDashboard.Api.DashboardService' or one of its autowired dependencies (see inner exception for details). Stack Trace at Funq.Container.ResolveImpl[TService] (System.String name, Boolean throwIfMissing) in :0 at Funq.Container.ResolveNamed[TService] (System.String name) in :0 at Funq.Container.Resolve[TService] () in :0 at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,Funq.Container) at ServiceStack.Host.ContainerResolveCache.CreateInstance (System.Type type, Boolean tryResolve) in :0 at ServiceStack.Host.ContainerResolveCache.CreateInstance (System.Type type) in :0 at ServiceStack.Host.ServiceController+c__DisplayClassf.b__d (IRequest requestContext, System.Object dto) in :0 at ServiceStack.Host.ServiceController.Execute (System.Object requestDto, IRequest req) in :0 at ServiceStack.HostContext.ExecuteService (System.Object request, IRequest httpReq) in :0 at ServiceStack.Host.Handlers.ServiceStackHandlerBase.ExecuteService (System.Object request, IRequest httpReq) in :0 at ServiceStack.Host.RestHandler.GetResponse (IRequest request, System.Object requestDto) in :0 at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) in :0

 

 

Hi there, welcome. can you please describe your problem in your own words with a detailed description? Thanks.

Link to comment
Share on other sites

Hi there, welcome. can you please describe your problem in your own words with a detailed description? Thanks.

Sorry but i find the problem wen i made the installation i user another imagemagick and thats wy this error but now i solve the problem

 

tanks

Link to comment
Share on other sites

I am utterly confused by this thread.  

 

Are the instructions in the OP upto date and do they work in DSM6? For example it mentions installing ffmpeg manually - but i notice this is now in the community repo.

 

I see some say it does work and some say it doesnt' and some say to install in docker.  Is there official update guidance / community package i can install that does it all?

 

I have to concur with this, I was using emby with my windows based server but when I replaced that with a Synology I had to return to Plex, I come by here from time to to see the progress of the Synology builds but it seems very disorganised and still cobbled together.

 

Don't take this as a criticism, I'm sure it's far from easy supporting so many different architectures & maybe emby will improve given time but the current situation will put many new users off imo.

Link to comment
Share on other sites

Bigjohns97

I have to concur with this, I was using emby with my windows based server but when I replaced that with a Synology I had to return to Plex, I come by here from time to to see the progress of the Synology builds but it seems very disorganised and still cobbled together.

 

Don't take this as a criticism, I'm sure it's far from easy supporting so many different architectures & maybe emby will improve given time but the current situation will put many new users off imo.

 

One of the issues i have with plex is the fact that it always has to transcode, and the majority of my viewing comes from media center installs so i don't transcode and i access the files directly in those situations.

 

What synology do you have, I am concened about multiple 1080p transcodes at the same time.

Link to comment
Share on other sites

baskient

Emby on DSM 6

 

so i extracted all off the useful information on this forum and managed to create a package that installs and most of all runs on my DS215j. So here's what is different between the package in the first post and the one in here:

 

I changed the start-stop-status script in the scripts folder to refer to the working Mono package from Xamarin. (MONO_PATH="/volume1/@appstore/Mono/usr/bin")

I changed the INFO file to depend on the correct Mono package from Xamarin (Mono instead of mono).

I removed the dependency of the FFMPEG package in the INFO file.

 

So just follow the guide in the first post but instead of installing the mono package from the community install the one of xamarin in Package Center > Developer Tools 

Then instead of installing the emby package from the first post install this on: emby

 

It's worth mentioning that I started from scratch (so i first removed all the emby related software).

 

that's it. Hope this helps!

Edited by baskient
  • Like 1
Link to comment
Share on other sites

solabc16

 

Pre-installation

 

Package center-->Settings-->General       choose-Trust Level any publisher

Package center-->Settings-->Beta             choose-Yes, I want to see beta version!

Add http://packages.synocommunity.com/ and http://cytec.us/spk/ to Package center -->Package Source

 

Check the what CPU/architecture you have in your synology https://github.com/S...r-Synology-mode so you can use the right Package for your base install.(#Shell command uname -a)

 

Installation

  1. Install Mono from Package center --> Community Tab
  2. Install Mediainfo from Package center --> Community Tab
  3. Install ImageMagick using the build attached to this post (see instructions below)
  4. Download and Install ffmpeg from here: http://cytec.us/syno/test-spk/ffmpeg/
  5. Download and Install emby from here: http://cytec.us/syno/test-spk/emby/

How to Install ImageMagick

  • SSH to your Synology NAS as 'root'.
  • You should be in /root, check with 'pwd'.
  • Backup the currently installed version 'mv /volume1/@appstore/imagemagick /volume1/@appstore/_pkgcenter_imagemagick'.
  • Extract the files from the downloaded ImageMagick archive 'tar -xvf imagemagick-6.9.3-7_Q8.tar.gz -C /volume1/@appstore/'.
 

Updating

 

1. Download Emby.Mono.zip from here: https://github.com/MediaBrowser/Emby/releases/latest

2. Extract the zip file into a folder

2. Download and install winSCP http://winscp.net/eng/download.php login as root to synology

3. Make sure the Emby service is stopped

4. Copy the contents of the zip file into /volume1/@appstore/emby/share/emby (or wherever it has been installed, the contents of the zip should look like the contents of the folder you are copying into)

 

5. Start Emby

 

 

Notes for updating ImageMagick on DSM6 here - http://emby.media/community/index.php?/topic/32321-getting-the-coverart-plugin-working/?p=326416.

 

Luke, you may want to incorporate into headline post.

 

- James

  • Like 1
Link to comment
Share on other sites

Notes for updating ImageMagick on DSM6 here - http://emby.media/community/index.php?/topic/32321-getting-the-coverart-plugin-working/?p=326416.

 

Luke, you may want to incorporate into headline post.

 

- James

 

Well done.

 

For DSM 6 system, dose fresh install of emby server have the same steps? I am new to Synology system:

 

http://emby.media/community/index.php?/topic/34060-synology-ds3615xs/

Link to comment
Share on other sites

solabc16

Evening

 

You shouldn't have any issues on DSM6 (v6.0-7321 Update 3). The initial install should be possible using the steps idenified under the Installation heading, at the top of this thread.

 

You can then update ImageMagick using the procedure I detailed above for DSM6.

 

I've got a DS1815+ here running Emby under DSM6. Just watch out for https when configuring the cytec source:-

 

572a6917e2f3a_package_sources.png

If you work through the steps as detailed, post back here if you run into any issues and we'll take it from there.

 

- James

Link to comment
Share on other sites

KRULL

Thanks for that James, that was the most painless update I have done.

 

My only suggestion is to put quotation marks around the exact text. You finish some commands with a period, and that through me off once, so may get others.

 

So - Grab the latest server release, e.g. wget https://github.com/MediaBrowser/Emby/releases/download/3.0.5934/Emby.Mono.zip.

Would be - Grab the latest server release, e.g. "wget https://github.com/MediaBrowser/Emby/releases/download/3.0.5934/Emby.Mono.zip"
 
If you could provide similar steps to copy/edit the INFO file to update the version name to show to show correctly in Package Center, that would be awesome.
Link to comment
Share on other sites

solabc16

Afternoon @@KRULL

 

Thanks for the feedback and a good spot, I do normally do that so will get that updated now.

 

I hadn't considered the Package Center information, as I've probably seen it so often now I've become blind to it being wrong.

 

But I do agree, it would be nice if it was correct, so I'll have look over the weekend.

 

- James

Edited by solabc16
Link to comment
Share on other sites

One of the issues i have with plex is the fact that it always has to transcode, and the majority of my viewing comes from media center installs so i don't transcode and i access the files directly in those situations.

 

What synology do you have, I am concened about multiple 1080p transcodes at the same time.

 

I have a DS215J which in hindsight I would not have bought, Emby didn't have any Synology builds at the time but it was supported by Plex without transcoding which I don't use anyway, even on this modest hardware multiple HD streams are fine.

Link to comment
Share on other sites

Emby on DSM 6

 

so i extracted all off the useful information on this forum and managed to create a package that installs and most of all runs on my DS215j. So here's what is different between the package in the first post and the one in here:

 

I changed the start-stop-status script in the scripts folder to refer to the working Mono package from Xamarin. (MONO_PATH="/volume1/@appstore/Mono/usr/bin")

I changed the INFO file to depend on the correct Mono package from Xamarin (Mono instead of mono).

I removed the dependency of the FFMPEG package in the INFO file.

 

So just follow the guide in the first post but instead of installing the mono package from the community install the one of xamarin in Package Center > Developer Tools 

Then instead of installing the emby package from the first post install this on: emby

 

It's worth mentioning that I started from scratch (so i first removed all the emby related software).

 

that's it. Hope this helps!

Have you had any issues whilst using this?  

I'm tempted to try it as I do prefer Emby but what would I have to do in regards to future releases?

Edited by 2010
Link to comment
Share on other sites

solabc16

Evening @@2010

 

What packages are you having a problem with and stopping you following the installation instructions at the top of this thread? Hopefully we can help you out and get you going.

 

We're in the process of building an updated installer for Synology, that will make installation and updating much easier.

 

For now, once you've got Emby installed and running, on DSM6 you can update it following the instructions here: http://emby.media/community/index.php?/topic/34516-updating-emby-on-dsm6-systems/?p=326672

 

- James

Link to comment
Share on other sites

to.gu.de

Hello,

 

I need help, I am stuck with Emby on DSM6.

 

What I did so far:

  1. Installed Mono (Xamarin)
  2. Installed Mediainfo
  3. Installed ImageMagic
  4. Replaced ImageMagic with the version attached at the top of this topic (imagemagick-6.9.3-7_Q8)
  5. Installed ffmpeg
  6. Installed emby but was refused to the depency to "mono"
  7. Installed mono (SynoCommunity)
  8. restarted NAS: all installed packages up & running
  9. installed emby: everytime I want to start emby, emby stops immediatly
  10. edited /var/packages/emby/scripts: 
    MONO_PATH="/usr/local/Mono/usr/bin" instead of "/usr/local/mono/bin"
  11. restarted NAS: emby still stopping immediatly after (manual) start

So I have no idea where to look to find out what is going wrong. Every help is welcome.

Thanks, Tom

 

What is running:

DSM 6.0-7321 Update 6 (on DS213j)

Mono 4.2.1-0088 (Xamarin)

mono 4.2.2.30-7 (SynoCommunity)

Mediainfo 0.7.73-2 (SynoCommunity)

ImageMagic (imagemagick-6.9.3-7_Q8.tar.gz)

ffmpeg 2.6-3

emby 3.0.5724.5-5

 

Link to comment
Share on other sites

solabc16

Evening @to.gu.de

 

The installation, at the moment, is based on the SynoCommunity release of Mono. Are you using the Xamarin build for anything specific, or are you able to remove it?

 

We are working right now on an updated and maintained package for the DSM platform, but the manual instructions here should be good for DSM6; there shouldn't be any need to edit the scripts.

 

Can you take a look in '/usr/local/emby/var/logs' and see if you have any server logs there, if so please can you post them with your reply.

 

Best

-James

Link to comment
Share on other sites

to.gu.de

Hello James,

 

thanks for your fast reply.

 

And no, there are only to files in /usr/local/emby/var:

-rw-r--r-- 1 root root    6 May 18 11:00 emby.pid
-rw-r--r-- 1 root root   64 May 17 21:24 install.log

 

Is there a way to enable logging?

 

Regarding Mono: no, I only need mono for Emby. So it work on DSM5 with mono from the community. After upgrading onto DSM6 Emby refused to start.

 

So what I did now:

  1. removed emby (because start-stop-status script)
  2. removed mono & Mono
  3. removed Imagemagic
  4. restarted Diskstation
  5. installed mono (community), then Imagemagic (community), then emby (3.0.5724.5-5)

Emby is still not starting.

Link to comment
Share on other sites

solabc16

Afternoon Tom

 

Although I don't suspect it to be the issue, it would be good to have the latest version of Emby installed, so we're at a known good baseline.

 

Instructions are here http://emby.media/community/index.php?/topic/34516-updating-emby-on-dsm6-systems/?p=326672, let me know if you need any assistance.

 

Basic logging will happen by default.

 

I'll be able to post some more tests to try a little later, let me know how you get on after updating the software.

 

- James

Link to comment
Share on other sites

to.gu.de

Good evening,

 

instructions for updating you mentioned worked like a charm. Thanks to solabc16. What I did not: updating the package information ("sed -i.bak 's/....)

 

Bad news: same behavior as before - emby does not start.

 

Is there a chance to start on command line to see where it struggles?

 

- Tom

Link to comment
Share on other sites

solabc16

Evening Tom

 

Ok, thanks for the update, at least we can cross that off. We will get this sorted, and it will certainly be useful information as we work on an updated and maintained Synology package for Emby.

 

Here are some next steps, let's start with checking everything is available and where we expect it:-

- SSH to your Synology box and login as 'admin'.
- Switch to root with 'sudo -i'.
- Run '/usr/local/mono/bin/mono --version'
- Run '/usr/local/ffmpeg/bin/ffmpeg -version'
- Run '/usr/local/ffmpeg/bin/ffprobe -version'
- Run '/usr/local/imagemagick/bin/identify -version'

If you can reply with the output of the above, we'll take it from there - and yes, we'll try starting it from the command line as part of this.

 

- James

Link to comment
Share on other sites

solabc16

Once you've worked through the above, here are the instructions to get things going from the command line:-

- SSH to your Synology box and login as 'admin'.
- Switch to root with 'sudo -i'.
- Switch to emby with 'su - emby'.
- Run '/usr/local/mono/bin/mono /usr/local/emby/share/emby/MediaBrowser.Server.Mono.exe -programdata /usr/local/emby/var -ffmpeg /usr/local/ffmpeg/bin/ffmpeg -ffprobe /usr/local/ffmpeg/bin/ffprobe'

Let me know what happens and post the output you see on the console.

 

- James

Link to comment
Share on other sites

to.gu.de

Hi,

here the results from checking the versions and running emby from the console:

root@DiskStation:~# /usr/local/mono/bin/mono --version
Segmentation fault (core dumped)
root@DiskStation:~# /usr/local/ffmpeg/bin/ffmpeg -version
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-cross-compile --enable-rpath --target-os=linux --cross-prefix=/home/cytec/syno/toolchains/syno-armada370-5.1/work/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi- --prefix=/usr/local/ffmpeg --extra-cflags=-I/home/cytec/syno/spk/ffmpeg/work-armada370-5.1/install/usr/local/ffmpeg/include --extra-ldflags=-L/home/cytec/syno/spk/ffmpeg/work-armada370-5.1/install/usr/local/ffmpeg/lib --extra-libs='-lxml2 -ldl' --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --pkg-config=/usr/bin/pkg-config --enable-pic --disable-debug --enable-pthreads --enable-thumb --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-openssl --enable-libvorbis --enable-gpl --enable-nonfree --enable-libass --enable-libbluray --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-librtmp --enable-fontconfig --enable-libfreetype --enable-libvpx --arch=arm --disable-neon --disable-armv6 --disable-armv6t2 --disable-vfp --disable-armv5te --disable-yasm --disable-asm
libavutil      54. 20.100 / 54. 20.100
libavcodec     56. 26.100 / 56. 26.100
libavformat    56. 25.101 / 56. 25.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 11.102 /  5. 11.102
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  1.100 /  1.  1.100
libpostproc    53.  3.100 / 53.  3.100
root@DiskStation:~# /usr/local/ffmpeg/bin/ffprobe -version
ffprobe version 2.6 Copyright (c) 2007-2015 the FFmpeg developers
built with gcc 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-cross-compile --enable-rpath --target-os=linux --cross-prefix=/home/cytec/syno/toolchains/syno-armada370-5.1/work/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi- --prefix=/usr/local/ffmpeg --extra-cflags=-I/home/cytec/syno/spk/ffmpeg/work-armada370-5.1/install/usr/local/ffmpeg/include --extra-ldflags=-L/home/cytec/syno/spk/ffmpeg/work-armada370-5.1/install/usr/local/ffmpeg/lib --extra-libs='-lxml2 -ldl' --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --pkg-config=/usr/bin/pkg-config --enable-pic --disable-debug --enable-pthreads --enable-thumb --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-openssl --enable-libvorbis --enable-gpl --enable-nonfree --enable-libass --enable-libbluray --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-librtmp --enable-fontconfig --enable-libfreetype --enable-libvpx --arch=arm --disable-neon --disable-armv6 --disable-armv6t2 --disable-vfp --disable-armv5te --disable-yasm --disable-asm
libavutil      54. 20.100 / 54. 20.100
libavcodec     56. 26.100 / 56. 26.100
libavformat    56. 25.101 / 56. 25.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 11.102 /  5. 11.102
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  1.100 /  1.  1.100
libpostproc    53.  3.100 / 53.  3.100
root@DiskStation:~# /usr/local/imagemagick/bin/identify -version
Version: ImageMagick 6.9.1-4 Q16 arm 2015-06-05 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features:  Cipher DPC
Delegates (built-in): freetype jng jpeg png tiff zlib
root@DiskStation:~# su - emby
emby@DiskStation:~$ /usr/local/mono/bin/mono /usr/local/emby/share/emby/MediaBrowser.Server.Mono.exe -programdata /usr/local/emby/var -ffmpeg /usr/local/ffmpeg/bin/ffmpeg -ffprobe /usr/local/ffmpeg/bin/ffprobe
Segmentation fault
emby@DiskStation:~$

It seems there is "bad" mistake.

- Tom

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...