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 - takoi - 2012-08-07

(2012-08-06, 20:23)Thorbear Wrote: Hi.
i saw this in the log.. does it mean that watchdog doesn't support xbmc multipath sources?

20:03:06 T:4764 DEBUG: service.watchdog: not watching <multipath://E%3a%5cHD%5cFilm%5c/E%3a%5cSD%5cFilm%5c/F%3a%5cHD%5cFilm%5c/F%3a%5cSD%5cFilm%5c/G%3a%5cHD%5cFilm%5c/G%3a%5cSD%5cFilm%5c/>

Actually, I haven't heard of the mulipath feature. It isn't very well-documented so care to explain what it is?


RE: [RELEASE] Library watchdog - Sprinterro - 2012-08-07

(2012-08-02, 15:55)takoi Wrote:
(2012-07-29, 20:14)Sprinterro Wrote: I've got same errors under win xp pro with this addon:

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

Any ideas why ?

Apparently a needed function isn't available in xp. Just change method to polling in addon settings. I'll set it do do this automatically in future releases.

There's the same error whether it's polling or syscall


RE: [RELEASE] Library watchdog - takoi - 2012-08-07

(2012-08-07, 15:39)Sprinterro Wrote:
(2012-08-02, 15:55)takoi Wrote:
(2012-07-29, 20:14)Sprinterro Wrote: I've got same errors under win xp pro with this addon:

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

Any ideas why ?

Apparently a needed function isn't available in xp. Just change method to polling in addon settings. I'll set it do do this automatically in future releases.

There's the same error whether it's polling or syscall

It should be fixed in next release, which will be in the repo very soon. Let me know if it works after you get the update.



RE: [RELEASE] Library watchdog - takoi - 2012-08-08

@anphct this should be fixed in v0.6.1 as well


RE: [RELEASE] Library watchdog - Sprinterro - 2012-08-08

(2012-08-07, 16:14)takoi Wrote:
(2012-08-07, 15:39)Sprinterro Wrote:
(2012-08-02, 15:55)takoi Wrote: Apparently a needed function isn't available in xp. Just change method to polling in addon settings. I'll set it do do this automatically in future releases.

There's the same error whether it's polling or syscall

It should be fixed in next release, which will be in the repo very soon. Let me know if it works after you get the update.

Ok, no problem.



RE: [RELEASE] Library watchdog - anphct - 2012-08-09

(2012-08-08, 16:25)takoi Wrote: @anphct this should be fixed in v0.6.1 as well

Awesome, thankyou so much.



RE: [RELEASE] Library watchdog - Sprinterro - 2012-08-10

(2012-08-07, 16:14)takoi Wrote:
(2012-08-07, 15:39)Sprinterro Wrote:
(2012-08-02, 15:55)takoi Wrote: Apparently a needed function isn't available in xp. Just change method to polling in addon settings. I'll set it do do this automatically in future releases.

There's the same error whether it's polling or syscall

It should be fixed in next release, which will be in the repo very soon. Let me know if it works after you get the update.

There are no errors after the update, so i think it works fine. If i notice any problems, i'll write them here.


RE: [RELEASE] Library watchdog - gates - 2012-08-10

Hi,

I searched on the wiki, and on this thread, and didnt found any tuto or information about option/configuration.

So, if someone can help to understand / configure Smile

All my source are on a SMB share (that's maybe a first problem).
I've mounted the SMB Share on /home/nas/

Do I have to add this directory on xbmc filesystem ?

There is 2 options in this addons syscall, and polling (if I remember well), what is the difference ?




RE: [RELEASE] Library watchdog - takoi - 2012-08-10

(2012-08-10, 15:30)gates Wrote: Do I have to add this directory on xbmc filesystem ?

There is 2 options in this addons syscall, and polling (if I remember well), what is the difference ?
Yes. Basically, the difference is that syscall require less resources. But since you are using samba, you have to select polling. Syscall wont work.



RE: [RELEASE] Library watchdog - wellspokenman - 2012-08-10

Code:
17:21:32 T:2864700272  NOTICE: -->Python Interpreter Initialized<--
17:21:32 T:2864700272   ERROR: Error Type: <type 'exceptions.OSError'>
17:21:32 T:2864700272   ERROR: Error Contents: No space left on device
17:21:32 T:2864700272   ERROR: Traceback (most recent call last):
                                              File "/home/htpc/.xbmc/addons/service.watchdog/default.py", line 130, in <module>
                                                if WATCH_VIDEO: observers.append(watch('video'))
                                              File "/home/htpc/.xbmc/addons/service.watchdog/default.py", line 121, in watch
                                                observer.schedule(event_handler, path=dir, recursive=RECURSIVE)
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/api.py", line 340, in schedule
                                                timeout=self.timeout)
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 752, in __init__
                                                self._inotify = Inotify(watch.path, watch.is_recursive)
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 452, in __init__
                                                self._add_dir_watch(path, recursive, event_mask)
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 634, in _add_dir_watch
                                                self._add_watch(path, mask)
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 657, in _add_watch
                                                Inotify._raise_error()
                                              File "/home/htpc/.xbmc/addons/service.watchdog/watchdog/observers/inotify.py", line 693, in _raise_error
                                                raise OSError(os.strerror(_errnum))
                                            OSError: No space left on device
Version 0.6.1 on xbmcbuntu eden 11.0. There's plenty of space left on the disk. NFS share is mounted under home/htpc/mount/xbmc and rw on it is OK.

Ideas?



RE: [RELEASE] Library watchdog - takoi - 2012-08-10

(2012-08-10, 17:26)wellspokenman Wrote: Version 0.6.1 on xbmcbuntu eden 11.0. There's plenty of space left on the disk. NFS share is mounted under home/htpc/mount/xbmc and rw on it is OK.

Ideas?

How many files do you have on that thing? Try df -i


RE: [RELEASE] Library watchdog - wellspokenman - 2012-08-10

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 19406848 297494 19109354 2% /
udev 213669 504 213165 1% /dev
tmpfs 218592 408 218184 1% /run
none 218592 1 218591 1% /run/lock
none 218592 1 218591 1% /run/shm
192.168.1.252:/c/DATA/Media/Video/Movies
136970240 340994 136629246 1% /home/htpc/mount/xbmc/Movies
192.168.1.252:/c/DATA/Media/Video/TV
136970240 340994 136629246 1% /home/htpc/mount/xbmc/TV
192.168.1.252:/c/DATA
136970240 340994 136629246 1% /home/htpc/mount/nfs/NAS



RE: [RELEASE] Library watchdog - takoi - 2012-08-10

And one from the server. Also, you are using syscall, which I've clearly said wont work over network. You have to use polling.


RE: [RELEASE] Library watchdog - wellspokenman - 2012-08-10

Code:
nas:~# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/md0               65536    9384   56152   15% /
tmpfs                 126614       1  126613    1% /USB
/dev/c/c             136970240  341099 136629141    1% /c
nas:~#

I'm using syscall?

Quote:DESCRIPTION
syscall() performs the system call whose assembly language interface
has the specified number with the specified arguments. Symbolic
constants for system calls can be found in the header file
<sys/syscall.h>.

OK - new to linux. As far as I can tell it is the faster of two options, polling being the other. No idea where/how to change this though, but of course am happy to go down that path if it helps this plugin.


RE: [RELEASE] Library watchdog - wellspokenman - 2012-08-10

the server is a Readynas, in case that helps