Page 1 of 1

Reload library in VirtualBox machine

PostPosted: Wed Aug 26, 2015 5:28 pm
by manoluspaguer
Hi,

I'm running my Serviio server in a virtual Ubuntu 14.04.3TLS machine (virtualbox). The library is located in a shared folder between my host and guest machines. The thing is, I have noticed that when new files are placed in this shared folder, they are not automatically added to the library, so I have to refresh it manually using the serviio console.

Do you know if there is any kind of problem with inotify in shared folders? Any solution?

In case this is a Virtualbox issue (it will, probably), is there any way to force a refresh any X minutes?

Thank you very much!

Re: Reload library in VirtualBox machine

PostPosted: Thu Aug 27, 2015 1:13 pm
by DenyAll
Search the forum for "inotify". There are some issues, but whether they apply in your case....??? (I'm not a Linux user... thankfully :-))
If you want you can use the POLLER method to revert back to refreshing every XX minutes then no probem - see http://wiki.serviio.org/doku.php?id=lib ... er_scanner and http://serviio.org/index.php?option=com ... icle&id=43.

Re: Reload library in VirtualBox machine

PostPosted: Fri Aug 28, 2015 8:51 pm
by manoluspaguer
Hi,

thank you for your answer. Yeah, I had a look but other posts are not exactly the same scenario so I can not use their solutions, if any. I have been investigating this issue, and I have found the following, so I wanted to share it in case it helps anyone :-)

My scenario is a bit different, I have 2 virtual machines:

- VM1: Downloads torrents and store the media files in /media/sf_Media
- VM2: Serviio server, whose library is located also in /media/sf_Media

The idea is to have two different "services" (downloads and player) in different machines so that I can switch on the one I need every moment. Both machines share the same physical folder, which belongs to my host machine (running Windows 8). So the thing here is:

The Serviio virtual machine doesn't realise when VM1 adds files in the shared folder. Inotify (or whatever the program listening to changes is) only works OK if files are modified by the same virtual machine.

THEREFORE:

- If you create a dummy video file in the Serviio machine: "touch /media/sf_Media/my_file.avi" -> OK, the file is indexed (it's an empty file so you cannot play it, but in order to test it's ok)
- If you create another video file in the VM2 machine: "touch /media/sf_Media/my_file2.avi" -> TADAAAA... Serviio doesn't get notified, so the file is not indexed

I don't know if this is a problem with the Serviio scanner (I guess it is not), a problem with notify tool, a problem with VirtualBox... Maybe Serviio guys provide a solution in next releases... Anyway, this is not a big problem for me, I can force the reload every hour. I hope this information helps.

Cheers!