Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] pcscd fails complaining about /etc/rmt and /etc/rpc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Thu Oct 06, 2011 7:14 am    Post subject: [solved] pcscd fails complaining about /etc/rmt and /etc/rpc Reply with quote

I have pcsc-lite installed on amd64. pcscd fails to start and complains about errors in the /rtc/rmt and /etc/rpc config files:

Code:

# pcscd -fd
00000000 debuglog.c:277:DebugLogSetLevel() debug level=debug
00000970 configfile.l:245:DBGetReaderListDir() Parsing conf directory: /etc
00000209 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/rmt
00000073 configfile.l:225:tok_error() tok_error: invalid value line 8 in /etc/rmt: exec
00000042 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/rpc
00000032 configfile.l:225:tok_error() tok_error: invalid value line 5 in /etc/rpc: portmapper
00000012 configfile.l:225:tok_error() tok_error: invalid value line 5 in /etc/rpc: portmap
00000010 configfile.l:225:tok_error() tok_error: invalid value line 5 in /etc/rpc: rpcbind
00000009 configfile.l:225:tok_error() tok_error: invalid value line 6 in /etc/rpc: rstatd
00000009 configfile.l:225:tok_error() tok_error: invalid value line 6 in /etc/rpc: rstat
00000010 configfile.l:225:tok_error() tok_error: invalid value line 6 in /etc/rpc: perfmeter
00000009 configfile.l:225:tok_error() tok_error: invalid value line 7 in /etc/rpc: rusersd
00000009 configfile.l:225:tok_error() tok_error: invalid value line 7 in /etc/rpc: rusers
00000008 configfile.l:225:tok_error() tok_error: invalid value line 8 in /etc/rpc: nfs
00000009 configfile.l:225:tok_error() tok_error: invalid value line 8 in /etc/rpc: nfsprog
00000008 configfile.l:225:tok_error() tok_error: invalid value line 9 in /etc/rpc: ypserv
00000009 configfile.l:225:tok_error() tok_error: invalid value line 9 in /etc/rpc: ypprog
00000009 configfile.l:225:tok_error() tok_error: invalid value line 10 in /etc/rpc: mountd
00000009 configfile.l:225:tok_error() tok_error: invalid value line 10 in /etc/rpc: mount
00000008 configfile.l:225:tok_error() tok_error: invalid value line 11 in /etc/rpc: ypbind
00000009 configfile.l:225:tok_error() tok_error: invalid value line 12 in /etc/rpc: walld
00000008 configfile.l:225:tok_error() tok_error: invalid value line 12 in /etc/rpc: rwall
00000009 configfile.l:225:tok_error() tok_error: invalid value line 13 in /etc/rpc: yppasswdd
00000059 configfile.l:225:tok_error() tok_error: invalid value line 13 in /etc/rpc: yppasswd
00000023 configfile.l:225:tok_error() tok_error: invalid value line 14 in /etc/rpc: etherstatd
00000044 configfile.l:225:tok_error() tok_error: invalid value line 14 in /etc/rpc: etherstat
00000021 configfile.l:225:tok_error() tok_error: invalid value line 15 in /etc/rpc: rquotad
00000020 configfile.l:225:tok_error() tok_error: invalid value line 15 in /etc/rpc: rquotaprog
00000019 configfile.l:225:tok_error() tok_error: invalid value line 15 in /etc/rpc: rquota
00000019 configfile.l:225:tok_error() tok_error: invalid value line 16 in /etc/rpc: sprayd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 16 in /etc/rpc: spray
00000019 configfile.l:225:tok_error() tok_error: invalid value line 17 in /etc/rpc: 3270_mapper
00000020 configfile.l:225:tok_error() tok_error: invalid value line 18 in /etc/rpc: rje_mapper
00000020 configfile.l:225:tok_error() tok_error: invalid value line 19 in /etc/rpc: selection_svc
00000019 configfile.l:225:tok_error() tok_error: invalid value line 19 in /etc/rpc: selnsvc
00000019 configfile.l:225:tok_error() tok_error: invalid value line 20 in /etc/rpc: database_svc
00000019 configfile.l:225:tok_error() tok_error: invalid value line 21 in /etc/rpc: rexd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 21 in /etc/rpc: rex
00000019 configfile.l:225:tok_error() tok_error: invalid value line 22 in /etc/rpc: alis
00000019 configfile.l:225:tok_error() tok_error: invalid value line 23 in /etc/rpc: sched
00000019 configfile.l:225:tok_error() tok_error: invalid value line 24 in /etc/rpc: llockmgr
00000019 configfile.l:225:tok_error() tok_error: invalid value line 25 in /etc/rpc: nlockmgr
00000019 configfile.l:225:tok_error() tok_error: invalid value line 26 in /etc/rpc: x25.inr
00000019 configfile.l:225:tok_error() tok_error: invalid value line 27 in /etc/rpc: statmon
00000019 configfile.l:225:tok_error() tok_error: invalid value line 28 in /etc/rpc: status
00000019 configfile.l:225:tok_error() tok_error: invalid value line 29 in /etc/rpc: bootparam
00000019 configfile.l:225:tok_error() tok_error: invalid value line 30 in /etc/rpc: ypupdated
00000019 configfile.l:225:tok_error() tok_error: invalid value line 30 in /etc/rpc: ypupdate
00000018 configfile.l:225:tok_error() tok_error: invalid value line 31 in /etc/rpc: keyserv
00000019 configfile.l:225:tok_error() tok_error: invalid value line 31 in /etc/rpc: keyserver
00000019 configfile.l:225:tok_error() tok_error: invalid value line 32 in /etc/rpc: sunlink_mapper
00000019 configfile.l:225:tok_error() tok_error: invalid value line 33 in /etc/rpc: tfsd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 34 in /etc/rpc: nsed
00000019 configfile.l:225:tok_error() tok_error: invalid value line 35 in /etc/rpc: nsemntd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 36 in /etc/rpc: showfhd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 36 in /etc/rpc: showfh
00000019 configfile.l:225:tok_error() tok_error: invalid value line 37 in /etc/rpc: ioadmd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 37 in /etc/rpc: rpc.ioadmd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 38 in /etc/rpc: NETlicense
00000019 configfile.l:225:tok_error() tok_error: invalid value line 39 in /etc/rpc: sunisamd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 40 in /etc/rpc: debug_svc
00000020 configfile.l:225:tok_error() tok_error: invalid value line 40 in /etc/rpc: dbsrv
00000018 configfile.l:225:tok_error() tok_error: invalid value line 41 in /etc/rpc: ypxfrd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 41 in /etc/rpc: rpc.ypxfrd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 42 in /etc/rpc: bugtraqd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 43 in /etc/rpc: kerbd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 44 in /etc/rpc: event
00000034 configfile.l:225:tok_error() tok_error: invalid value line 44 in /etc/rpc: na.event
00000010 configfile.l:225:tok_error() tok_error: invalid value line 45 in /etc/rpc: logger
00000022 configfile.l:225:tok_error() tok_error: invalid value line 45 in /etc/rpc: na.logger
00000023 configfile.l:225:tok_error() tok_error: invalid value line 46 in /etc/rpc: sync
00000033 configfile.l:225:tok_error() tok_error: invalid value line 46 in /etc/rpc: na.sync
00000020 configfile.l:225:tok_error() tok_error: invalid value line 47 in /etc/rpc: hostperf
00000020 configfile.l:225:tok_error() tok_error: invalid value line 47 in /etc/rpc: na.hostperf
00000019 configfile.l:225:tok_error() tok_error: invalid value line 48 in /etc/rpc: activity
00000019 configfile.l:225:tok_error() tok_error: invalid value line 48 in /etc/rpc: na.activity
00000019 configfile.l:225:tok_error() tok_error: invalid value line 49 in /etc/rpc: hostmem
00000019 configfile.l:225:tok_error() tok_error: invalid value line 49 in /etc/rpc: na.hostmem
00000019 configfile.l:225:tok_error() tok_error: invalid value line 50 in /etc/rpc: sample
00000019 configfile.l:225:tok_error() tok_error: invalid value line 50 in /etc/rpc: na.sample
00000019 configfile.l:225:tok_error() tok_error: invalid value line 51 in /etc/rpc: x25
00000019 configfile.l:225:tok_error() tok_error: invalid value line 51 in /etc/rpc: na.x25
00000018 configfile.l:225:tok_error() tok_error: invalid value line 52 in /etc/rpc: ping
00000019 configfile.l:225:tok_error() tok_error: invalid value line 52 in /etc/rpc: na.ping
00000019 configfile.l:225:tok_error() tok_error: invalid value line 53 in /etc/rpc: rpcnfs
00000019 configfile.l:225:tok_error() tok_error: invalid value line 53 in /etc/rpc: na.rpcnfs
00000019 configfile.l:225:tok_error() tok_error: invalid value line 54 in /etc/rpc: hostif
00000018 configfile.l:225:tok_error() tok_error: invalid value line 54 in /etc/rpc: na.hostif
00000019 configfile.l:225:tok_error() tok_error: invalid value line 55 in /etc/rpc: etherif
00000019 configfile.l:225:tok_error() tok_error: invalid value line 55 in /etc/rpc: na.etherif
00000019 configfile.l:225:tok_error() tok_error: invalid value line 56 in /etc/rpc: iproutes
00000019 configfile.l:225:tok_error() tok_error: invalid value line 56 in /etc/rpc: na.iproutes
00000019 configfile.l:225:tok_error() tok_error: invalid value line 57 in /etc/rpc: layers
00000019 configfile.l:225:tok_error() tok_error: invalid value line 57 in /etc/rpc: na.layers
00000018 configfile.l:225:tok_error() tok_error: invalid value line 58 in /etc/rpc: snmp
00000020 configfile.l:225:tok_error() tok_error: invalid value line 58 in /etc/rpc: na.snmp
00000019 configfile.l:225:tok_error() tok_error: invalid value line 58 in /etc/rpc: snmp-synoptics
00000019 configfile.l:225:tok_error() tok_error: invalid value line 58 in /etc/rpc: snmp-utk
00000020 configfile.l:225:tok_error() tok_error: invalid value line 59 in /etc/rpc: traffic
00000019 configfile.l:225:tok_error() tok_error: invalid value line 59 in /etc/rpc: na.traffic
00000018 configfile.l:225:tok_error() tok_error: invalid value line 60 in /etc/rpc: nfs_acl
00000019 configfile.l:225:tok_error() tok_error: invalid value line 61 in /etc/rpc: sadmind
00000019 configfile.l:225:tok_error() tok_error: invalid value line 62 in /etc/rpc: nisd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 62 in /etc/rpc: rpc.nisd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 63 in /etc/rpc: nispasswd
00000019 configfile.l:225:tok_error() tok_error: invalid value line 63 in /etc/rpc: rpc.nispasswdd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 64 in /etc/rpc: ufsd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 64 in /etc/rpc: ufsd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 65 in /etc/rpc: pcnfsd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 65 in /etc/rpc: pcnfs
00000019 configfile.l:225:tok_error() tok_error: invalid value line 66 in /etc/rpc: amd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 66 in /etc/rpc: amq
00000018 configfile.l:225:tok_error() tok_error: invalid value line 67 in /etc/rpc: sgi_fam
00000018 configfile.l:225:tok_error() tok_error: invalid value line 67 in /etc/rpc: fam
00000019 configfile.l:225:tok_error() tok_error: invalid value line 68 in /etc/rpc: bwnfsd
00000018 configfile.l:225:tok_error() tok_error: invalid value line 69 in /etc/rpc: fypxfrd
00000033 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/ssh
input in flex scanner failed
00000051 pcscdaemon.c:631:at_exit() cleaning /var/run/pcscd
00000053 pcscdaemon.c:655:clean_temp_files() Cannot remove /var/run/pcscd/pcscd.comm: No such file or directory


