Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcscd.service failure #119

Closed
gkrsman opened this issue Feb 13, 2022 · 1 comment
Closed

pcscd.service failure #119

gkrsman opened this issue Feb 13, 2022 · 1 comment

Comments

@gkrsman
Copy link

gkrsman commented Feb 13, 2022

pcsc-lite 1.9.5
the output of the command /usr/sbin/pcscd --version is
bash: /usr/sbin/pcscd: No such file or directory

Platform

Ubuntu 18.04
card reader model OMNIKEY 1021

Issue

● pcscd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: exit-code) since Sun 2022-02-13 10:27:48 CET; 1h 26min ago
 Main PID: 17808 (code=exited, status=1/FAILURE)

феб 13 10:26:27 dev systemd[1]: Started PC/SC Smart Card Daemon.
феб 13 10:26:48 dev pcscd[17808]: 00000000 winscard_svc.c:383:ContextThread() Client protocol is 4:4
феб 13 10:26:48 dev pcscd[17808]: 00000066 winscard_svc.c:385:ContextThread() Server protocol is 4:3
феб 13 10:27:48 dev systemd[1]: Stopping PC/SC Smart Card Daemon...
феб 13 10:27:48 dev systemd[1]: pcscd.service: Main process exited, code=exited, status=1/FAILURE
феб 13 10:27:48 dev systemd[1]: pcscd.service: Failed with result 'exit-code'.
феб 13 10:27:48 dev systemd[1]: Stopped PC/SC Smart Card Daemon.

I tried to install version 1.9.5 with following commands:

wget https://pcsclite.apdu.fr/files/pcsc-lite-1.9.5.tar.bz2
tar -xf pcsc-lite-1.9.5.tar.bz2
cd pcsc-lite-1.9.5
./configure
make
sudo make install

pcscd.service contain path which doesn't exists EnvironmentFile=-/usr/local/etc/default/pcscd. My question is what should I do?

Configuration log shows wrong configuration dir.
/usr/local/etc/reader.conf.d is wrong it's an empty dir. reader.conf.d is located at /etc/reader.conf.d

Here is complete configuration log:

PC/SC lite has been configured with following options:

Version:             1.9.5
System binaries:     /usr/local/sbin
Configuration dir:   /usr/local/etc/reader.conf.d

Host:                x86_64-pc-linux-gnu
Compiler:            gcc
Preprocessor flags:  -I${top_srcdir}/src 
Compiler flags:      -Wall -fno-common -g -O2
Preprocessor flags:  -I${top_srcdir}/src 
Linker flags:        
Libraries:           -ldl  -lrt

PTHREAD_CFLAGS:      -pthread
PTHREAD_LIBS:        -lpthread
PCSC_ARCH:           Linux

polkit support:         no
polkit policy dir:      
libudev support:        yes
libusb support:         no
USB drop directory:     /usr/local/lib/pcsc/drivers
ATR parsing messages:   false
ipcdir:                 /run/pcscd
use serial:             yes
use usb:                yes
use libsystemd:         yes
systemd unit directory: /lib/systemd/system
serial config dir.:     /usr/local/etc/reader.conf.d
filter:                 yes
documentation:          yes

PCSCLITE_FEATURES:       Linux x86_64-pc-linux-gnu libsystemd serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/usr/local/etc/reader.conf.d
@LudovicRousseau
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants