Jump to content

Developing a standalone embystat server


reggi

Recommended Posts

reggi

I'm currently removing the people sync, so database will be smaller, sync time will increase and since I know there are no people saved by default the null ref exception should go away as well. 

Will post an update hopefully still today (Belgium time)

Link to comment
Share on other sites

Volfan6415

Installed most recent beta7 on ubuntu 18.04.  I am getting a 13:50:45 31-07-19 MEDIASYNC-JOB => Job failed, check logs for more info.when the initial sync tries to fun.  Log file attached.

 

 

edit: should have read up.  Looks like i am running into the null person issue identified above.  I will await next release and try and install.

2019-07-31 (3).log

Edited by Volfan6415
Link to comment
Share on other sites

thekingswolf

How exactly do I install/use this?

 

Go here and download the newest release.  Assuming you are running windows, you just extract the contents of the zip file and run the .exe file.  This will open a console where it will run the program.  To access the dashboard you open your web-browser and enter the ip address of the machine running it with the port.  For example http://192.168.1.10:6555. Then go from there.  

 

If you don't want to have the console running, you can use NSSM to install the .exe file as a service that runs in the background and is managed through windows services manager.

Link to comment
Share on other sites

reggi

Hey guys,

 

I just released a new beta (github release here => https://github.com/mregni/EmbyStat/releases/tag/0.2.0-beta.8, docker images are updated). This should fix the media sync and cleanup job errors. Also, sync time is decreased again because I'm not syncing all people from Emby anymore. Only the ones I need for showing your statistics.

 

Have fun testing!

Link to comment
Share on other sites

reggi

@@darkassassin07, you still have problems with wrongly runtimes for your episodes? I tried reproducing this in any way but still failing.

If the issue is still there maybe it's a good idea to PM me your database file and I can have a look in the data itself.

Link to comment
Share on other sites

darkassassin07

It looks like I still am with V0.2.0-Beta.8 

To install this version I completely deleted the previous install, extracted the zip, and ran the embystat.exe. 

 

After going through the setup and running a sync:

 

151 Shows

19195 epps

3d 14h 47m watchable time (16.27s per epp average)

 

 

I'll pm you a link you can grab the data.db file from. Let me know if there's anything else you need.

Link to comment
Share on other sites

Happy2Play

I'm stuck on an "updating EmbyStat" screen. It's been about an hour, maybe?

 

I just experience some thing similar.  I noticed the page in not actually refreshing or is stuck on "http://localhost:6555/settings"as I updated from there.  But once I went to "http://localhost:6555" it was up and running fine.

 

​@@reggi

 

When EmbyStat updates the command window closes but EmbyStats is actually running without it. (Windows)

Link to comment
Share on other sites

Happy2Play

I am seeing the issue with total watchable time also.

 

5d42a4a4e42f0_stats.jpg

Link to comment
Share on other sites

gerritv

Just loaded the beta.8. It collected info on 1450 movies and a load of Tv Shows (with lots of missing episodes, I don't collect whole series) in under 5 minutes. 

The install is on my Win 10 PC, while Emby is on a Windows 2012R2 server.

 

I see information for every part. Total viewing time is shown as 108d for the movies.

The Shows viewing time is suspiciously low, e.g. I have all episodes of Nederland Van Boven and Coupling which add up to more than the calculated 14 hours

 

This is looking very impressive.

 

Gerrit

  • Like 1
Link to comment
Share on other sites

reggi

Thanks man! Nice to hear you like it and it's running on your server without almost any issues at the moment :) I think we are getting somewhere now with the .8 release. 

 

Looks like the timing issue is getting more and more a problem. Have to check if the time is maybe not send in ticks anymore. I will have a look at @@thekingswolf his database to see what is wrong.

 

As for the update overlay, I'll create an issue for it on github to remind me I have to look into that as well! Thanks @@crusher11 and @@Happy2Play for reporting.

Link to comment
Share on other sites

mgworek

Hey, just wanted to say since the update the other week, it has been running great for me. No lockups or anything.

 

My only problem but it was a known problem is it would reset with updates but that was because I still needed to map /app to my cache drive on unraid so it would keep the config. I just finally did it (I was out of town and busy) so hopefully it continues to hum along now with no issues except for known ones.

Link to comment
Share on other sites

crusher11

The "titles without a poster" category is neat, any chance of getting the same for thumbnails and backdrops?

  • Like 1
Link to comment
Share on other sites

darkassassin07

My shows watchable time seems ok

 

5d43babdd661b_Capture.png

Based on those stats, you have an average of 45sec per episode. That doesn't seem right:

 

14d x 24h = 336h

(336+8) x 60m = 20640m

(20640+34) / 27486epps = 0.752min/epp

0.752 x 60 = 45.129sec/epp

 

 

/edit fixed my math... Not sure how I messed up that badly...

Edited by darkassassin07
Link to comment
Share on other sites

aws1971

Hey @@Kewjoe. Thanks for the help!

 

Following folders need to presist when removing and reinstalling the container

/app/Database

/app/Logs

/app/Settings

 

Is there a way I can create some kind of special container for unraid that would make it easier working on unraid? I have never worked with that OS and because it seems not to work on a VM I can't really test it myself.

The app itself has an update mechanism so there is no need to redeploy the full container when I push a new version to the docker hub. But, if I understand correctly, that seems to go automatically?

No personal offence just a question

 

shouldn't these paths be placed in the /config folder right from the start then ?

or hardlinked to the /config folder ?

 

trying to get his working on unraid and every other container i've added manually i just could follow the steps provided in the readme made it worked,

except this one till now.

 

I only see this in the logs.

Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:6555
Application started. Press Ctrl+C to shut down.
What am i missing to get this working ?

m_20190802-3vlk-29kb.png

 

i tried all available tags to see which one would work.

Edited by aws1971
Link to comment
Share on other sites

jaycedk

I'm running EmbyStat as a service in Windows. I'm stuck on vBeta2.4, it won't update with the update button. Log attached.

You can download the new release from github, and then update it manualy.

Mine dident update when going from 2.4, but from 2.7 it did do it by it self.

  • Like 2
Link to comment
Share on other sites

mgworek

No personal offence just a question

 

shouldn't these paths be placed in the /config folder right from the start then ?

or hardlinked to the /config folder ?

 

trying to get his working on unraid and every other container i've added manually i just could follow the steps provided in the readme made it worked,

except this one till now.

 

I only see this in the logs.

Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:6555
Application started. Press Ctrl+C to shut down.
What am i missing to get this working ?

m_20190802-3vlk-29kb.png

 

i tried all available tags to see which one would work.

 

 

 

Here is how I get it to work on unraid.

 

1. Run the docker without mapping anything  to make sure it runs.

2.  Map /test to /mnt/cache/appdata/embystat    (i was alway told to go to cache/appdata and not /user/appdata

3. Run the docker. Console into the docker from unraid. It drops you right into the app directory. Copy all the files/directories into ../test/ or whatever you call it.

4. Edit docker and point /app to /mnt/cache/appdata/embystat/

5. Run docker and you should be good to go.

Edited by mgworek
Link to comment
Share on other sites

reggi

@@Diedrich, I broke the update links a few releases back that's why your's is not updating as it should be. 

Just try a manual update like @@jaycedk said. After that the updates should work again. There is however still a bug in the update overlay screen, sometimes it keeps loading even when the server is updated already. An update should not take longer then 10 minutes normally.

 

@@aws1971, what you mean with directly under /config? At the moment I don't have a /config folder in the project. Feel free to test a better way to get it up and running on unraid in a less complex way. 

Is there some kind of way I can create a more unraid friendly docker image?

Link to comment
Share on other sites

aws1971

@@reggi

normally with dockers all the folders/directory's you need to keep so they don't get wiped after a new pull or even a delete are hardlinked or placed in the /config folder by default,

Sonarr, Radarr, Bazarr, etc even Emby do that by default.

But i will test the description some one else gave.

Thnx anyway for the heads up.

Link to comment
Share on other sites

aws1971

Here is how I get it to work on unraid.

 

3. Run the docker. Console into the docker from unraid. It drops you right into the app directory. Copy all the files/directories into ../test/ or whatever you call it.

everything ?

so after a update of the container you need to do that again ?

Link to comment
Share on other sites

reggi

@@aws1971, good to know! I have no experience with that so thanks for the tip.

 

I also found this on the Emby repo for unraid users: https://github.com/MediaBrowser/Emby.Build/blob/master/unraid-templates/emby/EmbyServer.xml

Is this xml file something that would be handy to have for EmbyStat as well?

 

Just to be clear. Moving the content of the 3 folders to /config would fix a lot of stuff (and be more "best practice")?

Link to comment
Share on other sites

mgworek

@@aws1971, good to know! I have no experience with that so thanks for the tip.

 

I also found this on the Emby repo for unraid users: https://github.com/MediaBrowser/Emby.Build/blob/master/unraid-templates/emby/EmbyServer.xml

Is this xml file something that would be handy to have for EmbyStat as well?

 

Just to be clear. Moving the content of the 3 folders to /config would fix a lot of stuff (and be more "best practice")?

 

I believe so.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...