You are not logged in.

#1 2014-08-20 16:23:27

rocker2344
Member
Registered: 2012-09-12
Posts: 5

Airprint Visable, Not printing

I have setup my cups server and I can print from Linux/windows(smb)

So I followed the guide from the arch wiki on allowing the webui to my network,
Followed the arch avahi wiki to create service files for air print and it looks like everything is in working order but nothing happens when you tell ipad.

So my iDevices can see the printers, but they don't print, nor do they show up as failures in the cups log. They don't show up at all.

(also I did not know if I had posted here if It would be considered necro-bumping https://bbs.archlinux.org/viewtopic.php?id=177406 )

Some configs
/etc/cups/cupsd.conf

LogLevel warn
Port 631
Listen /run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  Order allow,deny
  Allow from All
</Location>
<Location /admin>
  Order allow,deny
  Allow from ALL
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow from ALL
</Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
</Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
BrowseWebIF Yes

A .service file generated by airprint-generate.py

<?xml version="1.0" ?>
<!DOCTYPE service-group  SYSTEM 'avahi-service.dtd'>
<service-group>
    <name replace-wildcards="yes">AirPrint Canon_iR2018 @ %h</name>
    <service>
        <type>_ipp._tcp</type>
        <subtype>_universal._sub._ipp._tcp</subtype>
        <port>631</port>
        <txt-record>txtvers=1</txt-record>
        <txt-record>qtotal=1</txt-record>
        <txt-record>Transparent=T</txt-record>
        <txt-record>URF=none</txt-record>
        <txt-record>rp=printers/Canon_iR2018</txt-record>
        <txt-record>note=Canon iR2018 (UFRII LT)</txt-record>
        <txt-record>product=(GPL Ghostscript)</txt-record>
        <txt-record>printer-state=3</txt-record>
        <txt-record>printer-type=0x8034f4</txt-record>
        <txt-record>pdl=application/octet-stream,application/pdf,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,image/urf,text/html,text/plain,application/vnd.adobe-reader-postscript,application/vnd.cups-command</txt-record>
    </service>
</service-group>

Last edited by rocker2344 (2014-08-25 17:59:51)

Offline

#2 2014-08-25 18:27:31

rocker2344
Member
Registered: 2012-09-12
Posts: 5

Re: Airprint Visable, Not printing

I have added 2 other lines and have now gotten the print to fail

echo “image/urf urf (0,UNIRAST)” > /usr/share/cups/mime/apple.types  
echo “image/urf application/vnd.cups-postscript 66 pdftops” > /usr/share/cups/mime/local.convs  

Restarted cups / avahi
Regenrated the service files

I am now greeted with

Mon 25 Aug 2014 02:24:07 PM EDT 
"Filter failed"

/var/log/cups/access_log

192.168.14.157 - - [25/Aug/2014:14:25:15 -0400] "POST /printers/Canon_iR2018_2 HTTP/1.1" 200 495 Validate-Job successful-ok
192.168.14.157 - - [25/Aug/2014:14:25:15 -0400] "POST /printers/Canon_iR2018_2 HTTP/1.1" 200 479 Create-Job successful-ok
192.168.14.157 - - [25/Aug/2014:14:25:15 -0400] "POST /printers/Canon_iR2018_2 HTTP/1.1" 200 5786 Send-Document successful-ok

/var/log/cups/error_log

D [25/Aug/2014:14:25:15 -0400] [Job 16] PID 19179 (pstops) stopped with status 1!
D [25/Aug/2014:14:25:15 -0400] [Job 16] PID 19175 (/usr/lib/cups/filter/pdftops) stopped with status 1.
D [25/Aug/2014:14:25:15 -0400] [Job 16] Hint: Try setting the LogLevel to "debug" to find out more.
D [25/Aug/2014:14:25:15 -0400] [Job 16] execl() error
D [25/Aug/2014:14:25:15 -0400] [Job 16] PID 19176 (/usr/lib/cups/filter/pstoufr2cpca) exited with no errors.
D [25/Aug/2014:14:25:15 -0400] [Job 16] PID 19177 (/usr/lib/cups/backend/socket) exited with no errors.
D [25/Aug/2014:14:25:15 -0400] [Job 16] End of messages
D [25/Aug/2014:14:25:15 -0400] [Job 16] printer-state=3(idle)
D [25/Aug/2014:14:25:15 -0400] [Job 16] printer-state-message="Filter failed"
D [25/Aug/2014:14:25:15 -0400] [Job 16] printer-state-reasons=none

Offline

Board footer

Powered by FluxBB