Stange Cups Problem: "/dev/lp0": Permission denied

Gerhard Gaußling ggrubbish at web.de
Sat Jun 4 17:45:00 UTC 2005


Hello,

I got a problem with cups.
Today I was once able to print with cups to my epson stylus color 1520.
I don't know why, but after the installation of turboprint (That might 
not be the reason) cups reöports, t5hat it's not able to open lp0:
[Job 8] Unable to open parallel port device file "/dev/lp0": Permission 
denied

I'm using hoary amd64. 

I don't have any problem to print from winXP x64_x86.
$ dmesg|grep parp
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 1 
[PCSPP,TRISTATE,COMPAT,ECP,DMA]
parport0: Printer, EPSON Stylus COLOR 1520
lp0: using parport0 (interrupt-driven).

The dma setting 1 or 3 doesn't affect this behaviour.

lpq: Stylus-Color-1520 is not ready

When I print directly to the device with cat the printer starts 
blinking, but nothing prints out.

$ uname -r
2.6.11.8.20050506

$ grep PARP /boot/config-`uname -r`
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_PC_PCMCIA=m
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y
CONFIG_PARIDE_PARPORT=m
CONFIG_I2C_PARPORT=m
CONFIG_I2C_PARPORT_LIGHT=m

foomatic is set to gs-apfl.

In the BIOS the paraport is set to ECP/ECC DMA1.

I don't have any clue. help is highly appreciate.

Kind regards

Gerhard Gaußling


Package: cupsys
Version: 1.1.23-1ubuntu12

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.8.20050506
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages cupsys depends on:
ii  adduser                 3.59             Add and remove users and 
groups
ii  debconf                 1.4.42ubuntu4    Debian configuration 
management sy
ii  libc6                   2.3.5-0ubuntu3   GNU C Library: Shared 
libraries an
ii  libcupsimage2           1.1.23-1ubuntu12 Common UNIX Printing 
System(tm) -
ii  libcupsys2-gnutls10     1.1.23-1ubuntu12 Common UNIX Printing 
System(tm) -
ii  libgnutls11             1.0.16-13        GNU TLS library - runtime 
library
ii  libpam0g                0.76-22          Pluggable Authentication 
Modules l
ii  libpaper1               1.1.14ubuntu7    Library for handling paper 
charact


Here some config files and Log output:

$ cat /var/run/cups/printcap
Stylus-Color-1520|Stylus-Color-1520:rm=ubuntu:rp=Stylus-Color-1520:

$  egrep -v '#|^ *$' /etc/cups/cupsd.conf
ServerName ubuntu
Classification none
DefaultCharset UTF-8
DefaultLanguage en
Printcap /var/run/cups/printcap
PrintcapFormat BSD
RemoteRoot remroot
SystemGroup lpadmin
ServerCertificate /etc/cups/ssl/server.crt
ServerKey /etc/cups/ssl/server.key
<Location />
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /jobs>
Encryption IfRequested
Satisfy All
Order allow,deny
</Location>
<Location /admin>
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From 127.0.0.1
</Location>
HostnameLookups Off
KeepAlive On
KeepAliveTimeout 60
MaxClients 100
MaxRequestSize 0m
Timeout 300
Listen 127.0.0.1:631
AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
PageLog /var/log/cups/page_log
MaxLogSize 2m
LogLevel debug
PreserveJobHistory On
PreserveJobFiles Off
AutoPurgeJobs No
MaxJobs 0
MaxJobsPerPrinter 0
MaxJobsPerUser 0
User lp
Group lpadmin
RIPCache 8m
FilterLimit 0
DataDir /usr/share/cups
DocumentRoot /usr/share/cups/doc-root
RequestRoot /var/spool/cups
ServerBin /usr/lib/cups
ServerRoot /etc/cups
TempDir /var/spool/cups/tmp
Browsing On
BrowseProtocols CUPS
BrowsePort 631
BrowseInterval 30
BrowseTimeout 300
BrowseOrder allow,deny
ImplicitClasses On
ImplicitAnyClasses Off
HideImplicitMembers Yes
BrowseShortNames Yes
runasuser Yes
include cupsd-browsing.conf

