Kodi Community Forum
KCleaner (Clean up temporary files & other stuff) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: KCleaner (Clean up temporary files & other stuff) (/showthread.php?tid=307919)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


RE: KCleaner (Clean up temporary files & other stuff) - redkoatz - 2017-05-31

It's just still not working on mine anymore. Can't think what steps to take to get it working again. Maybe delete the installation folder, or install the test version


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-01

(2017-05-31, 23:01)redkoatz Wrote: It's just still not working on mine anymore. Can't think what steps to take to get it working again. Maybe delete the installation folder, or install the test version

You need to provide more details and a log, I really can't guess what is happening.... Uninstall, delete script.kcleaner folder in addons and userdata any you should be clean. Reboot Kodi and try installing again. Post log if it still fails, describe what happens when you run it. Does the service fail or when you try to run it?

D.


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-01

(2017-05-31, 22:55)junitodx Wrote: Hmm...even the log uploader doesn't seem to work so I needed to upload manually. Hope I did this right.

The log was ok. It is taking it's time somewhere in calculation / reading of files to be cleaned. There is another test version for you in test repo, please update to 2.63 from test repo and repeat the procedure with log Smile let's pinpoint the mother***er Smile


RE: KCleaner (Clean up temporary files & other stuff) - wints - 2017-06-01

Hi, first time trying to use this program and I'm just getting an error saying check logs for more information here's the link to the log https://paste.ubuntu.com/24739890/, I've tried uninstalling and re installing shutting kodi down rebooting shield and trying again but still same error, any help would be most appreciated thanks


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-01

I can't download log... "Plain form not available for deep linking." error.... I even created an account Smile


RE: KCleaner (Clean up temporary files & other stuff) - wints - 2017-06-01

ok sorry about that could you please try this one https://pastebin.com/uPFy6SJG


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-01

Hmm, very strange error; and vey simple - permission denied on a file?

Code:
20:52:30.634 T:139357795408   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: (13, 'Permission denied', '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png')
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.kcleaner/default.py", line 1601, in <module>
                                                totalSizes = CalcDeleted()
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.kcleaner/default.py", line 81, in CalcDeleted
                                                fileSize = os.path.getsize(os.path.join(root, f))
                                              File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/genericpath.py", line 57, in getsize
                                            OSError: (13, 'Permission denied', '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png')
                                            -->End of Python script error report<--
20:52:30.801 T:138704618576   ERROR: GetDirectory - Error getting plugin://script.kcleaner/

/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png

Can you check permissions on this file/folder?


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-02

(2017-05-31, 00:06)junitodx Wrote: Hi,

I really love this addon for keeping my install tidy and it used to start up pretty fast for me but now when I first start it up I get a "Busy please wait" pop-up which runs anywhere from 5 to 7 minutes before I eventually get to the actual KCleaner main screen that allows me to choose Clean, Settings, etc. If I even then go into the Settings then back out to get to the KCleaner main screen it again takes about 5 to 7 minutes. Is this the way the newer versions are supposed to work or do I have something messed up?
I am running SPMC on a Nvidia Shield and this happens with both the 2.6 and 2.61 versions of KCleeaner.
As you can see in this small log snippet, it takes about 6 minutes from the time I start the app until the time it starts to list the addons and space that can be saved:

NOTICE: KCLEANER >> STARTED VERSION 2.61
17:42:39.221 T:138835293264 NOTICE: KCLEANER SERVICE >> RUNNING APP...
17:42:39.538 T:138715202640 ERROR: GetDirectory - Error getting plugin://script.kcleaner/
17:42:39.539 T:138715202640 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.kcleaner/) failed
17:42:40.555 T:138880705616 NOTICE: KCLEANER SERVICE >> EXIT
17:42:45.567 T:138815718480 ERROR: CPythonInvoker(24, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.kcleaner/default.py): script didn't stop in 5 seconds - let's kill it
17:42:45.730 T:138863879248 NOTICE: KCLEANER >> STARTED VERSION 2.61
17:42:45.734 T:138863879248 NOTICE: KCLEANER SERVICE >> RUNNING APP...
17:48:38.819 T:138863879248 NOTICE: KCLEANER >> INSTALLED ADDONS >>audiodecoder.nosefart

Thanks in advance for any help

There is new test version in the repo. I think it is taking so long when calculating thumbnails...


RE: KCleaner (Clean up temporary files & other stuff) - redkoatz - 2017-06-02

(2017-05-31, 23:01)redkoatz Wrote: It's just still not working on mine anymore. Can't think what steps to take to get it working again. Maybe delete the installation folder, or install the test version

The exact same thing has happened on a second pi3 (my cousins) so I know now this isn't unique to me. Its Definitley k cleaner. No other add-on has problems. Only k cleaner. We both have libre elect, auto updated


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-02

I'd need a log to see what is going on. I have tried it on Kodi 17.3 on my Windows PC and it was working OK.


RE: KCleaner (Clean up temporary files & other stuff) - wints - 2017-06-02

(2017-06-01, 23:43)DaLanik Wrote: Hmm, very strange error; and vey simple - permission denied on a file?

