Kodi Community Forum
[RELEASE] Library watchdog - 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: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: [RELEASE] Library watchdog (/showthread.php?tid=128896)



RE: [RELEASE] Library watchdog - hjalmad - 2012-11-23

Solved the problem with multiple instances, somehow xbmc used sources that wasnt even listed in sources.xml.
Just wiped the .db files in userdata and added the sources again.

Problem had nothing to do with Library watchdog ... Sorry Smile

Library Watchdog is working like a charm!


RE: [RELEASE] Library watchdog - skoolaman - 2012-11-29

doesn't seem to work in frodo nothing happens in xbmc when i add media to my sources (edpisodes do not show up)


RE: [RELEASE] Library watchdog - vampyrex13 - 2012-11-30

I'm getting the following error in my logs:

12:40:50 T:2911890288 ERROR: Error Type: <type 'exceptions.OSError'>
12:40:50 T:2911890288 ERROR: Error Contents: No space left on device
12:40:50 T:2911890288 ERROR: Traceback (most recent call last):
File "/home/vamp/.xbmc/addons/service.watchdog/default.py", line 151, in <module>
if WATCH_VIDEO: observers.append(watch('video'))
File "/home/vamp/.xbmc/addons/service.watchdog/default.py", line 142, in watch
observer.schedule(event_handler, path=dir, recursive=RECURSIVE)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/api.py", line 340, in schedule
timeout=self.timeout)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 752, in __init__
self._inotify = Inotify(watch.path, watch.is_recursive)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 452, in __init__
self._add_dir_watch(path, recursive, event_mask)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 641, in _add_dir_watch
self._add_watch(full_path, mask)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 657, in _add_watch
Inotify._raise_error()
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 693, in _raise_error
raise OSError(os.strerror(_errnum))
OSError: No space left on device
12:40:50 T:2911890288 INFO: -->End of Python script error report<--


When I run df -k, I get the following.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 57692412 4138536 50623188 8% /
udev 4125992 4 4125988 1% /dev
tmpfs 1654348 964 1653384 1% /run
none 5120 0 5120 0% /run/lock
none 4135868 0 4135868 0% /run/shm
/dev/sdd1 1953511420 921770060 1031741360 48% /mnt/USB-HD
/dev/sdb1 2884285068 2489523880 248247864 91% /home
/dev/sdc1 2884283608 2155898876 581871480 79% /home2

Please help. I'm not sure what else I need to check.



RE: [RELEASE] Library watchdog - takoi - 2012-12-01

(2012-11-30, 23:37)vampyrex13 Wrote: I'm getting the following error in my logs:

12:40:50 T:2911890288 ERROR: Error Type: <type 'exceptions.OSError'>
12:40:50 T:2911890288 ERROR: Error Contents: No space left on device
12:40:50 T:2911890288 ERROR: Traceback (most recent call last):
File "/home/vamp/.xbmc/addons/service.watchdog/default.py", line 151, in <module>
if WATCH_VIDEO: observers.append(watch('video'))
File "/home/vamp/.xbmc/addons/service.watchdog/default.py", line 142, in watch
observer.schedule(event_handler, path=dir, recursive=RECURSIVE)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/api.py", line 340, in schedule
timeout=self.timeout)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 752, in __init__
self._inotify = Inotify(watch.path, watch.is_recursive)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 452, in __init__
self._add_dir_watch(path, recursive, event_mask)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 641, in _add_dir_watch
self._add_watch(full_path, mask)
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 657, in _add_watch
Inotify._raise_error()
File "/home/vamp/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 693, in _raise_error
raise OSError(os.strerror(_errnum))
OSError: No space left on device
12:40:50 T:2911890288 INFO: -->End of Python script error report<--


When I run df -k, I get the following.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 57692412 4138536 50623188 8% /
udev 4125992 4 4125988 1% /dev
tmpfs 1654348 964 1653384 1% /run
none 5120 0 5120 0% /run/lock
none 4135868 0 4135868 0% /run/shm
/dev/sdd1 1953511420 921770060 1031741360 48% /mnt/USB-HD
/dev/sdb1 2884285068 2489523880 248247864 91% /home
/dev/sdc1 2884283608 2155898876 581871480 79% /home2

Please help. I'm not sure what else I need to check.

I think this was discussed once before. "No space left on device" is unrelated to actual space left on device (who would have thought). It probably means you have ridiculously many directories in you media source, more than 8192 to be precise. You should increase the inotify watches limit in that case.


(2012-11-29, 09:55)skoolaman Wrote: doesn't seem to work in frodo nothing happens in xbmc when i add media to my sources (edpisodes do not show up)

Please check the faq in the first post.


Re: [RELEASE] Library watchdog - vampyrex13 - 2012-12-01

