You are not logged in.

#1 2014-02-19 08:58:45

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Error while accessing administration(add printer)

E [19/Feb/2014:02:02:12 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:02:12 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:02:19 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:02:19 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:04:09 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:04:09 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:04:18 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:04:22 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:04:22 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:11:35 +0530] SSL shutdown failed: Error in the push function.
E [19/Feb/2014:02:11:58 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:11:58 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:12:03 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:12:03 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [19/Feb/2014:02:16:02 +0530] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [19/Feb/2014:02:16:02 +0530] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden



Somebody please tell me why this error happens and how to fix it.

Offline

#2 2014-02-19 10:37:50

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Error while accessing administration(add printer)

How are you accessing CUPS?

127.0.0.1:631
localhost:631

Sometimes it has issue's listening.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-19 10:38:59

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Re: Error while accessing administration(add printer)

https://localhost:631/

Offline

#4 2014-02-19 10:46:01

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Re: Error while accessing administration(add printer)

I would also like to know whether any files are missing from the dir or is it permission issues or it is any thing related to groups.

ls -l /etc/cups/
total 40
-rwxr-xr-x. 1 root lp      0 Aug 17  2013 classes.conf
-rwxr-xr-x. 1 root lp      0 Aug 17  2013 client.conf
-rwxr-xr-x. 1 root lp   4220 Feb 19 02:41 cupsd.conf
-rwxr-xr-x. 1 root root 4064 Feb 19 02:10 cupsd.conf.default.bk
drwxr-xr-x. 2 root root 4096 Aug 17  2013 interfaces
-rwxr-xr-x. 1 root lp      0 Aug 17  2013 lpoptions
-rwxr-xr-x. 1 root root 4730 Feb 19 01:09 mime.convs
-rwxr-xr-x. 1 root root  319 Dec  9  2009 paps.convs
drwxr-xr-x. 2 root lp   4096 Aug 17  2013 ppd
-rwxr-xr-x. 1 root lp      0 Aug 17  2013 printers.conf
-rwxr-xr-x. 1 root lp    186 Aug 17  2013 snmp.conf
drwxr-xr-x. 2 root lp   4096 Feb 19 02:11 ssl
-rwxr-xr-x. 1 root lp      0 Aug 17  2013 subscriptions.conf

Offline

#5 2014-02-19 11:45:05

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Error while accessing administration(add printer)

Try using:

127.0.0.1:631
or
$hostname:631


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#6 2014-02-19 11:58:51

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Re: Error while accessing administration(add printer)

Add Printer Error

Error:

    Forbidden

Offline

#7 2014-02-19 17:02:55

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Error while accessing administration(add printer)

Trying adding youself to the lp and sys groups. You can do so using the gpasswd command.

Offline

#8 2014-02-20 03:07:38

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Re: Error while accessing administration(add printer)

Thank you very much for the help....It worked.....!!!

Offline

#9 2014-02-20 12:08:26

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: Error while accessing administration(add printer)

Would you mind marking the thread as [SOLVED]?

Offline

#10 2014-02-21 03:08:03

Balakrishnan.S
Member
Registered: 2014-02-19
Posts: 6

Re: Error while accessing administration(add printer)

Still facing some issue while printing.Attaching some logs.I think log looks fine but PRINT is not coming to the printer

D [19/Feb/2014:23:27:31 +0530] [Job 15] cupsEncodeLUT[0] = 0
D [19/Feb/2014:23:27:31 +0530] [Job 15] cupsEncodeLUT[65535] = 1
D [19/Feb/2014:23:27:31 +0530] [Job 15] num_components = 1, depth = 1
D [19/Feb/2014:23:27:31 +0530] [Job 15] cupsColorSpace = 3, cupsColorOrder = 0
D [19/Feb/2014:23:27:31 +0530] [Job 15] cupsBitsPerPixel = 1, cupsBitsPerColor = 1
D [19/Feb/2014:23:27:31 +0530] [Job 15] max_gray = 1, dither_grays = 2
D [19/Feb/2014:23:27:31 +0530] [Job 15] max_color = 0, dither_colors = 0
D [19/Feb/2014:23:27:31 +0530] [Job 15] ppd = 0x1bc8170
D [19/Feb/2014:23:27:31 +0530] [Job 15] PageSize = [ 595.440 841.680 ]
D [19/Feb/2014:23:27:31 +0530] [Job 15] margins = [ 0.000 0.000 0.000 0.000 ]
D [19/Feb/2014:23:27:31 +0530] [Job 15] HWResolution = [ 300.000 300.000 ]
D [19/Feb/2014:23:27:31 +0530] [Job 15] width = 2331, height = 3387
D [19/Feb/2014:23:27:31 +0530] [Job 15] HWMargins = [ 18.000 14.400 18.000 14.400 ]
D [19/Feb/2014:23:27:31 +0530] [Job 15] Read 8192 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Wrote 8192 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Read 1785 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Wrote 1785 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Read 1364 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Wrote 1364 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Read 1 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Wrote 1 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] cups_close(0x19fc038)
D [19/Feb/2014:23:27:31 +0530] [Job 15] Read 15 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Wrote 15 bytes of print data...
D [19/Feb/2014:23:27:31 +0530] [Job 15] 1 files to send in job...
D [19/Feb/2014:23:27:31 +0530] [Job 15] STATE: +connecting-to-device
D [19/Feb/2014:23:27:31 +0530] [Job 15] Connecting to 172.27.27.111:443
D [19/Feb/2014:23:27:31 +0530] [Job 15] Connecting to printer...
D [19/Feb/2014:23:27:31 +0530] [Job 15] Job canceled by "root"
D [19/Feb/2014:23:27:31 +0530] [Job 15] Backend returned status 1 (failed)
D [19/Feb/2014:23:27:31 +0530] [Job 15] End of messages
D [19/Feb/2014:23:27:31 +0530] [Job 15] printer-state=3(idle)
D [19/Feb/2014:23:27:31 +0530] [Job 15] printer-state-message="Connecting to printer..."
D [19/Feb/2014:23:27:31 +0530] [Job 15] printer-state-reasons=toner-low-report











0/Feb/2014:00:06:43 +0530] [Job 21] Connecting to 172.27.27.111:443
D [20/Feb/2014:00:06:43 +0530] [Job 21] Connecting to printer...
D [20/Feb/2014:00:06:43 +0530] [Job 21] Connecting to 172.27.27.111:443
D [20/Feb/2014:00:06:43 +0530] [Job 21] Connecting to printer...
D [20/Feb/2014:00:06:43 +0530] [Job 21] Job canceled by "root"
D [20/Feb/2014:00:06:43 +0530] [Job 21] Backend returned status 1 (failed)
D [20/Feb/2014:00:06:43 +0530] [Job 21] End of messages
D [20/Feb/2014:00:06:43 +0530] [Job 21] printer-state=3(idle)
D [20/Feb/2014:00:06:43 +0530] [Job 21] printer-state-message="Connecting to printer..."
D [20/Feb/2014:00:06:43 +0530] [Job 21] printer-state-reasons=toner-low-report

Offline

#11 2014-02-22 16:22:01

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Error while accessing administration(add printer)

I've found that sometimes CUPS has an issue with automatically connecting to internet printers. I fixed it by typing localhost:631 in my browser to get to the cups page. Then I clicked on the administration tab and under the server settings I ticked the 'Share printers connected to this system' and 'Allow printing from the Internet' boxes. This might fix your problem

Offline

Board footer

Powered by FluxBB