Prev · NextSTR #4210: Listen with domain socket specified fails when setting printer options

Status:4 - Pending
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Scheduler
Summary:Listen with domain socket specified fails when setting printer options
Version:1.5.4
Created By:alexk
Assigned To:mike
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

Name/Time/Date/Filename/Size
alexk: 11:46 Oct 12, 2012
 
cupsd.conf (3k)
 
alexk: 11:46 Oct 12, 2012
 
error_log.1 (18k)
 

Trouble Report Dialog:

Name/Time/Date/Text
alexk: 11:46 Oct 12, 2012
 
When authentication is enabled in cupsd.conf, and there is a Listen directive with a path to socket (Listen /var/run/cups/cups.sock), it fails with Broken Pipe error when setting printer's default options.

In the logs one sees
cupsdAuthorize: Authorization=""
cupsdAuthorize: No authentication data provided.

Removing Listen /path/to/sock directive workarounds the problem.

cupsd.conf and error_log are attached.

 
mike: 09:27 Oct 17, 2012
 
Alex,

Can you try this with CUPS 1.6.1, and does the same thing happen there?

 
alexk: 11:21 Oct 17, 2012
 
Same problem with CUPS 1.6.1. Both tested on Ubuntu 10.04 x64.

Doesn't happen with CUPS 1.4.6.

 
dingerkingh: 09:14 Dec 27, 2012
 
I can confirm that 1.6.1 has this bug still. I removed the listen socket and finally was able to set the options.
 
alexk: 12:15 Dec 28, 2012
 
I can reproduce it with stock CUPS 1.5.3-0ubuntu6 on Ubuntu 12.04 x64, and with custom-built CUPS 1.5.4 on the same Ubuntu 12.04 x64.

I tried to look into PAM and AppArmor configuration, but it doesn't seem to be related to the problem. Something inside CUPS encounters maybe a race condition.