Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 20:02
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
lp : drivers loaded but no devices found - [re-opened]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Author Message
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Mon 28 Sep 2009, 18:06    Post subject:  lp : drivers loaded but no devices found - [re-opened]  

Hi,

Recently, my printer stopped working, but i did not found yet how.

In the dmesg, i have noticed the line :
lp : drivers loaded but no devices found.

When i go to localhost:631, with the root i can start and stop my printer, but i get still the same message :
Unable to open USB device "usb:/dev/usb/lp0": No such device"
Matériel URI: usb:/dev/usb/lp0

The queue is growing but nothing comes out.

Is anybody have an idea?

Configuration:
Puppy 4.12
It seems that i'm still using cups v1.1.23 since the first line in etc/cups/printers.conf is "# Printer configuration file for CUPS v1.1.23"

Last edited by xav795 on Mon 09 Nov 2009, 09:20; edited 4 times in total
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Mon 28 Sep 2009, 22:34    Post subject: Re: lp : drivers loaded but no devices found  

Hmmm .....

Assuming that you're using puppy412, to confirm the CUPS version:

1. Open your browser and go to http://localhost:631/
2. You will see the version number displayed on the top of the page

If you're using puppy412 with cups1.1.23 and do not wish to upgrade your cups package, try using /dev/lp0 for your printer.

Using /dev/lp0 override works for cups usb backend (usb:/dev/lp0) but may bork out with other printer driver backend. Some printer driver is hardcoded to look for usb printers at /dev/usb/lp# and if this is the case, you have two options:

1. Upgrade to latest cups 1.3.11 (you can find them on my cups thread). The pet upgrade implements the /dev/usb fix in number 2 below.

2. Copy over the new udev rules from puppy430. Puppy430 has incorporated the /dev/usb fixes. It is /etc/udev/rules.d/55-cups.rules. If you do not have a copy of puppy430, you can get the attached file below (put it into /etc/udev/rules.d/). It is suitable for puppy 412 and below. Reboot or restart udevd to enforce the rules.


Rgds
55-cups.rules.tar.gz
Description 
gz

 Download 
Filename  55-cups.rules.tar.gz 
Filesize  266 Bytes 
Downloaded  491 Time(s) 
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Wed 30 Sep 2009, 04:32    Post subject:  

Thank you Patriot for your so detailed response.

So i have upgraded my cups to 1.3.11, and after rebooting i launched a new job.
In the new screen of cups, i could see that message :
"Unable to open file "/var/spool/cups/d00012-001" - Permission denied"

my document is not printed, and the job is still in the queue

the old message concerning the problem signaled before is removed from dmesg.
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 30 Sep 2009, 05:24    Post subject:  

Hmmm .....

xav795 wrote:
.....
"Unable to open file "/var/spool/cups/d00012-001" - Permission denied"


Something borks? Cups spool folder permission changed?

Open a terminal:

# /etc/init.d/cups stop

# rm -fr /var/spool/cups

# deluser lp

# delgroup lp

# /etc/init.d/cups start

See if that makes any difference when doing a test print ...

And now we come to the next question, what's your printer model and the driver that you're using .... ?

I have a feeling this is going to be hplip or something .... borks ...


Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Wed 30 Sep 2009, 09:19    Post subject:  

Hi,

I have executed the command lines you indicated to me
# /etc/init.d/cups stop
# rm -fr /var/spool/cups

# deluser lp
=>there was no user lp in etc/passwd, shadow, group

# delgroup lp
> there was no group lp in group, gshadow

# /etc/init.d/cups start

I tried to print the cups test page but nothing came out.
A message appeared in the printer management tab: "printer not connected, next try in 30 sec..."
The old error message "Unable to open file "/var/spool/cups/xxx" - Permission denied" did not appear.

My printer is connected with usb cable, this is an epson c62, which has been working some time ago with puppy.
The driver information i found in /etc/cups/ppd/EPSON_Stylus_C62_USB_1.ppd is
driver : *StpDriverName: "escp2-c62"

