Cups 2.1.4-3 broken
After the update in testing to Cups 2.1.4-3 it stopped working.
[tetris4@lappy ~]$ systemctl status org.cups.cupsd ● org.cups.cupsd.service - CUPS Scheduler Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit-hit) since Tue 2016-11-01 00:25:12 CET; 1h 5min ago Docs: man:cupsd(8) Process: 1684 ExecStart=/usr/bin/cupsd -l (code=exited, status=1/FAILURE) Main PID: 1684 (code=exited, status=1/FAILURE)
And in System Settings > Printers I get
print service is unavailable, bad file descriptor
Could you verify if lpadmin is listed in the groups?
cat /etc/groupif not, check the
/etc/group.pacnew, should be listed at the very bottom
Then, add our user to the lpadmin group
sudo gpasswd -a user group
- modify cups pkg in order to avoid replacing cups-files.conf
What is strange is that the cups pkg contains but that file is replaced anyway...
backup=etc/cups/cups-files.confUPDATE: that is a correct behaviour, if the file was not modified pacman will replace it
lpadmin was indeed not listed in /etc/group. I had to manually edit the file and add
lpadmin:x:997:to it. I could then run
sudo gpasswd -a tetris4 lpadminand after a reboot all worked fine. Thanks Luca!
The issue here is, since this was working fine, why did we change it?
Also does this affect all users? If yes, it means manual intervention is needed. Can't we avoid it? If not, we should then include it in the announcement.
I modified the admin group of cups in order to let the users add and remove printers without being root. For the live should not be a problem, I have to check if the final user is added to lpadmin. check this: tools/chakra-iso#3
The issue is on out current installations, I don't know how to automate it, I will search a solution otherwise we have to include it in the announcement but I don't like it, there are 2 files to modify.
Ok, I think I found how to do it, we can use the filesystem.install script to add group and users. https://chakralinux.org/code/core.git/tree/filesystem/filesystem.install
group number assigned is 107
Manual intervention is required to be part of the cups group, the user must use:
sudo gpasswd -a USERNAME lpadmin
As you are going to fix this for the new iso, perhaps is a good oportunity to update it to 2.2.1 as well. FS#1767