Univention Bugzilla – Full Text Bug Listing |
Summary: | Broken cups symlink check in postinst | ||
---|---|---|---|
Product: | UCS | Reporter: | Hendrik Peter <hpeter> |
Component: | Printserver | Assignee: | Felix Botner <botner> |
Status: | CLOSED FIXED | QA Contact: | Erik Damrose <damrose> |
Severity: | normal | ||
Priority: | P5 | CC: | botner, m.bunkus |
Version: | UCS 4.3 | ||
Target Milestone: | UCS 4.3-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=47843 | ||
What kind of report is it?: | Development Internal | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | 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: |
Description
Hendrik Peter
2018-08-01 16:17:28 CEST
This leads to real problems with existing installations, see e.g. this forum thread[1]. In my case, an up-to-date UCS 4.3-2, "/usr/share/cups/model" was a directory, and inside there's a symlink "/usr/share/cups/model/ppd" → "/usr/share/ppd". Unfortunately the file names of all driver definitions (both the ones provided by Univention as the ones created myself in accordance with the admin manual[2]) are relative to /usr/share/ppd, but the "lpadmin" command that's executed in order to modify the printer looks in /usr/share/cups/model. For file names such as "foomatic-rip/Apple-ImageWriter-iwhi.ppd" "lpadmin" would look for "/usr/share/cups/model/foomatic-rip/Apple-ImageWriter-iwhi.ppd" — which obviously doesn't exist. If "/usr/share/cups/model" were a symlink to "/usr/share/ppd" instead, the relative file name would work again. The problem is that due to "lpadmin" not finding the PPD, it doesn't modify any of the other printer properties either, meaning none of the changes made in the LDAP end up in "printers.conf". My system was set up back in the days of… 4.1 or even 4.0, I don't quite remember. It was updated regularly via "univention-upgrade". [1] https://help.univention.com/t/cups-ppd-und-timing-problem/9988 [2] https://docs.software-univention.de/manual-4.3.html#central:udm:example:printer Addendum: here's an example error message from "/var/log/univention/listener.log" from my system where "/usr/share/cups/model" is still a directory with "/usr/share/cups/model/ppd" symlinking to "/usr/share/ppd": 07.11.18 09:20:12.583 LISTENER ( PROCESS ) : updating 'cn=aurora,cn=printers,dc=bs,dc=linet-services,dc=de' command m 07.11.18 09:20:12.627 LISTENER ( WARN ) : cups-printers: info: univention-lpadmin -u allow:all -o auth-info-required=none -p aurora -m foomatic-rip/Apple-ImageWriter-iwhi.ppd -v socket://aurora.bs.linet-services.de:9100 -E lpadmin: Unable to copy PPD file. The command "/usr/sbin/lpadmin -u allow:all -o auth-info-required=none -p aurora -m foomatic-rip/Apple-ImageWriter-iwhi.ppd -v socket://aurora.bs.linet-services.de:9100 -E -h localhost" returned 1 07.11.18 09:20:12.972 LISTENER ( ERROR ) : cups-printers: Failed to execute the univention-lpadmin command. Please check the cups state. {} {'austausch': {'invalid users': None, 'valid users': None, 'hosts deny': None, 'hosts allow': None}, 'PXE Images': {'invalid users': None, 'valid users': None, 'hosts deny': None, 'hosts allow': None}, 'n-central-installation': {'invalid us {'aurora': {'invalid users': None, 'valid users': None, 'hosts deny': None, 'smbname': None, 'hosts allow': None}} Reloading smbd. Reloading smbd configuration (via systemctl): smbd.service. Reloading smbd. Reloading smbd configuration (via systemctl): smbd.service. ensure /usr/share/cups/model is a link to /usr/share/ppd in postinst 4fdb5fc18a853968938815ab26857f45bf5c0994 - univention-printserver f9f0102e36d4f335c5082d98fd71cdbda3f0098f - yaml d0463e0ab14e2555725e9645e61fdf72a31d1893 - merged to 4.4-0 OK: ensure /usr/share/cups/model is a link to /usr/share/ppd in postinst OK: yaml OK: merge to 4.4-0, package build Verified |