$ cat /etc/cups/cupsd-browsing.conf
Browsing Off

Printing the Testpage:

D [04/Jun/2005:19:33:06 +0200] ReadClient: 5 POST /admin/ HTTP/1.1
I [04/Jun/2005:19:33:06 +0200] Saving printers.conf...
I [04/Jun/2005:19:33:06 +0200] Printer 'Stylus-Color-1520' started by 
''.
D [04/Jun/2005:19:33:06 +0200] StartJob(8, 0x54f7e0)
D [04/Jun/2005:19:33:06 +0200] StartJob() id = 8, file = 0/1
D [04/Jun/2005:19:33:06 +0200] job-sheets=none,none
D [04/Jun/2005:19:33:06 +0200] banner_page = 0
D [04/Jun/2005:19:33:06 +0200] StartJob: argv = 
"Stylus-Color-1520","8","gerhard","Testseite","1","","/var/spool/cups/d00008-001"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[2]="USER=root"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[3]="CHARSET=utf-8"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[4]="LANG=de"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[5]="TZ=Europe/Berlin"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[6]="PPD=/etc/cups/ppd/Stylus-Color-1520.ppd"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[7]="CUPS_SERVERROOT=/etc/cups"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[9]="TMPDIR=/var/spool/cups/tmp"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[10]="CONTENT_TYPE=application/postscript"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[12]="PRINTER=Stylus-Color-1520"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[13]="CUPS_DATADIR=/usr/share/cups"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [04/Jun/2005:19:33:06 +0200] StartJob: 
envp[15]="CUPS_SERVER=localhost"
D [04/Jun/2005:19:33:06 +0200] StartJob: envp[16]="IPP_PORT=631"
D [04/Jun/2005:19:33:06 +0200] StartJob: statusfds = [ 6 7 ]
D [04/Jun/2005:19:33:06 +0200] StartJob: filterfds[1] = [ 8 -1 ]
D [04/Jun/2005:19:33:06 +0200] StartJob: filter = 
"/usr/lib/cups/filter/pstops"
D [04/Jun/2005:19:33:06 +0200] StartJob: filterfds[0] = [ 9 10 ]
D [04/Jun/2005:19:33:06 +0200] 
start_process("/usr/lib/cups/filter/pstops", 0x7fffffff0990, 
0x7ffffffefb70, 8, 10, 7)
I [04/Jun/2005:19:33:06 +0200] Started 
filter /usr/lib/cups/filter/pstops (PID 20244) for job 8.
D [04/Jun/2005:19:33:06 +0200] StartJob: filter = 
"/usr/lib/cups/filter/foomatic-rip"
D [04/Jun/2005:19:33:06 +0200] StartJob: filterfds[1] = [ 8 11 ]
D [04/Jun/2005:19:33:06 +0200] 
start_process("/usr/lib/cups/filter/foomatic-rip", 0x7fffffff0990, 
0x7ffffffefb70, 9, 11, 7)
I [04/Jun/2005:19:33:06 +0200] Started 
filter /usr/lib/cups/filter/foomatic-rip (PID 20245) for job 8.
D [04/Jun/2005:19:33:06 +0200] StartJob: backend = 
"/usr/lib/cups/backend/parallel"
D [04/Jun/2005:19:33:06 +0200] StartJob: filterfds[0] = [ -1 9 ]
D [04/Jun/2005:19:33:06 +0200] 
start_process("/usr/lib/cups/backend/parallel", 0x7fffffff0990, 
0x7ffffffefb70, 8, 9, 7)
I [04/Jun/2005:19:33:06 +0200] Started 
backend /usr/lib/cups/backend/parallel (PID 20246) for job 8.
E [04/Jun/2005:19:33:06 +0200] PID 20246 stopped with status 1!
D [04/Jun/2005:19:33:06 +0200] [Job 8] Page = 595x842; 0,0 to 595,842

D [PostScriptcode....]

