diogosena 0 Posted March 15, 2018 Share Posted March 15, 2018 hi, im trying to use emby inside a chroot because i want to run on a linux stb. what's the correct way to startup the server inside a chroot ? (i assume systemd doesnt work) Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 16, 2018 Share Posted March 16, 2018 Hi, welcome. I've forwarded this question to our developer who handles the packaging. Please be aware he's out this week so you may not get an answer until next week. Thanks. Link to comment Share on other sites More sharing options...
alucryd 216 Posted March 16, 2018 Share Posted March 16, 2018 Could you be more specific? What kind of chroot on what distribution and architecture? If systemd doesn't work you can just manually run the ExecStart line from the service unit file. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 16, 2018 Author Share Posted March 16, 2018 my stb is running enigma2 openatv (armhf and rc.d and init.d based), I made a debian stretch chroot, so I can install emby there. for now I'm running using this line, but it's crashing sometimes, thats why i want to know the correct way. chroot /mnt/sda2/debian/binary/ /opt/emby-server/bin/emby-server & Link to comment Share on other sites More sharing options...
dcrdev 251 Posted March 16, 2018 Share Posted March 16, 2018 my stb is running enigma2 openatv (armhf and rc.d and init.d based), I made a debian stretch chroot, so I can install emby there. for now I'm running using this line, but it's crashing sometimes, thats why i want to know the correct way. chroot /mnt/sda2/debian/binary/ /opt/emby-server/bin/emby-server & Have you bound the kernels virtual filesystem(s) to the chroot's filesystem beforehand? Other than that - the line from ExecStart is the correct way of running it... Although you obviously aren't going to be wanting to run it as root, you'll want to run it as a normal user - for example the one that gets created when you install the package i.e. "emby". Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 16, 2018 Author Share Posted March 16, 2018 (edited) Have you bound the kernels virtual filesystem(s) to the chroot's filesystem beforehand? Other than that - the line from ExecStart is the correct way of running it... Although you obviously aren't going to be wanting to run it as root, you'll want to run it as a normal user - for example the one that gets created when you install the package i.e. "emby". i do these mounts before mount --bind /proc /mnt/sda2/debian/binary/proc mount --bind /tmp /mnt/sda2/debian/binary/tmp mount --bind /sys /mnt/sda2/debian/binary/sys mount --bind /dev /mnt/sda2/debian/binary/dev mount --bind /dev/pts /mnt/sda2/debian/binary/dev/pts mount --bind /dev/pts /mnt/sda2/debian/binary/dev/pts mount --bind /media/sda2 /mnt/sda2/debian/binary/media/sda2 Thanks! seems the way I'm starting is ok, I guess i just have to find out the reason for the crashes Edited March 16, 2018 by diogosena Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 17, 2018 Share Posted March 17, 2018 Under what scenarios does it crash? Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 17, 2018 Author Share Posted March 17, 2018 (edited) i was messing around with every possible setting, maybe it was my fault.. It seems stable right now (2 days without crash). Debug is already enabled, if it crashes again, I'll send you the logs, thank's! Edited March 17, 2018 by diogosena Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 17, 2018 Share Posted March 17, 2018 Thanks for the feedback. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 19, 2018 Author Share Posted March 19, 2018 Hi, restart button was not working too, I look around in the forum and found this flag "-restartpath /path/somescript.sh" Just created a script to manual kill and start emby, and its all good! Now I'm trying to make some kind of autoupdate. Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 19, 2018 Share Posted March 19, 2018 That command line params is no longer used in our new packages, fyi. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 19, 2018 Author Share Posted March 19, 2018 i have to disagree, in latest beta it is working (please keep that way) Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 19, 2018 Share Posted March 19, 2018 Can you please provide an emby server log? it sounds like you are using our legacy installation package. thanks. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 19, 2018 Author Share Posted March 19, 2018 Can you please provide an emby server log? it sounds like you are using our legacy installation package. thanks. I reinstalled a clean version of deb package today, pretty sure i'm using the latest beta version. I'm including my "personalized" emby_server file too. server-63657077412.txt emby-server.txt Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 19, 2018 Share Posted March 19, 2018 Ok yes this version of the server you have should be ignoring that restartpath param. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 19, 2018 Author Share Posted March 19, 2018 Ok yes this version of the server you have should be ignoring that restartpath param. Just restarted NOW, logs attached, before and after. Do you really have to disable that? I think is needed in my use case (chroot manual run) server-63657077412.txt server-63657094685.txt Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 19, 2018 Share Posted March 19, 2018 it's not disabled, it's just obsolete at this point. We no longer have any use for it. Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 26, 2018 Share Posted March 26, 2018 @@diogosena how is this going? Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 26, 2018 Author Share Posted March 26, 2018 @@diogosena how is this going? Thanks for taking the interest, i have some problems: That restart parameter is not working anymore, The DLNA server part of emby sometimes simply disappear from all my devices, restarting the process solves that. (since restart button is not working, that's very annoying) It's not frequent, but I still have some crashes one day or the other. How is the correct way do log that? Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 27, 2018 Share Posted March 27, 2018 Please attach the the emby server log from the time frame that you had a problem. Thanks. Link to comment Share on other sites More sharing options...
diogosena 0 Posted March 27, 2018 Author Share Posted March 27, 2018 (edited) Please attach the the emby server log from the time frame that you had a problem. Thanks. just got a freeze, one of my cpu cores is stuck at 100, and can't access anything emby related. if you need to check anything, its still running server-63657705601.txt server-63657693329.txt Edited March 27, 2018 by diogosena Link to comment Share on other sites More sharing options...
Luke 37095 Posted March 27, 2018 Share Posted March 27, 2018 You could try removing those installed plugins and see if that has any impact. Link to comment Share on other sites More sharing options...
diogosena 0 Posted April 4, 2018 Author Share Posted April 4, 2018 Hi, @@Luke Dlna crash when trying to play The log is with debug enabled. embyserver.txt Link to comment Share on other sites More sharing options...
Luke 37095 Posted April 4, 2018 Share Posted April 4, 2018 Can you please define crashed? Thanks. Link to comment Share on other sites More sharing options...
diogosena 0 Posted April 4, 2018 Author Share Posted April 4, 2018 Can you please define crashed? Thanks. Tried to play something trough DLNA directly to my TV and didn't worked, then I can't find the dlna server (I assume the dlna server part crashed) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now