Jump to content

Sync not starting on android


Samkook
 Share

Recommended Posts

Samkook

I've been using kodi-next-gen on my libreelec htpc for a couple months without any issues, syncs great and fast, but I also want to occasionally use it on my tablet and after the initial sync, which works without issues, it won't sync when I open kodi. Only once have I managed to have it start a sync, as I was pressing the exit button so it never completed.

The dashboard sees the device fine and I can send messages to the client, but the sync just won't start, even if I leave it open for 10-20 mins(not sure how long it had been open the one time it started to sync).

I tried the stable version first and then switched to the beta one today but it didn't change anything.

Is there a way to force it to start the sync?

Edit: I left it open for a while and the sync eventually started, didn't calculate exactly how long it took but it took quite a long time.

Edit2: Looking at the log, it took 15 minutes and a few secs to start the sync and I think it may have taken all that time just to retrieve changes, if I'm interpreting it right. If that's the case, it might be a good idea to display a message so we know it's actually doing something since I'm pretty sure the log didn't update until the sync finished or I only checked it on the stable version, not 100% sure.

Spoiler

2021-08-05 20:09:11.392 T:25581    INFO <general>: INFO: EMBY.helper.utils.Utils: DeviceId loaded: 120abd7c-ae68-4b99-9bfd-aa8a28600e2b
2021-08-05 20:09:11.395 T:25581 WARNING <general>: WARNING: EMBY.entrypoint.Service: --->>>[ EMBY-NEXT-GEN ]
2021-08-05 20:09:11.401 T:25581    INFO <general>: INFO: EMBY.helper.setup: ---<[ setup ]
2021-08-05 20:09:11.402 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: Begin connectToServer
2021-08-05 20:09:11.402 T:25581    INFO <general>: INFO: EMBY.emby.main: ---[ INIT EMBYCLIENT: ]---
2021-08-05 20:09:11.405 T:25581    INFO <general>: INFO: EMBY.database.database: [emby] 0 rows updated.
2021-08-05 20:09:11.406 T:25581    INFO <general>: INFO: EMBY.emby.connect.Connect: --[ server/DEFAULT ]
2021-08-05 20:09:11.407 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: Begin connect
2021-08-05 20:09:12.409 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: Found Servers: []
2021-08-05 20:09:12.410 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: Begin connectToServers, with 1 servers
2021-08-05 20:09:12.410 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: testing connection mode 2 with server RuiBox
2021-08-05 20:09:12.410 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: tryConnect url: http://192.168.1.13:8096/emby/system/info/public
2021-08-05 20:09:12.447 T:25581    INFO <general>: INFO: EMBY.core.connection_manager: calling onSuccessfulConnection with connection mode 2 with server RuiBox
2021-08-05 20:09:12.471 T:25581    INFO <general>: INFO: EMBY.emby.main: User is authenticated.
2021-08-05 20:09:12.474 T:25581    INFO <general>: INFO: EMBY.emby.main: ---[ START EMBYCLIENT: 5b69577d38174c5fa98d8d97affe0a7b ]---
2021-08-05 20:09:12.497 T:25619    INFO <general>: INFO: Emby.core.ws_client: --->[ websocket ]
2021-08-05 20:09:12.498 T:25581    INFO <general>: INFO: EMBY.hooks.monitor.Monitor: [ Server Online ]
2021-08-05 20:09:12.498 T:25581 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2021-08-05 20:09:12.507 T:25622 WARNING <general>: EMBY.hooks.webservice.WebService--->[ webservice/57578 ]
2021-08-05 20:09:12.520 T:25581    INFO <general>: INFO: EMBY.hooks.monitor.Monitor: [ Server Online ]
2021-08-05 20:09:12.523 T:25624 WARNING <general>: WARNING: EMBY.library.Library: --->[ library ]
2021-08-05 20:09:12.561 T:25624    INFO <general>: INFO: EMBY.database.database: [emby] 4 rows updated.
2021-08-05 20:09:12.605 T:25624    INFO <general>: INFO: EMBY.library.Library: --[ retrieve changes ] 2021-06-19T05:00:52z
2021-08-05 20:09:15.107 T:25583    INFO <general>: CPythonInvoker(2, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.xbmc.versioncheck/resources/lib/runner.py): script successfully run
2021-08-05 20:09:15.229 T:25583    INFO <general>: Python interpreter stopped
2021-08-05 20:10:43.639 T:25546    INFO <general>: Samba is idle. Closing the remaining connections
2021-08-05 20:12:27.857 T:25565    INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-08-05 20:12:27.859 T:25565    INFO <general>: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4
2021-08-05 20:12:27.881 T:25565    INFO <general>: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 56704 m_frames: 1772 m_frameSize: 8 channels: 2
2021-08-05 20:20:20.460 T:25520    INFO <general>: CAndroidUtils: Preferred refresh rate: 60.000004
2021-08-05 20:20:20.467 T:25520    INFO <general>: CAndroidUtils: Current resolution: 1920x1200 1920x1200 @ 60.000004 - Full Screen
2021-08-05 20:20:21.582 T:25546    INFO <general>: CWinSystemAndroid::DestroyWindow
2021-08-05 20:20:21.594 T:25520 WARNING <general>: CPeripheralBusAndroid: failed to update input device with ID 3 because it couldn't be found
2021-08-05 20:22:09.683 T:25546    INFO <general>: CAndroidUtils: SetNativeResolution: -1: 1920x1200 1920x1200@60.000004
2021-08-05 20:22:09.687 T:25546    INFO <general>: GL_VENDOR = ARM
2021-08-05 20:22:09.688 T:25546    INFO <general>: GL_RENDERER = Mali-G71
2021-08-05 20:22:09.688 T:25546    INFO <general>: GL_VERSION = OpenGL ES 3.2 v1.r16p0-01rel0.###other-sha0123456789ABCDEF0###
2021-08-05 20:22:09.688 T:25546    INFO <general>: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.20
2021-08-05 20:22:09.688 T:25546    INFO <general>: GL_EXTENSIONS = GL_EXT_debug_marker GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_required_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_OES_fbo_render_mipmap GL_OES_element_index_uint GL_EXT_shadow_samplers GL_OES_texture_compression_astc GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_debug GL_EXT_occlusion_query_boolean GL_EXT_disjoint_timer_query GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_OES_texture_3D GL_EXT_texture_storage GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_OES_surfaceless_context GL_OES_texture_stencil8 GL_EXT_shader_pixel_local_storage GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ARM_mali_program_binary GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OES_texture_storage_multisample_2d_array GL_OES_shader_image_atomic GL_EXT_robustness GL_EXT_draw_buffers_indexed GL_OES_draw_buffers_indexed GL_EXT_texture_border_clamp GL_OES_texture_border_clamp GL_EXT_texture_cube_map_array GL_OES_texture_cube_map_array GL_OES_sample_variables GL_OES_sample_shading GL_OES_shader_multisample_interpolation GL_EXT_shader_io_blocks GL_OES_shader_io_blocks GL_EXT_tessellation_shader GL_OES_tessellation_shader GL_EXT_primitive_bounding_box GL_OES_primitive_bounding_box GL_EXT_geometry_shader GL_OES_geometry_shader GL_ANDROID_extension_pack_es31a GL_EXT_gpu_shader5 GL_OES_gpu_shader5 GL_EXT_texture_buffer GL_OES_texture_buffer GL_EXT_copy_image GL_OES_copy_image GL_EXT_shader_non_constant_global_initializers GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float GL_EXT_YUV_target GL_OVR_multiview GL_OVR_multiview2 GL_OVR_multiview_multisampled_render_to_texture GL_KHR_robustness GL_KHR_robust_buffer_access_behavior GL_EXT_draw_elements_base_vertex GL_OES_draw_elements_base_vertex GL_EXT_protected_textures GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_EGL_image_array
2021-08-05 20:22:09.719 T:25520    INFO <general>: CAndroidUtils: Preferred refresh rate: 60.000004
2021-08-05 20:22:09.719 T:25520    INFO <general>: CAndroidUtils: Current resolution: 1920x1200 1920x1200 @ 60.000004 - Full Screen
2021-08-05 20:24:24.629 T:25624    INFO <general>: INFO: EMBY.library.Library: ---[ removed:348 ]
2021-08-05 20:24:24.629 T:25624    INFO <general>: INFO: EMBY.library.Library: --<[ retrieve changes ]
2021-08-05 20:24:25.135 T:25624    INFO <general>: INFO: EMBY.library.Library: -->[ q:sort/3040377176 ]
2021-08-05 20:24:25.137 T:25624    INFO <general>: INFO: EMBY.library.Library: [ DELAY UPDATES ]
2021-08-05 20:24:25.302 T:27221    INFO <general>: Skipped 1 duplicate messages..

 

