Jump to content


Photo

Developing a standalone embystat server

emby statistics server

  • Please log in to reply
814 replies to this topic

#801 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 552 posts
  • Local time: 11:14 PM

Posted 16 May 2020 - 02:57 PM

Not sure what you think that's going to achieve, although yours seems to be going vastly slower than even mine. I'm up to 88.3% after three and a half days.

 

It achieves not worrying about it!  ;)  there is obviously something wrong, I cannot fix it but am happy to provide logs or test/change things to help with development but pointless letting it continue in my opinion.



#802 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 471 posts
  • Local time: 12:14 AM
  • LocationAntwerp, Belgium

Posted 18 May 2020 - 02:07 AM

Probably you all have a lot of libraries? That could be the problem with the media sync job will try to calculate all possible combinations with your libraries. Meaning that if you have 12 libraries it will recalculate the statistics 12*11*10*9*8*7*6.... ( = 479 001 600) times.

If you have over 20 libraries it will calculate them 2 432 902 008 176 640 000 times. That's some kind of a bug :) I just didn't knew people had so much libraries. So I will need to reduce the default statistics that are calculated by a lot!



#803 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 471 posts
  • Local time: 12:14 AM
  • LocationAntwerp, Belgium

Posted 18 May 2020 - 02:12 AM

@rechigo, you will first need to setup the frontend as well.

Navigate to "EmbyStat.Web/ClientApp" and run "npm install"

 

After that you can navivate to "localhost:6555" but the first load will take a long time (30 seconds - 1 min), just let it run and refresh when you get an Angular error. 

If it's still failing or you have some questions you can always send me a PM as well.

 

Happy coding!!

 

@vaise, good ideas. I'm going to remove the duplicate movies check because it's very buggy and I can't really know when a movie is a duplicate or not. I will have to add some "duplicate suspects" or something as a solution.



#804 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 552 posts
  • Local time: 11:14 PM

Posted 18 May 2020 - 04:05 AM

Probably you all have a lot of libraries? That could be the problem with the media sync job will try to calculate all possible combinations with your libraries. Meaning that if you have 12 libraries it will recalculate the statistics 12*11*10*9*8*7*6.... ( = 479 001 600) times.

If you have over 20 libraries it will calculate them 2 432 902 008 176 640 000 times. That's some kind of a bug :) I just didn't knew people had so much libraries. So I will need to reduce the default statistics that are calculated by a lot!

 

aha! I might as well give up with my library collection then!  :D  :D  :lol:  :lol:  :rolleyes:

 

 5ec241a9a7f2a_Annotation20200518090309.j



#805 crusher11 OFFLINE  

crusher11

    Advanced Member

  • Members
  • 1478 posts
  • Local time: 06:14 AM

Posted 18 May 2020 - 06:13 AM

Probably you all have a lot of libraries? That could be the problem with the media sync job will try to calculate all possible combinations with your libraries. Meaning that if you have 12 libraries it will recalculate the statistics 12*11*10*9*8*7*6.... ( = 479 001 600) times.

If you have over 20 libraries it will calculate them 2 432 902 008 176 640 000 times. That's some kind of a bug :) I just didn't knew people had so much libraries. So I will need to reduce the default statistics that are calculated by a lot!

Possible combinations of what?

 

And yeah, I have 16 libraries.



#806 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 471 posts
  • Local time: 12:14 AM
  • LocationAntwerp, Belgium

Posted 19 May 2020 - 02:09 PM

Hey guys, for everyone with multiple libraries I create a small beta release to fix this issue.

 

beta.20 can be downloaded here: https://github.com/m...byStat/releases

It will only calculate all libraries separately and one time all of them. You will see that there is one extra calculation. That is without any libraries (same as everything), I will see how I can remove that extra duplicate calculation in the future.

 

I hope EmbyStat works for all of you with a lot of libraries :)

 

@crusher11, possible combinations of all libraries. That's why it's an N! calculation and it blows up when you have a lot of them :)


Edited by reggi, 19 May 2020 - 02:10 PM.


#807 crusher11 OFFLINE  

crusher11

    Advanced Member

  • Members
  • 1478 posts
  • Local time: 06:14 AM

Posted 19 May 2020 - 06:14 PM

I still don't understand what combinations it needs to calculate.



#808 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 552 posts
  • Local time: 11:14 PM

Posted 19 May 2020 - 06:35 PM

Hey guys, for everyone with multiple libraries I create a small beta release to fix this issue.

 

beta.20 can be downloaded here: https://github.com/m...byStat/releases

It will only calculate all libraries separately and one time all of them. You will see that there is one extra calculation. That is without any libraries (same as everything), I will see how I can remove that extra duplicate calculation in the future.

 

I hope EmbyStat works for all of you with a lot of libraries :)

 

@crusher11, possible combinations of all libraries. That's why it's an N! calculation and it blows up when you have a lot of them :)

 

Many Thanks!

 

2 hours is much more like it ;-)



#809 vaise OFFLINE  

vaise

    Advanced Member

  • Members
  • 1216 posts
  • Local time: 08:14 AM

Posted 20 May 2020 - 12:02 AM

Not sure if the docker was also a beta update, I did it anyway.  Not sure if my missing movies issue was supposed to be fixed in that.  I have never had a speed issue on the scan, just the 1000 ish missing movies as desc above. 



#810 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 471 posts
  • Local time: 12:14 AM
  • LocationAntwerp, Belgium

Posted 20 May 2020 - 01:42 AM

@vaise, no that will still be a problem in the current beta. I just made a quick fix for the ones with a lot of libraries to be able to complete their scan and test the application.

Btw, is for anyone the auto media server detection still working in the wizard?

 

When I try to debug it on my pc I can't get it to work but no code changes are made to that part :( That why I ask



#811 vaise OFFLINE  

vaise

    Advanced Member

  • Members
  • 1216 posts
  • Local time: 08:14 AM

Posted 20 May 2020 - 04:10 AM

The auto media worked fine for me.


  • reggi likes this

#812 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 471 posts
  • Local time: 12:14 AM
  • LocationAntwerp, Belgium

Posted 20 May 2020 - 11:37 AM

Then is probably something to do with my firewall blocking the UDP broadcast.

Thanks for testing!



#813 rechigo OFFLINE  

rechigo

    Advanced Member

  • Members
  • 776 posts
  • Local time: 03:14 PM
  • LocationCALIFORNIA

Posted 24 May 2020 - 02:29 AM

Reggi the auto updater is not working correctly for me

 

Here is my log

 

https://paste.memest.../yinajuyoju.log



#814 neik OFFLINE  

neik

    Advanced Member

  • Members
  • 1147 posts
  • Local time: 12:14 AM

Posted 26 May 2020 - 07:49 AM

Reggi, one question regarding the missing episode feature:

Does it rely on Emby's library option "Display missing episodes within seasons" or is it something built-in to EmbyStats?

 

I would like to deactivate the Emby option but am afraid it might also affect EmbyStats.



#815 darkassassin07 OFFLINE  

darkassassin07

    Advanced Member

  • Members
  • 876 posts
  • Local time: 03:14 PM

Posted 26 May 2020 - 03:26 PM

Embystat does it's own missing epp calculations. I have it disabled in emby with no problems in embystat.
  • neik likes this





Also tagged with one or more of these keywords: emby, statistics, server

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users