XBMC Community Forum
Syslog Error: cdrom: This disc doesn't have any tracks I recognize! - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: Syslog Error: cdrom: This disc doesn't have any tracks I recognize! (/showthread.php?tid=32293)

Pages: 1 2


Syslog Error: cdrom: This disc doesn't have any tracks I recognize! - nurgle - 2008-03-31 11:57

Hi,

While running XBMC the syslog fills up with the following messages:

Mar 31 10:54:23 XBMC-Linux kernel: [ 1998.832000] cdrom: This disc doesn't have any tracks I recognize!
Mar 31 10:54:24 XBMC-Linux kernel: [ 1999.444000] cdrom: This disc doesn't have any tracks I recognize!
Mar 31 10:54:24 XBMC-Linux kernel: [ 2000.056000] cdrom: This disc doesn't have any tracks I recognize!
Mar 31 10:54:25 XBMC-Linux kernel: [ 2000.724000] cdrom: This disc doesn't have any tracks I recognize!
Mar 31 10:54:25 XBMC-Linux kernel: [ 2001.340000] cdrom: This disc doesn't have any tracks I recognize!
Mar 31 10:54:26 XBMC-Linux kernel: [ 2001.952000] cdrom: This disc doesn't have any tracks I recognize!

The messages appear constantly but when XBMC is closed they stop. Using Ubuntu 7.10 and build from latest SVN (12408). There are no errors in xbmc.log. Anyone else getting the same?

Cheers,

Nurgle


- althekiller - 2008-03-31 19:29

Thanks for such a detailed post. All of this information you left will certainly get the problem resolved in mere moments...

What type of media? What format is the disc? What the hell is on it?


- nurgle - 2008-03-31 19:54

There is no disk in the drive. If i put a disk in, the errors don't appear. It's as if XBMC is trying to automount the drive when there's no disk in it.


- althekiller - 2008-03-31 21:45

I'd do a "make distclean" and rebuild to ensure you're using the precompiled libcdio.

EDIT: Scratch that I get the same behavior. libcdio may just need compiled w/o debug. I'm sure topfs2 will see this soon.


- nurgle - 2008-03-31 22:02

Thanks for confirming the problem.
It did it on Hardy so I rebuilt machine with Gutsy and the problem remained so I suspected it was an issue with XBMC. Just wanted to make sure it wasn't only me experiencing it.


ditto - pefdus - 2008-04-14 13:22

Just confirming, yes it does happen to me also. Ubuntu 7.10

It's XBMC polling the DVD drive. I notice that, of course, as soon as a DVD is inserted, it starts it, which is the eaxt behaviour of XBMC on the XBox.


- pefdus - 2008-04-14 14:27

Sorted the work around.

If these messages are getting you down, install syslog-ng and use the regexp feature to filter the messages out.

1. sudo apt-get install syslog-ng
2. edit /etc/syslog-ng/syslog-ng.conf

3. add a filter to the filters section
(in the default Ubuntu 7.10 config, about line 184)
filter f_cdromSPAM { not match("t have any tracks I recognize"); };


4. add the filter to the various logs that this message is currently appearing in


syslog

# *.*;auth,authpriv.none -/var/log/syslog
log {
source(s_all);
filter(f_syslog);
filter(f_cdromSPAM);
destination(df_syslog);
};



kern

# kern.* -/var/log/kern.log
log {
source(s_all);
filter(f_kern);
filter(f_cdromSPAM);
destination(df_kern);
};


and finally /var/log/messages



# *.=info;*.=notice;*.=warn;\
# auth,authpriv.none;\
# cron,daemon.none;\
# mail,news.none -/var/log/messages
log {
source(s_all);
filter(f_messages);
filter(f_cdromSPAM);
destination(df_messages);
};



5. restart systlog and the messages are gone!

sudo /etc/init.d/syslog-ng restart


- topfs2 - 2008-04-14 18:29

I have actually looked through the source code of libcdio and it doesn't have that string at all. This does make me believe it's not libcdio that is too blame but another application.
One reason for this might be that we use 0.79 where ubuntu gutsy uses an older one and the same with hardy (0.78.2), the reason for us having 0.79 is too circumvent another bugg that makes libcdio always report a cddrive as open.

Anyway, For me syslog doesn't get spammed with this. (/var/log/syslog). I have left it without CD, open and closed for a long time. never get that message.

Anything else you do to create this behaviour?


Stock install - pefdus - 2008-04-17 19:20

It's stock standard install of Ubuntu Server 7.10.

There is nothing I can think of, it certainly started after I launched XBMC so it's somewhere there. I'm looking in the kernel source now for it. See what I can find (because it still shows up in `dmesg` so I want to remove it for real).

Of interest, ff you say XBMC is using 0.79, buts Gutsy is 0.78.2 does XBMC statically link to it's own custom version ?


- topfs2 - 2008-04-17 19:49

pefdus Wrote:It's stock standard install of Ubuntu Server 7.10.

There is nothing I can think of, it certainly started after I launched XBMC so it's somewhere there. I'm looking in the kernel source now for it. See what I can find (because it still shows up in `dmesg` so I want to remove it for real).

Of interest, ff you say XBMC is using 0.79, buts Gutsy is 0.78.2 does XBMC statically link to it's own custom version ?

Yes we do, it's because we need to have new enough version on all our plattforms to rid an bugg.

You can try too dynamicly link with the one ubuntu ships by removing "xbmc/lib/libcdio/libcdio-i486-linux.a" in Makefile, roughly line 58
And then add -llibcdio too LIBS @ line 3.
I can't vouch for it compiling as I haven't had time too test but it might be worth a shoot.

Might be the fact your running Ubuntu Server, the might log more?. I have Desktop on both HTPC and Desktop.