BasJaspers 3 Posted June 19, 2017 Share Posted June 19, 2017 I know that on start-up or reboot of a kodi client a sync is done on the client with the emby server. In my environment I have multiple kodi clients that are 24/7 powered on. When I upload a movie to the server I have to restart all clients to sync to the media. Is there a way to let the clients automaticity sync (every hour or so) or is there a command (e.g. JSON) that can be send to a client to do a re-sync without having to reboot the kodi client? On the server I am using Emby for Windows V3.2.20.00 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 19, 2017 Share Posted June 19, 2017 (edited) No, you should not need to reboot kodi to get updates. Post your Kodi log after adding something to your emby library, thanks. It's setup to update in real time. I run kodi 24/7 and don't have this issue. Sent from my iPhone using Tapatalk Edited June 19, 2017 by Angelblue05 Link to comment Share on other sites More sharing options...
BasJaspers 3 Posted June 19, 2017 Author Share Posted June 19, 2017 I am having a hard time with the log's that LibreElec makes. Time indication is so far off that it is hard to check and most of the times it does not log the usefull information. The problem at least is constant. All clients that I reboot have a new uploaded movie, all other clients dont have the movie in the library. This is what I see after I upload a movie and did a reboot. 17:18:14.086 T:139830968403712 NOTICE: EMBY.websocket_client -> Message: {"MessageType":"UserUpdated","Data":{"Name":"PHT-NAS-04026","ServerId":"cc3c2f0a8f954215bb2c4c399a4484f0","Id":"2814699e425843808ed73c48724f19fd","HasPassword":false,"HasConfiguredPassword":false,"HasConfiguredEasyPassword":false,"EnableAutoLogin":true,"LastLoginDate":"2017-06-14T15:23:15.0848905Z","LastActivityDate":"2017-06-19T15:18:14.0816607Z","Configuration":{"PlayDefaultAudioTrack":true,"DisplayMissingEpisodes":true,"DisplayUnairedEpisodes":false,"GroupedFolders":[],"SubtitleMode":"Default","DisplayCollectionsView":false,"EnableLocalPassword":false,"OrderedViews":[],"LatestItemsExcludes":[],"HidePlayedInLatest":true,"RememberAudioSelections":true,"RememberSubtitleSelections":true,"EnableNextEpisodeAutoPlay":true},"Policy":{"IsAdministrator":true,"IsHidden":false,"IsDisabled":false,"BlockedTags":[],"EnableUserPreferenceAccess":true,"AccessSchedules":[],"BlockUnratedItems":[],"EnableRemoteControlOfOtherUsers":true,"EnableSharedDeviceControl":true,"EnableLiveTvManagement":true,"EnableLiveTvAccess":true,"EnableMediaPlayback":true,"EnableAudioPlaybackTranscoding":true,"EnableVideoPlaybackTranscoding":true,"EnablePlaybackRemuxing":true,"EnableContentDeletion":true,"EnableContentDownloading":true,"EnableSyncTranscoding":true,"EnabledDevices":[],"EnableAllDevices":true,"EnabledChannels":[],"EnableAllChannels":true,"EnabledFolders":[],"EnableAllFolders":true,"InvalidLoginAttemptCount":0,"EnablePublicSharing":true}}} 17:18:17.910 T:139831359293184 INFO: Platinum [platinum.core.ctrlpoint]: CtrlPoint received a search response from ourselves (a2a57ac6-e721-da39-a30f-2304c67fcbc6) 17:18:24.828 T:139831384471296 INFO: Previous line repeats 1 times. 17:18:24.828 T:139831384471296 INFO: Platinum [platinum.core.ctrlpoint]: Device "Emby - PHT-NAS-04026" expiration time renewed.. 17:18:29.314 T:139831384471296 INFO: Previous line repeats 20 times. 17:18:29.314 T:139831384471296 INFO: Platinum [neptune.threads.posix]: NPT_PosixThread::NPT_PosixThread 17:18:29.314 T:139831061083904 INFO: Platinum [platinum.core.devicehost]: Responding to a M-SEARCH request for upnp:rootdevice 17:18:29.314 T:139831384471296 INFO: Platinum [neptune.threads.posix]: NPT_PosixThread::NPT_PosixThread 17:18:29.314 T:139831736768256 INFO: Platinum [platinum.core.devicehost]: Responding to a M-SEARCH request for upnp:rootdevice 17:18:30.126 T:139831241860864 INFO: Platinum [platinum.core.http.server]: PLT_HttpServer::SetupResponse POST request from 172.16.63.31:65176 for "http://172.16.63.143:1798/AVTransport/a2a57ac6-e721-da39-a30f-2304c67fcbc6/control.xml" POST /AVTransport/a2a57ac6-e721-da39-a30f-2304c67fcbc6/control.xml HTTP/1.1 User-Agent: Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50 SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#GetTransportInfo" Pragma: no-cache FriendlyName.DLNA.ORG: Emby Content-Type: text/xml; charset="utf-8" Host: 172.16.63.143:1798 Content-Length: 415 Accept-Encoding: deflate 17:18:30.126 T:139831241860864 INFO: Platinum [platinum.core.devicehost]: Processing action "GetTransportInfo" from 172.16.63.31 17:18:30.126 T:139831241860864 INFO: Platinum [platinum.core.http.servertask]: PLT_HttpServerSocketTask::Write HTTP/1.1 200 OK Ext: Date: Mon, 19 Jun 2017 15:18:30 GMT Content-Length: 439 Content-Type: text/xml; charset="utf-8" Server: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13 17:18:30.126 T:139831241860864 INFO: Platinum [platinum.core.http.servertask]: sending body stream, 439 bytes 17:18:30.712 T:139831384471296 INFO: Platinum [neptune.threads.posix]: NPT_PosixThread::NPT_PosixThread 17:18:32.714 T:139831736768256 INFO: Previous line repeats 1 times. 17:18:32.714 T:139831736768256 INFO: Platinum [platinum.core.devicehost]: Responding to a M-SEARCH request for upnp:rootdevice 17:18:34.923 T:139830968403712 INFO: Previous line repeats 1 times. 17:18:34.923 T:139830968403712 NOTICE: EMBY.websocket_client -> Message: {"MessageType":"LibraryChanged","Data":{"FoldersAddedTo":["1c6dcf1ac1c99b633cfb6ed39f09028f"],"FoldersRemovedFrom":[],"ItemsAdded":["1788cc01abaf600fc58a602617f770db"],"ItemsRemoved":[],"ItemsUpdated":["789a13a64d5f67349bd3d551e7e2bdf5","e8f1273de58ec48da4e869dca65e0340"]}} 17:18:34.923 T:139830968403712 NOTICE: EMBY.librarysync -> Queue added: [u'1788cc01abaf600fc58a602617f770db'] 17:18:34.923 T:139830968403712 NOTICE: EMBY.librarysync -> Queue update: [u'789a13a64d5f67349bd3d551e7e2bdf5', u'e8f1273de58ec48da4e869dca65e0340'] 17:18:35.223 T:139830987183872 NOTICE: EMBY.database -> opened: /storage/.kodi/userdata/Database/emby.db - 139831722362040 17:18:35.224 T:139830987183872 NOTICE: EMBY.database -> Verifying emby DB 17:18:35.227 T:139830987183872 NOTICE: EMBY.database -> opened: /storage/.kodi/userdata/Database/MyVideos107.db - 139831185201240 17:18:35.257 T:139830987183872 NOTICE: EMBY.database -> opened: /storage/.kodi/userdata/Database/MyMusic60.db - 139831185201008 17:18:35.260 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserver"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.260 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverport"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.260 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverusername"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.260 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverpassword"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.265 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserver"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.266 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverport"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.266 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverusername"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.267 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverpassword"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.301 T:139830987183872 NOTICE: EMBY.objects.movies -> ADD movie itemid: 1788cc01abaf600fc58a602617f770db - Title: Avatar (2009) 17:18:35.304 T:139830987183872 NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/MyMusic60.db - 139831185201008 17:18:35.305 T:139830987183872 NOTICE: EMBY.database -> opened: /storage/.kodi/userdata/Database/MyMusic60.db - 139831185201008 17:18:35.307 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserver"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.307 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverport"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.307 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverusername"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.307 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverpassword"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.310 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserver"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.310 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverport"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.310 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverusername"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.310 T:139830987183872 DEBUG: JSONRPC: Incoming request: {"params": {"setting": "services.webserverpassword"}, "jsonrpc": "2.0", "id": 1, "method": "Settings.GetSettingValue"} 17:18:35.388 T:139830987183872 NOTICE: EMBY.objects.movies -> movieid: 37 fileid: 37 pathid: 47 17:18:35.398 T:139830987183872 NOTICE: EMBY.objects.movies -> UPDATE movie itemid: 789a13a64d5f67349bd3d551e7e2bdf5 - Title: Casino Royale 17:18:35.424 T:139830987183872 NOTICE: EMBY.objects.movies -> movieid: 30 fileid: 30 pathid: 40 17:18:35.429 T:139830987183872 NOTICE: EMBY.objects.movies -> UPDATE movie itemid: e8f1273de58ec48da4e869dca65e0340 - Title: Knight and Day 17:18:35.440 T:139830987183872 NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/MyMusic60.db - 139831185201008 17:18:35.441 T:139830987183872 NOTICE: EMBY.database -> number of rows updated: 273 17:18:35.447 T:139830987183872 NOTICE: EMBY.database -> commit: /storage/.kodi/userdata/Database/MyVideos107.db 17:18:35.447 T:139830987183872 NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/MyVideos107.db - 139831185201240 17:18:35.448 T:139830987183872 NOTICE: EMBY.database -> number of rows updated: 3 17:18:35.449 T:139830987183872 NOTICE: EMBY.database -> commit: /storage/.kodi/userdata/Database/emby.db 17:18:35.449 T:139830987183872 NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/emby.db - 139831722362040 17:18:35.450 T:139830987183872 NOTICE: EMBY.librarysync -> Updating emby database. 17:18:35.450 T:139830987183872 NOTICE: EMBY.librarysync -> New sync time: client time -2 min: 2017-06-19T15:16:35Z 17:18:35.453 T:139830987183872 NOTICE: EMBY.librarysync -> Updating video library. Like I said I can't, or at least don't know how to get a log of a client that has not updated the movie. If you have an idea how to make a better log I would love to hear it. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 19, 2017 Share Posted June 19, 2017 (edited) First. Please don't post the log text directly in your post. Second, I'm trying to see if live updates trigger anything while Kodi is already running. So simply add something to your server while Kodi is already running, wait a minute or so, grab the kodi log. Do not restart Kodi before grabbing the log. Thanks! Sent from my iPhone using Tapatalk Edited June 19, 2017 by Angelblue05 Link to comment Share on other sites More sharing options...
BasJaspers 3 Posted June 27, 2017 Author Share Posted June 27, 2017 I played some more with it, did not change a thing and now it works as intended... I don't understand it but for me it is solved for now. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 27, 2017 Share Posted June 27, 2017 Awesome, let me know if it happens again in the future. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts