Jump to content


Photo

Developing a standalone embystat server

emby statistics server

  • Please log in to reply
129 replies to this topic

#121 pir8radio OFFLINE  

pir8radio

    Advanced Member

  • Members
  • 2581 posts
  • Local time: 09:38 AM

Posted 11 February 2019 - 09:37 AM

@pir8radio

 

I will update the first post today to make the download links more clear!

 

As for the nginx support, what do you need exactly? EmbyStat does not need IIS, it can also be hosted by itself (using Kestrel) 

I found these docs in the MS website => https://docs.microso...aspnetcore-2.2 

 

Not sure if you need some code changes to let it work on Nginx. Feel free to test it and let me know, I will try it myself later this week as well.

 

i assume it uses some kind of server side scripting?  asp, php?   I know there are some modules for nginx. 



#122 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 290 posts
  • Local time: 04:38 PM
  • LocationAntwerp, Belgium

Posted 11 February 2019 - 10:16 AM

I'm running my backend in C# with .net CORE yes. 

 

I did a fast search and indeed it should be possible to host it with nginx. Have to check it more in depth later in the next couple of days.



#123 mgworek OFFLINE  

mgworek

    Advanced Member

  • Members
  • 569 posts
  • Local time: 10:38 AM

Posted 11 February 2019 - 10:38 AM

@mgworek @Macieksoft

 

Are you guys running EmbyStat in docker on your machines? Feel free to send me the log files you find in the /Logs directory so I can have a look as well.

I will try to setup an unraid test machine as well, but I have no experience with unraid at all :)

 

 

Yea, I am running it in a Docker on my unraid machine. I won't be able to do it today but I will try running it again this week and get you logs.

 

Thanks!



#124 mgworek OFFLINE  

mgworek

    Advanced Member

  • Members
  • 569 posts
  • Local time: 10:38 AM

Posted 12 February 2019 - 04:11 PM

Yea, I am running it in a Docker on my unraid machine. I won't be able to do it today but I will try running it again this week and get you logs.

 

Thanks!

 

 

@reggi 

 

I start fresh with a new docker template and it is working now. Not sure why it wasn't working before. It started and stopped a few seconds later. I didn't see anything when viewing the logs.

 

Quick question. Is there a config directory or anything I should be setting in the docker to save settings to my cache drive like other apps?

 

it loads but won't connect to my server. "Getting Emby token failed. Please check your credentials and address"


Edited by mgworek, 12 February 2019 - 04:25 PM.


#125 Macieksoft OFFLINE  

Macieksoft

    Member

  • Members
  • 13 posts
  • Local time: 10:38 AM
  • LocationMaryland

Posted 18 February 2019 - 11:34 AM

@reggi 

 

I start fresh with a new docker template and it is working now. Not sure why it wasn't working before. It started and stopped a few seconds later. I didn't see anything when viewing the logs.

 

Quick question. Is there a config directory or anything I should be setting in the docker to save settings to my cache drive like other apps?

 

it loads but won't connect to my server. "Getting Emby token failed. Please check your credentials and address"

 

Im still getting the issue where the docker stops after a couple seconds. How exactly did you set up the docker on your side? Thanks.  



#126 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 290 posts
  • Local time: 04:38 PM
  • LocationAntwerp, Belgium

Posted 18 February 2019 - 03:21 PM

Hey @Macieksoft

 

Sorry for not replying sooner. What docker image are you running? Best thing to do is running the nightly builds for now because the beta version has some problems with docker still.

 

You can always create a share to /Logs so you can access the log files. In the new release you will also be able to access your user settings in a json file.

(at the moment the settings are still stored in the database located in the root folder)



#127 Macieksoft OFFLINE  

Macieksoft

    Member

  • Members
  • 13 posts
  • Local time: 10:38 AM
  • LocationMaryland

Posted 18 February 2019 - 04:30 PM

Hey @Macieksoft

 

Sorry for not replying sooner. What docker image are you running? Best thing to do is running the nightly builds for now because the beta version has some problems with docker still.

 

You can always create a share to /Logs so you can access the log files. In the new release you will also be able to access your user settings in a json file.

(at the moment the settings are still stored in the database located in the root folder)

I tried the beta linux version at first, but the logs just said "application shutting down", just tried the nightly version (just assigned a port too it, not sure if it needs a share or acess of some sort). The logs just said:

 

Sequence contains no elements

SYSTEM Server shutdown

 

Im not very knowledgeable in docker so my help is prob very limited. Im assuming im missing a point where I create a share to it but when I tired to give it an appdata folder is just failed. I couldn't manage to get any access to more detailed logs.



#128 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 290 posts
  • Local time: 04:38 PM
  • LocationAntwerp, Belgium

Posted 18 February 2019 - 05:14 PM

Oke, I found the problem. I will need to update the database migrations but they are still on a side branch. 

 

I will try to make a new build this night and push the new version to docker.

 

If you want to mount the Logs folder use the following docker command: docker run -p <port>:5432 -v <path-on-host>:/app/Logs uping/embystat:nightly-linux



#129 Macieksoft OFFLINE  

Macieksoft

    Member

  • Members
  • 13 posts
  • Local time: 10:38 AM
  • LocationMaryland

Posted 21 February 2019 - 01:50 PM

Oke, I found the problem. I will need to update the database migrations but they are still on a side branch. 

 

I will try to make a new build this night and push the new version to docker.

 

If you want to mount the Logs folder use the following docker command: docker run -p <port>:5432 -v <path-on-host>:/app/Logs uping/embystat:nightly-linux

Thanks! Got it up and running on unraid, doing the media sync now, ill report back if I run into any problems. 



#130 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 290 posts
  • Local time: 04:38 PM
  • LocationAntwerp, Belgium

Posted Today, 04:01 AM

Hey guys,

 

So I got a new release ready for you (sorry for the long release interval)

Had some refactor work done as well as setting up the web socket connection to Emby, after some long night I can finally say that EmbyStat is receiving life event data from Emby. At this moment it is still limited to play events (start, stopped and paused) but it's a start.

 

Release noted:

* Live session data is stored
* Added user sync
* Added device sync
* Created new user page (displaying session data)
* Added option to enable Exception logging
* Updated to Angular 7
* Some refactoring
* Minor bug fixes 

 

Also you can find your settings in the Settings/usersettings.json file. If you are running docker you can easily create a share to it with "-v /path/on/host:/app/Settings"

And I installed some online exception logging on Rollbar, this means that I will receive a message every time your system get's an exception, this will make my life easier and will help me fix bugs faster. This option is not enabled by default! So feel free to go to the settings page and enable the option. You will have to restart the server after you hit the save button. If you want to know what data is logged feel free to send me a message! In short, I receive the exception details, release train and version number. I do not receive your log files, your settings files, IP address, ...

 

Feel free to test this version and let me know what you think about it.

 

Next release I will increase the Emby events and calculate some more statistics about the user usage and try to increase the server stability by refactoring and bug fixing.


  • Happy2Play, neik and DRAGUNSLAYER like this





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

1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    adrianwi