PDA

View Full Version : Can't set up printers on fedora 17



ryanvade
18th September 2012, 02:51 AM
Hello everybody
I am having lots of problems with printing on my Fedora 17 x86_64 KDE install. It stated with me trying to set up a network samba printer. I got this:

There was an error during the CUPS operation: 'cups-authorization-canceled'.
I then upgraded cups to 1.6 instead of 1.5.
Now I get this weird module error:
http://i1251.photobucket.com/albums/hh555/ryanvade/moduelerror.png

Now the whole printer option dialogue doesn't work. Their is also an Automatic Bug Report for the kde-runtime. as well as Jovie talking to me for some reason....
Also the cups service won't start/stay started:

[ryan@ryan-linux-desktop Documents]$ service cups status
cups: scheduler is not running.
[ryan@ryan-linux-desktop Documents]$ sudo service cups start
[sudo] password for ryan:
Starting cups (via systemctl): [ OK ]
[ryan@ryan-linux-desktop Documents]$ service cups status
cups: scheduler is not running.
[ryan@ryan-linux-desktop Documents]$


Do I need to reset KDE? What can I do? I am totally lost here. Please help..

---------- Post added at 08:04 PM ---------- Previous post was at 08:02 PM ----------

Process /usr/bin/nepomukservicestub was killed by signal 11 (SIGSERGV)

I can't report it because the bactrace is unusable.

---------- Post added at 08:15 PM ---------- Previous post was at 08:04 PM ----------

[ryan@ryan-linux-desktop Documents]$ sudo service cupsd start
Redirecting to /bin/systemctl start cupsd.service
Failed to issue method call: Unit cupsd.service failed to load: No such file or directory. See system logs and 'systemctl status cupsd.service' for details.

---------- Post added at 08:36 PM ---------- Previous post was at 08:15 PM ----------

https://bugzilla.redhat.com/show_bug.cgi?id=858107

---------- Post added at 08:51 PM ---------- Previous post was at 08:36 PM ----------


system-config-printer
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 55, in <module>
import cups
ImportError: libcups.so.2: cannot open shared object file: No such file or directory

marko
18th September 2012, 03:23 AM
[ryan@ryan-linux-desktop Documents]$ sudo service cupsd start
Redirecting to /bin/systemctl start cupsd.service
Failed to issue method call: Unit cupsd.service failed to load: No such file or directory. See system logs and 'systemctl status cupsd.service' for details.



The problem there was the that the service is named "cups" not "cupsd"

try:
sudo service cups start

system-config-printer Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 55, in <module> import cups ImportError: libcups.so.2: cannot open shared object file: No such file or directorythis suggests to me you don't have the cups-libs package installed

ryanvade
18th September 2012, 03:59 AM
Thanks Marko.

This is what I get now

[ryan@ryan-linux-desktop Documents]$ sudo service cups start
[sudo] password for ryan:
Redirecting to /bin/systemctl start cups.service
[ryan@ryan-linux-desktop Documents]$ sudo service cups status
Redirecting to /bin/systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Mon, 17 Sep 2012 21:46:21 -0500; 12s ago
Process: 4988 ExecStart=/usr/sbin/cupsd -f (code=exited, status=127)
CGroup: name=systemd:/system/cups.service


---------- Post added at 09:48 PM ---------- Previous post was at 09:47 PM ----------

The kde printing configuration in the control panel still dosen't work either.

---------- Post added at 09:59 PM ---------- Previous post was at 09:48 PM ----------


sudo yum install cups-libs
[sudo] password for ryan:
Loaded plugins: langpacks, presto, refresh-packagekit
Package 1:cups-libs-1.5.4-2.fc17.x86_64 already installed and latest version
Nothing to do

marko
18th September 2012, 05:16 AM
Weird, libcups.so.2 is from the cups-libs package, rpm is saying you have it but the system-config-printer can't get the library loaded. Can you post:


ls -l /usr/lib64/libcups.so.2
and


ldconfig -p | grep libcupsthese will confirm: 1) you actually have the libcups.so.2 file on the filesystem
and 2) that it's findable in the ldconfig system

BTW, where did you get cups 1.6? Since Fedora 17 is currently on cups 1.5.4, it's likely that cups 1.6 grabbed from http://cups.org/software.php
might cause problems with the library versions

ryanvade
20th September 2012, 12:46 AM
libcups.so.2 is missing. I don' t know why


