Jump to content


Photo

Developing a standalone embystat server

emby statistics server

  • Please log in to reply
327 replies to this topic

#321 darkassassin07 ONLINE  

darkassassin07

    Advanced Member

  • Members
  • 617 posts
  • Local time: 03:22 AM

Posted 16 June 2019 - 03:20 PM

Hey @reggi, welcome back. Hope your road trip went well :)


Have you got any ideas about post #309? Currently my instance of embystat is throwing that error and crashing everytime I run a sync.

#322 jaycedk OFFLINE  

jaycedk

    Advanced Member

  • Members
  • 44 posts
  • Local time: 12:22 PM

Posted 17 June 2019 - 12:10 AM

Hey @reggi, welcome back. Hope your road trip went well :)


Have you got any ideas about post #309? Currently my instance of embystat is throwing that error and crashing everytime I run a sync.

 

END Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.

 

The DB is locking up.

Known issue.

He is working on the issue, by using another DB.

https://github.com/m...Stat/issues/645



#323 darkassassin07 ONLINE  

darkassassin07

    Advanced Member

  • Members
  • 617 posts
  • Local time: 03:22 AM

Posted 17 June 2019 - 02:22 AM

Ah, alright. That github issue is over 2 months old, I thought that db migration had already happened.

Im using the same version I originally installed two weeks ago which worked just fine on initial sync as well as the second/third syncs.

As long as it's known and being worked on. Currently my instance of embystat is completely unusable.
I waited a full year before installing it specifically to avoid impassable issues like this one and give plenty of time to develop a useable system.



I seriously miss plexpy (aka Tautulli now).

#324 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 354 posts
  • Local time: 12:22 PM
  • LocationAntwerp, Belgium

Posted 17 June 2019 - 02:27 AM

@darkassassin07, I know the development is going really slow. I'm a full time developer and after 40 hours of software development it sometimes is hard to work on the project at home.

For the moment the project is still in a very unstable version. I'm updating the UI first, after that the database migration will happen. It has been a while that I could create a beta release because of the refactoring needed.


  • Napsterbater likes this

#325 darkassassin07 ONLINE  

darkassassin07

    Advanced Member

  • Members
  • 617 posts
  • Local time: 03:22 AM

Posted 17 June 2019 - 08:38 PM

Well, thanks for the time you have put in so far :)

I guess I'll put it on the side lines for now and check back in later. Hopefully you will be able to release a somewhat stable version that people can begin to use regularly soonish.

#326 cuzz1369 OFFLINE  

cuzz1369

    Member

  • Members
  • 10 posts
  • Local time: 05:22 AM

Posted 18 June 2019 - 08:28 AM

Well, thanks for the time you have put in so far :)

I guess I'll put it on the side lines for now and check back in later. Hopefully you will be able to release a somewhat stable version that people can begin to use regularly soonish.

If development is too slow for you it is open source so feel free to contribute. Or you could atleast keep it installed, help test and report bugs to speed up development!

Sent from my SM-G965W using Tapatalk

#327 darkassassin07 ONLINE  

darkassassin07

    Advanced Member

  • Members
  • 617 posts
  • Local time: 03:22 AM

Posted 20 June 2019 - 07:39 AM

If development is too slow for you it is open source so feel free to contribute. Or you could atleast keep it installed, help test and report bugs to speed up development!

Sent from my SM-G965W using Tapatalk

I have very little coding experience, and have never worked on a public project before. I'm fairly certain I'd be more in the way than helpful here,but I do appreciate the open invitation.



I do plan to keep the server installed and check in now and again, I just meant its not something I'm going to expect to be reliable in anyway quite yet.


I do have a slightly odd problem:
I figured if I deleted the data.db file I could at least get to to sync, but it wasn't working. I then deleted the whole server folder and re-downloaded it from git hub. Now when I run it and open embystat in the browser, I always get the setup wizard. I complete the whole thing, then try to sync media and get told it didnt start because the wizard is still running. Refreshing just brings be back to the very first setup page. (during setup, embystat tells me it reached my server, and my admin deets are good)


Log:
2019-06-20 02:38:24.1144 [INFO] SYSTEM	Booting up server on port 5432 
2019-06-20 02:38:28.3216 [INFO] Starting Hangfire Server using job storage: 'Hangfire.MemoryStorage.MemoryStorage' 
2019-06-20 02:38:28.3216 [INFO] Using the following options for Hangfire Server:
    Worker count: 1
    Listening queues: 'main'
    Shutdown timeout: 1.00:00:00
    Schedule polling interval: 00:00:05 
