AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Wed July 12, 2023 09:50 AM

    Hi,

    We have upgraded to Samba 4.16.8-2 from AIX Toolbox with yum on 75 AIX-machines.

    All was running fine until one of the machines got halted due to power outage. After the boot, the printers did not show up again. We tried several things like restarting Samba daemons, changes in configuration (e.g. explicitly setting printcap name = /etc/qconfig) and so on. What finally brought the printers back was the command

    # rpcclient localhost -c enumprinters

    We found the command in this Samba-bug-report https://bugzilla.samba.org/show_bug.cgi?id=15121 and the circumstances described there are very similar to our situation. Although "printing = aix" instead of "cups" and we do not use Windows Print Management Console. In the Samba-bug-report, there is a thread in the Samba-mailing-list referenced https://lists.samba.org/archive/samba/2022-August/241571.html which suggests that Samba 4.16.2 still worked. As this version is not available in the AIX Toolbox, I could not verify this. Furthermore we checked Samba-release-notes for 4.17.* and 4.18.* but did not find any bugfix which could address/fix our issue.

    Therefore we have set up a test machine and we could reproduce the situation there. But on the test machine we also found out that the "enumprinters" rpc-command from above does not always bring back the printers. We could not figure out why. For this reason we do not want to rely on running the rpcclient command from above after each boot.

    The sequence

    stop smbd – downgrade to Samba 4.14.14-1 – start smbd – stop smbd – upgrade to Samba 4.16.8-2 – start smbd

    will ultimately list the printers again. Until next reboot.

    Explicitly defining printers works. But each of these 75 Machines has a bunch of printers defined so explicit printer configuration is not an option.

    After all, we will downgrade to Samba 4.14.14-1 on productive machines until we find a solution with Samba 4.16 and future versions.

    The Samba-configuration is pretty straight forward:

    # Global parameters

    [global]

            log file = /opt/freeware/log/log.%m

            map to guest = Bad User

            security = USER

            server role = standalone server

            usershare allow guests = Yes

            workgroup = TSTWRKGRP

            full_audit:priority = notice

            full_audit:facility = local7

            full_audit:prefix = IP=%I|USER=%u|MACHINE=%m|VOLUME=%S

            full_audit:success = renameat unlinkat mkdirat

            full_audit:failure = none

            idmap config * : backend = tdb

            guest ok = Yes

            level2 oplocks = No

            nt acl support = No

            oplocks = No

            print command = lpr -h -r -P%p %s

            vfs objects = full_audit

    ### Shares … ###

    [printers]

            browseable = No

            comment = All printers

            create mask = 0700

            path = /tmp

            printable = Yes

    Any ideas or suggestions would be very appreciated.



    ------------------------------
    Wilhelm Seyerl
    ------------------------------


  • 2.  RE: Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Thu July 13, 2023 02:24 AM

    Please check the Samba community page about printers --> https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server
    May be something changed in the newer versions. 



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



  • 3.  RE: Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Thu July 13, 2023 09:18 AM

    Hi,

    We have already found your suggested link https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server and checked if it could help us. But there is no (direct) information addressing our environment. It only deals with CUPS, IPRINT and LPRng.

    hen I wrote that each machine has a bunch of printers connected, I meant 10 to 47. The test machine has only 7 printers connected.

    Nevertheless and although it addresses CUPS we tried to add

    [global]

      rpcd_spoolss:idle_seconds=300

    as somehow suggested in https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server#Tuning_rpcd-spoolss and waited 10 minutes but with no success.

    On the other hand, even the current (Samba 4.18) documentation states that printing = aix should be still supported https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#PRINTING

    "Currently nine printing styles are supported. They are BSD, AIX, …"

    And – as said – we already tried additionally setting printcap name = /etc/qconfig as suggested for AIX in https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#PRINTCAPNAME but still no printers listed.

    I would like to add, that testparm (without -v flag) does not return any printing = <value> string. As Samba determines default printing method based on OS and testparm (without -v flag) only lists parameters different to default values, this is no surprise. However, testparm -v returns printing = aix as expected.

    If this problem is not known or cannot be solved with current aixtoolbox packages, we would eventually file a bug report at Samba. If we are doing so, and Samba offers a fix what would be the desired version for the fix to make it available in the axitoolbox packages?



    ------------------------------
    Wilhelm Seyerl
    ------------------------------



  • 4.  RE: Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Thu July 13, 2023 10:07 AM

    Yes, please file a bug report at Samba community. If a fix is available, we can try to incorporate the fix in our Toolbox build. 



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



  • 5.  RE: Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Fri August 18, 2023 08:50 AM

    Hi,

    First we posted the whole subject to the samba-mailing-list but no response so far. Now we will file a bug report but according to https://wiki.samba.org/index.php/Samba_Release_Planning Samba version 4.16 is flagged with "security fixes only". Moreover version 4.16 will be end of life ~2023-09. On the other hand, version 4.16 is the highest version currently available in the AIX Toolbox for Open Source Software.

    Are/will there any Samba packages available for 4.17 or 4.18?



    ------------------------------
    Wilhelm Seyerl
    ------------------------------



  • 6.  RE: Printers not shown after upgrade to Samba 4.16.8-2 and subsequent reboot

    Posted Fri August 18, 2023 08:59 AM

    We are working on 4.18.5 version right now. The ETA is before September end. 



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