Regards
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 30 Sep 2009, 12:11    Post subject:  

Hmmm .....

xav795 wrote:
........ A message appeared in the printer management tab: "printer not connected, next try in 30 sec..." ........


It could be a hardware issue (maybe)... check your cable and make sure its still good. Also, check your printer uri in cups, is it "usb:/dev/usb/lp0" ?

Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Wed 30 Sep 2009, 14:08    Post subject:  

Hi Patriot
Shame on me! I did it... It was the cable (i will hang me with it!)

Thank you so much for your help, and sorry for that issue
Regards
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 30 Sep 2009, 22:56    Post subject:  

Hmmm .....

xav795 wrote:
........ It was the cable (i will hang me with it!)


Laughing

Don't fret ..... occasionally something like this happens .... Wink

If you have resolved the issue, kindly edit the title of your first post to [solved] ...


Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Thu 15 Oct 2009, 04:44    Post subject:  

HI,

i am re-opening this issue, because i have got an error message when i am submitting a job.

I get the error lines in the log in 'info' mode.

I started with a new install of CUPS, using the pet in manager (1.33), which gave me a new cupsd.conf).
I just had a look to the /var/spool/cups directory which is in group nobody, i dont know if this is normal.
I tried before, stopping, then deleting all the files inside this directory then i restarted the server, but it had never let me print.
After my re-installation, i added my epson c62 without any problem, so the cable is plugged, this time.

Here is the log
I [15/Oct/2009:10:30:36 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6635)
I [15/Oct/2009:10:30:38 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6659)
I [15/Oct/2009:10:30:40 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6663)
I [15/Oct/2009:10:30:40 +0200] [Job 60] Adding start banner page "none".
I [15/Oct/2009:10:30:40 +0200] [Job 60] Adding job file of type application/postscript.
I [15/Oct/2009:10:30:40 +0200] [Job 60] Adding end banner page "none".
I [15/Oct/2009:10:30:40 +0200] [Job 60] Queued on "epson" by "root".
I [15/Oct/2009:10:30:40 +0200] [Job 60] Started filter /usr/lib/cups/filter/pstops (PID 6664)
I [15/Oct/2009:10:30:40 +0200] [Job 60] Started filter /usr/lib/cups/filter/pstoraster (PID 6665)
I [15/Oct/2009:10:30:40 +0200] [Job 60] Started filter /usr/lib/cups/filter/rastertogutenprint.5.0 (PID 6666)
I [15/Oct/2009:10:30:40 +0200] [Job 60] Started backend /usr/lib/cups/backend/usb (PID 6667)
E [15/Oct/2009:10:30:40 +0200] PID 6664 (/usr/lib/cups/filter/pstops) stopped with status 1!
I [15/Oct/2009:10:30:40 +0200] Hint: Try setting the LogLevel to "debug" to find out more.
E [15/Oct/2009:10:30:40 +0200] [Job 60] Unable to open file "/var/spool/cups/d00060-001" - Permission denied
E [15/Oct/2009:10:30:41 +0200] [Job 60] Job stopped due to filter errors.
I [15/Oct/2009:10:30:42 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6691)
E [15/Oct/2009:10:30:42 +0200] [Job 59] Unable to open job control file "/var/spool/cups/c00059" - No such file or directory!
I [15/Oct/2009:10:30:53 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6747)

Here are the group in /etc/group
root:x:0:
daemon:x:1:
tty:x:2:
ppp:x:200:
users:x:500:
nobody:x:65534:
guest:x:501:
spot:x:502:spot
bin::2:root,bin,daemon
audio::17:
503:x:503:messagebus
ftp:x:1000:
dip:x:30:

and the users in /etc/passwd
root:x:0:0:root:/root:/bin/sh
daemon:x:1:1::/:
nobody:x:65534:65534::/tmp:
spot:x:502:502:Linux User,,,:/root/spot:/bin/sh
bin:x:2:2:bin:/bin:
messagebus:x:503:503:Linux User,,,:/tmp:/bin/sh
ftp:x:1000:1000:Linux User,,,:/root/ftpd:/bin/sh

