You are not logged in.

#1 2012-08-18 10:34:42

kocsv
Member
Registered: 2011-10-10
Posts: 22

[SOLVED] cups 1.6 does not find usb printer

Hello,

Since I have upgraded to cups 1.6 I can't add a usb printer. Whenever I click on "Find new printer" in the administration web interface, no printer is found.
Printer is a Samsung ML 1640 which worked flawlessly with versions before 1.6.

I am using the default config file, no changes except LogLevel debug.  Also tried reinstalling whole cups and splix, no success.

error.log shows following output:

==> /var/log/cups/error_log <==
D [18/Aug/2012:12:13:29 +0200] [Client 14] WWW-Authenticate: Basic realm="CUPS"
D [18/Aug/2012:12:13:29 +0200] [Client 14] HTTP_WAITING Closing on EOF
D [18/Aug/2012:12:13:29 +0200] [Client 14] Closing connection.
D [18/Aug/2012:12:13:29 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [18/Aug/2012:12:13:29 +0200] [Client 14] Accepted from localhost (Domain)
D [18/Aug/2012:12:13:29 +0200] [Client 14] HTTP_WAITING Closing on EOF
D [18/Aug/2012:12:13:29 +0200] [Client 14] Closing connection.
D [18/Aug/2012:12:13:29 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [18/Aug/2012:12:13:29 +0200] [Client 14] Accepted from localhost (Domain)
D [18/Aug/2012:12:13:29 +0200] [Client 14] POST / HTTP/1.1
D [18/Aug/2012:12:13:29 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [18/Aug/2012:12:13:29 +0200] [Client 14] Authorized as root using Local
D [18/Aug/2012:12:13:29 +0200] [Client 14] 2.0 CUPS-Get-Devices 2
D [18/Aug/2012:12:13:29 +0200] CUPS-Get-Devices
D [18/Aug/2012:12:13:29 +0200] cupsdIsAuthorized: username="root"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[1] = "2"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[2] = "0"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[3] = "15"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[4] = "2"
D [18/Aug/2012:12:13:29 +0200] [CGI] argv[5] = "requested-attributes=all"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[10] = "SERVER_ADMIN=root@spt08"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[11] = "SOFTWARE=CUPS/1.6.1"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[13] = "USER=root"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[17] = "IPP_PORT=631"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[18] = "AUTH_TYPE=Local"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[19] = "LANG=de_AT.UTF8"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[20] = "REDIRECT_STATUS=1"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[21] = "GATEWAY_INTERFACE=CGI/1.1"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[22] = "SERVER_NAME=localhost"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[23] = "SERVER_PORT=631"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[24] = "REMOTE_ADDR=localhost"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[25] = "REMOTE_HOST=localhost"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[26] = "SCRIPT_NAME=/"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[27] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[28] = "REMOTE_USER=root"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[29] = "SERVER_PROTOCOL=HTTP/1.1"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[30] = "HTTP_USER_AGENT=CUPS/1.6.1"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[31] = "REQUEST_METHOD=POST"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[32] = "CONTENT_LENGTH=75"
D [18/Aug/2012:12:13:29 +0200] [CGI] envp[33] = "CONTENT_TYPE=application/ipp"
D [18/Aug/2012:12:13:29 +0200] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 25152)
I [18/Aug/2012:12:13:29 +0200] [Client 14] Started "/usr/lib/cups/daemon/cups-deviced" (pid=25152)
D [18/Aug/2012:12:13:29 +0200] [Client 14] file=16
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/ipps (PID 25153)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/usb (PID 25154)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/serial (PID 25155)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/socket (PID 25156)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/dnssd (PID 25157)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/snmp (PID 25158)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/smb (PID 25159)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/http (PID 25160)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/bluetooth (PID 25161)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/https (PID 25162)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/ipp (PID 25163)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/parallel (PID 25164)
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/lpd (PID 25165)
D [18/Aug/2012:12:13:29 +0200] [CGI] list_devices
D [18/Aug/2012:12:13:29 +0200] [CGI] libusb_get_device_list=12
D [18/Aug/2012:12:13:29 +0200] Script header: Content-Type: application/ipp
D [18/Aug/2012:12:13:29 +0200] Script header: 
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "ipps"...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25153 (ipps) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "lpd"...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25164 (parallel) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25154 (usb) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25156 (socket) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25160 (http) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "socket"...
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "http"...
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "https"...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25155 (serial) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25165 (lpd) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "smb"...
D [18/Aug/2012:12:13:29 +0200] [CGI] Flushed attributes...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] Found device "ipp"...
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25162 (https) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25163 (ipp) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25159 (smb) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [CGI] Unable to create IPv6 socket: Address family not supported by protocol
D [18/Aug/2012:12:13:29 +0200] [CGI] browse_callback: DNS failure: NXDOMAIN
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25161 (bluetooth) exited with no errors.
D [18/Aug/2012:12:13:29 +0200] [cups-deviced] PID 25157 (dnssd) exited with no errors.
D [18/Aug/2012:12:13:31 +0200] [cups-deviced] PID 25158 (snmp) exited with no errors.
D [18/Aug/2012:12:13:31 +0200] PID 25152 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.

/usr/lib/cups/backend/usb returns with no error, but no printer is found (according to web interface)

But when I start /usr/lib/cups/backend/usb manually i get following output:

DEBUG: list_devices
DEBUG: libusb_get_device_list=12
DEBUG2: Printer found with device ID: MFG:Samsung;CMD:GDI;MDL:ML-1640 Series;CLS:PRINTER;STATUS:IDLE; Device URI: usb://Samsung/ML-1640%20Series?serial=144QBAHS311415Y.
direct usb://Samsung/ML-1640%20Series?serial=144QBAHS311415Y. "Samsung ML-1640 Series" "Samsung ML-1640 Series" "MFG:Samsung;CMD:GDI;MDL:ML-1640 Series;CLS:PRINTER;STATUS:IDLE;" ""

Why does this new printer not show up in the web interface?


When i add the printer manually via lpadmin

lpadmin -p ml1640  -v usb://Samsung/ML-1640%20Series?serial=144QBAHS311415Y -P /usr/share/cups/model/samsung/ml1640.ppd

I can start a print job but then I only see following job-state in the web interface:

          "Waiting for printer to become available."

Any advice how to get printing working again?



Greetings
kocsv

Last edited by kocsv (2012-08-19 16:02:00)

Offline

#2 2012-08-18 10:50:43

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] cups 1.6 does not find usb printer

