Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#638329: SCardEstablishContext: RPC transport error.

664 views
Skip to first unread message

Paul Menzel

unread,
Aug 18, 2011, 1:30:02 PM8/18/11
to
Package: pcsc-tools
Version: 1.4.17-1
Severity: normal

Dear Debian developers,


I am using Debian Sid/unstable and want to get a ReinerSCT CyberJack
PinPad working.

$ more /var/log/syslog
[…]
Aug 18 18:10:47 myhostname kernel: [ 2761.572055] usb 4-2: new full speed USB device number 2 using uhci_hcd
Aug 18 18:10:47 myhostname kernel: [ 2761.742077] usb 4-2: New USB device found, idVendor=0c4b, idProduct=0300
Aug 18 18:10:47 myhostname kernel: [ 2761.742087] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 18 18:10:47 myhostname kernel: [ 2761.742094] usb 4-2: Product: cyberJack pinpad(a)
Aug 18 18:10:47 myhostname kernel: [ 2761.742099] usb 4-2: Manufacturer: Reiner-SCT
Aug 18 18:10:47 myhostname kernel: [ 2761.742104] usb 4-2: SerialNumber: 0890891781
Aug 18 18:10:48 myhostname mtp-probe: checking bus 4, device 2: "/sys/devices/pci0000:00/0000:00:10.2/usb4/4-2"
Aug 18 18:10:48 myhostname mtp-probe: bus: 4, device: 2 was not an MTP device
Aug 18 18:10:50 myhostname pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0)
Aug 18 18:10:50 myhostname pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.

$ lsusb
[…]
Bus 004 Device 002: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack pinpad(a)

Using the latest driver from [1][2] and having problems [3] the
developer/maintainer advised me to use `pcscd` 1.5.5. Adding the
Squeeze/stable sources to `/etc/apt/sources.list` I downgraded `pcscd`.

sudo aptitude install pcscd=1.5.5-4

But now `pcsc_scan` just aborts with the following error even if no
reader is plugged in.

$ pcsc_scan
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic....@free.fr>
Compiled with PC/SC lite version: 1.5.5
SCardEstablishContext: RPC transport error.

Do I also have to downgrade `pcsc-tools` or other packages?

With `pcscd` 1.7.4-1 I got the following message.

$ pcsc_scan # started before plugging in
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic.rousseau@...>
Compiled with PC/SC lite version: 1.5.5
Scanning present readers...
Waiting for the first reader...SCardGetStatusChange: Unknown error: 0x43414A52

Please tell me what other information I should provide and what else I can do.


Thanks,

Paul


[1] http://www.reiner-sct.com/index.php?option=content&task=view&id=234
[2] http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP02/libifd-cyberjack6_3.99.5final.SP02_i386_d601a.deb
[3] http://sourceforge.net/mailarchive/message.php?msg_id=27959558

-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pcsc-tools depends on:
ii libc6 2.13-16 Embedded GNU C Library: Shared lib
ii libgtk2-perl 2:1.223-1+b1 Perl interface to the 2.x series o
ii libpcsc-perl 1.4.12-1+b1 Perl interface to the PC/SC smart
ii libpcsclite1 1.7.4-1 Middleware to access a smart card

pcsc-tools recommends no packages.

pcsc-tools suggests no packages.

-- no debconf information

signature.asc

Ludovic Rousseau

unread,
Aug 18, 2011, 2:00:02 PM8/18/11
to
Le 18/08/11 19:19, Paul Menzel a écrit :

No. But be sure to also install the libpcsclite package with the exact
same version as the pcscd package.

> With `pcscd` 1.7.4-1 I got the following message.
>
> $ pcsc_scan # started before plugging in
> PC/SC device scanner
> V 1.4.17 (c) 2001-2009, Ludovic Rousseau<ludovic.rousseau@...>
> Compiled with PC/SC lite version: 1.5.5
> Scanning present readers...
> Waiting for the first reader...SCardGetStatusChange: Unknown error: 0x43414A52
>
> Please tell me what other information I should provide and what else I can do.

This is a very strange error.
Be sure to kill any running pcscd before installing a new pcscd version.

kill pcscd and try again.

Bye

--
Dr. Ludovic Rousseau

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Paul Menzel

unread,
Aug 18, 2011, 2:50:02 PM8/18/11
to
reassign 638329 pcscd 1.5.5-4
clone 638329 -1
retitle 638329 pcscd: Please tighten the dependency to `libpcsclite1`
retitle -1 pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.
quit

Am Donnerstag, den 18.08.2011, 19:53 +0200 schrieb Ludovic Rousseau:
> Le 18/08/11 19:19, Paul Menzel a écrit :

> > I am using Debian Sid/unstable and want to get a ReinerSCT CyberJack

Ok, that seems to solve that issue.

$ sudo aptitude install libpcsclite1=1.5.5-4
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
libpcsclite1
0 Pakete aktualisiert, 0 zusätzlich installiert, 1 deaktualisiert, 0 werden entfernt und 38 nicht aktualisiert.
Muss 45,6 kB an Archiven herunterladen. Nach dem Entpacken werden 12,3 kB frei werden.
Hole: 1 http://ftp.de.debian.org/debian/ stable/main libpcsclite1 i386 1.5.5-4 [45,6 kB]
Fetched 45,6 kB in 0 s (200 kB/s)
dpkg: Warnung: libpcsclite1 wird von 1.7.4-1 zu 1.5.5-4 deaktualisiert.
(Lese Datenbank ... 365245 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von libpcsclite1 1.7.4-1 (durch .../libpcsclite1_1.5.5-4_i386.deb) ...
Ersatz für libpcsclite1 wird entpackt ...
libpcsclite1 (1.5.5-4) wird eingerichtet ...

$ sudo service pcscd stop
$ sudo service pcscd start


$ pcsc_scan
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic....@free.fr>
Compiled with PC/SC lite version: 1.5.5

Scanning present readers...
Waiting for the first reader...found one
Scanning present readers...
0: REINER SCT cyberJack pp_a (0890891781) 00 00

Thu Aug 18 20:26:40 2011
Reader 0: REINER SCT cyberJack pp_a (0890891781) 00 00
Card state: Card removed,

I am wondering why `pcscd` does not depend on `libpcsclite1`. If it does
not then the program itself should check if the correct libraries are
used.

> > With `pcscd` 1.7.4-1 I got the following message.
> >
> > $ pcsc_scan # started before plugging in
> > PC/SC device scanner
> > V 1.4.17 (c) 2001-2009, Ludovic Rousseau<ludovic.rousseau@...>
> > Compiled with PC/SC lite version: 1.5.5
> > Scanning present readers...
> > Waiting for the first reader...SCardGetStatusChange: Unknown error: 0x43414A52
> >
> > Please tell me what other information I should provide and what else I can do.
>
> This is a very strange error.
> Be sure to kill any running pcscd before installing a new pcscd version.

To be clear, this error is from yesterday and pcscd 1.7.4-1 was
installed and only then I downgraded.

> kill pcscd and try again.

I tried that yesterday several times, but pcscd 1.7.4-1 exits
automatically so killing was not necessary. I even think that pcscd was
killed right after `SCardGetStatusChange: Unknown error: 0x43414A52`.


Thanks,

Paul

signature.asc

Paul Menzel

unread,
Aug 18, 2011, 3:00:02 PM8/18/11
to
Am Donnerstag, den 18.08.2011, 19:53 +0200 schrieb Ludovic Rousseau:
> Le 18/08/11 19:19, Paul Menzel a écrit :

> > I am using Debian Sid/unstable and want to get a ReinerSCT CyberJack


> > PinPad working.
> >
> > $ more /var/log/syslog
> > […]
> > Aug 18 18:10:47 myhostname kernel: [ 2761.572055] usb 4-2: new full speed USB device number 2 using uhci_hcd
> > Aug 18 18:10:47 myhostname kernel: [ 2761.742077] usb 4-2: New USB device found, idVendor=0c4b, idProduct=0300
> > Aug 18 18:10:47 myhostname kernel: [ 2761.742087] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> > Aug 18 18:10:47 myhostname kernel: [ 2761.742094] usb 4-2: Product: cyberJack pinpad(a)
> > Aug 18 18:10:47 myhostname kernel: [ 2761.742099] usb 4-2: Manufacturer: Reiner-SCT
> > Aug 18 18:10:47 myhostname kernel: [ 2761.742104] usb 4-2: SerialNumber: 0890891781
> > Aug 18 18:10:48 myhostname mtp-probe: checking bus 4, device 2: "/sys/devices/pci0000:00/0000:00:10.2/usb4/4-2"
> > Aug 18 18:10:48 myhostname mtp-probe: bus: 4, device: 2 was not an MTP device
> > Aug 18 18:10:50 myhostname pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0)
> > Aug 18 18:10:50 myhostname pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.
> >
> > $ lsusb
> > […]
> > Bus 004 Device 002: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack pinpad(a)
> >
> > Using the latest driver from [1][2] and having problems [3] the
> > developer/maintainer advised me to use `pcscd` 1.5.5. Adding the
> > Squeeze/stable sources to `/etc/apt/sources.list` I downgraded `pcscd`.
> >
> > sudo aptitude install pcscd=1.5.5-4

