PDA

View Full Version : Advice to track an error in log



Millwood
2007-11-10, 09:03
I'm seeing:

Unicode character 0xfffe is illegal at /usr/lib/perl/5.8/Encode.pm line 164, <$fh> line 1

in my log when I rescan. I assume this is caused by some tags having unicode instead of ascii values. But i don't know how to find out which files are involved.

Is there a debug I can turn on that will help?

Neither d_scan nor d_files help, by the way.

sand
2007-11-10, 09:36
Hi Millwood,

I'm definitely no expert, but this worked for me and I could see exactly which files were beeing processed:

cd /opt/slimserver

full rescan: ./scanner.pl --wipe --progress --d_scan --d_parse /ext/Qmultimedia/music

delta scan: ./scanner.pl --rescan --progress --d_scan --d_parse /ext/Qmultimedia/music

Millwood
2007-11-11, 09:32
Neither d_scan nor d_parse, nor any other d_ that looks promising, adds file names to the errors I'm seeing.

I suspect there is a bug in the error message - the $fh ought to expand to the file name I think. But I can't figure out where the error comes from.

Can anyone help?

Millwood
2007-11-11, 10:04
Now I understand.

The debug options are not passed to the scanner - you have to run it by hand to get them turned on.

Wow - hope this is fixed in 7.

kdf
2007-11-11, 11:58
On 11-Nov-07, at 9:04 AM, Millwood wrote:
> hope this is fixed in 7.

there is a separate scanner.log file, based on a common log.conf
file. The debug options
carry over as long as you check the persist option, or use --persist
in the command line.
-kdf

Millwood
2007-11-11, 20:15
I'm running the server on Debian.

I don't know where this log.conf file is. Is it a debian thing or a slimserver thing?

I don't know what checking the persist option means. Where is this option.

I'm not finding a "scanner.log" anyplace.

When I hack scanner.pm to force d_scan on, I get file names in the main log.

I'm doing the scan by asking the server to rescan via the web interface and I was setting debug options using the web interface.

Is any of this documented?

kdf
2007-11-11, 20:19
On 11-Nov-07, at 7:15 PM, Millwood wrote:

>
> I'm running the server on Debian.
>
> I don't know where this log.conf file is. Is it a debian thing or a
> slimserver thing?
> '
SqueezeCenter 7.0 thing.
> I don't know what checking the persist option means. Where is this
> option.
>
SC 7.0

> I'm not finding a "scanner.log" anyplace.
>
/var/log/slimserver (will change to /var/log/squeezecenter at some
point, if not already)

-kdf

JJZolx
2007-11-11, 21:35
The debug options carry over as long as you check the persist option

In 7.0, if you launch the scanner from the web interface, are non-persistant logging options passed into the scanner?