FAQ  •  Register  •  Login

Reload library in VirtualBox machine

<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Wed Aug 26, 2015 5:28 pm

Reload library in VirtualBox machine

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!
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Thu Aug 27, 2015 1:13 pm

Re: Reload library in VirtualBox machine

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.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Fri Aug 28, 2015 8:51 pm

Re: Reload library in VirtualBox machine

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!

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 20 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.