Edited by Samkook
Link to comment
Share on other sites

quickmic
11 hours ago, Samkook said:

Kodi log seems fine, but looks you had many updates queued.

It's the incremental sync on Kodi start and it syncs all items updated on Emby server since last Kodi start.

According to your log, last incremental sync was on 2021-06-19T05:00:52.

I think there are no issues, do you have any problems after sync?

Link to comment
Share on other sites

NakedPirate

Seems i have the same problem. Installed it on Kodi/Android-TV...nothing happens.
The old Emby for Kodi just asked and replaced the Kodi database.
With Next-Gen I only see the empty Movie or Show windows, if i update the Kodi library nothing happens (no paths or media sources in Kodi, because I want the emby library).
I chose "the addon method" as always. With Ebruary Skin, I can access emby, but with every other skin I see nothing.
Waited a few hours, but nothing is happening...since it's an Android-TV, I have no idea how to get a log....

Thanks very much.

Link to comment
Share on other sites

Samkook

Yeah, there doesn't seem to be any issue now.

The problem though is that I didn't know it was doing anything since the only thing I would see is emby connecting to my user and then nothing after plus the kodi log seemed to stop writing during that time so I kept closing kodi trying to figure out why the sync wouldn't start since I'm used to seeing a message of it doing stuff right away.

