Jump to content


Photo
- - - - -

Mono version of Emby Server


  • Please log in to reply
37 replies to this topic

#21 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 12 March 2019 - 08:21 AM

Yeah sorry it's not finished yet... there are still some wrong paths in the start script and mono needs to refresh https certificates when installed.

If you have SSH access (and the 3 apps installed), you can start emby with this huge command

PATH=/usr/local/mono/bin:/usr/local/emby/bin:/usr/local/emby/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin LD_LIBRARY_PATH=/usr/local/emby/lib /usr/local/mono/bin/mono /usr/local/emby/share/emby/system/EmbyServer.exe -programdata /usr/local/emby/var -ffmpeg /usr/local/ffmpeg/bin/ffmpeg -ffprobe /usr/local/ffmpeg/bin/ffprobe


#22 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 12 March 2019 - 01:58 PM

Aight... I think it's stable now. It runs without errors on my EX2Ultra.

If you tried any of the previous versions, remove them all and reboot your NAS to clear out all old symlinks. 

Ensure you don't have my Duplicati package installed as the mono installation is a bit different.

Then install the 3 packages (mono, ffmpeg and emby) from the opening post.

 

The packages have the DEBUG flag on, so install logs go to /tmp/emby_install.log and runtime logs go to /root/emby.log (and similar for the other apps).

If you face issues, please post your logs too.

 

Enjoy!


Edited by tafelpoowt, 12 March 2019 - 02:00 PM.


#23 Matotea OFFLINE  

Matotea

    Newbie

  • Members
  • 2 posts
  • Local time: 04:27 PM

Posted 12 March 2019 - 02:17 PM

Hi Tafelpoowt,

Ok, I'll definitively try it.

