View previous topic :: View next topic |
Author |
Message |
Perkele n00b
Joined: 22 Apr 2005 Posts: 68
|
Posted: Fri Nov 24, 2006 5:14 pm Post subject: |
|
|
Then why does it print with Windows XP on the Laptop?
I tried every USB-Port i have.. this messages apparently doesn't appear every time...
Code: | usb 4-1.4: new full speed USB device using ehci_hcd and address 4
usb 4-1.4: device descriptor read/64, error -32
usb 4-1.4: device descriptor read/64, error -32
usb 4-1.4: new full speed USB device using ehci_hcd and address 5
usb 4-1.4: device descriptor read/64, error -32
usb 4-1.4: device descriptor read/64, error -32
usb 4-1.4: new full speed USB device using ehci_hcd and address 6
usb 4-1.4: device not accepting address 6, error -32
hub 4-1:1.0: Cannot enable port 4. Maybe the USB cable is bad?
usb 4-1.4: new full speed USB device using ehci_hcd and address 8
usb 4-1.4: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x04E8 pid 0x323A
usb 4-1.4: USB disconnect, address 8
drivers/usb/class/usblp.c: usblp0: removed
usb 4-1.5: new full speed USB device using ehci_hcd and address 9
usb 4-1.5: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04E8 pid 0x323A
usb 4-1.5: USB disconnect, address 9
drivers/usb/class/usblp.c: usblp0: removed
usb 1-2: new full speed USB device using uhci_hcd and address 4
usb 1-2: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04E8 pid 0x323A |
But still nothing. At the moment, the job doesn't even appear in kjobviewer. |
|
Back to top |
|
|
Perkele n00b
Joined: 22 Apr 2005 Posts: 68
|
Posted: Fri Nov 24, 2006 5:33 pm Post subject: |
|
|
YEEEEEAAAAAHH!
Okay. I tried it with the old version again.
/etc/init.d/cupsd stop; emerge -C cups; rm -R /etc/cups;
masked 1.2, and emerged cups
Reinstalled the printer with "splix" drivers. Then got a errormessage about ghostscript-esp, reemerged ghostscript-esp, and it's printing.....
finally....
Nonetheless, thank you all very much for your time and effort. Such things are making me crazy. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Fri Nov 24, 2006 6:11 pm Post subject: |
|
|
wynn wrote: | dmpogo wrote: | CUPS was throwing 404 a week ago on one machine, I played with config/restarts got it working, printed text page.
Today logged in - again 404 on localhost:631 (goes into log as well) | 404 is "File or directory not found": the line or lines in the access_log as well as error_log could be helpful.
[Edit] this post says that a 404 problem was solved by copying cupsd.conf.default to cupsd.conf |
Well, in access_log it is just
Code: |
localhost - - [23/Nov/2006:23:06:02 -0700] "GET / HTTP/1.1" 404 0 - -
localhost - - [23/Nov/2006:23:06:02 -0700] "GET /cups.css HTTP/1.1" 404 0 - -
|
and in error_log
Code: |
D [23/Nov/2006:23:06:02 -0700] cupsdAcceptClient: 6 from localhost:631 (IPv4)
D [23/Nov/2006:23:06:02 -0700] cupsdReadClient: 6 GET /cups.css HTTP/1.1
D [23/Nov/2006:23:06:02 -0700] cupsdReadClient: 6 Browser asked for language "en-us.utf-8"
...
D [23/Nov/2006:23:06:02 -0700] cupsdAuthorize: No authentication data provided.
D [23/Nov/2006:23:06:02 -0700] cupsdSendError: 6 code=404 (Not Found)
D [23/Nov/2006:23:06:02 -0700] cupsdCloseClient: 6
|
I know that playing with cups config solves it. I thought I did it a week ago. I obviously was able to go to localhost:631, manipulate printers, print test page.
And (seemingly) changing nothing week later got 404 again. |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Fri Nov 24, 2006 7:15 pm Post subject: |
|
|
dmpogo wrote: | Well, in access_log it is just Code: |
localhost - - [23/Nov/2006:23:06:02 -0700] "GET / HTTP/1.1" 404 0 - -
localhost - - [23/Nov/2006:23:06:02 -0700] "GET /cups.css HTTP/1.1" 404 0 - - |
| This seems valuable information: it can't access the DocumentRoot directory nor can it access the file cups.css in it.
The Documentation via http://localhost:631 (1.2.7) says that the default DocumentRoot is /usr/share/doc/cups but the ebuild sets --with-docdir=/usr/share/cups/html.
Here the permissions on /usr/share/cups/html, /usr/share/cups/html/index.html and /usr/share/cups/html/cups.css are Code: | $ ls -l /usr/share/cups/html
total 68
drwxr-xr-x 11 root root 4096 Nov 18 11:11 ./
drwxr-xr-x 11 root root 4096 Sep 10 08:52 ../
-rw-r--r-- 1 root root 1967 Nov 18 11:11 cups-printable.css
-rw-r--r-- 1 root root 3660 Nov 18 11:11 cups.css
drwxr-xr-x 3 root root 4096 Sep 9 20:48 de/
drwxr-xr-x 3 root root 4096 Sep 9 20:48 es/
drwxr-xr-x 3 root root 4096 Oct 21 10:50 et/
-rw-r--r-- 1 root root 3638 Nov 18 11:11 favicon.ico
drwxr-xr-x 2 root root 4096 Sep 9 20:48 help/
drwxr-xr-x 2 root root 4096 Sep 9 20:48 images/
-rw-r--r-- 1 root root 5725 Nov 18 11:11 index.html | Would you like to check your permissions? _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Fri Nov 24, 2006 8:24 pm Post subject: |
|
|
wynn wrote: | dmpogo wrote: | Well, in access_log it is just Code: |
localhost - - [23/Nov/2006:23:06:02 -0700] "GET / HTTP/1.1" 404 0 - -
localhost - - [23/Nov/2006:23:06:02 -0700] "GET /cups.css HTTP/1.1" 404 0 - - |
| This seems valuable information: it can't access the DocumentRoot directory nor can it access the file cups.css in it.
The Documentation via http://localhost:631 (1.2.7) says that the default DocumentRoot is /usr/share/doc/cups but the ebuild sets --with-docdir=/usr/share/cups/html.
|
Thanks for the hint, I was not explicitly aware where the DocumentRoot is.
My permissions are fine, and I just made localhost:631 to work, but have no idea how. My cups conf file is from 1.1.x version while I'm currently running 1.2
I knew there have been changes, but I did not want to blindly copy new cupsd.conf.default since I had some custom stuff (+ 1.1 ersion had many more usefull comments).
So I have incorporated new changes seemingly everywhere.
I can swear, this time the following combination of commands made localhost:631 reply
Start with non-working state
Code: |
cp cupsd.conf cupsd.conf.my
cp cupsd.conf.default cupsd.conf
/etc/init.d/cupsd restart
|
It works ! And then
Code: |
cp cupsd.conf.my cupsd.conf
/etc/init.d/cupsd restart
|
And it still works !!
So I bit a bullet, took cupsd.conf.default , spent the last hour introducing there all my custom stuff, and it currently works.
There is something pretty tricky with authentication and access permissions and I learnt nothing.
I used to laugh at our administrator who was always complaining that with CUPS you are never certain will it work or not,
but must admit that with 2 years of cups, I did not get this certainty either. |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Fri Nov 24, 2006 8:29 pm Post subject: |
|
|
dmpogo wrote: | I used to laugh at our administrator who was always complaining that with CUPS you are never certain will it work or not, but must admit that with 2 years of cups, I did not get this certainty either. | I used to use lpd and with that I had to have parport, parport_pc and lp as modules, rmmod them, switch on the printer, modprobe them and then (usually) it worked.
When I started using CUPS I was amazed that I could simply switch on the printer and print. I can't say I've had many problems but these forums are living proof that this doesn't apply to all _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Fri Nov 24, 2006 8:54 pm Post subject: |
|
|
wynn wrote: | dmpogo wrote: | I used to laugh at our administrator who was always complaining that with CUPS you are never certain will it work or not, but must admit that with 2 years of cups, I did not get this certainty either. | I used to use lpd and with that I had to have parport, parport_pc and lp as modules, rmmod them, switch on the printer, modprobe them and then (usually) it worked.
When I started using CUPS I was amazed that I could simply switch on the printer and print. I can't say I've had many problems but these forums are living proof that this doesn't apply to all |
There are many useful features that CUPS have, and printer automatic discovery and queue setup is one of them, especially valuable with laptop in unknown environment.
However there is something inherently flimsy to CUPS configuration. You know, there is no robustness.
I'm in university environment and you never now what list of printers you will see today. I'm like other profs managing my own computers and printers (department manages the students and general purpose ones) and I bet few of my colleagues know how to limit the broadcast, or what you are listening to (BrowseAddress and BrowseAllow options are not that intuitive and obviously misnamed), and sometimes I was seeing printers across the campus, with my own printers hidden on the third page, default printers were changing all the time, etc.
Now I seem to get a stable setup - but essentially at the cost that I had to manually define accesses to a specific computers and printers. Not much different of what I had to do with lpd.
One the other hand, use of PPD's and printer capabilities is a nice stuff, of course. |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Fri Nov 24, 2006 9:15 pm Post subject: |
|
|
dmpogo wrote: | However there is something inherently flimsy to CUPS configuration. You know, there is no robustness.
Now I seem to get a stable setup - but essentially at the cost that I had to manually define accesses to a specific computers and printers. Not much different of what I had to do with lpd. | CUPS is a complex system, it only appears simple to set up because of the work done on the web administration.
This apparent simplicity hides the real complexity, that is, you don't really understand what you are doing and mistakes are made.
And, like all complex systems, once you need to go past the everyday, it's an uphill struggle and requires time and effort and understanding.
If this time and effort isn't part of your paid job and doesn't contribute to "What have you done for me today?" it becomes next to impossible.
Thus the anguished cries. Particularly when term papers are due in tomorrow... _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Fri Nov 24, 2006 11:22 pm Post subject: |
|
|
When I did the cups 1.2 upgrade, I took the advice that the ebuild offered:
Code: | WARN: postinst
The configuration changed with cups-1.2, you may want to save the old
one and start from scratch:
# mv /etc/cups /etc/cups.orig; emerge -va1 cups
You need to rebuild kdelibs for kdeprinter to work with cups-1.2
/usr/lib/cups exists - You need to remerge every ebuild that
installed into /usr/lib/cups and /etc/cups, qfile is in portage-utils:
# FEATURES=-collision-protect emerge -va1 $(qfile -qC /usr/lib/cups /etc/cups | sed "s:net-print/cup
s$::")
FEATURES=-collision-protect is needed to overwrite the compatibility
symlinks installed by this package, it wont be needed on later merges.
You should also run revdep-rebuild
|
I just reconfigured cups starting with the defaults. About the only thing that had me going was that the default mimes.conv file had the following comented out:
Code: |
application/octet-stream application/vnd.cups-raw 0 -
|
...which brokes printing from other machines using samba (if you use the the samba default which uses raw printing to cups).
Tom |
|
Back to top |
|
|
supermihi Guru
Joined: 09 Feb 2005 Posts: 348
|
Posted: Mon Nov 27, 2006 7:19 am Post subject: |
|
|
I had the same issue on a server. After playing around some time (including dozens of kills / zaps) it somehow started to work again. Unfortunatelly I can't recall exactly how, but I am trying the same thing on my home machine now. _________________ "You may say I'm a dreamer, but I'm not the only one." |
|
Back to top |
|
|
Erdie Advocate
Joined: 20 May 2004 Posts: 2586 Location: Heidelberg - Germany
|
Posted: Mon Jan 08, 2007 10:41 am Post subject: |
|
|
I have the same issue but with a parallel port printer. After emerge -puD word printing does not work anymore.
-Erdie _________________ Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W |
|
Back to top |
|
|
serge Apprentice
Joined: 05 Jan 2003 Posts: 177
|
Posted: Sun Jan 14, 2007 5:18 pm Post subject: |
|
|
I had the same problem saying the connection was lost.
I even reinstalled cups and the foomatic packages without any success.
Then I deleted my printer and simply reinstalled it, and everything work again.
Serge |
|
Back to top |
|
|
Erdie Advocate
Joined: 20 May 2004 Posts: 2586 Location: Heidelberg - Germany
|
Posted: Mon Jan 15, 2007 10:50 am Post subject: |
|
|
Reinstalling everything and installing the OLD version fixed my issue particially: I can print on the local machine. But accessing cups over the network does not work even after 10 hours of troubleshooting I got the message "the printer is busy". I reinstalled on both machines, server and client, and i used the same Printer URL like before - I am giving up
-Erdie _________________ Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W |
|
Back to top |
|
|
|
|
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
|
|