ICE
TCP/IP Products => TCP-PRO => Topic started by: m.sperry on December 07, 2005, 07:57:44 am
-
Hello everyone.
I have installed ICELPD on a system with Fedora Core 4 and CUPS 1.1.23-15, following yours instruction under j.river ftp site ( I have already successfully installed ICELPD with previous version, Fedora 1, 2 and 3). When I print, with lpr command, no file comes put into /usr/tmp/printer/icelp_jobs directory, and printer appears disabled. If I launch cups with debug there is the following message into cups log file /var/log/cups/error_log:
D [22/Dec/2003:20:22:10 +0100] StartJob: argv = "S1","6","root","passwd","1","","/var/spool/cups/d00006-001"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[2]="USER=root"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[3]="CHARSET=utf-8"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[4]="LANG=it_IT"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[5]="PPD=/etc/cups/ppd/S1.ppd"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[9]="CONTENT_TYPE=application/vnd.cups-raw"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[10]="DEVICE_URI=icelpd://S1"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[11]="PRINTER=S1"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[14]="CUPS_SERVER=localhost"
D [22/Dec/2003:20:22:10 +0100] StartJob: envp[15]="IPP_PORT=631"
d [22/Dec/2003:20:22:10 +0100] StartJob: Allocating status buffer...
D [22/Dec/2003:20:22:10 +0100] StartJob: statusfds = [ 6 9 ]
D [22/Dec/2003:20:22:10 +0100] StartJob: filterfds[1] = [ 10 -1 ]
D [22/Dec/2003:20:22:10 +0100] StartJob: backend = "/usr/lib/cups/backend/icelpd"
D [22/Dec/2003:20:22:10 +0100] StartJob: filterfds[0] = [ -1 11 ]
D [22/Dec/2003:20:22:10 +0100] start_process("/usr/lib/cups/backend/icelpd", 0xbf7fa980, 0xbf7f9ef8, 10, 11, 9)
I [22/Dec/2003:20:22:10 +0100] Started backend /usr/lib/cups/backend/icelpd (PID 4942) for job 6.
d [22/Dec/2003:20:22:10 +0100] StartJob: Adding fd 6 to InputSet...
d [22/Dec/2003:20:22:10 +0100] add_job_state_reasons(0xb7bd0008[8], 6)
D [22/Dec/2003:20:22:10 +0100] ProcessIPPRequest: 8 status_code=0
d [22/Dec/2003:20:22:10 +0100] ProcessIPPRequest: Adding fd 8 to OutputSet...
E [22/Dec/2003:20:22:10 +0100] PID 4942 stopped with status 22!
D [22/Dec/2003:20:22:10 +0100] [Job 6] /usr/lib/cups/backend/icelpd: Permission denied
D [22/Dec/2003:20:22:10 +0100] UpdateJob: job 6, file 0 is complete.
d [22/Dec/2003:20:22:10 +0100] UpdateJob: Removing fd 6 from InputSet...
D [22/Dec/2003:20:22:10 +0100] StopJob: id = 6, force = 0
All configuration files have right attributes like other old version of Fedora.
This is the entry manually created in /etc/cups/printer.conf :
#</Printer>
<Printer S1>
Info
Location
DeviceURI icelpd://S1
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Thanks
Marco
-
Looking at the 4th line from the last in the error log there is a permission denied error. Perhaps the icelp_jobs dir does not have the permissions set for icelpd to be able to write to it.
-
Hi jimn
I've tried to create manually the directory /usr/tmp/S1/icelp_jobs, with the correct permission and to insert at the beginning of the script /usr/lib/cups/backend/icelpd the command line:
echo "START ICELP!!" > /tmp/cups.log
but file /tmp/cups.log doesn't come create.
It seems that's not executed the script /usr/lib/cups/backend/icelpd for some reason.
Thanks
-
Hi Jimm
more information in /var/log/cups/error_log:
I [28/Dec/2003:18:01:13 +0100] Started backend /usr/lib/cups/backend/icelpd (PID 4668) for job 14.
E [28/Dec/2003:18:01:13 +0100] PID 4668 stopped with status 22!
I [28/Dec/2003:18:01:13 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
E [28/Dec/2003:18:01:13 +0100] Unable to backup printers.conf - Permission denied
E [28/Dec/2003:18:01:13 +0100] Unable to save printers.conf - Permission denied
E [28/Dec/2003:18:01:13 +0100] Unable to restore printers.conf - No such file or directory
I [28/Dec/2003:18:01:39 +0100] Job 14 was cancelled by 'root'.
E [28/Dec/2003:18:01:46 +0100] Unable to backup printers.conf - Permission denied
E [28/Dec/2003:18:01:46 +0100] Unable to save printers.conf - Permission denied
E [28/Dec/2003:18:01:46 +0100] Unable to restore printers.conf - No such file or directory
I [28/Dec/2003:18:01:46 +0100] Printer 'S1' started by 'root'.
Thanks
Marco
-
What permissions do you have on the script itself?
ls -l /usr/lib/cups/backend/icelpd
-
The permissions of /usr/lib/cups/backend/icelp are 755 or -rwxr-xr-x
-
Who is cups running as?
ps -ef | grep cups
First field.
-
Here is who run cups:
root 1857 1 0 08:55 ? 00:00:00 cupsd
Thanks.
-
1.1.23 works fine on my machine with the backend from the CD.
It looks like cups has the wrong permissions for the printers.conf file in /etc/cups as well. You should check your permissions on all of the cups related files/directories, it appears that your cups install is broken. I'm sorry I can't be more specific.
-
Hello Bob and Jimn
I've resolved !!
I've seen that Fedora Core 4 has activated SElinux.
I've put the line SELINUX=disabled in file /etc/selinux/config and cups work fine.
Thanks for the aid and Merry Xmas
-
Excellent!
Thanks for the report. I'm sure it will help others too!!!