status 22 access denied to pstops an foomatic-rip

felix fmaq at ec-red.com
Wed Nov 9 09:11:35 PST 2005


felix wrote:
> Well after installing RealPlayer10 my Fedoro Core 3 got got damaged it 
> doesnt print any more.
> 
> I can print using something li ke this: cat /etc/modprobe.conf >> 
> /dev/lp0. this way i can print any text file.
> 
> But any other attemp to prints is aborted, the printer is an Epson LX 300.
> 
> here is the error_log
> 
> D [08/Nov/2005:02:03:05 -0500] AcceptClient: 8 from localhost:631.
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 8 POST / HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 8 status_code=1
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 8 POST / HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 8 status_code=1
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 8 POST / HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 8 status_code=0
> D [08/Nov/2005:02:03:05 -0500] CloseClient: 8
> D [08/Nov/2005:02:03:05 -0500] AcceptClient: 8 from localhost:631.
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 8 POST /printers/My-Printer 
> HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] print_job: auto-typing file...
> D [08/Nov/2005:02:03:05 -0500] print_job: request file type is text/plain.
> D [08/Nov/2005:02:03:05 -0500] check_quotas: requesting-user-name = 'root'
> D [08/Nov/2005:02:03:05 -0500] print_job: requesting-user-name = 'root'
> I [08/Nov/2005:02:03:05 -0500] Adding start banner page "none" to job 7.
> I [08/Nov/2005:02:03:05 -0500] Adding end banner page "none" to job 7.
> I [08/Nov/2005:02:03:05 -0500] Job 7 queued on 'My-Printer' by 'root'.
> D [08/Nov/2005:02:03:05 -0500] Job 7 hold_until = 0
> D [08/Nov/2005:02:03:05 -0500] StartJob(7, 0xb9dc31d0)
> D [08/Nov/2005:02:03:05 -0500] StartJob() id = 7, file = 0/1
> D [08/Nov/2005:02:03:05 -0500] job-sheets=none,none
> D [08/Nov/2005:02:03:05 -0500] banner_page = 0
> D [08/Nov/2005:02:03:05 -0500] StartJob: argv = 
> "My-Printer","7","root","cupsd.conf","1","cpi=12 lpi=7 page-bottom=86 
> page-left=57 page-right=57 page-top=72 scaling=100 
> wrap","/var/spool/cups/d00007-001"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[2]="USER=root"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[3]="CHARSET=utf-8"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[4]="LANG=es_PE"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[5]="PPD=/etc/cups/ppd/My-Printer.ppd"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[6]="CUPS_SERVERROOT=/etc/cups"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[7]="RIP_MAX_CACHE=8m"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[8]="TMPDIR=/var/spool/cups/tmp"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[9]="CONTENT_TYPE=text/plain"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[10]="DEVICE_URI=parallel:/dev/lp0"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[11]="PRINTER=My-Printer"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[12]="CUPS_DATADIR=/usr/share/cups"
> D [08/Nov/2005:02:03:05 -0500] StartJob: 
> envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[14]="CUPS_SERVER=localhost"
> D [08/Nov/2005:02:03:05 -0500] StartJob: envp[15]="IPP_PORT=631"
> D [08/Nov/2005:02:03:05 -0500] StartJob: statusfds = [ 9 10 ]
> D [08/Nov/2005:02:03:05 -0500] StartJob: filterfds[1] = [ 11 -1 ]
> D [08/Nov/2005:02:03:05 -0500] StartJob: filter = 
> "/usr/lib/cups/filter/texttops"
> D [08/Nov/2005:02:03:05 -0500] StartJob: filterfds[0] = [ 12 13 ]
> D [08/Nov/2005:02:03:05 -0500] 
> start_process("/usr/lib/cups/filter/texttops", 0xbf865840, 0xbf864bb0, 
> 11, 13, 10)
> I [08/Nov/2005:02:03:05 -0500] Started filter 
> /usr/lib/cups/filter/texttops (PID 12063) for job 7.
> D [08/Nov/2005:02:03:05 -0500] StartJob: filter = 
> "/usr/lib/cups/filter/pstops"
> D [08/Nov/2005:02:03:05 -0500] StartJob: filterfds[1] = [ 11 14 ]
> D [08/Nov/2005:02:03:05 -0500] 
> start_process("/usr/lib/cups/filter/pstops", 0xbf865840, 0xbf864bb0, 12, 
> 14, 10)
> I [08/Nov/2005:02:03:05 -0500] Started filter 
> /usr/lib/cups/filter/pstops (PID 12064) for job 7.
> D [08/Nov/2005:02:03:05 -0500] StartJob: filter = 
> "/usr/lib/cups/filter/foomatic-rip"
> D [08/Nov/2005:02:03:05 -0500] StartJob: filterfds[0] = [ 12 13 ]
> D [08/Nov/2005:02:03:05 -0500] 
> start_process("/usr/lib/cups/filter/foomatic-rip", 0xbf865840, 
> 0xbf864bb0, 11, 13, 10)
> I [08/Nov/2005:02:03:05 -0500] Started filter 
> /usr/lib/cups/filter/foomatic-rip (PID 12065) for job 7.
> D [08/Nov/2005:02:03:05 -0500] StartJob: backend = 
> "/usr/lib/cups/backend/parallel"
> D [08/Nov/2005:02:03:05 -0500] StartJob: filterfds[1] = [ -1 11 ]
> D [08/Nov/2005:02:03:05 -0500] 
> start_process("/usr/lib/cups/backend/parallel", 0xbf865840, 0xbf864bb0, 
> 12, 11, 10)
> I [08/Nov/2005:02:03:05 -0500] Started backend 
> /usr/lib/cups/backend/parallel (PID 12066) for job 7.
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 8 status_code=0
> E [08/Nov/2005:02:03:05 -0500] PID 12063 stopped with status 22!
> E [08/Nov/2005:02:03:05 -0500] PID 12064 stopped with status 22!
> E [08/Nov/2005:02:03:05 -0500] PID 12065 stopped with status 22!
> D [08/Nov/2005:02:03:05 -0500] [Job 7] /usr/lib/cups/filter/texttops: 
> Permiso denegado
> D [08/Nov/2005:02:03:05 -0500] [Job 7] /usr/lib/cups/filter/pstops: 
> Permiso denegado
> D [08/Nov/2005:02:03:05 -0500] [Job 7] 
> /usr/lib/cups/filter/foomatic-rip: Permiso denegado
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:03:05 -0500] CloseClient: 8
> D [08/Nov/2005:02:03:05 -0500] UpdateJob: job 7, file 0 is complete.
> D [08/Nov/2005:02:03:05 -0500] CancelJob: id = 7
> D [08/Nov/2005:02:03:05 -0500] StopJob: id = 7, force = 0
> D [08/Nov/2005:02:03:05 -0500] StopJob: printer state is 3
> D [08/Nov/2005:02:03:05 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:03:05 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:03:12 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:03:12 -0500] ProcessIPPRequest: 6 status_code=0
> 
> Also when connecting or trying to /localhost:631 from a web browser is 
> not posible trying with root results in the message in the statusbar 
> "waiting localhost" or something like that and dont motter how long i 
> wait doenst happen anything at all.
> 
> In error log i found this:
> 
> D [08/Nov/2005:02:01:12 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:12 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:18 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:18 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:24 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:24 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:30 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:30 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:36 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:36 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:38 -0500] AcceptClient: 8 from localhost:631.
> D [08/Nov/2005:02:01:38 -0500] ReadClient: 8 GET /admin HTTP/1.1
> D [08/Nov/2005:02:01:38 -0500] CGI /usr/lib/cups/cgi-bin/admin.cgi 
> started - PID = 12040
> I [08/Nov/2005:02:01:38 -0500] Started "/usr/lib/cups/cgi-bin/admin.cgi" 
> (pid=12040)
> D [08/Nov/2005:02:01:38 -0500] SendCommand: 8 file=10
> E [08/Nov/2005:02:01:38 -0500] PID 12040 stopped with status 13!
> D [08/Nov/2005:02:01:42 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:42 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:48 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:48 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:01:54 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:01:54 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:02:00 -0500] ReadClient: 6 POST / HTTP/1.1
> D [08/Nov/2005:02:02:00 -0500] ProcessIPPRequest: 6 status_code=0
> D [08/Nov/2005:02:02:06 -0500] CloseClient: 8
> 
> 
> Any helpfull ideas there, awaiting for your answers.
> 
> Thanks.

After searching with google for a long time found this, an really solve it completly.

http://groups.google.com.pe/group/debian.bugs.dist/browse_thread/thread/59b3802a3c213394/5f81ae26ed85248e?lnk=st&q=permission%2Bdenied%2Bpstops&rnum=1&hl=es#5f81ae26ed85248e

In less words use root as user instead of lp, group remains the same.

maybe it would be usefull for someone else, see that the thread from the group en reference is from 2001.




More information about the cups mailing list