[cups.general] How to debug cups-lpd?

Daniel Spannbauer ds at marco.de
Tue Feb 17 05:16:45 PST 2009


>>>>>>>> we have in our System some old machines who are printing over a 
>>>>>>>> self-compiled old lpd.
>>>>>>>> Now, we want migrate to cups, but the cups-lpd is not printing 
>>>>>>>> jobs from our old System.
>>>>>>>> According to a tcpdump there is siome input over Port 515, but 
>>>>>>>> there is no output in error_log.
>>>>>>>>
>>>>>>>> Can I start cups-lpd in a way that I'm able to see what cups-lpd 
>>>>>>>> is doing or whats wrong?
>>>>>>> cups-lpd logs via syslog, so its messages should show up in the 
>>>>>>> normal
>>>>>>> syslog file(s)...
>>>>>>>
>>>>>> Hello Michael,
>>>>>>
>>>>>> thats right, but the log-level is very poor. Ca I increase it?
>>>>> Depending on the OS, you may be able to configure syslogd to log
>>>>> debugging messages produced by cups-lpd (although it does not log as
>>>>> verbosely as, say, cupsd in debug mode...)
>>>> Hmmm, I'm not very firm in syslog-ng so I don't now what to change 
>>>> in syslog-ng.conf.
>>> Can I do a strace about cups-lpd when it is starting of xinetd? And, 
>>> wehen yes: how?

>>
>> Write a wrapper script which launches the cups-lpd under strace
>> and configure xinetd to launch this wrapper script instead.
>>
> 
> I tried this, but xinetd shows a exec-format-error.
> 
> I started a strace -FF on xinetd. This seems to work.
> I attached 2 2 Files, containing the strace-output.
> cups-falsch shows the Output from a printjob of our system, 
> cuprs-richtig from a printjob of the standard-lpd of a old SuSE 8.0-System.

Hello,

I'm still working on that problem.
Could (perhaps) somebody from easy-sw look at it and figure out the problem?

Regards

Daniel



-- 
Daniel Spannbauer                         Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/                      Email ds at marco.de
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München





More information about the cups mailing list