Script failed: call_parent.py

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: call_parent.py

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

URL:http://paste.osmc.io/{"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
http://paste.osmc.io/nitexefema
osmc@osmc:~$ paste-log /var/log/apt/term.log
http://paste.osmc.io/oliduxofix
osmc@osmc:~$ paste-log /home/osmc/.kodi/temp/kodi.log
http://paste.osmc.io/cuqunahibi
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

S

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

S

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

OK

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

S

@sam_nazarko

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

my file is from this commit: https:// github.com/osmc/osmc/commit/e9ca95e6d60167e07c207b0a6bb4947e4aae26b8

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/service.py", line 38, in <module>
                                                m = update_service.Main()
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 174, in __init__
                                                self.scheduler = sched.SimpleScheduler(self.s)
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/simple_scheduler.py", line 19, in __init__
                                                self.set_trigger()
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/simple_scheduler.py", 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

@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 self.day.

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

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.