[ryan@ryan-linux-desktop ~]$ ldconfig -p | grep libcups
libcupsppdc.so.1 (libc6,x86-64) => /lib64/libcupsppdc.so.1
libcupsppdc.so (libc6,x86-64) => /lib64/libcupsppdc.so
libcupsmime.so.1 (libc6,x86-64) => /lib64/libcupsmime.so.1
libcupsmime.so (libc6,x86-64) => /lib64/libcupsmime.so
libcupsimage.so.2 (libc6,x86-64) => /lib64/libcupsimage.so.2
libcupsimage.so (libc6,x86-64) => /lib64/libcupsimage.so
libcupsdriver.so.1 (libc6,x86-64) => /lib64/libcupsdriver.so.1
libcupscgi.so.1 (libc6,x86-64) => /lib64/libcupscgi.so.1
libcupscgi.so (libc6,x86-64) => /lib64/libcupscgi.so
libcups.so.2 (libc6,x86-64) => /lib64/libcups.so.2
libcups.so (libc6,x86-64) => /lib64/libcups.so




[ryan@ryan-linux-desktop ~]$ ls -l /usr/lib64/libcups.so.2
ls: cannot access /usr/lib64/libcups.so.2: No such file or directory


---------- Post added at 05:03 PM ---------- Previous post was at 04:56 PM ----------

I'm going to reinstall cups via yum. I have already un-installed 1.6.1 (yes from cups.org) with make uninstall. Maybe that will work. If it dosen't is their a good alternative to cups?

---------- Post added at 05:28 PM ---------- Previous post was at 05:03 PM ----------

I uninstalled and then rebooted. Installed again and it didn't work. I uninstalled again, rebooted and remade 1.6.1 and installed it. I get this now:


[ryan@ryan-linux-desktop cups-1.6.1]$ ldconfig -p | grep libcups
libcupsdriver.so.1 (libc6,x86-64) => /lib64/libcupsdriver.so.1
[ryan@ryan-linux-desktop cups-1.6.1]$ sudo ls -l /usr/lib64/libcups.so.2
[sudo] password for ryan:
-r-xr-xr-x. 1 root root 370211 Sep 19 17:24 /usr/lib64/libcups.so.2


so now the library is installed but ldconfig won't find it. I still can't setup the printer either. both the kmodule and localhost:631 don't work.

---------- Post added at 05:31 PM ---------- Previous post was at 05:28 PM ----------

Well running


sudo ldconfig

fixes the ldconfig part. but the kmodule still doesn't work. neither does localhost:631

---------- Post added at 05:33 PM ---------- Previous post was at 05:31 PM ----------

well.
sudo service cups start fixes that. but I can't login to localhost:631.

---------- Post added at 05:34 PM ---------- Previous post was at 05:33 PM ----------

There was an error during the CUPS operation: 'cups-authorization-canceled'.

---------- Post added at 06:46 PM ---------- Previous post was at 05:34 PM ----------

I was able to find and add the printer. But it won't print the test page.

ryanvade
20th September 2012, 01:18 AM
from the messages log:


