View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Dec 04, 2006 5:41 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
I have recently come across a rather strange problem. When I scan for new music files, Myth doesn't find any of my new music. I've added more music to the directory, and when it scans, it acts like it is adding more, but nothing shows up in MythMusic. I've checked the musicmetadata table with MySQL query browser, and the new songs are not there. I can browse to the folder where the music is and see it just fine. I even tried deleting all the rows from the musicmetadata table and re-adding everything. Only the same old songs get added, not my new ones. I'm really at a loss here.

The music is on a windows machine and I'm using autofs to mount the share at /myth/music/samba/music . Does anyone know what may be going on? Can someone point me to some log files I need to look at? Thanks for your help.


Last edited by rickbassham on Wed Dec 06, 2006 5:53 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 6:58 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I'm not sure, but I think that mythmusic looks at the mp3/other tags that are on that file. The mp3 tags get loaded into the database. Maybe those files dont have mp3 tags or the mp3 tags are in some strange format that mythmusic can't read?

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 10:12 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
elgordo123 wrote:
I'm not sure, but I think that mythmusic looks at the mp3/other tags that are on that file. The mp3 tags get loaded into the database. Maybe those files dont have mp3 tags or the mp3 tags are in some strange format that mythmusic can't read?


All the mp3's were tagged with the same program I used on all my other mp3's. And they all have tags, so I don't think that is it. Thanks for the input though.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 10:38 pm 
Offline
Joined: Thu Dec 01, 2005 4:14 pm
Posts: 78
Location: Ann Arbor, MI
What about file extensions? MythMusic may be skipping your new files if they have an unrecognized extension or are missing an extension altogether...though I can't imagine how that would happen.

Another thing, I believe, could be spaces in the folder or file names. I'm not certain, but I am recalling MythMusic perhaps having a problem with folder or file names that contained spaces...though that probably is a bug from an older version that should be fixed by now.

Two things to ponder...may or may not help. Good luck!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 3:33 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
You might check that all the .mp3's are readable by mythtv. I copied some music files over with a different userID and had a similar problem.

To change the owner of a single file:
Code:
chown mythtv:mythtv <filename.mp3>
To change the owner of all files in /myth/music, as root (WARNING: BE CAREFUL WITH RECURSIVE COMMANDS USING ROOT AS THEY CHANGE EVERYTHING UNDER THAT DIRECTORY):
Code:
chown -R mythtv:mythtv /myth/music/

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 6:47 am 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
alien wrote:
You might check that all the .mp3's are readable by mythtv. I copied some music files over with a different userID and had a similar problem.

To change the owner of a single file:
Code:
chown mythtv:mythtv <filename.mp3>
To change the owner of all files in /myth/music, as root (WARNING: BE CAREFUL WITH RECURSIVE COMMANDS USING ROOT AS THEY CHANGE EVERYTHING UNDER THAT DIRECTORY):
Code:
chown -R mythtv:mythtv /myth/music/


chown doesn't seem to work on smbfs mounted files. However, I will try adding uid=105,gid=105 to my /etc/auto.samba.mnt file. I'll let you know if it works.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 4:54 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
rickbassham wrote:
However, I will try adding uid=105,gid=105 to my /etc/auto.samba.mnt file. I'll let you know if it works.


No dice. Still doesn't work. Any other ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 5:03 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
I've checked /var/log/mysql/mysql.log and it is doing the SELECT statements for each of the new songs, but it never executes any INSERT statements. In MySQL Query Browser, I've run the same SELECT statements, and it returns 0 rows. I would assume that MythMusic would then realize that they don't exist, and would insert them, but it doesn't. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 8:55 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Could you post a snippet of the entries in the mysql.log file? Maybe that will trigger something with someone. Also, are there any entries in mysql.err?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 4:06 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
I think scan for new music checks timestamps of the directories and music files before it searches them. If you are using samba, it is possible that the timestamps are earlier than the last scan. In unix "touch" command will update the timestamps. "ls -l" in the directory will show ownership/timestamp. Note: the timestamp needs to be later than the last scan as shown in unix. Windows has a tough time with timezones etc.

If that doesn't work, I have also deleted the files, re-scaned, readded them (checking timestamps/permissions) then scanning again. I don't know if all that is necessary, but I wonce had problems where this seemed to fix it.

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 5:53 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
I couldn't figure out how to do a touch command recursively ( I don't think you can, or why you would want to in normal operation ). However, I did use my mp3 tagging program to re-write all the tags on all my music (which updated the timestamps) removed it all from the database, and re-scanned. This added all of my music, including the new files.

Hopefully this won't happen again, but now I know how to fix it if it does.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 7:43 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
rickbassham wrote:
...I did use my mp3 tagging program to re-write all the tags on all my music (which updated the timestamps) removed it all from the database, and re-scanned. This added all of my music, including the new files.
Hmmm, interesting. I noticed in an earlier post these file are on a Windoze system, what is the date/time on that system currently? And on your Myth box?

Seems to me there must be some discrepancy there, maybe in the timezone?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 8:52 pm 
Offline
Joined: Sun Apr 16, 2006 10:30 am
Posts: 13
That's the thing, the two are both set up on the same timezone and both use ntp to sync the clocks, so I'm not sure what happened. Oh well, I'll be sure to post here if it happens again. Maybe there is a really small and obscure bug somewhere. Thanks again for the ideas to get it working. alien really pushed me in the right direction.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 1:46 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Glad it worked!

Thinking back, I may have triggered the problem by moving a directory. I.e. Mythmusic saw them disappear, but never re-added them because the timestamps did not change because of the move.

Another thing that may cause the problem with remote mounts is if a scan is done without the mount. When it is re-mounted, it may miss newly added files.

A little trick to run a command recursively even if it does not have a recursive option:
Code:
find /myth/music/ | xargs touch


SEE MY PREVIOUS WARNING ABOUT RECURSIVE COMMANDS!

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu