Auto Updating Addons

I’m running Kodi on several devices in my household(android,ubuntu, win7,OSMC RPI1,OSMC RPI2,OSMC RPI1).

Autoupdate of addons works as expected on all devices except those running OSMC. When I go to add-on browser and pull up the side blade, it shows that the system was last updated weeks ago. If I select ‘check for updates’, the repos are checked and addons updated.

I’ve tried deleting the Addons20.db. This gets the addons updated once, but I run into the same problem with Kodi not autoupdating addons after that.

Does the OSMC updater have any impact on updating Kodi addons? I selected never check for updates in the OSMC update settings. Does that prevent Kodi from autoupdating?

No.

Yes.

http://kodi.wiki/view/Add-on_manager#Update_options

Just to clarify, MYOSMC update settings are set to never.(I don’t want OSMC itself to check for updates.) In Kodi’s add-on manager, I have the update options for auto updates set to ‘On’.

Yes, I’m clear on that. If this is the case then, we need to see debug enabled logs that demonstrate Kodi’s attempt to “autoupdate” installed addons failing.

http://paste.osmc.io/ukuqocoyip


Both logs, current boot and last boot, indicate you have navigated to the second screenshot here but have NOT selected “Check for updates”.

11:21:21 19.615728 T:1956697008 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 11:21:21 19.615837 T:1956697008 DEBUG: OnKey: right (0xf083) pressed, action is Right 11:21:22 20.222654 T:1956697008 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 11:21:22 20.222801 T:1956697008 DEBUG: OnKey: right (0xf083) pressed, action is Right 11:21:22 20.602133 T:1956697008 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 11:21:22 20.602301 T:1956697008 DEBUG: OnKey: long-right (0x100f083) pressed, action is Right 11:21:26 23.272562 T:1956697008 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0 11:21:26 23.434071 T:1956697008 DEBUG: OnKey: return (0xf00d) pressed, action is Select 11:21:26 23.434313 T:1956697008 DEBUG: Activating window ID: 10004 11:21:26 23.671875 T:1956697008 DEBUG: ------ Window Deinit (Home.xml) ------ 11:21:26 23.685404 T:1956697008 DEBUG: ------ Window Init (Settings.xml) ------ 11:21:26 23.685493 T:1956697008 INFO: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY 11:21:26 23.779001 T:1756820464 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x6f305d90 11:21:26 23.779995 T:1756820464 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(402672), nBufferAlignmen(16) 11:21:26 23.803631 T:1756820464 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x6f3269c0 11:21:26 23.804422 T:1756820464 DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16) 11:21:26 23.831581 T:1756820464 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x6f305d90 11:21:26 23.832598 T:1756820464 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x6f3269c0 11:21:26 23.832756 T:1756820464 DEBUG: DecodeJpegToTexture: decoded special://skin/backgrounds/settings.jpg 1024x576 11:21:27 24.748604 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:27 24.748735 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:27 24.985975 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:27 24.986116 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:28 25.168728 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:28 25.168882 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:28 25.355255 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:28 25.355394 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:28 25.545254 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:28 25.545389 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:28 25.998810 T:1956697008 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 11:21:28 25.998968 T:1956697008 DEBUG: OnKey: down (0xf081) pressed, action is Down 11:21:29 26.643972 T:1956697008 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0 11:21:29 26.775532 T:1956697008 DEBUG: OnKey: return (0xf00d) pressed, action is Select 11:21:29 26.775742 T:1956697008 DEBUG: Activating window ID: 10040 11:21:29 27.039890 T:1956697008 DEBUG: ------ Window Deinit (Settings.xml) ------ 11:21:29 27.056377 T:1956697008 DEBUG: ------ Window Init (AddonBrowser.xml) ------ 11:21:29 27.056515 T:1956697008 INFO: Loading skin file: AddonBrowser.xml, load type: KEEP_IN_MEMORY 11:21:30 27.213009 T:1956697008 DEBUG: CGUIMediaWindow::GetDirectory () 11:21:30 27.213125 T:1956697008 DEBUG: ParentPath = [] 11:21:30 27.274574 T:1594872816 DEBUG: Thread BackgroundLoader start, auto delete: false 11:21:30 27.277813 T:1594872816 DEBUG: Thread BackgroundLoader 1594872816 terminating 11:21:32 29.182703 T:1956697008 DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0 11:21:32 29.182877 T:1956697008 DEBUG: OnKey: left (0xf082) pressed, action is Left 11:21:34 31.185421 T:1956697008 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 11:21:34 31.185545 T:1956697008 DEBUG: OnKey: right (0xf083) pressed, action is Right 11:21:37 34.132648 T:1956697008 DEBUG: Keyboard: scancode: 0x01, sym: 0x001b, unicode: 0x001b, modifier: 0x0 11:21:37 34.132786 T:1956697008 DEBUG: OnKey: escape (0xf01b) pressed, action is PreviousMenu 11:21:37 34.132885 T:1956697008 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate 11:21:37 34.388794 T:1956697008 DEBUG: ------ Window Deinit (AddonBrowser.xml) ------ 11:21:37 34.402016 T:1956697008 DEBUG: CGUIWindowManager::PreviousWindow: Activate new 11:21:37 34.402126 T:1956697008 DEBUG: ------ Window Init (Settings.xml) ------

Your right I didn’t select “Check for updates”. If I do select “Check for updates”, those addons will be updated as expected.

The 1st screenshot shows that an update is available. Even with “Auto updates” set to on, Kodi still will not autoupdate.

The OSMC devices are the only ones displaying this behaviour. Autoupdate works on all my other devices.

I took this from my Ubuntu setup.
13:10:24 T:139960926472320 DEBUG: CRepositoryUpdater: previous update at 04/15/2016 1:41:33 PM, next at 04/16/2016 1:41:33 PM
RepositoryUpdater runs on every startup. The only time see RepositoryUpdater running on OSMC is if I manually check for update.

Only option then, since you are the only person that appears to be suffering this issue,

sudo systemctl stop mediacenter
mv .kodi kodi.bak
sudo systemctl start mediacenter

and re-configure Kodi from scratch. Watch that this fresh Kodi configuration behaves as expected. That is unless of course you are willing to do a full re-image from scratch.

EDIT: also as noted from your logs. Running apt-get upgrade will result in a broken OSMC. Always use
apt-get dist-upgrade

Thanks for the heads up.

Followed your suggestion and re-configured Kodi from scratch. RepositoryUpdater shows
12:36:53 4550.229492 T:1620571120 DEBUG: CRepositoryUpdater: previous update at 04/17/2016 12:36:52 PM, next at 04/18/2016 12:36:52 PM
I’ll see how it plays out.

Since i might have broken OSMC using apt-get upgrade, I’ll try to do a full re-image on another sd card and see if I can replicate the issue