[…]

> No. But be sure to also install the libpcsclite package with the exact
> same version as the pcscd package.

As replied to #638329 [1] downgrading libpcsclite1 to 1.5.5-4 made
`pcsc_scan` work.

$ pcsc_scan
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic....@free.fr>
Compiled with PC/SC lite version: 1.5.5

Scanning present readers...


Waiting for the first reader...found one
Scanning present readers...
0: REINER SCT cyberJack pp_a (0890891781) 00 00

Thu Aug 18 20:26:40 2011
Reader 0: REINER SCT cyberJack pp_a (0890891781) 00 00
Card state: Card removed,

But I can still read the following message in `/var/log/syslog`.

Aug 18 19:59:58 myhostname kernel: [ 9979.284033] usb 4-2: new full speed USB device number 3 using uhci_hcd
Aug 18 19:59:58 myhostname kernel: [ 9979.454082] usb 4-2: New USB device found, idVendor=0c4b, idProduct=0300
Aug 18 19:59:58 myhostname kernel: [ 9979.454093] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 18 19:59:58 myhostname kernel: [ 9979.454100] usb 4-2: Product: cyberJack pinpad(a)
Aug 18 19:59:58 myhostname kernel: [ 9979.454106] usb 4-2: Manufacturer: Reiner-SCT
Aug 18 19:59:58 myhostname kernel: [ 9979.454110] usb 4-2: SerialNumber: 0890891781
Aug 18 19:59:58 myhostname mtp-probe: checking bus 4, device 3: "/sys/devices/pci0000:00/0000:00:10.2/usb4/4-2"
Aug 18 19:59:58 myhostname mtp-probe: bus: 4, device: 3 was not an MTP device
Aug 18 19:59:59 myhostname pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0)
Aug 18 19:59:59 myhostname pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.

And this message showed up when inserting the card.

Aug 18 20:02:42 myhostname pcscd: utils.c:147:StatSynchronize() Can't remove /var/run/pcscd/pcscd.events/event.20609.17011402: No such file or directory

The installed driver is from ReinerSCT [2].

libifd-cyberjack6 3.99.5final.SP02

[…]


Thanks,

Paul


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638329
[2] http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP02/libifd-cyberjack6_3.99.5final.SP02_i386_d601a.deb

signature.asc

Ludovic Rousseau

unread,
Aug 18, 2011, 3:20:04 PM8/18/11
to
Le 18/08/11 20:41, Paul Menzel a écrit :

See Debian bugs:
#619883 libpcsclite1 - Depends against a daemon
#612971 libpcsclite1: please drop dependency on pcscd

I could add:
- pcscd Conflicts: libpcsclite (<< pcscd-version)
and
- libpcsclite: Conflicts: pcscd (<< libpcsclite-version)