2019-06-20 02:38:28.3563 [INFO] Server main server:18412:5c80c3d7 successfully announced in 14.6396 ms 
2019-06-20 02:38:28.3563 [INFO] Server main server:18412:5c80c3d7 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... 
2019-06-20 02:38:28.3563 [INFO] Server main server:18412:5c80c3d7 all the dispatchers started 
2019-06-20 02:38:39.0274 [INFO] SERVER-API	Starting wizard for user. 
2019-06-20 02:38:39.2409 [INFO] SERVER-API	Emby server found at: 192.168.0.106 
2019-06-20 02:38:44.6807 [ERROR] Failed connection handshake. 
2019-06-20 02:38:49.8970 [INFO] EMBY-CLIENT	Authenticating user Darkassassin07 on Emby server on http://192.168.0.106:8096 
2019-06-20 02:38:49.9010 [INFO] EMBY-CLIENT	Sending POST: http://192.168.0.106:8096/emby/Users/AuthenticateByName?format=json 
2019-06-20 02:38:58.3884 [WARN] SMALLEMBYSYNC-JOB	Job not running because wizard is not finished 
2019-06-20 02:39:21.4967 [INFO] SERVER-API	Starting wizard for user. 
2019-06-20 02:39:21.8498 [INFO] SERVER-API	Emby server found at: 192.168.0.106 
2019-06-20 02:39:27.6686 [ERROR] Failed connection handshake. 
2019-06-20 02:39:37.8520 [INFO] EMBY-CLIENT	Authenticating user Darkassassin07 on Emby server on http://192.168.0.106:8096 
2019-06-20 02:39:37.8520 [INFO] EMBY-CLIENT	Sending POST: http://192.168.0.106:8096/emby/Users/AuthenticateByName?format=json 
2019-06-20 02:39:44.6102 [WARN] The LINQ expression 'where {from CollectionType y in __types_0 where (Convert([y], Int32) == Convert([x].Type, Int32)) select [y] => Any()}' could not be translated and will be evaluated locally. 
2019-06-20 02:39:44.6102 [WARN] The LINQ expression 'where (Convert([y], Int32) == Convert([x].Type, Int32))' could not be translated and will be evaluated locally. 
2019-06-20 02:39:44.6180 [WARN] The LINQ expression 'Any()' could not be translated and will be evaluated locally. 
2019-06-20 02:39:58.4063 [WARN] MEDIASYNC-JOB	Job not running because wizard is not finished 
2019-06-20 02:39:58.4169 [WARN] MEDIASYNC-JOB	Job not running because wizard is not finished 
2019-06-20 02:40:13.4241 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 02:45:13.4187 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 02:50:13.4168 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 02:55:13.4084 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:00:13.4048 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:05:13.4014 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:10:13.3963 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:15:13.3937 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:20:13.3913 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:25:13.3867 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:30:13.3824 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:35:13.3772 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:40:13.3739 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:45:13.3743 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:50:13.3816 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 03:55:13.3803 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:00:13.3875 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:05:13.3896 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:10:13.3952 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:15:13.4017 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:20:13.4026 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:25:13.4038 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:26:53.6213 [INFO] SERVER-API	Starting wizard for user. 
2019-06-20 04:26:53.7684 [INFO] SERVER-API	Emby server found at: 192.168.0.106 
2019-06-20 04:26:59.3449 [ERROR] Failed connection handshake. 
2019-06-20 04:30:13.4058 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
2019-06-20 04:35:13.4136 [WARN] PINGEMBYSERVER-JOB	Job not running because wizard is not finished 
 

Edited by darkassassin07, 20 June 2019 - 07:43 AM.


#328 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 354 posts
  • Local time: 12:22 PM
  • LocationAntwerp, Belgium

Posted 20 June 2019 - 08:17 AM

Thanks for the log, there is indeed some strange behavoir for some users. I haven't been able to reproduce this issue myself.

For what I can tell is that the WizardFinished boolean is not updated correctly in the user settings file. You can always try to update it manually.

 

If you want to increase your own development skills and speed up the project I can always get you started in the code. Feel free to PM me about it.

At the moment the app is indeed very unstable and not ready for production. I do hope this will change soon when I moved the database and UI.

 

Short update about the UI, I finished the Shows page (screens will be posted later) and have to finish the wizard and users page now. 


  • kesm, darkassassin07 and cuzz1369 like 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