Thank you. That did the trick. It's been driving me nuts trying to figure out and I wasn't having much luck searching for the answer. Guess my media collection is a little on the large side.


RE: [RELEASE] Library watchdog - spyda - 2012-12-05

Having a problem getting this add-on to work with XBMC on my Apple TV 2.

Initially my problem is getting the add-on to run at all, the configuration of the shares can come later, I don't think that's the issue as I have it running just fine on another XBMC install on my laptop.

I would LOVE to get this working on the ATV2 but I get a script failed service.watchdog error every time XBMC starts and it obviously fails to work. I have tried reinstalling the add-on but no joy. Have also read this thread and afaics nobody else has mentioned using this with the ATV2.

My error log is here, any suggestions would be much appreciated:

http://xbmclogs.com/show.php?id=18232

Cheers!


RE: [RELEASE] Library watchdog - Japaja - 2012-12-05

(2012-11-29, 09:55)skoolaman Wrote: doesn't seem to work in frodo nothing happens in xbmc when i add media to my sources (edpisodes do not show up)

Works fine for me. Using frodo beta 2.


RE: [RELEASE] Library watchdog - Frozin - 2012-12-07

I'm using frodo beta 2 and it doesn't update Sad


RE: [RELEASE] Library watchdog - spyda - 2012-12-07

Nobody using this on an Apple TV 2 ?


RE: [RELEASE] Library watchdog - Robotica - 2012-12-10

Great Addon! The most efficient available!

A request also:
Could it be possible that you addon can monitor directories and autorefresh them. Specially for pictures. See: http://forum.xbmc.org/showthread.php?tid=36125



RE: [RELEASE] Library watchdog - kreegaa - 2012-12-14

@takoi: lemme join the "not working" club.. the debug logs below. I'm trying to get this working on a Raspberry Pi running openelec Frodo RC1.
the tvshow folder on smb is mounted locally as /storage/media/tvshows. the tvshow folder location given to xbmc is the same local mount (not a link to remote smb share).
i've set to polling with a delay 1 for watchdog. and also have enabled the "clean up" option in watchdog setting along with watch for video and music.. any help? thanks in advance!

http://pastebin.com/39fuKSz6

EDIT: forgot to mention that i removed a file at 18.58.. copied the log from then on..


RE: [RELEASE] Library watchdog - takoi - 2012-12-14

(2012-12-14, 02:05)kreegaa Wrote: @takoi: lemme join the "not working" club.. the debug logs below. I'm trying to get this working on a Raspberry Pi running openelec Frodo RC1.
the tvshow folder on smb is mounted locally as /storage/media/tvshows. the tvshow folder location given to xbmc is the same local mount (not a link to remote smb share).
i've set to polling with a delay 1 for watchdog. and also have enabled the "clean up" option in watchdog setting along with watch for video and music.. any help? thanks in advance!

http://pastebin.com/39fuKSz6

EDIT: forgot to mention that i removed a file at 18.58.. copied the log from then on..

Sorry but your log doesn't show anything. You cut out all the important parts. Please post the entire thing and let me worry about filtering out what's not important. I do realize several people are saying it doesn't work here, but most are on platforms I don't have available to myself. It's very hard to find out why it isn't working when I don't have a debug log that shows what is going wrong.

(2012-12-10, 16:32)Robotica Wrote: Great Addon! The most efficient available!

A request also:
Could it be possible that you addon can monitor directories and autorefresh them. Specially for pictures. See: http://forum.xbmc.org/showthread.php?tid=36125

Sure, I can add that in the next release.



RE: [RELEASE] Library watchdog - spyda - 2012-12-16

Tried Frodo. Latest release seems to get round the python problem on ATV but the content does not update when changes are made on server still :-(


RE: [RELEASE] Library watchdog - Robotica - 2012-12-16

(2012-12-14, 17:58)takoi Wrote:
(2012-12-10, 16:32)Robotica Wrote: Great Addon! The most efficient available!

A request also:
Could it be possible that you addon can monitor directories and autorefresh them. Specially for pictures. See: http://forum.xbmc.org/showthread.php?tid=36125

Sure, I can add that in the next release.

Cool. Specially for pictures? Or a more general implementation where you can setup watchodg to not only update the library but even playlists, filters and/or tags?


RE: [RELEASE] Library watchdog - spyda - 2012-12-17

From the FAQ regarding network shares:

How can I use library watchdog with network shares
1. Manually mount the network share to a local directory.
2. Add this directory as a media source in XBMC. (You may choose to exclude this folder from directory updates. If you do not, you should remove the old media source if you had one.)


Can anyone please clarify step 1? Is this something that needs to be done in XBMC, if so how exactly?

Thanks.