PCSCD Service Not available openSUSE 13.1

Greetings,

I am testing openSUSE 13.1 out on a virtual machine before I install it as my host system. As of today, I am not able to get the pcscd service to run. I have tried several things that I found when searching this forum and others but none seem to work.

I have installed these packages, which work in 12.3 without issue:

pcsc-lite
pcsc-ccid
perl-pcsc
pcsc-tools

When I go to scan for the smartcard, I get this:

> pcsc_scan                                                                                                                                                       
PC/SC device scanner                                                                                                                                                                              
V 1.4.21 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>                                                                                                                               
Compiled with PC/SC lite version: 1.8.10
SCardEstablishContext: Service not available.

Checked the status:

# systemctl status pcscd.service
pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; static)
   Active: inactive (dead) since Thu 2013-11-21 12:43:04 EAT; 54min ago
  Process: 2689 ExecStart=/usr/sbin/pcscd --foreground --auto-exit $PCSCD_OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 2689 (code=exited, status=0/SUCCESS)

Nov 21 12:41:46 linux-0rjx.site systemd[1]: Started PC/SC Smart Card Daemon.
Nov 21 12:41:46 linux-0rjx.site pcscd[2689]: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory
Nov 21 12:41:57 linux-0rjx.site pcscd[2689]: 10577175 ccid_usb.c:732:WriteUSB() write failed (2/4): -7 Success
Nov 21 12:42:03 linux-0rjx.site pcscd[2689]: 06141497 winscard_svc.c:338:ContextThread() Client protocol is 4:3
Nov 21 12:42:03 linux-0rjx.site pcscd[2689]: 00000024 winscard_svc.c:340:ContextThread() Server protocol is 4:2
Nov 21 12:43:04 linux-0rjx.site pcscd[2689]: 61536611 commands.c:998:CmdPowerOff Card absent or mute

Restarted the service:

# systemctl status pcscd.service
pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; static)
   Active: active (running) since Thu 2013-11-21 13:38:17 EAT; 2s ago
 Main PID: 2794 (pcscd)
   CGroup: /system.slice/pcscd.service
           └─2794 /usr/sbin/pcscd --foreground --auto-exit

Nov 21 13:38:17 linux-0rjx.site systemd[1]: Started PC/SC Smart Card Daemon.
Nov 21 13:38:17 linux-0rjx.site pcscd[2794]: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory

But I notice that the pcscd.pid has the error nos such file or directory still and the service is still unavailable.

Any ideas on how to get this running would be great. I can also file a bug report if that is what it will take too.

Thanks!

Since I am testing this in a virtual environment, I am not sure that the problem stems from that. I have had virtual machine issues in the past so I am admittedly making a supposition based on past experience. PCSCD does not show up as a service in the YAST System Services tool and I’m not sure why…

More testing!

pcscd is a daemon that will only be loaded if a programm will need it.

It works great with moneyplex here on 13.1

Before starting moneyplex:

systemctl status pcscd.service
pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; static)
   Active: inactive (dead) since So 2013-11-24 23:22:50 CET; 5min ago
  Process: 19217 ExecStart=/usr/sbin/pcscd --foreground --auto-exit $PCSCD_OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 19217 (code=exited, status=0/SUCCESS)

Nov 24 23:21:49 linux64 systemd[1]: Started PC/SC Smart Card Daemon.
Nov 24 23:21:49 linux64 pcscd[19217]: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pc...ctory
Nov 24 23:21:49 linux64 pcscd[19217]: CYBERJACK: Started
Hint: Some lines were ellipsized, use -l to show in full.

After a Transaction in moneyplex:

systemctl status pcscd.service
pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; static)
   Active: active (running) since So 2013-11-24 23:29:11 CET; 54s ago
 Main PID: 28752 (pcscd)
   CGroup: /system.slice/pcscd.service
           └─28752 /usr/sbin/pcscd --foreground --auto-exit

Nov 24 23:29:11 linux64 systemd[1]: Started PC/SC Smart Card Daemon.
Nov 24 23:29:11 linux64 pcscd[28752]: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pc...ctory
Nov 24 23:29:11 linux64 pcscd[28752]: CYBERJACK: Started
Hint: Some lines were ellipsized, use -l to show in full.

pcscd was started automically by moneyplex

pcsc_scan
PC/SC device scanner
V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.8
Using reader plug'n play mechanism
Scanning present readers...
0: REINER SCT cyberJack RFID standard (5801785180) 00 00

Sun Nov 24 23:32:47 2013
Reader 0: REINER SCT cyberJack RFID standard (5801785180) 00 00
  Card state: Card removed, 

Driver for your reader is installed?

I decided to install openSUSE 13.1 on a newly acquired test machine and it appears that the Smart Card daemon (pcscd) is working just fine. It is still not listed in the YaST Service manager but the important thing is that it is working fine. I did notice some changes. This time when installing the packages for the smartcard service, they were all supported 13.1 packages.

So I consider this problem “SOLVED”.

Thanks a bunch to everybody!