Forum

Full Version: Samba gives unrelated CUPS errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I got a lot of error in my syslog:

Mar 11 21:38:24 xbian smbd[23983]: [2013/03/11 21:38:24.672990, 0] printing/print_cups.c:110(cups_connect)
Mar 11 21:38:24 xbian smbd[23983]: Unable to connect to CUPS server localhost:631 - Connection refused
Mar 11 21:38:24 xbian smbd[23306]: [2013/03/11 21:38:24.676635, 0] printing/print_cups.c:487(cups_async_callback)
Mar 11 21:38:24 xbian smbd[23306]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

My samba configuration:
xbian@xbian ~ $ cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
usershare allow guests = yes
security=share
follow symlinks = yes
wide links = yes
unix extensions = no
lock directory = /var/cache/samba

load printers = no
disable spoolss = yes


[xbian]
browsable = yes
read only = no
guest ok = yes
path = /home/xbian
force user = xbian

[Library]
browsable = yes
read only = no
guest ok = yes
path = /media/Tera/Library
force user = xbian
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775

[Portatile]
browsable = yes
read only = no
guest ok = yes
path = /media/Portatile
force user = xbian

[Tera]
browsable = yes
read only = no
guest ok = yes
path = /media/Tera
force user = xbian
xbian@xbian ~ $
We don't officially support CUPS (configuration) but if you manage to get it running, let us know what packages/configuration you needed. Than we will add it to our samba package and you still contributed Wink
But I don't want to use cups, I just want to remove all those errors...
Then your title is confusing...
I'm sorry about the title, what do you think it should be?
"Samba gives unrelated CUPS errors"
ok, title changed
Forgot about this: any solution? I still get a lot of unrelated CUPS errors...
How do I disable CUPS?
I'm on the last beta.
Have you just tried uninstalling it? I wonder if when you installed samba, you accepted CUPS in the process?

or CUPS will still have it's own configuration file, so edit that so that it "sort of" works.
(13th Nov, 2013 01:53 AM)IriDium Wrote: [ -> ]Have you just tried uninstalling it? I wonder if when you installed samba, you accepted CUPS in the process?

or CUPS will still have it's own configuration file, so edit that so that it "sort of" works.

I used xbian-config to install samba, no question asked.
I don't need it, I'd like to have the syslog clean of its garbage, I don't know how to "sort of" make it works...
Then try uninstalling it -
Terminal
sudo apt-get -s remove cups.
If that doesn't throw up any errors, remove the -s
No luck:
Terminal

xbian@xbian ~ $ sudo apt-get -s remove cups
[sudo] password for xbian:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'cups' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
xbian@xbian ~ $
cups is standard linux printing engine and somehow become like part of base install Sad(

btw: my beta2 install is fine without cups (apt-get purge cups). and I have also samba installed. currently the minimum possible is libcups2 installed. but exactly this is also where the support for other programs and your logging moved.

try to check those smb.conf switches against samba documentation:

cups server =
cups encrypt = No
cups connection timeout = 30
printing = cups
cups options =

maybe you find out how to limit the flooding to minimum.
Reference URL's