or maybe just Breaks: instead.

> If it does
> not then the program itself should check if the correct libraries are
> used.

pcscd and libpcsclite should check they agree on the protocol version.
I will try to reproduce your problems.

> I tried that yesterday several times, but pcscd 1.7.4-1 exits
> automatically so killing was not necessary. I even think that pcscd was
> killed right after `SCardGetStatusChange: Unknown error: 0x43414A52`.

Maybe was not killed but crashed.

Thanks

Paul Menzel

unread,
Aug 18, 2011, 3:40:01 PM8/18/11
to
Am Donnerstag, den 18.08.2011, 21:11 +0200 schrieb Ludovic Rousseau:
> Le 18/08/11 20:41, Paul Menzel a écrit :

[…]

> > I am wondering why `pcscd` does not depend on `libpcsclite1`.
>
> See Debian bugs:
> #619883 libpcsclite1 - Depends against a daemon
> #612971 libpcsclite1: please drop dependency on pcscd

Thank you for the pointers. I should have checked. The URLs are [1] and
[2].

> I could add:
> - pcscd Conflicts: libpcsclite (<< pcscd-version)
> and
> - libpcsclite: Conflicts: pcscd (<< libpcsclite-version)
>
> or maybe just Breaks: instead.

Unfortunately I am not very familiar with this notation. But I think
only specifying this for `pcscd` should be enough, since it is using
`libpcsclite1`.

> > If it does
> > not then the program itself should check if the correct libraries are
> > used.
>
> pcscd and libpcsclite should check they agree on the protocol version.
> I will try to reproduce your problems.
>
> > I tried that yesterday several times, but pcscd 1.7.4-1 exits
> > automatically so killing was not necessary. I even think that pcscd was
> > killed right after `SCardGetStatusChange: Unknown error: 0x43414A52`.
>
> Maybe was not killed but crashed.

Yeah, I meant crashed and not killed.


Thanks,

Paul


[1] http://bugs.debian.org/619883
[2] http://bugs.debian.org/612971

signature.asc

Ludovic Rousseau

unread,
Aug 18, 2011, 3:40:02 PM8/18/11
to
Le 18/08/11 20:54, Paul Menzel a écrit :

OK so problem solved. No?

> But I can still read the following message in `/var/log/syslog`.
>
> Aug 18 19:59:58 myhostname kernel: [ 9979.284033] usb 4-2: new full speed USB device number 3 using uhci_hcd
> Aug 18 19:59:58 myhostname kernel: [ 9979.454082] usb 4-2: New USB device found, idVendor=0c4b, idProduct=0300
> Aug 18 19:59:58 myhostname kernel: [ 9979.454093] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> Aug 18 19:59:58 myhostname kernel: [ 9979.454100] usb 4-2: Product: cyberJack pinpad(a)
> Aug 18 19:59:58 myhostname kernel: [ 9979.454106] usb 4-2: Manufacturer: Reiner-SCT
> Aug 18 19:59:58 myhostname kernel: [ 9979.454110] usb 4-2: SerialNumber: 0890891781
> Aug 18 19:59:58 myhostname mtp-probe: checking bus 4, device 3: "/sys/devices/pci0000:00/0000:00:10.2/usb4/4-2"
> Aug 18 19:59:58 myhostname mtp-probe: bus: 4, device: 3 was not an MTP device
> Aug 18 19:59:59 myhostname pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0)
> Aug 18 19:59:59 myhostname pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.

This is because the ReinerSCT failed on the first open with the name
usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0

A second try is then made by pcscd with another name.

> And this message showed up when inserting the card.
>
> Aug 18 20:02:42 myhostname pcscd: utils.c:147:StatSynchronize() Can't remove /var/run/pcscd/pcscd.events/event.20609.17011402: No such file or directory

Harmless message.
And fixed in recent pcscd-lite version.

May I close the bug?

Paul Menzel

unread,
Aug 18, 2011, 4:00:02 PM8/18/11
to

Yes. This report was for the messages in `/var/log/syslog`.

