Setup CUPS-1.4.6 in Solaris 10?

dickson iswslui at ust.hk
Mon Feb 7 17:38:58 PST 2011


> dickson wrote:
>
> > I compile and install CUPS-1.4.6 in /usr/local/cups-1.4.6 directory.
> > I use Web interface to setup a printer
> > I need to use the full path to send a print job as follow:
> > /usr/local/cups-1.4.6/etc/cups/bin/lp -d EPSON chinese_UTF8.txt
> >
> > fail with the following message:
> > /usr/local/cups-1.4.6/bin/lp: Unsupported format 'text/plain'!
> >
> > Question : what is wrong?
>
> Did you disable the default ipp listener service?
> Check its status by
>
> svcs -a | grep ipp
>
> and, if it is enabled, disable it using the svcadm command.
>
> Helge
>
-------------------------------------------------------------------------------
8-Feb-2011
Thanks for your help.

1. The default ipp listener service is disabled. What else?

   Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
   server_one:webadmin~ >svcs -a | grep ipp
   disabled       Dec_15   svc:/application/print/ipp-listener:default

2. Do I need to disable the original(default) "lp,enable,cancel" command under /usr/bin?

3. I attach more log for you to investigate my problem. I find that cups can load the mime.types

I [07/Feb/2011:14:29:49 -0800] Loaded configuration file "/usr/local/cups-1.4.6/etc/cups/cupsd.conf"
I [07/Feb/2011:14:29:49 -0800] Using default TempDir of /usr/local/cups-1.4.6/var/spool/cups/tmp...
I [07/Feb/2011:14:29:49 -0800] Configured for up to 100 clients.
I [07/Feb/2011:14:29:49 -0800] Allowing up to 100 client connections per host.
I [07/Feb/2011:14:29:49 -0800] Using policy "default" as the default!
I [07/Feb/2011:14:29:49 -0800] Full reload is required.
I [07/Feb/2011:14:29:49 -0800] Saving job cache file "/usr/local/cups-1.4.6/var/cache/cups/job.cache"...
D [07/Feb/2011:14:29:49 -0800] Discarding unused printer-stopped event...
D [07/Feb/2011:14:29:49 -0800] cupsdMarkDirty(P-----)
D [07/Feb/2011:14:29:49 -0800] cupsdSetBusyState: Dirty files
D [07/Feb/2011:14:29:49 -0800] cupsdDeregisterPrinter(p=bf580(EPSON), removeit=1)
I [07/Feb/2011:14:29:49 -0800] Loaded MIME database from "/usr/local/cups-1.4.6/share/cups/mime" and "/usr/local/cups-1.4.6/etc/cups": 35 types, 40 filters...
D [07/Feb/2011:14:29:49 -0800] Loading printer EPSON...
D [07/Feb/2011:14:29:49 -0800] load_ppd: Loading /usr/local/cups-1.4.6/var/cache/cups/EPSON.ipp4...
D [07/Feb/2011:14:29:49 -0800] cupsdRegisterPrinter(p=bdfa0(EPSON))
I [07/Feb/2011:14:29:49 -0800] Loading job cache file "/usr/local/cups-1.4.6/var/cache/cups/job.cache"...
D [07/Feb/2011:14:29:49 -0800] [Job 1] Loading from cache...
D [07/Feb/2011:14:29:49 -0800] [Job 2] Loading from cache...
D [07/Feb/2011:14:29:49 -0800] [Job 3] Loading from cache...
D [07/Feb/2011:14:29:49 -0800] [Job 4] Loading from cache...
I [07/Feb/2011:14:29:49 -0800] Full reload complete.
E [07/Feb/2011:14:29:49 -0800] Unable to bind socket for address ::1:631 - Cannot assign requested address.
I [07/Feb/2011:14:29:49 -0800] Listening to 127.0.0.1:631 on fd 4...
I [07/Feb/2011:14:29:49 -0800] Listening to /usr/local/cups-1.4.6/var/run/cups/cups.sock on fd 6...
I [07/Feb/2011:14:29:49 -0800] Listening to 143.89.14.47:631 on fd 7...
I [07/Feb/2011:14:29:49 -0800] Resuming new connection processing...
D [07/Feb/2011:14:29:49 -0800] cupsdRegisterPrinter(p=bdfa0(EPSON))
D [07/Feb/2011:14:29:49 -0800] Discarding unused server-restarted event...
D [07/Feb/2011:14:29:50 -0800] Report: clients=0
D [07/Feb/2011:14:29:50 -0800] Report: jobs=4
D [07/Feb/2011:14:29:50 -0800] Report: jobs-active=0
D [07/Feb/2011:14:29:50 -0800] Report: printers=1
D [07/Feb/2011:14:29:50 -0800] Report: printers-implicit=0
D [07/Feb/2011:14:29:50 -0800] Report: stringpool-string-count=317
D [07/Feb/2011:14:29:50 -0800] Report: stringpool-alloc-bytes=6832
D [07/Feb/2011:14:29:50 -0800] Report: stringpool-total-bytes=7416
I [07/Feb/2011:14:30:20 -0800] Saving printers.conf...
D [07/Feb/2011:14:30:20 -0800] cupsdSetBusyState: Not busy
D [07/Feb/2011:14:30:56 -0800] cupsdAcceptClient: 11 from localhost (Domain)
D [07/Feb/2011:14:30:56 -0800] Report: clients=1
D [07/Feb/2011:14:30:56 -0800] Report: jobs=4
D [07/Feb/2011:14:30:56 -0800] Report: jobs-active=0
D [07/Feb/2011:14:30:56 -0800] Report: printers=1
D [07/Feb/2011:14:30:56 -0800] Report: printers-implicit=0
D [07/Feb/2011:14:30:56 -0800] Report: stringpool-string-count=317
D [07/Feb/2011:14:30:56 -0800] Report: stringpool-alloc-bytes=6832
D [07/Feb/2011:14:30:56 -0800] Report: stringpool-total-bytes=7416
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 POST / HTTP/1.1
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Active clients
D [07/Feb/2011:14:30:56 -0800] cupsdAuthorize: No authentication data provided.
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 1.1 Get-Printer-Attributes 1
D [07/Feb/2011:14:30:56 -0800] Get-Printer-Attributes ipp://localhost:631/printers/EPSON
D [07/Feb/2011:14:30:56 -0800] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost:631/printers/EPSON) from localhost
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Not busy
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 POST /printers/EPSON HTTP/1.1
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Active clients
D [07/Feb/2011:14:30:56 -0800] cupsdAuthorize: No authentication data provided.
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 1.1 Create-Job 1
D [07/Feb/2011:14:30:56 -0800] Create-Job ipp://localhost:631/printers/EPSON
D [07/Feb/2011:14:30:56 -0800] cupsdMarkDirty(----J-)
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Active clients and dirty files
D [07/Feb/2011:14:30:56 -0800] add_job: requesting-user-name="webadmin"
I [07/Feb/2011:14:30:56 -0800] [Job 5] Adding start banner page "none".
D [07/Feb/2011:14:30:56 -0800] Discarding unused job-created event...
I [07/Feb/2011:14:30:56 -0800] [Job 5] Queued on "EPSON" by "webadmin".
D [07/Feb/2011:14:30:56 -0800] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/EPSON) from localhost
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Dirty files
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 POST /printers/EPSON HTTP/1.1
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Active clients and dirty files
D [07/Feb/2011:14:30:56 -0800] cupsdAuthorize: No authentication data provided.
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 1.1 Send-Document 1
D [07/Feb/2011:14:30:56 -0800] Send-Document ipp://localhost:631/printers/EPSON
D [07/Feb/2011:14:30:56 -0800] cupsdIsAuthorized: requesting-user-name="webadmin"
D [07/Feb/2011:14:30:56 -0800] [Job 5] Auto-typing file...
D [07/Feb/2011:14:30:56 -0800] [Job 5] Request file type is text/plain.
D [07/Feb/2011:14:30:56 -0800] Send-Document client-error-document-format-not-supported: Unsupported format 'text/plain'!
E [07/Feb/2011:14:30:56 -0800] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/EPSON) from localhost
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Dirty files
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 POST /jobs/ HTTP/1.1
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Active clients and dirty files
D [07/Feb/2011:14:30:56 -0800] cupsdAuthorize: No authentication data provided.
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 1.1 Cancel-Job 1
D [07/Feb/2011:14:30:56 -0800] Cancel-Job ipp://localhost:631/printers/EPSON
D [07/Feb/2011:14:30:56 -0800] cupsdIsAuthorized: requesting-user-name="webadmin"
D [07/Feb/2011:14:30:56 -0800] Discarding unused job-completed event...
I [07/Feb/2011:14:30:56 -0800] [Job 5] Job canceled by "webadmin"
D [07/Feb/2011:14:30:56 -0800] cupsdMarkDirty(----J-)
I [07/Feb/2011:14:30:56 -0800] [Job 5] Canceled by "webadmin".
D [07/Feb/2011:14:30:56 -0800] Returning IPP successful-ok for Cancel-Job (ipp://localhost:631/printers/EPSON) from localhost
D [07/Feb/2011:14:30:56 -0800] cupsdSetBusyState: Dirty files
D [07/Feb/2011:14:30:56 -0800] cupsdReadClient: 11 WAITING Closing on EOF
D [07/Feb/2011:14:30:56 -0800] cupsdCloseClient: 11
D [07/Feb/2011:14:30:57 -0800] [Job 5] Unloading...
I [07/Feb/2011:14:31:27 -0800] Saving job cache file "/usr/local/cups-1.4.6/var/cache/cups/job.cache"...
D [07/Feb/2011:14:31:27 -0800] cupsdSetBusyState: Not busy
D [07/Feb/2011:14:31:35 -0800] cupsdAcceptClient: 11 from 143.89.103.209:631 (IPv4)
D [07/Feb/2011:14:31:35 -0800] cupsdReadClient: 11 GET / HTTP/1.1
D [07/Feb/2011:14:31:35 -0800] cupsdSetBusyState: Active clients
D [07/Feb/2011:14:31:35 -0800] cupsdAuthorize: No authentication data provided.
E [07/Feb/2011:14:31:35 -0800] Request from "143.89.103.209" using invalid Host: field "admsu17.ust.hk:631"





More information about the cups mailing list