You are not logged in.

#1 2018-02-04 11:40:17

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

[Solved] Brother HL-5250DN Problem with printing after CUPS upgrade

Hello all,
already solved but I hope someone finds it useful.
Today I saw that there was a permission change within CUPS package:

[2018-02-04 11:26] [ALPM] upgraded libcups (2.2.6-1 -> 2.2.6-4)
[2018-02-04 11:26] [ALPM] upgraded cups-filters (1.17.9-3 -> 1.20.0-1)
[2018-02-04 11:26] [ALPM] upgraded cups (2.2.6-1 -> 2.2.6-4)
[2018-02-04 11:26] [ALPM-SCRIPTLET] Cups daemon is now running under "cups" user+group.
[2018-02-04 11:26] [ALPM-SCRIPTLET] /etc/cups/cups-files.conf or merge changes from
[2018-02-04 11:26] [ALPM-SCRIPTLET] /etc/cups/cups-files.conf.default. After a service restart
[2018-02-04 11:26] [ALPM-SCRIPTLET] make sure /etc/cups and all files within are owned by
[2018-02-04 11:26] [ALPM-SCRIPTLET] cups group - run "chgrp -R cups /etc/cups".

I just copied the file /etc/cups/cups-files.conf.default into /etc/cups/cups-files.conf and executed chgrp -R cups /etc/cups. To be safe, I rebooted PC and checked if CUPS prints but unfortunately it didn't.

So I enabled debug in /etc/cups/cupsd.conf:

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn << change to debug
#PageLogFormat

and typed:

tail -f /var/log/cups/error_log

And restarted cups service:

systemctl restart org.cups.cupsd.service

The error log showed me something interesting:

D [04/Feb/2018:12:04:13 +0100] [Job 1369] Error: /usr/./././Brother/inf/brHL5250DNrc :cannot open file !!
D [04/Feb/2018:12:04:13 +0100] [Job 1369] sed: can\'t read /usr/./././Brother/inf/brHL5250DNrc: Permission denied

This was meaningless because of malformed path but after googling (https://bbs.archlinux.org/viewtopic.php … 2#p1712222) I realized that I have /usr/Brother directory in my filesystem.

mk@linux ~]$ pacman -Qo /usr/Brother/
/usr/Brother/ belongs to brother-cups-wrapper-common 1.0.0-1
/usr/Brother/ belongs to brother-cups-wrapper-laser 2.0.1_2_0ubuntu6-1
/usr/Brother/ belongs to brother-lpr-drivers-common 1.0.0-1
/usr/Brother/ belongs to brother-lpr-drivers-laser 2.0.1_3_0ubuntu5-1

I remember now that I installed from AUR brother-lpr-drivers-laser as it had drivers or ppds or something I don't really know but seems this printer needs. Instead of modifying permissions I just reinstalled those packages (as I was curious if the package is broken itself or not):

yaourt -S brother-lpr-drivers-laser brother-lpr-drivers-common

and the problem was gone. Remember to change debug to warn and restart cups afterwards.

Offline

Board footer

Powered by FluxBB