Sep 19 17:31:25 ryan-linux-desktop cups[16619]: [ OK ]#015cups: started scheduler.
Sep 19 17:35:12 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 533bbc31-6b7a-4aba-a339-f7b938754c43
Sep 19 17:35:14 ryan-linux-desktop kernel: [ 969.864323] cups-pk-helper-[17375] trap int3 ip:32f3c4e801 sp:7fff73359440 error:0
Sep 19 17:35:15 ryan-linux-desktop abrt[17409]: Saved core dump of pid 17375 (/usr/libexec/cups-pk-helper-mechanism) to /var/spool/abrt/ccpp-2012-09-19-17:35:14-17375 (18313216 bytes)
Sep 19 17:35:15 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from read access on the file 0. For complete SELinux messages. run sealert -l 70955e61-035f-4151-b3b4-8c8dc773c962
Sep 19 17:37:35 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 533bbc31-6b7a-4aba-a339-f7b938754c43
Sep 19 17:37:37 ryan-linux-desktop kernel: [ 1112.898470] cups-pk-helper-[18008] trap int3 ip:32f3c4e801 sp:7fffff8a3210 error:0
Sep 19 17:37:37 ryan-linux-desktop abrt[18030]: Saved core dump of pid 18008 (/usr/libexec/cups-pk-helper-mechanism) to /var/spool/abrt/ccpp-2012-09-19-17:37:37-18008 (18313216 bytes)
Sep 19 17:37:38 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from read access on the file 0. For complete SELinux messages. run sealert -l 70955e61-035f-4151-b3b4-8c8dc773c962
Sep 19 17:43:10 ryan-linux-desktop cups[709]: [ OK ]#015cups: started scheduler.
Sep 19 17:43:14 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/smbd from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 217623ff-0b49-4554-9f77-ac51c9e03252
Sep 19 17:47:12 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 533bbc31-6b7a-4aba-a339-f7b938754c43
Sep 19 17:56:11 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/smbd from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 217623ff-0b49-4554-9f77-ac51c9e03252
Sep 19 18:00:46 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 533bbc31-6b7a-4aba-a339-f7b938754c43
Sep 19 18:00:48 ryan-linux-desktop kernel: [ 1080.634114] cups-pk-helper-[4412] trap int3 ip:32f3c4e801 sp:7fffef6dfe90 error:0
Sep 19 18:00:49 ryan-linux-desktop abrt[4437]: Saved core dump of pid 4412 (/usr/libexec/cups-pk-helper-mechanism) to /var/spool/abrt/ccpp-2012-09-19-18:00:48-4412 (18309120 bytes)
Sep 19 18:00:49 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from read access on the file 0. For complete SELinux messages. run sealert -l 70955e61-035f-4151-b3b4-8c8dc773c962
Sep 19 18:05:36 ryan-linux-desktop kernel: [ 1368.547573] cups-pk-helper-[5701] trap int3 ip:32f3c4e801 sp:7fffe53b8d10 error:0
Sep 19 18:05:36 ryan-linux-desktop abrt[5706]: Saved core dump of pid 5701 (/usr/libexec/cups-pk-helper-mechanism) to /var/spool/abrt/ccpp-2012-09-19-18:05:36-5701 (18313216 bytes)
Sep 19 18:05:36 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from getattr access on the sock_file /run/cups/cups.sock. For complete SELinux messages. run sealert -l 533bbc31-6b7a-4aba-a339-f7b938754c43
Sep 19 18:05:36 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/libexec/cups-pk-helper-mechanism from read access on the file 0. For complete SELinux messages. run sealert -l 70955e61-035f-4151-b3b4-8c8dc773c962
Sep 19 18:09:12 ryan-linux-desktop smbd[6657]: [2012/09/19 18:09:12.316355, 0] printing/print_cups.c:110(cups_connect)
Sep 19 18:09:12 ryan-linux-desktop smbd[6657]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - Permission denied
Sep 19 18:09:12 ryan-linux-desktop smbd[776]: [2012/09/19 18:09:12.338743, 0] printing/print_cups.c:487(cups_async_callback)
Sep 19 18:09:12 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/smbd from write access on the sock_file cups.sock. For complete SELinux messages. run sealert -l 294a925e-b32c-4c29-aff7-f25e0e0958f8
Sep 19 18:20:03 ryan-linux-desktop yum[12578]: Installed: 1:cups-1.5.4-2.fc17.x86_64
Sep 19 18:20:03 ryan-linux-desktop yum[12578]: Installed: ghostscript-cups-9.05-1.fc17.x86_64
Sep 19 18:20:54 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:27:34 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:30:26 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:30:55 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:33:30 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:37:57 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:38:33 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:40:09 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:42:18 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from write access on the file /etc/cups/subscriptions.conf.O. For complete SELinux messages. run sealert -l 36bba518-611e-47c2-83e8-987a3f7a3e16
Sep 19 18:49:24 ryan-linux-desktop cupsd[3608]: /usr/sbin/cupsd: symbol lookup error: /usr/sbin/cupsd: undefined symbol: _ippFreeAttr
Sep 19 18:49:24 ryan-linux-desktop systemd[1]: cups.service: main process exited, code=exited, status=127
Sep 19 18:49:24 ryan-linux-desktop systemd[1]: Unit cups.service entered failed state.
Sep 19 18:53:47 ryan-linux-desktop cupsd[774]: /usr/sbin/cupsd: symbol lookup error: /usr/sbin/cupsd: undefined symbol: _ippFreeAttr
127
Sep 19 19:07:50 ryan-linux-desktop systemd[1]: Unit cups.service entered failed state.
Sep 19 19:08:23 ryan-linux-desktop setroubleshoot: SELinux is preventing /usr/sbin/cupsd from rename access on the file /etc/cups/subscriptions.conf. For complete SELinux messages. run sealert -l 4cd1f49a-f14e-401b-b0ba-a2b2bea7af44


---------- Post added at 07:18 PM ---------- Previous post was at 07:17 PM ----------

SElinux is causing the problems:


you can run restorecon.
# /sbin/restorecon -v /etc/cups/subscriptions.conf

marko
20th September 2012, 02:08 AM
Well, installing an alien cups that you built yourself is probably going to cause problems with selinux because it might not be fully defined in the selinux policies that Fedora 17 comes with. That's because cups 1.6 might have slight design changes in it compared to the cups 1.5.4 in Fedora. I don't really understand why the authorization problem you mentioned in post 1 lead you to go to cups.org and cups 1.6.

I'd suggest you use the native cups 1.5.4 via cups that's in Fedora and that works with the Selinux in Fedora and then fix the samba problem with that.

