sudo journalctl -b and
sudo service cups status have the following error:
/hpfax: : error: Failed to create /var/spool/cups/tmp/.hplip
The output of
sudo namei -l /var/spool/cups/tmp/.hplip/hplip.conf is:
f: /var/spool/cups/tmp/.hplip/hplip.conf drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root spool drwx--x--- root lp cups drwxrwx--T root lp tmp drwxr-xr-x lp lp .hplip -rw-rw-rw- lp lp hplip.conf
Similar to the users in these unresolved posts, I have had an occasional pdf partially print:
- error: Failed to create /var/spool/cups/tmp/.hplip
- Printer will not print .pdf, .png and .ps files on Ubuntu 18
But it looks like this may be related to this bug, except that that bug was triggered by hpps. Whereas my issue was caused by hpfax (eventhough I’ve never owned a fax machine – LOL).
I have tried:
- uninstalling and reinstalling hplip, and hp-setup runs without any issues.
- removing and reinstalling my printers using hp-setup.
- running hp-check, which ends in “No errors or warnings” in green, bold font.
- renaming the .hplip folder, but when I reboot, the renamed folder is deleted and a new .hplip folder has been created, yielding the same error/permissions.
This makes me think it is a permissions issue, but the hplip user is not part of any groups. Should it be? Or should there be an hpfax user, and should it be part of the lp group that has permissions over the .hplip folder, as shown above?
I am currently running:
ubuntu 18.04 LTS
kernel 5.3.0-53-generic (x86_64)