Dealing with RO file systems and indexing

Need help? Post your questions here.

Moderator: moderators

Dealing with RO file systems and indexing

Postby nelgin » Mon Dec 05, 2011 2:35 pm

I'm pretty freakish about security on my system, so let me explain my subsonic layout. This is a Linux system, btw.

All my mp3 file are in /mp3 which is a read-only file system. Before I make changes to tags or whatever, I remount as re-write, make my changes, then remount it read-only. This aids in quickly restarting the system from any sort of crash due to not having to fsck the file system.

All the mp3 files are owned by me with rw permissions, and group mp3 with r permissions only. There are no permissions for other. That means only myself or members of the "mp3" group have access to the music files.

Subsonic is installed in /home/subsonic and is in the mp3 group.

This means my music and OS is pretty safe should there be any sort of issue with subsonic because at no point is it running as root, and at no point does it have write permissions to any of my files.

Now, the problem comes when it's time to index the files and attempts to create an album art. As you can imagine, this generates a lot of write errors.

The only solutions I can think of are to have a standalone index module that can be run by a root cronjob that will:
Change the file system to read/write temporarily
Index the files as root user to allow for writing the files with album art
Change the file system back to wo

Anyone have a better suggestion?
nelgin
 
Posts: 41
Joined: Tue Mar 22, 2011 2:04 pm

Re: Dealing with RO file systems and indexing

Postby bushman4 » Mon Dec 05, 2011 3:56 pm

I do not believe that Subsonic creates Album Art thumbnails and the like during Search Indexing... I believe it creates them "on the fly" when a particular folder is accessed directly or referenced (via the home page "Random" or "Newest" or whatever).

At that time the art is rendered from the tags or from image files and converted to a thumbnail version.

What do the write errors look like?

I don't think there is a solution to your problem at this time...

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Dealing with RO file systems and indexing

Postby BKKKPewsey » Mon Dec 05, 2011 5:44 pm

Unless you edit your tags via SS I do not think SS writes anything to your music files/directories.
All the album art thumbnails are stored in the subsonic/thumbs directory
so providing SS has write access to its own directories (don't forget playlist directory) there shouldn't be a problem.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Dealing with RO file systems and indexing

Postby nelgin » Mon Dec 05, 2011 6:11 pm

It could be a different issue actually, because I'm just seeing this in one particular directory.

1120811122 [btpool0-3135] WARN org.mortbay.log - /coverArt.view: java.io.IOException: Failed to create thumbnail for /mp3/pathto.mp3. null

I'm only seeing this the one directory. I'll check again tomorrow after another run. This is from an old backup log cos I wiped my current ones when I restarted subsonic.
nelgin
 
Posts: 41
Joined: Tue Mar 22, 2011 2:04 pm

Re: Dealing with RO file systems and indexing

Postby nelgin » Mon Dec 05, 2011 6:16 pm

BKKKPewsey wrote:Unless you edit your tags via SS I do not think SS writes anything to your music files/directories.
All the album art thumbnails are stored in the subsonic/thumbs directory
so providing SS has write access to its own directories (don't forget playlist directory) there shouldn't be a problem.
:mrgreen:


Hmm, didn't consider that. I thought it was trying to update the album art embedded in the mp3 file itself.

As for the playlists, I have all that stored in the /home/subsonic directory. I had to edit subsonic.sh to make sure everything (including tmp) are included within that specific directly to keep it self-contained.

I'll have to look into why I'm getting this specific error then.
nelgin
 
Posts: 41
Joined: Tue Mar 22, 2011 2:04 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests