Bug 56006 - 99ucs-school-umc-printermoderation.inst stuck with "Failed to set machine account: NT_STATUS_CANT_ACCESS_DOMAIN_INFO"
99ucs-school-umc-printermoderation.inst stuck with "Failed to set machine acc...
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Printermoderation
UCS@school 5.0
Other Linux
: P5 minor (vote)
: UCS@school 5.0 v3
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-21 10:37 CEST by Johannes Königer
Modified: 2023-04-21 10:37 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Königer univentionstaff 2023-04-21 10:37:04 CEST
When installing the package ucs-school-umc-printermoderation it fails for 5 minutes with "Failed to set machine account: NT_STATUS_CANT_ACCESS_DOMAIN_INFO", afterwards, the joinscript 99ucs-school-umc-printermoderation.inst exits with exit code 0.

Seen on an Univention Primary Directory Node 5.0-3 with errata level 645 and UCS@School version 5.0 v3.

(Maybe) related bug from 4.4: https://forge.univention.org/bugzilla/show_bug.cgi?id=49521


The relevant for-loop from share/set-windows-driver-for-pdf-printer (last commit: 60a910f7e401d8143eeab92ee8fe2fa7db8af617) line 90-99:
"""
for i in $(seq 1 300); do
        sleep 1
        if rpcclient -P -c 'enumprinters' $hostname | grep -q "\\\\PDFDrucker"; then
                rpcclient -P -c "setdriver PDFDrucker '$ucsschool_printermoderation_windows_driver_name'" $hostname
                ret=$?
                if [ "$ret" -eq 0 ]; then
                        break
                fi
        fi
done
"""

After package installation, univention-app info:
"""
UCS: 5.0-3 errata645
Installed: cups=2.2.1 self-service-backend=5.0 ucsschool=5.0 v3
Upgradable:
"""