Print Service Unavailable: Bad file descriptor

I am trying to setup a HP printer but whenever I go to the System Settings it says “Print Service Unavailable” and “Bad file descriptor”. I remember clicking on “Allow users to cancel jobs (not just their own)” and after that it gave me an error. I launched systemsettings5 using the terminal and this was the output (systemsettings5 didn’t crash):

libkcups: CUPS-Get-Printers last error: 1282 Bad file descriptor
libkcups: Create-Printer-Subscriptions last error: 1282 Bad file descriptor
libkcups: Request failed 1282 -1
libkcups: CUPS-Get-Printers last error: 1282 Bad file descriptor
libkcups: -1 last error: 1280 Connection refused
libkcups: IPP_INTERNAL_ERROR: clearing cookies and reconnecting
libkcups: Failed to reconnect Invalid argument
libkcups: -1 last error: 1280 Connection refused
libkcups: IPP_INTERNAL_ERROR: clearing cookies and reconnecting
libkcups: Failed to reconnect Invalid argument
libkcups: -1 last error: 1280 Connection refused
libkcups: IPP_INTERNAL_ERROR: clearing cookies and reconnecting
libkcups: Failed to reconnect Invalid argument

btw i use manjaro

1 Like

Nevermind, I fixed it myself…
I removed the /etc/cups/cupsd.conf file and replaced it with /etc/cups/cupsd.conf.default. Then I restarted the CUPS service using sudo systemctl restart --now org.cups.cupsd.service.

I have the same error, your solution only works until I restart.

The same issue happened to me after installing the update. Reboot did not fix. I am not savvy enough tho to move files around as you did. hopefully, they fix with a new update.

solved it:
sudo systemctl start cups.service (to start the service once)
and
sudo systemctl enable cups.service (to permanently enable the service after reboot aka autostart)

5 Likes

Have the same issue here after the update. I tried the steps above (removing cupsd.conf and using sudo systemctl restart --now org.cups.cupsd.service .) but it returns
Failed to restart org.cups.cupsd.service…service: Unit org.cups.cupsd.service…service not found.

Found what I had to do, is the first post at the change log.

My guess is that I had that error because the services was already stopped.

1 Like

Same here.
Seems disabled is the default but the error in system settings is not as human readable as the update thread.
:slight_smile:

I also had this issue, thanks this fixed the issue for me… quick and easy :slight_smile:

This worked for me, thanks! The recent updates appear to have stopped my printer services.

This worked for me…

systemctl enable cups.service

and

systemctl start cups.service

This should be the accepted answer! Thanks a lot!