xavier
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Thu 15 Oct 2009, 09:35    Post subject:  

Hmmm .....

xav795 wrote:
..........
I started with a new install of CUPS, using the pet in manager (1.33), which gave me a new cupsd.conf). ..........


I'm sorry, but I couldn't find my old notes on cups 1.3.3 pet ..... I couldn't remember the exact steps that I took (many moons ago) to make it work. The cups 1.3.3 package from the official repository have several permissions issues and requires patching several config files, the cups init.d and additional rc.d files ...

Off hand, I recall something about mismatched user id and mismatched folder permissions. Every time cups scheduler restarts (on boot-up or manual restarts), it will repair folder permissions according to internal defaults and will usually bork the printing process. As this is hard coded during compile time, a complete rebuild from source was found to be necessary.

To upgrade cups on puppy412, I would first recommend cups-1.3.11 (or 1.3.10 or 1.3.9). I have made a quick simulation with a fresh puppy412 (pfix=ram) with cups-1.3.11 and the epson c62 simulation appears to be working ok ..... (the epson c62 simulation was tested with cups internal epson ppd v1.3 and gutenprint 5.01)

If you recently downloaded cups-1.3.11 and found the installation borked, then please re-download the updated cups-1.3.11 package. I have already posted a note on my cups thread regarding this.


Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Thu 15 Oct 2009, 16:17    Post subject:  

Hi,

Finally i removed the 1.3.3 and went on your thread to get the 1.3.11 pet and i launched it.
I then rebooted the pc.
I went into the cups manager to add my printer and i tried a test page.
I get the permission denied message you will see in the log error file.

Here are the permissions on the /var/spool/cups/ files generated after i submit a 'print test page'
drwxrwx--T 2 root nobody 60 2009-10-15 21:49 tmp
-rw-r----- 1 root nobody 17365 2009-10-15 21:49 d00062-001
-rw------- 1 root nobody 767 2009-10-15 21:49 c00062

and the error log.
I added the cupsd.conf

If i try to modify the server parameter using the localhost:631, when i click on validate, i get : "permission denied"

Is there something wrong with the user that executes the binary when running cups?
For the moment i did not modify anything for my printer in "Define authorization" tab.

To be honnest i must say that i could some times(before i re-install the 1.3.11) ago print, but i really dont know how i make it possible. I know that i tried to define authorization on tab printer, i played with the cupsd.conf file with the policy statement.
At least i must say that i have not enough knowledge on linux to feel the problem, i guess it will come.

Thank by advance if you have an idea
Rgds.
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Fri 16 Oct 2009, 13:11    Post subject:  

Hmmm .....

xav795 wrote:
........
I added the cupsd.conf
........


Did you overwrite cupsd.conf with a different one or just edit it ?

You also need to cancel all jobs and restart cups (ie. /etc/init.d/cups restart). The folder permissions are ok ... no problems there ... probably a filter borks somewhere ...

I'll have to find an epson somewhere to properly test this .....


Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Sat 17 Oct 2009, 07:59    Post subject:  

Hi,

In fact this is the new cupsd.conf that came with the last install (1.3.11), which is in /etc/cups/ .So i just edited it but never i overwrited it.

I tried to cancel the job via the manager or manually, then restart cups the error message "Permission denied" does not appear.
But if i launch a new job, the error message is going back.

