ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: CUPS 1.1.23 DON'T PRINT  (Read 2649 times)

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« 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
Logged

jimn

  • Global Moderator
  • Ice Artist
  • *****
  • Posts: 116
Re:CUPS 1.1.23 DON'T PRINT
« Reply #1 on: December 07, 2005, 02:28:00 pm »

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.
Logged

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« Reply #2 on: December 13, 2005, 03:00:18 am »

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
Logged

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« Reply #3 on: December 13, 2005, 05:24:05 am »

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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
CUPS 1.1.23 DON'T PRINT
« Reply #4 on: December 13, 2005, 09:10:07 am »

What permissions do you have on the script itself?
ls -l /usr/lib/cups/backend/icelpd
Logged

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« Reply #5 on: December 13, 2005, 09:28:18 am »

The permissions of /usr/lib/cups/backend/icelp are 755 or -rwxr-xr-x
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
CUPS 1.1.23 DON'T PRINT
« Reply #6 on: December 13, 2005, 11:53:47 am »

Who is cups running as?

ps -ef  | grep cups

First field.
Logged

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« Reply #7 on: December 14, 2005, 02:03:50 am »

Here is who run cups:

root      1857     1  0 08:55 ?        00:00:00 cupsd

Thanks.
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
CUPS 1.1.23 DON'T PRINT
« Reply #8 on: December 15, 2005, 11:42:27 am »

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.
Logged

m.sperry

  • Jr. Member
  • **
  • Posts: 7
  • I'm a llama!
CUPS 1.1.23 DON'T PRINT
« Reply #9 on: December 19, 2005, 03:04:25 am »

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
« Last Edit: June 24, 2008, 03:12:43 pm by Bob »
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
CUPS 1.1.23 DON'T PRINT
« Reply #10 on: December 19, 2005, 09:48:07 am »

Excellent!

Thanks for the report. I'm sure it will help others too!!!
Logged
 

Page created in 0.014 seconds with 21 queries.