juste one more question, which version of emby must i download for my Ex2 UItra ? ( Sorry, I'm new to all this NAS-emby stuff). Do you have a download link ?

Thx!



#24 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 12 March 2019 - 02:47 PM

For now I'm hosting the 3 packages here: http://tafel.mooo.co...PFDmWyLyESY5H7a

In the near future, I intend to host it on https://bintray.com/tfl/wdpksrc and https://www.wdcommunity.com

 

TLDR: the opening post on page 1 will always have the latest working links.



#25 RobertCollier OFFLINE  

RobertCollier

    Newbie

  • Members
  • 5 posts

Posted 12 March 2019 - 11:25 PM

Hey Tafel, Thanks for the speedy update to the packages!
 

I tried your first suggestion to no avail getting an error : 

/usr/local/mono/bin/mono: /lib/libpthread.so.0: version `GLIBC_2.12' not found (required by /usr/local/mono/bin/mono)

after uninstalling, restarting and installing mono again, I got the same error in the mono_install.log after a "successful" install 

I assume this is just a missing library that mono needs, but I dont have the know-how to be sure of that or to know how to fix it xD

thanks for all your help <3

 

NAS: EX4

Firmware: 2.11.178

 
incase that's any use for you =D


#26 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 13 March 2019 - 06:17 AM

Maybe try to upgrade your firmware to 2.12.127 first... I checked the EX4 ramdisk for that firmware and it has glibc v2.15, which should be enough.



#27 U-japp OFFLINE  

U-japp

    Newbie

  • Members
  • 2 posts
  • Local time: 03:27 AM

Posted 13 March 2019 - 10:38 AM

 
Would like to test on Mirror gen2. IS it the same files as for ex2 ultra?


#28 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 13 March 2019 - 12:20 PM

Yes, the Mirror Gen2 has the same package signature as the EX2Ultra.

Did anybody succeed in running it yet?



#29 U-japp OFFLINE  

U-japp

    Newbie

  • Members
  • 2 posts
  • Local time: 03:27 AM

Posted 13 March 2019 - 12:47 PM

Haven't got my Mirror yet. Should have it in any day. Has a single disk My cloud before. Switches to mirror for 2 reasons. 1. The Raid 1 function. 2. The App Possibility.
And Emby seems interesting.


#30 iNSPiREDS OFFLINE  

iNSPiREDS

    Member

  • Members
  • 24 posts
  • Local time: 02:27 AM

Posted 13 March 2019 - 06:56 PM

You only need to enable a hidden tab in the web interface.

Browse to the WD web interface.

Open the console (ctrl-shift-I) (or use Inspect element)

Type in: APP_INSTALL_FUNCTION=1; APPS_EULA=1; check_app_eula();

Now go the Apps Tab and you'll be able to manually install 3rd party apps.

 

You don't need to install the WDcrack but it adds many more apps.

 
 

Yes, the Mirror Gen2 has the same package signature as the EX2Ultra.

Did anybody succeed in running it yet?

 

hJM1Sgs.png

 

MgYEvoW.png

 

Just tried it now and it seems to be working like a charm! :D

You're a genius, dude, thank you so much!

 

Still building the media library but I just gave it a go on my phone and it seems to be working as intended.

How will it work when it comes to server updates? Are those still installed automatically when updated by the developers?



#31 RobertCollier OFFLINE  

RobertCollier

    Newbie

  • Members
  • 5 posts

Posted 13 March 2019 - 08:53 PM

Maybe try to upgrade your firmware to 2.12.127 first... I checked the EX4 ramdisk for that firmware and it has glibc v2.15, which should be enough.

 

did the update to the firmware and still GlibC can't be found :/ I've tried looking for it in a few places but haven't found it. is there a way I can manually install this ?



#32 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 14 March 2019 - 04:18 AM

@iNSPiREDS thanks for the confirmation!

 

@RobertCollier that's unfortunate...

First I'd like to get the output of ldd

curl -L -o ldd https://git.io/fjvKw
chmod +x ldd
mv ldd /usr/local/bin
LD_LIBRARY_PATH=/usr/local/mono/lib:/lib ldd -v /usr/local/mono/bin/mono

Also the output of

/lib/libc.so.6

It could be that your older kernel handles LD_LIBRARY_PATH a bit differently.

My best guess is to edit /shares/Volume_1/Nas_Prog/emby/scripts/start-stop-status and add /lib to line 16

EXTRA_LIBS="${INSTALL_DIR}/lib:/lib"

Disable / enable emby to see the result.. or just start it manually

cd /shares/Volume_1/Nas_Prog/emby
./start.sh $(pwd)

My next step would be to install entware (see wdcommunity.com), then

opkg install strace strings ldd

and strace the hell out of it...

I could have a look over SSH if you don't mind. Send a PM in that case.


Edited by tafelpoowt, 18 March 2019 - 06:32 AM.


#33 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 14 March 2019 - 05:47 AM

How will it work when it comes to server updates? Are those still installed automatically when updated by the developers?

 

I didn't test the automatic updates within Emby yet.

I see that the library is not restored yet on package upgrade/reinstall so that's something I'll fix one of these days.

 

Feel free to submit pull requests for new Emby versions by making the changes here and here.



#34 Dragonsire OFFLINE  

Dragonsire

    Newbie

  • Members
  • 7 posts
  • Local time: 11:27 PM

Posted 14 March 2019 - 07:47 PM

Installed on Ex2 Ultra no problem. Haven't tested anything yet, won't have time for a couple..but so far so good.



#35 RobertCollier OFFLINE  

RobertCollier

    Newbie

  • Members
  • 5 posts

Posted 17 March 2019 - 10:32 PM

So, I've been trying to work through the suggestions made by tafel but unfortunately  to no success.

 

I installed ldd and moved it to the /bin directory and when I run ldd I get the error 

/bin/ldd: line 8: syntax error: unexpected newline

which is weird... 

 

after that I tried to change line 16 in /shares/Volume_1/Nas_Prog/emby/scripts/start-stop-status and add /lib but after trying to start emby the emby.log outputted the GlibC error I was getting before

 

attached is the emby.log file

 

hopefully tafel can work his magic and find a solution to this.

Would be interesting to see if anyone else with an Ex4 is having similar issues ?



#36 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 18 March 2019 - 06:35 AM

Hmm... it should have been a raw url, my bad. I've corrected the commands above.



#37 tafelpoowt OFFLINE  

tafelpoowt

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:27 AM

Posted 20 March 2019 - 10:06 AM

The EX4 apparently has (e)GLIBC-2.8 while the EX2 has (e)GLIBC-2.15.

Unfortunately this means the EX4 cannot run mono as is.

 

I'll have to drop support for this platform as it's too old, sorry.



#38 RobertCollier OFFLINE  

RobertCollier

    Newbie

  • Members
  • 5 posts

Posted 20 March 2019 - 11:33 AM

The EX4 apparently has (e)GLIBC-2.8 while the EX2 has (e)GLIBC-2.15.
Unfortunately this means the EX4 cannot run mono as is.

I'll have to drop support for this platform as it's too old, sorry.


This was my fear, think that was the reason plex also dropped support for the platform. Thanks so much for all your help tafel.
At least now I have an excuse to buy another computer without the other half getting mad 😏😂




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users