Page 1 of 1
CUPS Question
Posted: 17 Apr 2011, 08:47
by pcrene
Hello All,
How can i make cups accesable with the web interface, i get with most things : Forbidden!!!
Rene
Re: CUPS Question
Posted: 17 Apr 2011, 11:14
by Cheeseboy
Hi Rene,
The simple answer is:
http://bubba2:631/
or
http://b3:631/
I guess the answer is not that simple though, which means you will have to tell us a bit more about what it is you want to do...
Cheers,
Cheeseboy
Re: CUPS Question
Posted: 17 Apr 2011, 11:42
by pcrene
Hello Cheeseboy,
When i want to add a printer i just simply get a "Forbidden" message...
In B2 i added the printer there and it worked, when adding it in the Excito webpage it would not work.
Rene
Re: CUPS Question
Posted: 17 Apr 2011, 12:03
by Cheeseboy
Hi again,
I still use my Bubba2 as printer server, and I'm not sure if I ever used the Bubba2/B3 web interface to add a printer, or if I used the Cups interface.
Could you please tell us the exact steps including the contents of /var/log/cups/access_log and /var/log/cups/error_log?
Ah, and if you get a 403, perhaps the Apache log too?
Best regards,
Cheeseboy
Re: CUPS Question
Posted: 17 Apr 2011, 15:10
by pcrene
Hello Cheesboy,
When i go to : https:/bubba:631/Admin and i press ADD PRINTER:
I get this (in Dutch)
Code: Select all
Voeg printer toe Error
Niet mogelijk om printer toe te voegen:
Verboden
Or in English: Not possible to add a printer: Forbidden
error_log:
Code: Select all
E [17/Apr/2011:13:49:43 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:13:49:45 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:13:49:45 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:13:49:45 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:13:49:45 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:13:49:45 +0200] SSL shutdown failed: Error in the push function.
E [17/Apr/2011:13:49:58 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:13:49:58 +0200] [CGI] CUPS-Get-Devices request failed with status 401: Verboden
E [17/Apr/2011:13:50:13 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:13:50:13 +0200] [CGI] CUPS-Get-Devices request failed with status 401: Verboden
E [17/Apr/2011:13:50:35 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:13:51:06 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:13:51:06 +0200] [CGI] CUPS-Get-Devices request failed with status 401: Verboden
E [17/Apr/2011:13:55:36 +0200] [Job 53] Unable to queue job for destination "HPLaser"!
E [17/Apr/2011:14:12:48 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:12:48 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:12:54 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:14:12:54 +0200] [CGI] CUPS-Get-Devices request failed with status 401: Verboden
E [17/Apr/2011:14:13:04 +0200] [Job 53] Unable to open job control file "/var/spool/cups/c00053" - No such file or directory!
E [17/Apr/2011:14:13:18 +0200] [Job 53] Unable to open job control file "/var/spool/cups/c00053" - No such file or directory!
E [17/Apr/2011:14:13:23 +0200] [Job 53] Unable to open job control file "/var/spool/cups/c00053" - No such file or directory!
E [17/Apr/2011:14:19:31 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:14:21:02 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:21:19 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:26:28 +0200] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Apr/2011:14:26:28 +0200] [CGI] CUPS-Get-Devices request failed with status 401: Verboden
E [17/Apr/2011:14:26:51 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:26:51 +0200] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost/printers/HP) from localhost
E [17/Apr/2011:14:27:00 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:27:00 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:27:00 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:27:00 +0200] Unable to encrypt connection from 192.168.1.100 - A TLS packet with unexpected length was received.
E [17/Apr/2011:14:27:00 +0200] SSL shutdown failed: Error in the push function.
E [17/Apr/2011:14:27:25 +0200] Returning HTTP Forbidden for Pause-Printer (ipp://localhost/printers/HP) from localhost
E [17/Apr/2011:14:28:43 +0200] [Job 53] Files have gone away!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 14!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 15!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 16!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 17!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 18!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 19!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 20!
E [17/Apr/2011:14:28:43 +0200] Missing <Job #> directive on line 21!
"error_log" 96 lines, 9706 characters
Rene
Re: CUPS Question
Posted: 17 Apr 2011, 15:20
by Cheeseboy
Re: CUPS Question
Posted: 17 Apr 2011, 15:44
by Ubi
I was going to say it's kinda strange that this would be an apache config error as we all have the exact same config file and it apparently does not throws this error for other users.
But then I checked my own bubba and I also get a 403 error hahaha

Re: CUPS Question
Posted: 18 Apr 2011, 13:09
by pcrene
Hello Ubi,
As you are a ehhhh B3/B2 guru....any idea on a solution?
Rene
Re: CUPS Question
Posted: 18 Apr 2011, 13:43
by Ubi
Sorry I have absolutely no experience with CUPS or remote printing. I even do not have a networkable printer. My suggestion would be to follow the recipe that cheeseboy posted, and very carefully look at the logfiles.
Re: CUPS Question
Posted: 19 Apr 2011, 16:29
by Cheeseboy
Hi Rene,
The URL indicates that you are trying to access the web interface through HTTPS.
The errors indicate a SSL/TLS error...
Could you try it with a normal HTTP URL? As it is your local network, it should be safe...
Best regards,
Cheeseboy
Re: CUPS Question
Posted: 23 Apr 2011, 05:54
by pcrene
Hello Cheesboy,
Sorry for my late reaction..... work and nice weather..
If i start with
http://bubba:631 and then click on adminitration it leads me automatically to the HTTPS..
Rene
Re: CUPS Question
Posted: 23 Apr 2011, 19:31
by Cheeseboy
Hi Rene,
I did my test before writing my last reply on my Bubba2.
I now tested it on the B3, and after I clicked "Add printer" it also wanted a HTTPS redirection.
However, I had no problems with that.
I have a SSL certificate installed on Apache, but this is a different process, so should be of no influence.
Firefox just told me that the certificate of the web server was insecure, and I could then add an exception to the security rules....
Perhaps you should look into your browser settings?
Or perhaps use the B3 web interface to add your printer, rather than the CUPS one?
Best regards,
Cheeseboy