Code:
20:52:30.634 T:139357795408   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: (13, 'Permission denied', '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png')
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.kcleaner/default.py", line 1601, in <module>
                                                totalSizes = CalcDeleted()
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.kcleaner/default.py", line 81, in CalcDeleted
                                                fileSize = os.path.getsize(os.path.join(root, f))
                                              File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/genericpath.py", line 57, in getsize
                                            OSError: (13, 'Permission denied', '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png')
                                            -->End of Python script error report<--
20:52:30.801 T:138704618576   ERROR: GetDirectory - Error getting plugin://script.kcleaner/

/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f/ffd2d74f.png

Can you check permissions on this file/folder?

ok checked folder permissions and this is what I see Image

tried changing permissions but then got this

Image

any ideas on how to change permissions tried google but wasn't very helpful. Cheers


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-03

Can you look at one of the other thumbnail files and see how they have permissions setup and try setting the same?

It is really strange error since it I am not writing there, only reading and it doesn't even let it read! I can try making some logic for this error but it is definitely not usual Smile


RE: KCleaner (Clean up temporary files & other stuff) - junitodx - 2017-06-03

Hi DaLanik,

Since you mentioned it could be the thumbnails slowing down the addon, I ran Profile Cleaner addon first to clean up thumbnails, and I think it cleared out about 6k thumbnails. Then I ran KCleaner v2.64 but it still takes about 5 minutes from startup to getting to the main KCleaner screen. I asked Karellen to take a look at my log file before I posted it to make sure I wasn't breaking any rules and he said it was good to go so my post shouldn't disappear this time Tongue

Also with version 2.64 the log file is significantly larger so I had to go to zerobin instead of pastebin to post it:

https://zerobin.net/?f2a0e83bacec1700#0yCG0eodLvsu7EjExwLCzDZljjJqs2mO4QNvRfn6DjY=


RE: KCleaner (Clean up temporary files & other stuff) - User 325245 - 2017-06-04

(2017-06-03, 23:59)junitodx Wrote: Hi DaLanik,

Since you mentioned it could be the thumbnails slowing down the addon, I ran Profile Cleaner addon first to clean up thumbnails, and I think it cleared out about 6k thumbnails. Then I ran KCleaner v2.64 but it still takes about 5 minutes from startup to getting to the main KCleaner screen. I asked Karellen to take a look at my log file before I posted it to make sure I wasn't breaking any rules and he said it was good to go so my post shouldn't disappear this time Tongue

Also with version 2.64 the log file is significantly larger so I had to go to zerobin instead of pastebin to post it:

https://zerobin.net/?f2a0e83bacec1700#0yCG0eodLvsu7EjExwLCzDZljjJqs2mO4QNvRfn6DjY=

Can you try without option "Ignore other -> Delete only thumbs not in database" ? If it is any faster without this option?

Code:
06:59:13.045 T:138882827344 _____________________________ start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/
06:59:13.045 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/
06:59:13.047 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/temp
06:59:13.047 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/scrapers
06:59:13.048 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/scrapers/metadata.themoviedb.org
06:59:13.048 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/temp/scrapers/metadata.tvdb.com
06:59:13.048 T:138882827344 _____________________________ end
06:59:13.048 T:138882827344 _____________________________ start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/packages
06:59:13.048 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/packages
06:59:13.049 T:138882827344 _____________________________ end
06:59:13.049 T:138882827344 _____________________________ start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/
06:59:13.051 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/
06:59:13.051 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/Video
06:59:13.051 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/Video/Bookmarks
06:59:13.232 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/0
06:59:28.171 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/1
06:59:44.074 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/2
06:59:59.555 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/3
07:00:16.554 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/4
07:00:31.607 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/5
07:00:47.045 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/6
07:01:02.925 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/7
07:01:19.907 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/8
07:01:35.804 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/9
07:01:51.635 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/a
07:02:08.098 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/b
07:02:23.285 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/c
07:02:39.389 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/d
07:02:54.657 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/e
07:03:10.741 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Thumbnails/f
07:03:26.313 T:138882827344 _____________________________ end
07:03:26.317 T:138882827344 _____________________________ start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/addon_data/script.artwork.downloader/temp
07:03:26.318 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/addon_data/script.artwork.downloader/temp
07:03:26.318 T:138882827344 _____________________________ end
07:03:26.318 T:138882827344 _____________________________ start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Database/backups
07:03:26.318 T:138882827344  root start: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/userdata/Database/backups
07:03:26.319 T:138882827344 _____________________________ end
07:03:26.354 T:138882827344 KCLEANER >> FINISHED

As you can see in the (filtered) log, it takes most of the time calculating thumbnails... from 06:59:13.051 until 07:03:26.313


RE: KCleaner (Clean up temporary files & other stuff) - wints - 2017-06-04

(2017-06-03, 22:08)DaLanik Wrote: Can you look at one of the other thumbnail files and see how they have permissions setup and try setting the same?

It is really strange error since it I am not writing there, only reading and it doesn't even let it read! I can try making some logic for this error but it is definitely not usual Smile

Hi DaLanik, think I've sorted it I have an app called FTP Server running on the shield this allows me to ftp into the shields dir/ from within windows so went into the setting in that app all looked ok but the only thing I changed was allow anonymous users login rebooted loaded kodi and tried to run KCleaner and success ran no problem Smile hope this as sorted it, many thanks for your help