A message that the incremental sync is starting would be great to have, that way, we would know it's working and doing something even if it takes a long time.

Link to comment
Share on other sites

quickmic
1 hour ago, NakedPirate said:

Seems i have the same problem. Installed it on Kodi/Android-TV...nothing happens.
The old Emby for Kodi just asked and replaced the Kodi database.
With Next-Gen I only see the empty Movie or Show windows, if i update the Kodi library nothing happens (no paths or media sources in Kodi, because I want the emby library).
I chose "the addon method" as always. With Ebruary Skin, I can access emby, but with every other skin I see nothing.
Waited a few hours, but nothing is happening...since it's an Android-TV, I have no idea how to get a log....

Thanks very much.

please send me a kodi.log. Also you can try 6.x experimental versions, but it still has a bug with distributed content (other thread).

Edited by quickmic
  • Like 1
Link to comment
Share on other sites

quickmic
16 minutes ago, Samkook said:

A message that the incremental sync is starting would be great to have, that way, we would know it's working and doing something even if it takes a long time.

Yep, you are right. I'm working on eye candy too 😉

Link to comment
Share on other sites

Samkook
1 hour ago, NakedPirate said:

since it's an Android-TV, I have no idea how to get a log....

Look into the addon Kodi Logfile Uploader, never used it myself but that should allow you to upload the log somewhere.

  • Like 1
Link to comment
Share on other sites

quickmic
Just now, Samkook said:

Look into the addon Kodi Logfile Uploader, never used it myself but that should allow you to upload the log somewhere.

Send me a PM or drop log here.

Also can do it manually without Kodi Logfile Uploader. just upload the kodi.log file in Kodi's temp folder.

  • Like 1
Link to comment
Share on other sites

quickmic
16 minutes ago, Samkook said:

NakedPirate said that they didn't know how to access it on androidtv so that's why I suggested this.

I've send you a PM

  • Thanks 1
Link to comment
Share on other sites

NakedPirate
17 hours ago, Samkook said:

Look into the addon Kodi Logfile Uploader, never used it myself but that should allow you to upload the log somewhere.

Works like a charm! Thanks

Link to comment
Share on other sites

NakedPirate
17 hours ago, quickmic said:

Send me a PM or drop log here.

Also can do it manually without Kodi Logfile Uploader. just upload the kodi.log file in Kodi's temp folder.

Log-Link is in your inbox. Thanks for your time!
Greetings

Link to comment
Share on other sites

NakedPirate

Tried version 6.0.3 on advice of chief quickmic and it seems this version does the job as usual and requested.
Still figuring out  a problem with shows - sync got stuck at a certain point, will address this later, if I can't find a solution.

Thanks very much

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
 Share

×
×
  • Create New...