LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CUPS error in Slackware 12 (https://www.linuxquestions.org/questions/slackware-14/cups-error-in-slackware-12-a-622353/)

AceofSpades19 02-19-2008 06:13 PM

CUPS error in Slackware 12
 
Hello,

My printer was working fine until one day, it stopped working :(, its a Canon PIXMA iP1600, here is the error log
Code:

I [19/Feb/2008:16:02:29 -0800] Listening to 127.0.0.1:631 (IPv4)
I [19/Feb/2008:16:02:29 -0800] Listening to /var/run/cups/cups.sock (Domain)
I [19/Feb/2008:16:02:29 -0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [19/Feb/2008:16:02:29 -0800] Using default TempDir of /var/spool/cups/tmp...
I [19/Feb/2008:16:02:29 -0800] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [19/Feb/2008:16:02:29 -0800] Configured for up to 100 clients.
I [19/Feb/2008:16:02:29 -0800] Allowing up to 100 client connections per host.
I [19/Feb/2008:16:02:29 -0800] Using policy "default" as the default!
I [19/Feb/2008:16:02:29 -0800] Full reload is required.
I [19/Feb/2008:16:02:30 -0800] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [19/Feb/2008:16:02:31 -0800] Loading NextJobId from job cache file "/var/cache/cups/job.cache"...
I [19/Feb/2008:16:02:31 -0800] Full reload complete.
I [19/Feb/2008:16:02:32 -0800] Listening to 127.0.0.1:631 on fd 0...
I [19/Feb/2008:16:02:32 -0800] Listening to /var/run/cups/cups.sock on fd 2...
E [19/Feb/2008:16:02:32 -0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

The odd thing is, it had that error before in the log and it worked fine, any ideas?

aus9 02-19-2008 11:31 PM

well printers are desinged to fail.....ink dries up....heads get clogged so it could be a hardware issue = dead printer.

2) have you opened a web browser and just gone into address
localhost:631......if cups service is enabled and listening....you should get the cups home page...then click on printers and see what it reports

H_TeXMeX_H 02-20-2008 01:49 PM

Well, typically thing don't just happen out of the blue like that (except of course hardware failure, but that's the last thing to assume). Did you do anything before this happened ? Upgrade anything, change anything ?

AceofSpades19 02-20-2008 05:11 PM

Quote:

Originally Posted by aus9 (Post 3063308)
well printers are desinged to fail.....ink dries up....heads get clogged so it could be a hardware issue = dead printer.

2) have you opened a web browser and just gone into address
localhost:631......if cups service is enabled and listening....you should get the cups home page...then click on printers and see what it reports

No, cups is not running because of that error, I should have made myself more clear, my bad

Quote:

Originally Posted by H_TeXMeX_H (Post 3064056)
Well, typically thing don't just happen out of the blue like that (except of course hardware failure, but that's the last thing to assume). Did you do anything before this happened ? Upgrade anything, change anything ?

Well the last major thing I did before that is upgrade dropline gnome, but I remember printing stuff after I did that, so I doubt that is the problem

I doubt that it is a hardware failure because that shouldn't stop cups from running, AFAIK

aus9 02-20-2008 10:50 PM

ok with root powers go into
/var/run/cups/certs and see if you have a file, mine is called 0 (zero) and has a string
BE3F54183E87C68EC26E86A5748A77D2

2) I disagree on your assertion that cups is not running.

did you try to connect to it as.your third last line shows cups is listening on localhost
I [19/Feb/2008:16:02:32 -0800] Listening to 127.0.0.1:631 on fd 0

3) also look at /var/run/cups I have a file called 'cups.sock' which is the socket file.

AceofSpades19 02-20-2008 11:02 PM

1) Yes I do have a file in there and its 21E65052089F9759C254FCD8409945D6
2)I cannot connect to localhost:631
3)yes I have a file called cups.sock in /var/run/cups

BCarey 02-20-2008 11:09 PM

"ps -e | grep cupsd" to see if cups is in fact running.

Brian

AceofSpades19 02-20-2008 11:17 PM

Quote:

Originally Posted by BCarey (Post 3064567)
"ps -e | grep cupsd" to see if cups is in fact running.

Brian

root@darkstar:/var/run/cups# ps -e | grep cupsd
root@darkstar:/var/run/cups#

BCarey 02-20-2008 11:58 PM

/etc/rc.d/rc.cups start

What error messages/log messages?

Brian

aus9 02-21-2008 01:09 AM

yeah good one Brian

plus did you make any changes to your firewall, I still think cups is listening but you can not get to it.

aus9 02-21-2008 01:14 AM

just found this which may be useful for slackers

http://www.linuxquestions.org/questi...563#post390563

AceofSpades19 02-21-2008 05:06 PM

Quote:

Originally Posted by BCarey (Post 3064603)
/etc/rc.d/rc.cups start

What error messages/log messages?

Brian

bash-3.1# /etc/rc.d/rc.cups start
cups: started scheduler. [ OK ]
bash-3.1#
the log messages I posted in post #1

Quote:

Originally Posted by aus9 (Post 3064646)
yeah good one Brian

plus did you make any changes to your firewall, I still think cups is listening but you can not get to it.

I have not made any changes to my firewall that I can think off, I change my router configuration recently but the router shouldn't effect it and this was after this started happening

aus9 02-21-2008 05:29 PM

Code:

su
ifconfig

should give at least the loopback ......127.0.0.1 and maybe the ethernet device.

AceofSpades19 02-21-2008 05:36 PM

Quote:

Originally Posted by aus9 (Post 3065548)
Code:

su
ifconfig