> > But I can still read the following message in `/var/log/syslog`.
> >
> > Aug 18 19:59:58 myhostname kernel: [ 9979.284033] usb 4-2: new full speed USB device number 3 using uhci_hcd
> > Aug 18 19:59:58 myhostname kernel: [ 9979.454082] usb 4-2: New USB device found, idVendor=0c4b, idProduct=0300
> > Aug 18 19:59:58 myhostname kernel: [ 9979.454093] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> > Aug 18 19:59:58 myhostname kernel: [ 9979.454100] usb 4-2: Product: cyberJack pinpad(a)
> > Aug 18 19:59:58 myhostname kernel: [ 9979.454106] usb 4-2: Manufacturer: Reiner-SCT
> > Aug 18 19:59:58 myhostname kernel: [ 9979.454110] usb 4-2: SerialNumber: 0890891781
> > Aug 18 19:59:58 myhostname mtp-probe: checking bus 4, device 3: "/sys/devices/pci0000:00/0000:00:10.2/usb4/4-2"
> > Aug 18 19:59:58 myhostname mtp-probe: bus: 4, device: 3 was not an MTP device
> > Aug 18 19:59:59 myhostname pcscd: readerfactory.c:1050:RFInitializeReader() Open Port 200000 Failed (usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0)
> > Aug 18 19:59:59 myhostname pcscd: readerfactory.c:233:RFAddReader() REINER SCT cyberJack pp_a (0890891781) init failed.
>
> This is because the ReinerSCT failed on the first open with the name
> usb:0c4b/0300:libhal:/org/freedesktop/Hal/devices/usb_device_c4b_300_0890891781_if0
>
> A second try is then made by pcscd with another name.
>
> > And this message showed up when inserting the card.
> >
> > Aug 18 20:02:42 myhostname pcscd: utils.c:147:StatSynchronize() Can't remove /var/run/pcscd/pcscd.events/event.20609.17011402: No such file or directory
>
> Harmless message.
> And fixed in recent pcscd-lite version.
>
> May I close the bug?

Yes. Actually I wanted to do it, but I do not know in what version the
last error was fixed, so I do not know if you want to set `Version:` to
something else. (Since the title is not about the last error.)


Thank you for your help and explanations,

Paul

signature.asc

Paul Menzel

unread,
Aug 22, 2011, 2:40:03 PM8/22/11
to
Am Donnerstag, den 18.08.2011, 21:27 +0200 schrieb Paul Menzel:
> Am Donnerstag, den 18.08.2011, 21:11 +0200 schrieb Ludovic Rousseau:
> > Le 18/08/11 20:41, Paul Menzel a écrit :
>
> […]
>
> > > I am wondering why `pcscd` does not depend on `libpcsclite1`.
> >
> > See Debian bugs:
> > #619883 libpcsclite1 - Depends against a daemon
> > #612971 libpcsclite1: please drop dependency on pcscd
>
> Thank you for the pointers. I should have checked. The URLs are [1] and
> [2].
>
> > I could add:
> > - pcscd Conflicts: libpcsclite (<< pcscd-version)
> > and
> > - libpcsclite: Conflicts: pcscd (<< libpcsclite-version)
> >
> > or maybe just Breaks: instead.
>
> Unfortunately I am not very familiar with this notation. But I think
> only specifying this for `pcscd` should be enough, since it is using
> `libpcsclite1`.
>
> > > If it does
> > > not then the program itself should check if the correct libraries are
> > > used.
> >
> > pcscd and libpcsclite should check they agree on the protocol version.
> > I will try to reproduce your problems.

Please take a look at the cups package how they deal with this problem.

cups (1.5.0-5) unstable; urgency=low

[…]

[ Martin Pitt ]
* debian/control: Bump Breaks: cups version for libcups2, as cupsd seems to
use internal private symbols from this library. (Closes: #638462)

-- Till Kamppeter <till.ka...@gmail.com> Mon, 22 Aug 2011 12:13:43 +0200


Thanks,

Paul

signature.asc
0 new messages