Any ideas how to resolve this?


Last edited by equaeghe on Fri Oct 07, 2011 5:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 262

PostPosted: Thu Oct 06, 2011 10:10 pm    Post subject: Pcscd in Need of a Config File Reply with quote

It seems pcscd is looking for a config file in /etc. But due to parsing errors (flex scanner) with non-pcsc files it fails to start.

I encountered this problem recently, and my solution was to explicitly state a config file.
According to the author pcscd does not need a config file, so you just need to create an empty one.

This should work:
Code:
# touch /etc/reader.conf
# pcscd -a -d -f -c /etc/reader.conf


To make this work via init script you just need to create a config file for it:
Code:
# nano -w /etc/conf.d/pcscd
EXTRA_OPTS="--config=/etc/reader.conf"

_________________
Tempus fugit.
@frank@troet.cafe
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Fri Oct 07, 2011 5:01 pm    Post subject: Re: Pcscd in Need of a Config File Reply with quote

der bastler wrote:
It seems pcscd is looking for a config file in /etc. But due to parsing errors (flex scanner) with non-pcsc files it fails to start.


Indeed; it seems adding a directory reader.conf.d to /etc solved the problem (I found this folder on another system of mine).
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 262

PostPosted: Mon Oct 10, 2011 9:21 am    Post subject: Re: Pcscd in Need of a Config File Reply with quote

equaeghe wrote:
der bastler wrote:
It seems pcscd is looking for a config file in /etc. But due to parsing errors (flex scanner) with non-pcsc files it fails to start.


Indeed; it seems adding a directory reader.conf.d to /etc solved the problem (I found this folder on another system of mine).


Even better, this reduces the fix to a simple mkdir. Thanks!
_________________
Tempus fugit.
@frank@troet.cafe
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Mon Oct 10, 2011 9:33 am    Post subject: Re: Pcscd in Need of a Config File Reply with quote

der bastler wrote:
Even better, this reduces the fix to a simple mkdir. Thanks!


Actually, current stable fixes the problem entirely; not even the directory is needed anymore: bug detailing this
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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