can you post the results from these?:


systemctl status cups.path
systemctl status cups.socket
systemctl status cups.service

Note you should have all of those activated

Notice this is using systemctl directly, in post 1 you were using the service system which is deprecated, it will direct commands to systemctl but then you get less feedback. systemctl status <service> results in more output about what's wrong

Using a network samba printer will require some samba support packages installed, you'll probably need samba and samba-common.
Also system-config-samba would be useful

ryanvade
20th September 2012, 03:06 AM
[ryan@ryan-linux-desktop Documents]$ systemctl status cups.path
cups.path - CUPS Printer Service Spool
Loaded: loaded (/usr/lib/systemd/system/cups.path; enabled)
Active: active (running) since Wed, 19 Sep 2012 18:50:59 -0500; 2h 4min ago



[ryan@ryan-linux-desktop Documents]$ systemctl status cups.socket
cups.socket - CUPS Printing Service Sockets
Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled)
Active: active (running) since Wed, 19 Sep 2012 18:50:59 -0500; 2h 5min ago
CGroup: name=systemd:/system/cups.socket


[ryan@ryan-linux-desktop Documents]$ systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: active (running) since Wed, 19 Sep 2012 20:07:59 -0500; 48min ago
Main PID: 19218 (cupsd)
CGroup: name=systemd:/system/cups.service
└ 19218 /usr/sbin/cupsd -f




i had switched to 1.6.1 because i had heard of a possible fix with the new version. i am now back to 1.5.
i got as far as connecting to the printer. i can't print though...

---------- Post added at 08:59 PM ---------- Previous post was at 08:58 PM ----------

The printing problem now is that the jobs get held for authentication, which is a bug since fc10, and that even documents that aren't held don't get printed.

---------- Post added at 09:06 PM ---------- Previous post was at 08:59 PM ----------

The authentication during set up of the printer is the problem.Why do I have to login? the printer is supposed t shared with "Everyone" according to the windows computer. Am I supposed to login with my credentials on my linux machine? I still can't login to the web control of cups still as well. That is really annoying.

marko
20th September 2012, 05:52 AM
The authentication during set up of the printer is the problem. why do I have to login? the printer is supposed t shared with "Everyone" according to the windows computer. Am I supposed to login with my credentials on my linux machine? I still can't login to the web control of cups still as well. That is really annoying. With Cups on linux, you only need to log into cups with the root password to add new printers or do other configuration changes in cups. You otherwise don't need any authentication. Windows also password protects system level set up like printing (well, it should, lots of windows machines are set up so the user is the admin)

Otherwise how else would you prevent users from fiddling around with the print system?

ryanvade
21st September 2012, 07:45 PM
Okay when I add the printer to my system I click 'verify' to make sure it works. It then asks me thishttp://i1251.photobucket.com/albums/hh555/ryanvade/authentication_zps7dd47514.png
I assumed it was the windows login, since that is the ip of the windows machine. No matter what I try it dosen't work. I have tried my user/password and the root user/password on my Linux machine as well .
What am I doing wrong?

I keep getting this too.
http://i1251.photobucket.com/albums/hh555/ryanvade/cups-internalerror_zpsf09fe48f.png
If I ignore the error I get multiple copies of the printer:
http://i1251.photobucket.com/albums/hh555/ryanvade/snapshot_zps6b45f3e1.png
If I print a test page it gets held up:
http://i1251.photobucket.com/albums/hh555/ryanvade/printstatus_zps6e3af7ae.png
and If i try to authenticate it I get the internal error again. I tried to print the current page and it seemed to go fine. It hasn't printed but it wasn't held for authentication either.

marko
21st September 2012, 08:37 PM
I don't use samba at all but only cups alone. I think you're having some problem with samba. I did do a samba setup at work once but that was just for file system sharing between Windows and Red Hat

there's a cups specific error log in /var/log/cups/error_log

You can also boost the verbosity of cups by editing the /etc/cups/cupsd.conf to change

I'm thinking you need to use "smbpasswd" to make the samba password for your account

http://fedoraproject.org/wiki/Administration_Guide_Draft/Samba


LogLevel warn
to
LogLevel debug

then restart cups

ryanvade
1st October 2012, 11:41 PM
I hope you are still looking at my post marko.
I tried to edit the smbpasswd and got this:

smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON_FAILURE

Also got this

There were no SMB print shares found. Please check that the Samba service is running and marked as trusted in your firewall configuration.

marko
1st October 2012, 11:59 PM
make sure both nmb and smb services are enabled and running

ryanvade
2nd October 2012, 12:45 AM
restarted the computer and it fixed that problem. the old problems are back though. I am still reading the samba guide. Any particular part of the guide I should look at?