Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

CUPS Question

Got problems with your B2 or B3? Share and get helped!
Post Reply
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

CUPS Question

Post by pcrene »

Hello All,

How can i make cups accesable with the web interface, i get with most things : Forbidden!!!

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: CUPS Question

Post 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
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: CUPS Question

Post 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
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: CUPS Question

Post 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
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: CUPS Question

Post 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
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: CUPS Question

Post by Cheeseboy »

Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: CUPS Question

Post 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 :)
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: CUPS Question

Post by pcrene »

Hello Ubi,

As you are a ehhhh B3/B2 guru....any idea on a solution?

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: CUPS Question

Post 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.
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: CUPS Question

Post 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
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: CUPS Question

Post 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
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: CUPS Question

Post 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
Post Reply