View previous topic :: View next topic |
Author |
Message |
jofo n00b
Joined: 07 Jan 2003 Posts: 35
|
Posted: Thu Apr 21, 2005 8:17 pm Post subject: mpd startup error [SOLVED] |
|
|
I've been running mpd (http://www.musicpd.org) for a while and I really like it. However, after I did a system reinstall the other day, mpd refuses to start. I can generate the db fine, but when I try to start mpd afterwards, it just responds with this highly uninformative message:
"songinfo: unknown line in db:"
I've been unable to find any kind of documentation on this error.
As I said, I was using it before without problems, and the partitions containing my music are all untouched, so I doubt that there's anything strange with any of the files. I can get it to work if I restrict the media directory to a small subset, though it would be a large job to figure out exactly what part of my collection gives rise to the error...
Any clues?
Thanks! _________________ My god - it's full of spam!
Last edited by jofo on Wed May 25, 2005 3:11 pm; edited 1 time in total |
|
Back to top |
|
|
rezza Guru
Joined: 09 Apr 2003 Posts: 434 Location: Edinburgh, UK
|
Posted: Thu Apr 21, 2005 8:41 pm Post subject: |
|
|
Have you tried removing the db and recreating it? _________________ screenshots
blog |
|
Back to top |
|
|
jofo n00b
Joined: 07 Jan 2003 Posts: 35
|
Posted: Fri Apr 22, 2005 7:59 am Post subject: |
|
|
Yes, several times. _________________ My god - it's full of spam! |
|
Back to top |
|
|
saluk n00b
Joined: 25 Aug 2004 Posts: 34
|
Posted: Thu May 05, 2005 2:36 am Post subject: |
|
|
Same thing here! This is really iritating me. I have gone through and renamed all of my songs cutting out odd characters because I thought that was the culprit (some of my songs had really wrong characters in their names) to no avail. I didnt do a system reinstall however, although I probably updated SOMETHING before I noticed the problem. I have wiped all mpd versions and config files and switched between the latest official, and the last two mpd-svn's. I have switched back and forth between the last kernel I built and the one before that worked, but I have the same problem on both so its not a kernel issue. These are the last few things I emerged before I THINK I started seeing the problem:
xfce-extra/exo
xfce-extra/Terminal
eclipse-sdk-3.0.2
mpd-svn-20050408
Hmm....
maybe the latest svn release screws something up? Really strange, since I've unmerged it and emerged earlier versions several times. Maybe something got stuck somewhere and it's not fully unmerging.
If I run mpd, letting it build the database for the first time and then running, without doing the whole "mpd --createdb","/etc/init.d/mpd start" shabang, it works. I can mpc add songs, and mpc play. But if I do any other mpc commands after that it loses its connection to mpd, even though mpd keeps playing. If I restart mpd, it gives the db error message. |
|
Back to top |
|
|
saluk n00b
Joined: 25 Aug 2004 Posts: 34
|
Posted: Thu May 05, 2005 4:36 am Post subject: |
|
|
The mpc disconnection problem is unrelated, it had to do with alsa permission problems which I have fixed thanks to another thread. Still have the db error problem, but it's easy to work around. I just have to rerun mpd and have it rebuidl the database every time I kill it (which isn't very often).
Although a solution to this problem would be nice. |
|
Back to top |
|
|
jofo n00b
Joined: 07 Jan 2003 Posts: 35
|
Posted: Tue May 17, 2005 1:03 am Post subject: |
|
|
Haha, this is cool... I found a solution for the db problem but got stuck on the disconnection one instead... I'll track down that other thread and try it out.
The db problem was solved by a patch I found on the musicpd.org forum:
Code: | --- song.c.orig 2005-05-09 10:04:50.058063096 +0000
+++ song.c 2005-05-09 10:01:14.425844176 +0000
@@ -247,6 +247,9 @@
else if(0==strncmp(SONG_MTIME,buffer,strlen(SONG_MTIME))) {
song->mtime = atoi(&(buffer[strlen(SONG_TITLE)]));
}
+ else if(0==strlen(buffer)) {
+ /* do nothing */
+ }
else {
ERROR("songinfo: unknown line in db: %s\n",buffer);
exit(EXIT_FAILURE);
} |
Don't think it's official, but it seems to be working.
Cheers! _________________ My god - it's full of spam! |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|