Script failed:

Today when I looked at Kodi on Vero, I got a dialog box with the generic update error:

OSMC update error
Error installing:
Please report this to the OSMC forum.

I clicked OK and the Vero froze up requiring a restart.

I tried a manual update, but got the error message:

script failed:

I tried to upload the logs, but get an error:

URL:{"message}:"Document exceeds maximum length.

Should I upload a specific log file that doesn’t exceed the maximum length? If so, which one(s)?

osmc@osmc:~$ sudo systemctl stop mediacenter
osmc@osmc:~$ sudo journalctl | paste-log
osmc@osmc:~$ paste-log /var/log/apt/term.log
osmc@osmc:~$ paste-log /home/osmc/.kodi/temp/kodi.log
osmc@osmc:~$ sudo apt-get update
Fetched 389 kB in 18s (21.0 kB/s)                                              
Reading package lists... Done

I think this bug may be caused by the backup addon and Updater running at the same time. We have resolved this.

Try apt-get -y dist-upgrade and seeing if the problem persists after


1 Like

Do you mean the standalone Kodi backup addon, or the MyOSMC Update backup module?

I’d use the later instead of the former but for the fact that the OSMC Update backup module can’t browse my network shares, while the Kodi Backup addon can.

CC @Karnage

I would still recommend a dist-upgrade as there have been a couple of fixes to the addon, and then seeing if the issue still persists.

Will investigate whether we can add browsing of network shares. I remember we had some problems doing it


I did the distribution upgrate and manual updating seems to work again.


Probably write it off as a screw up on our end then



even after sudo apt-get update && sudo apt-get -f dist-upgrade and reboot now

my file is from this commit: https://

10:25:21 T:1767281696   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: day is out of range for month
                                            Traceback (most recent call last):
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/", line 38, in <module>
                                                m = update_service.Main()
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/", line 174, in __init__
                                                self.scheduler = sched.SimpleScheduler(self.s)
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/", line 19, in __init__
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/", line 48, in set_trigger
                                                self.trigger_time = self.set_trigger_time( right_now.replace(day=new_day) )
                                            ValueError: day is out of range for month
                                            -->End of Python script error report<--

CC @karnage

I think this happens because when you sum time variable + int variable it may return a day like 33 if you choose sunday as

import datetime
right_now =
right_now_weekday = right_now.weekday()
day = 6
new_day = + day - right_now_weekday
print new_day

Thanks, I had a fix offline for a few weeks, but hadn’t committed it and had forgotten that I needed to.

Committed to dev branch now.