should give at least the loopback ......127.0.0.1 and maybe the ethernet device.

Code:

bash-3.1# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:91 errors:0 dropped:0 overruns:0 frame:0
          TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4612 (4.5 KiB)  TX bytes:4612 (4.5 KiB)

wlan0    Link encap:Ethernet  HWaddr 00:03:2F:3A:DD:31
          inet addr:192.168.0.103  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::203:2fff:fe3a:dd31/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16986204 (16.1 MiB)  TX bytes:1002360 (978.8 KiB)


aus9 02-22-2008 03:35 AM

ok thanks for that, your local is the same as mine, I use wired ethernet and you have wide lan I assume.

lets go back to your cups error.

try
http://localhost:631/

http://h1.ripway.com/aus9/cups.png

then re-run ifconfig with root powers and your counts should increase.

EDIT

I mean the TX and RX should increase and have no errors

2) Can you name your firewall please and with some firewalls you can see their rulesets.

aus9 02-22-2008 05:15 AM

ok while waiting I had another look at my /etc/cups/cupsd.conf

do you have these lines?
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

then when I read authenication lines I remembered that I set mine up to allow all users, so maybe you need to
su
issue web browser command eg firefox, opera, konqueror
then in address try
http://localhost:631/

AceofSpades19 02-22-2008 05:30 PM

Quote:

Originally Posted by aus9 (Post 3065917)
ok thanks for that, your local is the same as mine, I use wired ethernet and you have wide lan I assume.

lets go back to your cups error.

try
http://localhost:631/

http://h1.ripway.com/aus9/cups.png

then re-run ifconfig with root powers and your counts should increase.

EDIT

I mean the TX and RX should increase and have no errors

2) Can you name your firewall please and with some firewalls you can see their rulesets.

1) Yes they do increase
2) I just use the firewall provided by my D-Link wireless router, I don't think the router would affect connecting to myself though, considering I could connect to localhost:631 before

Quote:

Originally Posted by aus9 (Post 3065980)
ok while waiting I had another look at my /etc/cups/cupsd.conf

do you have these lines?
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

then when I read authenication lines I remembered that I set mine up to allow all users, so maybe you need to
su
issue web browser command eg firefox, opera, konqueror
then in address try
http://localhost:631/

Yes, I do have those lines, except it says localhost:631, and I can't connect to it even when running a web browser as root.

aus9 02-22-2008 06:00 PM

1) good to hear you could previously connect to localhost

2) have not researched your diffenent cups file but I am interested in that you have no software firewall and have a router firewall.

I am now thinking, even tho I have a diff router, maybe you can look at those settings eg
http://h1.ripway.com/aus9/router1.png
http://h1.ripway.com/aus9/router2.png

it does not take much to close off the web browser itself, I found out. So maybe, you can re-check your settings?

3) EDIT....oops I also meant for you to look deeper into your cups file at the authentication

# Restrict access to the server...
<Location />
Allow @LOCAL
Order allow,deny
Allow localhost
</Location>

aus9 02-22-2008 06:13 PM

ok a quick look at
http://www.cups.org/documentation.ph...upsd-conf.html

can you post your full cups conf file please?

2) the other thing you could try is backup your file and use mine?
http://h1.ripway.com/aus9/cupsd.conf

but you will need to stop and restart this service

AceofSpades19 02-22-2008 06:14 PM

Quote:

Originally Posted by aus9 (Post 3066663)
1) good to hear you could previously connect to localhost

2) have not researched your diffenent cups file but I am interested in that you have no software firewall and have a router firewall.

I am now thinking, even tho I have a diff router, maybe you can look at those settings eg
http://h1.ripway.com/aus9/router1.png
http://h1.ripway.com/aus9/router2.png

it does not take much to close off the web browser itself, I found out. So maybe, you can re-check your settings?

3) EDIT....oops I also meant for you to look deeper into your cups file at the authentication

# Restrict access to the server...
<Location />
Allow @LOCAL
Order allow,deny
Allow localhost
</Location>

2) well it worked the day or a couple days before and I know for a fact that no-one touched the router settings in that span, so I don't think the router is doing anything

3)I changed it do look exactly like that and no dice

aus9 02-22-2008 06:17 PM

I have just done some edits FYI.

aus9 02-22-2008 06:19 PM

and in case you have a home network see if this helps?

http://susefaq.sourceforge.net/faq/cups.html

aus9 02-22-2008 06:21 PM

in case you have changed your hostnames try this...as other info as well

http://wiki.archlinux.org/index.php/CUPS_Setup

AceofSpades19 02-22-2008 06:42 PM

CUPS config file
Code:

#
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
#  Sample configuration file for the Common UNIX Printing System (CUPS)
#  scheduler.  See "man cupsd.conf" for a complete description of this
#  file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Allow @LOCAL
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#

Ya, I have reloaded cups after changed the config file
looking at those links now

aus9 02-22-2008 10:49 PM

some more lite reading for u

http://www.linuxquestions.org/questi...53#post3035253

I know u use slack and so unlikely to use Selinux but a number of distros have similar security tools...apparmor....bastille.....so you may be growing tired of me, but did you install or config any of these beasts?

aus9 02-22-2008 11:07 PM

ok my last thoughts while I wait for any replies

Mandriva to the rescue of slack!!!
http://mandrivausers.org/lofiversion...hp/t40639.html refer last post the long one.

or second best??
http://www.linuxquestions.org/questi...317/page2.html

read the lot sorry

AceofSpades19 02-23-2008 07:30 PM

I have not installed any apparmor or SELinux or anything like that
reading those links now


All times are GMT -5. The time now is 06:27 PM.