CUPS - Printer stuck at “waiting for job to complete”

asked 2016-09-12 07:31:40 -0500

pandita gravatar image

updated 2016-09-17 03:54:55 -0500

Crossposting from Unix Stackexchange

I'm on Fedora 24 and am trying to print.

My printer is a Brother MFC-J6520DW which worked well on Debian. I installed the driver from Brother's webpage.

Whenever I try to print a test page, the printer status never gets beyond "Processing - Waiting for job to complete". On the screen of the printer itself it says "Retrieving Data". After a very long time (some minutes) the printer releases an empty page.

The printer sits on a network and works fine from other non-Fedora devices.

I have tried the following:

  • explicitly allow MyUser in the CUPS webinterface (localhost:631)
  • ensured that the ipp and ipp-client services are trusted by the firewall (I understand that these are needed for printing).

Not really sure what to do next to try to fix this....

EDIT 2

SELinux asked me to use the following commands. Before that, the printer didn't even notice that I wanted to print...

setsebool -P cups_execmem 1
ausearch -c 'brprintconf_mfc' --raw | audit2allow -M my-brprintconfmfc
semodule -X 300 -i my-brprintconfmfc.pp

Following are the outputs of the requested commands:

>>> df -h /var/spool/cups
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda8        52G   13G   36G  27% /var


>>> ls -lh /var/spool/cups
total 88K
-rw-------. 1 root lp 1.1K Aug 27 10:33 c00001
-rw-------. 1 root lp  957 Aug 27 10:44 c00002
-rw-------. 1 root lp 1.5K Aug 27 12:18 c00003
-rw-------. 1 root lp 1.5K Sep  3 10:29 c00004
-rw-------. 1 root lp  953 Sep 11 19:35 c00005
-rw-------. 1 root lp  953 Sep 11 19:37 c00006
-rw-------. 1 root lp  961 Sep 11 19:57 c00007
-rw-------. 1 root lp  957 Sep 11 19:59 c00008
-rw-------. 1 root lp  961 Sep 11 20:05 c00009
-rw-------. 1 root lp  957 Sep 11 20:08 c00010
-rw-------. 1 root lp  957 Sep 11 20:14 c00011
-rw-------. 1 root lp  961 Sep 11 23:14 c00012
-rw-------. 1 root lp  957 Sep 12 07:02 c00013
-rw-------. 1 root lp  961 Sep 12 07:08 c00014
-rw-------. 1 root lp  961 Sep 13 19:25 c00015
-rw-------. 1 root lp  961 Sep 14 19:39 c00016
-rw-------. 1 root lp  957 Sep 14 19:45 c00017
-rw-------. 1 root lp  961 Sep 14 19:50 c00018
-rw-r-----. 1 root lp  234 Sep 11 19:35 d00006-001
-rw-r-----. 1 root lp  234 Sep 11 19:57 d00008-001
-rw-r-----. 1 root lp  234 Sep 11 20:07 d00010-001
drwxrwx--T. 2 root lp 4.0K Sep 15 23:47 tmp

EDIT CUPS is logging tons of lines..... from hitting "Print test page" to given me a white sheet of paper its more than 4000 log entries in about 5 minutes. I couldn't find anything glaring obvious but in the following where a few oddities. Note the "No authentication provided" in the first line and the "Broken pipe" in the last.

Is anything in there helpful ... (more)

edit retag flag offensive close merge delete

Comments

Check the logs. First clear the print queue and systemctl restart cups. Run journalctl -fa -u cups as root in a terminal window, then try to print. See what shows up in the log.

ssieb gravatar imagessieb ( 2016-09-12 18:27:47 -0500 )edit

Thanks @Samuel. Please see latest edit.

pandita gravatar imagepandita ( 2016-09-14 05:03:48 -0500 )edit

Could you put the whole log at http://paste.fedoraproject.org/ ?

ssieb gravatar imagessieb ( 2016-09-14 16:00:47 -0500 )edit

you could try SELinux Trouble Shooter for printer related issues

ceres2009 gravatar imageceres2009 ( 2016-09-14 17:02:02 -0500 )edit
pandita gravatar imagepandita ( 2016-09-15 05:01:37 -0500 )edit