Hi guys,
I have had my Vero4K for a few years and take it out now and again to try new things. I am currently trying to get it to play nice with rclone.
I did a clean install, fully updated per the GUI, using default skin an nothing else installed.
I installed rclone an mounted my cloud drive and set Kodi to scan on startup.
I have disable Kodi (mediacenter) from starting up on boot (systemctl disabled service). This is because rclone needs to start and refresh the directory tree before anything scans it. It saves the directory tree in RAM so if you went to the top level and did someting like “find .” it would traverse the directory tree in a few seconds.
I have a cronjob that loads the directory tree into RAM (VFS refresh) and then starts Kodi/mediacenter (service mediacenter start)
Kodi loads up and starts scanning. It scans initially for changes, finds them and then I see it adding the content. This works away for about 10 - 15 minutes and then the screen freezes. I can still SSH in a this point but it is extremely slow. Like if I typed “ls” the letters would show up one by one after about 30 seconds. If I try to do anything such as stop/restart mediacenter it does not work or freezes altogether. If I try to kill -9 pidOfMediacenter it will also freeze. If I do nothing at all it will still freeze about 5 min after Kodi feezes.
Process of elimiation that it is Mediacenter/Kodi: If I never start Mediacenter the Vero will not freeze and I can ssh in any time and it works as expected. If I share out the rclone mount over samba/cifs that also works as expected so no issues accessing the data.
I opened up the SystemInfo the last few times and I see the RAM gradually get used up. Bt the time it freezes after 10 min the RAM is at 500MB so still plenty.
I also did a tail -f of the Kodi log file and this is all I saw…
2024-04-22 18:12:06.659 T:3137 error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.sledovanitv.cz/
2024-04-22 18:12:06.659 T:3137 error <general>: GetDirectory - Error getting /home/osmc/.kodi/userdata/addon_data/pvr.vbox/
2024-04-22 18:12:06.659 T:3137 error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.vbox/
2024-04-22 18:12:06.660 T:3137 error <general>: GetDirectory - Error getting /home/osmc/.kodi/userdata/addon_data/pvr.vuplus/
2024-04-22 18:12:06.660 T:3137 error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.vuplus/
2024-04-22 18:12:06.939 T:3137 info <general>: VideoInfoScanner: Starting scan ..
2024-04-22 18:12:24.484 T:3130 info <general>: [service.upnext] UpNextMonitor -> Service started
2024-04-22 18:12:39.466 T:3129 error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:12:42.125 T:3117 info <general>: [ script.embuary.helper ] Service: Started
2024-04-22 18:12:42.126 T:3117 info <general>: [ script.embuary.helper ] Service: Player monitor started
2024-04-22 18:12:48.994 T:3118 info <general>: [ script.embuary.info ] Refreshing next airing database
2024-04-22 18:12:54.109 T:3118 info <general>: [ script.embuary.info ] Finished next airing database refreshing
2024-04-22 18:15:15.168 T:3191 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'datetime.timedelta' object has no attribute 'tzinfo'
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.embuary.info/default.py", line 7, in <module>
from resources.lib.helper import *
File "/home/osmc/.kodi/addons/script.embuary.info/resources/lib/helper.py", line 15, in <module>
import arrow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/__init__.py", line 2, in <module>
from .api import get, now, utcnow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/api.py", line 12, in <module>
from arrow.arrow import TZ_EXPR, Arrow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 1885, in <module>
Arrow.min = Arrow.fromdatetime(dt_datetime.min)
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 324, in fromdatetime
if dt.tzinfo is None:
AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
-->End of Python script error report<--
2024-04-22 18:16:27.650 T:3200 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'datetime.timedelta' object has no attribute 'tzinfo'
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.embuary.info/default.py", line 7, in <module>
from resources.lib.helper import *
File "/home/osmc/.kodi/addons/script.embuary.info/resources/lib/helper.py", line 15, in <module>
import arrow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/__init__.py", line 2, in <module>
from .api import get, now, utcnow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/api.py", line 12, in <module>
from arrow.arrow import TZ_EXPR, Arrow
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 1885, in <module>
Arrow.min = Arrow.fromdatetime(dt_datetime.min)
File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 324, in fromdatetime
if dt.tzinfo is None:
AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
-->End of Python script error report<--
2024-04-22 18:17:08.044 T:3083 info <general>: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:08.101 T:3129 error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:17:10.696 T:3083 info <general>: Loading skin file: SettingsCategory.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:10.805 T:3129 error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:17:15.591 T:3083 info <general>: Loading skin file: SettingsSystemInfo.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:15.678 T:3129 error <general>: Window Translator: Can't find window videolibrary