You are not logged in.

#1 2013-07-20 23:31:35

DeletedUser210616
Banned
Registered: 2010-07-07
Posts: 43

Minidlna in KVM [Solved]

I ported my solid working server to a kvm and had no issues so far except for Minidlna. It works fine but then all of a sudden doesnt... it is still running and the stat page on 8200 works, but its not connectable or discoverable. If I restart the service it pops right back up, then stops a short time later again... My firewalls should be set right and i get nothing in my logs, so i am confused on what is going on...

Last edited by DeletedUser210616 (2013-07-21 04:56:08)

Offline

#2 2013-07-20 23:46:45

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: Minidlna in KVM [Solved]

while i can be wrong, i bet on bridge ( witch you did not point out smile ).

try

echo 0 >> /sys/devices/virtual/net/br0/bridge/multicast_snooping

O' rly ? Ya rly Oo

Offline

#3 2013-07-21 01:08:34

DeletedUser210616
Banned
Registered: 2010-07-07
Posts: 43

Re: Minidlna in KVM [Solved]

cybertorture wrote:

while i can be wrong, i bet on bridge ( witch you did not point out smile ).

try

echo 0 >> /sys/devices/virtual/net/br0/bridge/multicast_snooping

that seems to be working so far, is there a correct way for me to be setting that or do i have to echo it every time (scripted or otherwise)

Last edited by DeletedUser210616 (2013-07-21 01:08:57)

Offline

#4 2013-07-21 01:16:22

DeletedUser210616
Banned
Registered: 2010-07-07
Posts: 43

Re: Minidlna in KVM [Solved]

Or a bug? im good for running into those...

https://bugzilla.redhat.com/show_bug.cgi?id=902922

Offline

#5 2013-07-21 01:16:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Minidlna in KVM [Solved]

You should use either a udev rule, or alternatively, you might be able to get away with using tmpfiles.d.  But I assume that the creation of the bridge itself is probably pretty late into userspace, and well after the systemd-tmpfiles service is run.


Edit: Although, if you only need this set on the occasion that minidnla is started, then you could also probably just echo the value into the file using ExecStartPre=/usr/bin/bash -c "echo 3 > /stuff/goes/here".  Though this might not be the "preferred" solution.

Last edited by WonderWoofy (2013-07-21 01:18:35)

Offline

#6 2013-07-21 01:51:49

DeletedUser210616
Banned
Registered: 2010-07-07
Posts: 43

Re: Minidlna in KVM [Solved]

if i do

w /sys/devices/virtual/net/br0/bridge/multicast_snooping - - - - 0

as a tmpfile it doesnt work, but that would have been an acceptable solution.
https://wiki.archlinux.org/index.php/Systemd

Note: This method may not work to set options in /sys since the systemd-tmpfiles-setup service may run before the appropriate device modules is loaded. In this case you could check whether the module has a parameter for the option you want to set with modinfo module and set this option with a config file in /etc/modprobe.d. Otherwise you will have to write a udev rule to set the appropriate attribute as soon as the device appears.

(After way to much time) I ended up with this, which still probably not the cleanest.

KERNEL=="br0", RUN="/bin/sh -c 'echo 0 >> /sys/devices/virtual/net/br0/bridge/multicast_snooping'"

Last edited by DeletedUser210616 (2013-07-21 05:06:36)

Offline

Board footer

Powered by FluxBB