Can't install printer om 11.4: cups daemon not running

I’m a recent convert from PCLinuxOS. I like the looks of OpenSuse much better but I’m having some issues with it.

When I try to install my printer with Yast it says there’s no local cups daemon running. It will try to restart the daemon and then tell me it still isn’t able to connect to the cups daemon.
When I go the the system monitor via Krunner I can see that the cupsd daemon is running (root).
I installed the unofficial 64 bit “KDE reloaded cd” from the dutch wiki.
Any suggestions?

When I try to install my printer with Yast it says there’s no local cups daemon running. It will try to restart the daemon and then tell me it still isn’t able to connect to the cups daemon.
When I go the the system monitor via Krunner I can see that the cupsd daemon is running (root).

How odd. Make sure that the CUPS printer daemon is enabled here

YaST>>System>>System Services (Runlevel)

although I’m not sure why it wouldn’t be.

You can check the status of CUPS with

rccups status

As a suggestion, try configuring your printer with the CUPS web interface instead (via a browser):

http://localhost:631/admin

Any difference?

Thanks for the reply, deano_ferrari.
Still no luck, though. It seems to work by using the web interface: it goes all the way and doesn’t produce errors, but the printer is not showing up in Yast or in Firefox and LibreOffice Writer. I ran it as root and I could print a testpage from the web interface.

When I run rccups status it tells me cups daemon is running and “YaST>>System>>System Services (Runlevel)” also indicates cups is running. Going back to “Yast > Hardware > Printer” still tells me there’s no cups daemon running locally. Is it supposed to run as root as it does?

Yast tells me to check with lpstat -h localhost -r whether the daemon is running. Only taskplanner (mine is dutch so it says “Taakplanner”) shows up…

On 2011-04-27 23:06, MattijsKattouw wrote:

> When I run rccups status it tells me cups daemon is running and
> “YaST>>System>>System Services (Runlevel)” also indicates cups is
> running. Going back to “Yast > Hardware > Printer” still tells me
> there’s no cups daemon running locally. Is it supposed to run as root as
> it does?

Well, that’s a bug you should report to whoever packaged what you
installed, and that is not openSUSE.

Or, remove that install and really install openSUSE.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Yast tells me to check with lpstat -h localhost -r whether the daemon is running. Only taskplanner (mine is dutch so it says “Taakplanner”) shows up…

Is the scheduler running?

lpstat -h localhost -r

Struggling to get a handle on this. Maybe a bug as Carlos also suspects. Can you ‘print to file’ ok? (I think that still requires CUPS, so a reasonable test…)

What does the following command return?

cat /etc/cups/cupsd.conf |grep Listen

For reference, I get

Listen localhost:631
Listen /var/run/cups/cups.sock

I would also have a look at /etc/cups/printers.conf too. (Post the output).

I can print to a file. Somehow overnight the printer showed up in firefox. In system-config-printer I could make contact to server “/var/run/cups/cups.sock” instead of localhost. That makes i8t possible to print, but still from Yast I get the message there’s no local cups daemon running.
“lpstat -h localhost -r” gives me only taskscheduler is active.
“cat /etc/cups/cupsd.conf |grep Listen” reports “Acces denied”.
When I open etc/cups/printers.conf in Kwrite it’s completely blank… I see another file there that’s called printers.conf0.
Could this be a bug indeed?

On Thu April 28 2011 01:06 am, MattijsKattouw wrote:

>
> I can print to a file. Somehow overnight the printer showed up in
> firefox. In system-config-printer I could make contact to server
> “/var/run/cups/cups.sock” instead of localhost. That makes i8t possible
> to print, but still from Yast I get the message there’s no local cups
> daemon running.
> “lpstat -h localhost -r” gives me only taskscheduler is active.
> “cat /etc/cups/cupsd.conf |grep Listen” reports “Acces denied”.
> When I open etc/cups/printers.conf in Kwrite it’s completely blank… I
> see another file there that’s called printers.conf0.
> Could this be a bug indeed?
>
>
mattijsKattouw;

You need root privilege to read these files: Try


su -
cat /etc/cups/cupsd.conf | grep Listen
cat /etc/cups/printers.conf
exit


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

I am able to print now. In the webinterface I set myself to be an allowed user and in the system-config-printer program I set the connection to the CUPS server from localhost to /var/run/cups/cups.sock.
Through Yast I still get the "no local Cups daemon running error.

That last command.you gave me gave:

# Printer configuration file for CUPS v1.4.6
# Written by cupsd on 2011-04-27 23:38
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer Canon_iP4500_series>
Info Canon iP4500 series
Location Zolder
MakeModel Canon PIXMA iP4500 - CUPS+Gutenprint v5.2.6
DeviceURI usb://Canon/iP4500%20series
State Idle
StateTime 1303936724
Type 45084
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 100 rastertogutenprint.5.2
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser mattijs
OpPolicy default
ErrorPolicy stop-printer
</Printer>

I can just leave it at this since I’m able to print but there is a misconfiguration somewhere, probably in the Yast printer module. Any final ideas?

On Thu April 28 2011 02:06 pm, MattijsKattouw wrote:

>
> I am able to print now. In the webinterface I set myself to be an
> allowed user and in the system-config-printer program I set the
> connection to the CUPS server from localhost to
> /var/run/cups/cups.sock.
> Through Yast I still get the "no local Cups daemon running error.
>
> That last command.you gave me gave:
>
<snip>
> --------------------
>
>
> I can just leave it at this since I’m able to print but there is a
> misconfiguration somewhere, probably in the Yast printer module. Any
> final ideas?
>
MattijsKattouw;

Congratulations on getting the printer to work. It is often easier to use the
CUPS front end directly rather than use to use YaST to install printers.

You might want to wait for deano ferrari to respond, but I would recommend:

  1. Make sure you have the most recent updates from OpenSuse and
  2. Reinstall the “yast2-printer” package. Get the package from the repos not
    from the DVD.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Yes, a good idea to see if there are any updates available:

sudo zypper up

I’d still like to see the output from the following as well:

su -
cat /etc/cups/cupsd.conf | grep Listen

I typed “su zypper up” in the terminal and it ended up updating a couple of packages like gstreamer and even the kernel.
I had already reinstalled the printer module in Yast from the repo, but to no avail.

The command “cat /etc/cups/cupsd.conf | grep Listen” returned:

Listen localhost:631
Listen /var/run/cups/cups.sock

Still not able to set the printer through Yast, though system-config-printer works and the web interface also works.

Have a look at the bug reports. You may have a submit a new one for the yast printer tool.

https://bugzilla.novell.com/index.cgi

On 2011-04-29 20:36, MattijsKattouw wrote:
> Still not able to set the printer through Yast, though
> system-config-printer works and the web interface also works.

I don’t normally use the YaST printer module, except the first time. From
then on, I only use cups web interface.

Still, you may have found a bug. However, you are not really using an
openSUSE official release.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)