Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  cups client latency

    Posted Mon May 06, 2019 06:05 AM

    Originally posted by: 5CRW_ITS_Support


    AIX 6.1 or 7.1 or 7.2 with cups-1.5.4-1.ppc rpm and /etc/cups/client.conf ServerName <ip_of_ubuntu18_cups_server> is working perfectly.

    But cups-client 1.6 or greater (latest = 2.2.3-3) on AIX 6.1 7.1 or 7.2 is not working.
    => latency of about 10 minutes with /usr/linux/bin/lpstat -v 
    /usr/linux/bin/lp -d .... results in a abort status on cups server.

    Can anyone advice ?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: cups client latency

    Posted Mon May 06, 2019 10:34 AM

    Originally posted by: sanket


    Hi,

     

    From where did you get cups for AIX ? I do not see from AIX toolbox we have released 1.5.4

    Also what is the current version of cups you are running that is giving you the issue and from where did you acquire it ?

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: cups client latency

    Posted Tue May 07, 2019 03:19 AM

    Originally posted by: 5CRW_ITS_Support


    Hi

     

    I tried all versions available on AIX Toolbox on AIX versions 61 71 and 72.
    All this versions have the same latency problem.

     

    So because i hav other systems with older versions which do not have this problem i went back in versions.
    However AIX Toolbox does not show a complete history of versions
    Older rpm versions are comming from oss4aix (http://www.perzl.org/aix/). they are intended to be 100pct compatible with AIX Toolbox.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: cups client latency

    Posted Tue May 07, 2019 06:28 AM

    Originally posted by: sanket


     

    We will look into this issue. We have not done such testing. 

     

    The easiest way to get all versions of a package is using yum

    # yum --showduplicates list <package-name>

    eg.

    # yum --showduplicates list cups
    Loaded plugins: downloadonly
    Available Packages
    cups.ppc                                                                 2.0.2-1                                                                 AIX_Toolbox
    cups.ppc                                                                 2.0.2-2                                                                 AIX_Toolbox
    cups.ppc                                                                 2.2.3-2                                                                 AIX_Toolbox
    cups.ppc                                                                 2.2.3-3                                                                 AIX_Toolbox
    #

     

    The other way is you can get by going into the dir of the package from where you download it. 

    For example if you see cups on toolbox site it gets download from following location

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/cups/cups-2.2.3-3.aix6.1.ppc.rpm

     

    And if you go into https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/cups/ you will get all previous versions of cups from AIX toolbox. 

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: cups client latency

    Posted Thu May 09, 2019 04:56 AM

    Originally posted by: 5CRW_ITS_Support


    All those versions have the same problem


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: cups client latency

    Posted Fri May 17, 2019 06:26 AM

    Originally posted by: 5CRW_ITS_Support


    I fit may help output from cups error_log on server during lpstat -v
     

    D [17/May/2019:11:51:28 +0200] [Client 665] Accepted from x.x.x.x:44892 (IPv4)
    D [17/May/2019:11:51:28 +0200] [Client 665] Waiting for request.
    I [17/May/2019:11:51:28 +0200] Expiring subscriptions...
    D [17/May/2019:11:51:28 +0200] [Client 665] POST / HTTP/1.1
    D [17/May/2019:11:51:28 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [17/May/2019:11:51:28 +0200] [Client 665] Read: status=200
    D [17/May/2019:11:51:28 +0200] [Client 665] No authentication data provided.
    D [17/May/2019:11:51:28 +0200] [Client 665] 2.0 CUPS-Get-Printers 1
    D [17/May/2019:11:51:28 +0200] CUPS-Get-Printers
    D [17/May/2019:11:51:28 +0200] [Client 665] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from x.x.x.x
    D [17/May/2019:11:51:28 +0200] [Client 665] Content-Length: 20030
    D [17/May/2019:11:51:28 +0200] [Client 665] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
    D [17/May/2019:11:51:28 +0200] [Client 665] con->http=0x55921af630c0
    D [17/May/2019:11:51:28 +0200] [Client 665] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=20030, response=0x55921af93530(IPP_STATE_DATA), pipe_pid=0, file=-1
    D [17/May/2019:11:51:28 +0200] [Client 665] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
    D [17/May/2019:11:51:28 +0200] [Client 665] bytes=0, http_state=0, data_remaining=20030
    D [17/May/2019:11:51:28 +0200] [Client 665] Flushing write buffer.
    D [17/May/2019:11:51:28 +0200] [Client 665] New state is HTTP_STATE_WAITING
    D [17/May/2019:11:51:28 +0200] [Client 665] Waiting for request.
    D [17/May/2019:11:51:28 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    I [17/May/2019:11:51:29 +0200] Expiring subscriptions...

    D [17/May/2019:11:56:30 +0200] [Client 676] Accepted from x.x.x.x:44921 (IPv4)
    D [17/May/2019:11:56:30 +0200] [Client 676] Waiting for request.
    D [17/May/2019:11:56:30 +0200] [Client 676] POST / HTTP/1.1
    D [17/May/2019:11:56:30 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [17/May/2019:11:56:30 +0200] [Client 676] Read: status=200
    D [17/May/2019:11:56:30 +0200] [Client 676] No authentication data provided.
    D [17/May/2019:11:56:30 +0200] [Client 676] 2.0 CUPS-Get-Default 2
    D [17/May/2019:11:56:30 +0200] CUPS-Get-Default
    D [17/May/2019:11:56:30 +0200] CUPS-Get-Default client-error-not-found: No default printer.
    D [17/May/2019:11:56:30 +0200] [Client 676] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from x.x.x.x
    D [17/May/2019:11:56:30 +0200] [Client 676] Content-Length: 113
    D [17/May/2019:11:56:30 +0200] [Client 676] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
    D [17/May/2019:11:56:30 +0200] [Client 676] con->http=0x55921af630c0
    D [17/May/2019:11:56:30 +0200] [Client 676] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x559219fef0c0(IPP_STATE_DATA), pipe_pid=0, file=-1
    D [17/May/2019:11:56:30 +0200] [Client 676] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
    D [17/May/2019:11:56:30 +0200] [Client 676] bytes=0, http_state=0, data_remaining=113
    D [17/May/2019:11:56:30 +0200] [Client 676] Flushing write buffer.
    D [17/May/2019:11:56:30 +0200] [Client 676] New state is HTTP_STATE_WAITING
    D [17/May/2019:11:56:30 +0200] [Client 676] Waiting for request.
    D [17/May/2019:11:56:30 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    I [17/May/2019:11:56:31 +0200] Expiring subscriptions...

    D [17/May/2019:12:01:31 +0200] [Client 689] Accepted from x.x.x.x:44951 (IPv4)
    D [17/May/2019:12:01:31 +0200] [Client 689] Waiting for request.
    D [17/May/2019:12:01:31 +0200] [Client 689] POST / HTTP/1.1
    D [17/May/2019:12:01:31 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
    D [17/May/2019:12:01:31 +0200] [Client 689] Read: status=200
    D [17/May/2019:12:01:31 +0200] [Client 689] No authentication data provided.
    D [17/May/2019:12:01:31 +0200] [Client 689] 2.0 CUPS-Get-Printers 3
    D [17/May/2019:12:01:31 +0200] CUPS-Get-Printers
    D [17/May/2019:12:01:31 +0200] [Client 689] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from x.x.x.x
    D [17/May/2019:12:01:31 +0200] [Client 689] Content-Length: 2887
    D [17/May/2019:12:01:31 +0200] [Client 689] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
    D [17/May/2019:12:01:31 +0200] [Client 689] con->http=0x55921af630c0
    D [17/May/2019:12:01:31 +0200] [Client 689] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2887, response=0x559219fef0c0(IPP_STATE_DATA), pipe_pid=0, file=-1
    D [17/May/2019:12:01:31 +0200] [Client 689] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
    D [17/May/2019:12:01:31 +0200] [Client 689] bytes=0, http_state=0, data_remaining=2887
    D [17/May/2019:12:01:31 +0200] [Client 689] Flushing write buffer.
    D [17/May/2019:12:01:31 +0200] [Client 689] New state is HTTP_STATE_WAITING
    D [17/May/2019:12:01:31 +0200] [Client 689] Waiting for request.
    D [17/May/2019:12:01:31 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
    D [17/May/2019:12:01:31 +0200] [Client 689] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
    D [17/May/2019:12:01:31 +0200] [Client 689] Closing connection.
    D [17/May/2019:12:01:31 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
    I [17/May/2019:12:01:32 +0200] Expiring subscriptions...


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  RE: cups client latency

    Posted Tue November 29, 2022 11:26 AM
    Is there any development on current version(s)?

    On 7200-05-04-2220  with

    cups-client-2.2.3-3.ppc
    cups-libs-2.2.3-3.ppc

    I can't manage to print something with CUPS-CLI commands via a CUPS-Server on Linux:

    /opt/freeware/bin/lp -h <cupsserver> -d <queue on cupsserver>   results in:
    ./lp: Forbidden

    Is it required to install cups-server binaries as well? Even, if they are not needed?

    Any help appreciated!

    ------------------------------
    Andreas Jackstadt
    ------------------------------



  • 8.  RE: cups client latency

    Posted Wed November 30, 2022 06:55 AM
    There is currently no plan to update cups. 
    We recommend the users to use AIX native printing instead (bos.rte.printers)

    ------------------------------
    Ayappan P
    ------------------------------