E [04/Jun/2005:19:33:06 +0200] [Job 8] Unable to open parallel port 
device file "/dev/lp0": Permission denied
|-----------------^^^^
D [04/Jun/2005:19:33:06 +0200] [Job 8] perl: warning: Setting locale 
failed.
D [04/Jun/2005:19:33:06 +0200] [Job 8] perl: warning: Please check that 
your locale settings:
D [04/Jun/2005:19:33:06 +0200] [Job 8] LANGUAGE = (unset),
D [04/Jun/2005:19:33:06 +0200] [Job 8] LC_ALL = (unset),
D [04/Jun/2005:19:33:06 +0200] [Job 8] LANG = "de"
D [04/Jun/2005:19:33:06 +0200] [Job 8] are supported and installed on 
your system.
D [04/Jun/2005:19:33:06 +0200] [Job 8] perl: warning: Falling back to 
the standard locale ("C").

D [PostScriptcode....]

D [04/Jun/2005:19:33:06 +0200] [Job 8] 1 %%EndDocument
D [04/Jun/2005:19:33:06 +0200] [Job 8] 0 %%Trailer
D [04/Jun/2005:19:33:06 +0200] [Job 8] Saw Trailer!
D [04/Jun/2005:19:33:06 +0200] [Job 8] Saw EOF!
D [04/Jun/2005:19:33:07 +0200] [Job 8] error closing *main::STDOUT
D [04/Jun/2005:19:33:07 +0200] [Job 8] Error closing renderer
E [04/Jun/2005:19:33:07 +0200] PID 20245 stopped with status 9!
D [04/Jun/2005:19:33:07 +0200] UpdateJob: job 8, file 0 is complete.
D [04/Jun/2005:19:33:07 +0200] StopJob: id = 8, force = 0
I [04/Jun/2005:19:33:07 +0200] Saving printers.conf...
D [04/Jun/2005:19:33:07 +0200] StopJob: printer state is 5



A restart of cupsys in the logs:

D [04/Jun/2005:19:27:18 +0200] StopListening: closing all listen 
sockets.
D [04/Jun/2005:19:27:18 +0200] PauseListening: clearing input bits...
D [04/Jun/2005:19:27:18 +0200] AddLocation: added location 
'CUPS_INTERNAL_BROWSE_ACL'
I [04/Jun/2005:19:27:18 +0200] Loaded configuration file 
"/etc/cups/cupsd.conf"
I [04/Jun/2005:19:27:18 +0200] Configured for up to 100 clients.
I [04/Jun/2005:19:27:18 +0200] Allowing up to 100 client connections per 
host.
I [04/Jun/2005:19:27:18 +0200] Full reload is required.
D [04/Jun/2005:19:27:18 +0200] LoadAllPrinters: Loading printer 
Stylus-Color-1520...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"parallel:/dev/lp0"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device "ipp"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device "lpd"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device "smb"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device "socket"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp0"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp1"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp2"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp3"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp4"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp5"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp6"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp7"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp8"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp9"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp10"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp11"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp12"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp13"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp14"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device 
"usb:/dev/usb/lp15"...
D [04/Jun/2005:19:27:18 +0200] LoadDevices: Added device "http"...
D [04/Jun/2005:19:27:19 +0200] LoadDevices: Added device 
"epson:/dev/lp0"...
D [04/Jun/2005:19:27:19 +0200] LoadDevices: Added device 
"canon:/dev/lp0"...
I [04/Jun/2005:19:27:19 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 2585 
PPDs...
I [04/Jun/2005:19:27:19 +0200] LoadPPDs: No new or changed PPDs...
D [04/Jun/2005:19:27:19 +0200] LoadAllJobs: Scanning /var/spool/cups...
D [04/Jun/2005:19:27:19 +0200] LoadAllJobs: Loading attributes for job 
8...
D [04/Jun/2005:19:27:19 +0200] LoadAllJobs: Auto-typing document file 
d00008-001...
I [04/Jun/2005:19:27:19 +0200] Full reload complete.
D [04/Jun/2005:19:27:19 +0200] StartListening: NumListeners=1
D [04/Jun/2005:19:27:19 +0200] StartListening: address=7f000001 port=631
D [04/Jun/2005:19:27:19 +0200] ResumeListening: setting input bits...
D [04/Jun/2005:19:27:20 +0200] AcceptClient: 4 from localhost:631.
D [04/Jun/2005:19:27:21 +0200] AcceptClient: 5 from localhost:631.





More information about the ubuntu-users mailing list