FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Scanning outside of the specified directories?
- This topic has 18 replies, 4 voices, and was last updated 15 years, 6 months ago by EVILRipper.
-
AuthorPosts
-
30/05/2009 at 5:02 PM #18565AnonymousInactive
@fizze wrote:
Care to post your mt-daapd.conf?
Sure.
root@godzilla:/home/alex# grep -v ^# /etc/mt-daapd.conf | grep -v ^$
[general]
web_root = /usr/share/mt-daapd/admin-root
port = 3689
admin_pw = mt-daapd
db_type = sqlite3
db_parms = /usr/var/cache/mt-daapd
mp3_dir = /media/storage,/media/sda9
servername = Firefly %v on %h
runas = mt-daapd
extensions = .mp3,.m4a,.m4p,.ogg,.flac,.mpc
scan_type = 2
logfile = /var/log/mt-daapd.log
debuglevel = 9
[plugins]
plugin_dir = /usr/lib/mt-daapd/plugins
plugins = rsp.so,ssc-ffmpeg.so
[scanning]
process_playlists = 1
process_itunes = 1
process_m3u = 1@fizze wrote:
What version of firefly do you use?
Firefly Media Server: Version svn-1696
01/06/2009 at 8:09 AM #18563fizzeParticipantOk, that looks reasonable.
Care to post your mount status? π
What fs types do you use?I’ve never seen anything like this, and I’ve used firefly over multiple disks also.
Could it be there are hardlinks that cause firefly to trip?01/06/2009 at 6:37 PM #18566AnonymousInactive@fizze wrote:
Ok, that looks reasonable.
Care to post your mount status? π
What fs types do you use?Sure… I have two SATA HDDs. The Linux partitions are ext3.
mount output:
/dev/sda6 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-24-generic/volatile type tmpfs (rw)
/dev/sda7 on /home type ext3 (rw,relatime)
/dev/sda8 on /media/sda8 type ext3 (rw,relatime)
/dev/sda9 on /media/sda9 type ext3 (rw,relatime)
/dev/sdb2 on /media/storage type ext3 (rw,relatime)
/dev/sdb1 on /media/winnew type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda1 on /media/winold type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)The relevant parts (sda9, storage and home) are written in bold.
@fizze wrote:
I’ve never seen anything like this, and I’ve used firefly over multiple disks also.
Could it be there are hardlinks that cause firefly to trip?I am not entirely sure I understand what you mean by hardlinks. Are you referring to the names of the devices – or to the devices themselves?
As for any symlinks pointing to the home partition, there’s none. (I even removed the only broken symbolic link pointing there.)
Next, I followed your suggestion. Maybe there is something wrong with mt-daapd and mp3_dir referring to locations on two different hard drivers.
So I replaced
mp3_dir = /media/storage,/media/sda9
with
mp3_dir = /media/storage
Re-ran the test… it all went fine. However, when I added the second location (/media/sda9), it began scanning /home/alex (and also crashed, same as before).
Then I started it only with
mp3_dir = /media/sda9
Same erratic behavior (scanning in home, crash).
The interesting bit is that, as you can see, both /media/sda9/ and /home are parts of the same physical hard drive.
It shouldn’t make any difference, but just to make sure:
fdisk -l
Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f8004b0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7833 62918541 7 HPFS/NTFS
/dev/sda2 7834 48641 327790260 5 Extended
/dev/sda5 7834 8029 1574338+ 82 Linux swap / Solaris
/dev/sda6 8030 10640 20972826 83 Linux
/dev/sda7 10641 13251 20972826 83 Linux
/dev/sda8 13252 15862 20972826 83 Linux
/dev/sda9 15863 48641 263297286 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c54f2
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 15680 125949568+ 7 HPFS/NTFS
/dev/sdb2 15681 60801 362434432+ 83 Linux
I also have enough free space on all devices:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 20G 3.4G 16G 18% /
varrun 1014M 300K 1014M 1% /var/run
varlock 1014M 0 1014M 0% /var/lock
udev 1014M 72K 1014M 1% /dev
devshm 1014M 0 1014M 0% /dev/shm
lrm 1014M 40M 975M 4% /lib/modules/2.6.24-24-generic/volatile
/dev/sda7 20G 13G 6.3G 67% /home
/dev/sda8 20G 19G 312M 99% /media/sda8
/dev/sda9 248G 218G 18G 93% /media/sda9
/dev/sdb2 341G 281G 43G 87% /media/storage
/dev/sdb1 121G 46G 75G 39% /media/winnew
/dev/sda1 61G 15G 46G 25% /media/winold
There are just 56 symbolic links on the whole sda9 partition… most are broken, pointing to where-some-mount-points-used-to-be. If you think it’s relevant, I’ll post that. Although… there’s nothing even mentioning “home” there. :-/
Well, at least we’re narrowing the field. There’s obviously something wrong in some cases when the media directories are on different physical hard drives.
01/06/2009 at 9:15 PM #18567fizzeParticipantOk, that all looks good.
Hardlinks are created by using ln without -s. You can hardlink to files on the same partition iirc.
Maybe broken hardlinks can point across partitions? hmmm. Thats a long shot, anyway, and it seems unlikely.But clearly something on sda9 seems to throw firefly off.
You did erase your songs.db at a certain point, right?
Maybe there are zombie’d entries left in there that cause firefly to try to scan those files?Erase songs.db (or songs3.db) , set the mp3_dir to sda9 only and then start up firefly.
01/06/2009 at 10:06 PM #18568AnonymousInactive@fizze wrote:
Ok, that all looks good.
Hardlinks are created by using ln without -s. You can hardlink to files on the same partition iirc.Oh, I see, thanks for clarifying this.
@fizze wrote:
You did erase your songs.db at a certain point, right?
Maybe there are zombie’d entries left in there that cause firefly to try to scan those files?Erase songs.db (or songs3.db) , set the mp3_dir to sda9 only and then start up firefly.
Yes, I was erasing both songs3.db and songs3(something)journal each time I was starting the test again.
However, I decided to delete all the broken symbolic links… after this, it worked.
@fizze wrote:
But clearly something on sda9 seems to throw firefly off.
You got that right. Here’s what happened: I took a better look at all the symbolic links in /media/sda9 and found a really broken one (I don’t know how it actually got there in the first place)…
lrwxrwxrwx 1 root root 1 2007-11-11 11:45 /media/sda9/backup/b4gg/root/.wine/dosdevices/z: -> /
Some weird backup of the entire /root home directory before some old, forgotten install.
So I uhm am sorry for all the trouble, it works alright… Thanks for the feedback and for taking the time to debug me.
This is embarrassing. π
02/06/2009 at 7:13 AM #18572EVILRipperParticipantAh I see you found the problem.
A symbolic link pointing to root. It happens. π05/06/2009 at 11:38 AM #18569fizzeParticipantAh, the joys of playing with wine π
Well, glad you’ve resolved it.Have fun with firefly!
05/06/2009 at 12:19 PM #18571AnonymousInactiveYepp I completely forgot that wine “leftover backup”, so to speak.
mt-daapd/Firefly works now, it’s OK and very useful. TY! : )
05/06/2009 at 11:19 PM #18570S80_UKParticipant@Forger wrote:
This is embarrassing. π
Actually, I found it very helpful – still getting my head around links and slinks, etc. Thanks all.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.