Here are the permissions of the directory /etc/cups/
-rw-r--r-- 1 root root 1215 2007-10-18 14:47 command.types
-rw-r--r-- 1 root root 946 2007-10-18 14:58 pstoraster.convs
-rw-r--r-- 1 root root 2737 2007-11-24 23:03 printers.conf-ORIG
-rw-r--r-- 1 root root 21828 2007-11-24 23:03 cupsd.conf-ORIG
-rw-r--r-- 1 root root 2328 2007-11-24 23:03 client.conf
-rw-r----- 1 root root 427 2009-07-01 14:47 printers.conf.O
-rw------- 1 root nobody 427 2009-07-01 14:47 printers.conf
drwx------ 2 root nobody 4096 2009-07-20 02:08 ssl
-rw-r----- 1 root root 186 2009-07-20 02:08 snmp.conf
drwxr-xr-x 2 root nobody 4096 2009-07-20 02:08 ppd
-rw-r--r-- 1 root root 6298 2009-07-20 02:08 mime.types
-rw-r--r-- 1 root root 4542 2009-07-20 02:08 mime.convs
drwxr-xr-x 2 root root 4096 2009-07-20 02:08 interfaces
-rw-r----- 1 root root 2470 2009-07-20 02:08 cupsd.conf.default
-rw-r----- 1 root nobody 1180 2009-07-20 02:08 cupsd.conf
-rw-r--r-- 1 root root 545136 2009-09-27 14:57 ppds.dat
-rw------- 1 root nobody 83 2009-09-30 10:12 classes.conf.O
-rw------- 1 root nobody 83 2009-10-05 21:17 classes.conf
drwx--x--x 2 root root 4096 2009-10-15 10:27 certs


Rgds
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Sun 18 Oct 2009, 12:32    Post subject:  

Hmmm .....

I got myself an epson C63 today for the cost of free .... It's borked at the feeder/roller ... I had to disassemble and make some repairs ... It's done after a couple of hours ... The electronics are fine but the inks are gone, well, it's still good enough for running some CUPS tests ...

I booted into a fresh puppy412 and install CUPS-1.3.11 ... after several retries, I found a working setup for the epson C63 .... try this for your C62 with CUPS 1.3.11:

(Don't worry about CUPS-1.3.11 folder permissions. As far as I know, I've already taken care of it for puppy use .....)


1. Generate the ppd. Open a terminal and do this:
# cups-genppd.5.0 'Epson Stylus C62'

2. Start cups web interface (ie. http://localhost:631/)

3. Printer should be on and connected by now.

4. Add printer, CUPS should show two (2) detected epson printer (it's actually pointing to the same printer). One pointed by usb backend and another by gutenprint backend. You can use either one. I tested both and they both works.

5. Add your epson model. Use the "Epson Stylus C62 - CUPS+Gutenprint v5.0.1" driver.

6. Set the paper size to A4 and set the error policy to abort-printer or retry-job.

7. Make a test print.

8. Done.

I used the same procedure for the C63 and it printed out the test page just fine ...


Rgds
Back to top
View user's profile Send private message 
xav795

Joined: 18 Jul 2009
Posts: 26
Location: France, Paris

PostPosted: Sun 18 Oct 2009, 18:21    Post subject:  

Hi,

I have followed the step by step, but i get the same error message concerning the permission.

I can see that i still have an old cups directory named cups-old. Can it interact with the active one?
A solution could be to delete manually all my last cups installation and peharps restarting with a new one on good conditions (that is a window 's reflex)

I had a look to puppy 4.3 to verify that i could print without problem.

I tried to print directly from command line with one printer set as default.
I wrote
lp /root/myfile

and i verified with lpstat -p -d what was going on.
Here is the result
# lpstat -d -p
system default destination: epson
printer CUPS-PDF is idle. enabled since dim 18 oct 2009 23:20:21 CEST
printer epson is idle. enabled since lun 19 oct 2009 00:14:23 CEST
Empty print file!

I then went to the web manager localhost:631, and i could see my job in state 'stopped', owned by root.

If i retry the job from the job list, in the web manager, the message is the same : 'Empty print file!'.

But if i launch a 'Test page' as i ever do from the beguining, i get the 'permission denied' message.
The job got an 'anonymous' owner.

Rgds.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1011s ][ Queries: 12 (0.0053s) ][ GZIP on ]