Please confirm you followed the instructions pacman displayed when cups 1.6 was installed.

Offline

#3 2012-08-18 13:18:50

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] cups 1.6 does not find usb printer

Avahi is started before cupsd and usblp is not blacklisted anymore.

Last edited by kocsv (2012-08-18 13:19:04)

Offline

#4 2012-08-18 13:52:45

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] cups 1.6 does not find usb printer

When I had network printing problem recently I found host name and domain weren't fully set up. I don't know if that helps in a simple local setting for finding ipp.

Offline

#5 2012-08-19 06:24:07

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] cups 1.6 does not find usb printer

vacant wrote:

When I had network printing problem recently I found host name and domain weren't fully set up. I don't know if that helps in a simple local setting for finding ipp.


The problem is:
- local printer is found when starting /usr/lib/cups/backend/usb manually
- same binary is called when searching in web interface - with no printer found
- i can add the printer manually, i can start a print job, the job is never printed ("waiting for printer to become available")

Hostnames and domain are set up properly.

Offline

#6 2012-08-19 10:01:27

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] cups 1.6 does not find usb printer

Make sure your firewall isn't the problem.

Offline

#7 2012-08-19 10:37:38

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] cups 1.6 does not find usb printer

David Batson wrote:

Make sure your firewall isn't the problem.

Already checked that.


I'm gonna go back to 1.5 -.-

Offline

#8 2012-08-19 13:32:36

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] cups 1.6 does not find usb printer

I stepped back to the last version and nothing worked. Whats wrong?!?

Hooked the printer up at another machine and it worked out of the box after installing cups.
Tailed messages.log when attaching the usb cable and found differences.

Running udevd --debug showed, that the culprit was:

aur/android-udev

Removed that package and everything works.


Well...  except: now every 5 seconds i have following output in messages.log:

Aug 19 15:25:35 spt08 kernel: [355081.778863] usblp1: removed
Aug 19 15:25:35 spt08 kernel: [355081.789091] usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3292

But that problem has to wait  smile

Offline

#9 2012-08-19 15:31:15

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED] cups 1.6 does not find usb printer

Please mark the thread [SOLVED]. Have you reported the problem with android-udev?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-08-19 16:02:42

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] cups 1.6 does not find usb printer

Done.
Mailed the maintainer about the problem.

Offline

#11 2012-11-27 23:38:57

raudi
Member
Registered: 2012-08-28
Posts: 3

Re: [SOLVED] cups 1.6 does not find usb printer

I had the same problem with my Kyocera 1020D
It seems as if the android udev package is making every device by kyocera into an Android device. Just deleting that one entry solved the problem for me. But finding this solution took me hours...

Offline

#12 2014-10-03 21:46:34

silasdavis
Member
Registered: 2013-02-13
Posts: 17

Re: [SOLVED] cups 1.6 does not find usb printer

This still seems to be happening, removing android-udev fixed it for my splix-powered samsung ml-1510. Naughty android-udev for being such a blunt instrument.

Last edited by silasdavis (2014-10-03 21:46:50)

Offline

#13 2015-01-17 00:00:51

volimsir
Member
Registered: 2014-09-17
Posts: 3

Re: [SOLVED] cups 1.6 does not find usb printer

This is still a problem. Removed my android-udev, and now my printer is working. Sorry to necro this, but hopefully people won't dismiss this solution, just because it's old.

Offline

Board footer

Powered by FluxBB