pcscd not running after reboot

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

pcscd not running after reboot

Postby hviaene » Jun 11th, '18, 11:00

I've never had this before. On one machine the pcscd daemon does not run after reboot. In MCC it is marked as to start after boot. In journalctl I see it as being started as any other service, but finally it isn't. Starting it afterwarts with systemctl is OK, and it remains running. No other indications in journalctl.
Where do I start to search for this???
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby AstorBG » Jun 11th, '18, 17:17

Hi,
Did you try as root:
Code: Select all
systemctl enable pcscd
?

Cheers
Mageia 5.1, KDE4, x86_64
AstorBG
 
Posts: 38
Joined: Jan 29th, '13, 21:31

Re: pcscd not running after reboot

Postby doktor5000 » Jun 11th, '18, 19:24

Before you do that, please post the output as root of
Code: Select all
systemctl status pcscd -al -n150
systemctl is-enabled pcscd
journalctl -ab|grep -i pcscd
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14355
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pcscd not running after reboot

Postby hviaene » Jun 12th, '18, 09:10

Copying manually from teamviewer:
systemctl status pcscd -al -n150
loaded .......; indirect; vendor preset: enabled
systemctl is-enabled pcscd
indirect
journalctl -ab|grep -i pcscd
no output
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby doktor5000 » Jun 12th, '18, 18:07

Have no system to check against, but the "indirect" status looks strange. From the documentation:
man systemctl wrote:"indirect" The unit file itself is not enabled, but it has a non-empty Also= setting in the "[Install]" unit file section, listing other unit files that might be enabled, or it has an alias under a different name through a symlink that is not specified in Also=. For template unit file, an instance different than the one specified in DefaultInstance= is enabled.


Could also be that it is normal behavior and instead of pcscd.service the socket unit pcscd.socket is enabled.

What is the output of
Code: Select all
systemctl list-units --all|grep -i pcscd
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14355
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pcscd not running after reboot

Postby hviaene » Jun 13th, '18, 08:34

Same commands on my own PC where the daemon runs correctly at startup:
Code: Select all
# systemctl status pcscd -al -n150
● pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; vendor preset: enabled)
   Active: active (running) since Wed 2018-06-13 08:28:16 CEST; 2min 35s ago
 Main PID: 4998 (pcscd)
   CGroup: /system.slice/pcscd.service
           └─4998 /usr/sbin/pcscd --foreground --auto-exit

Jun 13 08:28:16 mach1.hviaene.thuis systemd[1]: Started PC/SC Smart Card Daemon.
[root@mach1 ~]# systemctl is-enabled pcscd
indirect
[root@mach1 ~]# journalctl -ab|grep -i pcscd
[root@mach1 ~]#
Trying to get access to the problem PC today.
Last edited by doktor5000 on Jun 13th, '18, 19:19, edited 1 time in total.
Reason: added code tags
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby hviaene » Jun 13th, '18, 14:11

on the problem machine:
Code: Select all
# systemctl list-units --all|grep -i pcscd
#

thus no feedback
Last edited by doktor5000 on Jun 13th, '18, 19:19, edited 1 time in total.
Reason: added code tags
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby hviaene » Jun 13th, '18, 14:30

On my properly working PC:
Code: Select all
# systemctl list-units --all|grep -i pcscd
  pcscd.service                                                                             loaded    active   running   PC/SC Smart Card Daemon
  pcscd.socket                                                                              loaded    active   running   PC/SC Smart Card Daemon Activation Socket


To make clear: on the "failing PC" the smart card reader works OK once I manually start pcscd. But that is not an acceptable situation.
Last edited by doktor5000 on Jun 13th, '18, 19:19, edited 1 time in total.
Reason: added code tags
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby doktor5000 » Jun 13th, '18, 19:34

Please use code tags next time ...


Acceptable situation or not, you still need to find out why it fails to start, as it fails on your box, and unless you provide sufficient information for others to help with that, there's only so much that others can do, please keep that in mind.

Back on topic, quoting my previous mention again:
doktor5000 wrote:Have no system to check against, but the "indirect" status looks strange. From the documentation:
man systemctl wrote:"indirect" The unit file itself is not enabled, but it has a non-empty Also= setting in the "[Install]" unit file section, listing other unit files that might be enabled, or it has an alias under a different name through a symlink that is not specified in Also=. For template unit file, an instance different than the one specified in DefaultInstance= is enabled.


Could also be that it is normal behavior and instead of pcscd.service the socket unit pcscd.socket is enabled.


So you would need to take a look at the status of pcscd.socket. Also via journalctl best also grep for "PC/SC" as that is what seems to be in the log.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14355
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pcscd not running after reboot

Postby hviaene » Jun 19th, '18, 10:25

Answers on failing PC:
journalctl best also grep for "PC/SC" : finds nothing
status of pcscd.socket : frankly I do not know for sure how to do that. Googling brings me : # ss -a | grep pcsc , which returns nothing.
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41

Re: pcscd not running after reboot

Postby doktor5000 » Jun 19th, '18, 17:52

hviaene wrote:status of pcscd.socket : frankly I do not know for sure how to do that.


Same as you did for pcscd.service previously:

Code: Select all
systemctl status pcscd.socket -al -n150
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14355
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pcscd not running after reboot

Postby hviaene » Jun 20th, '18, 10:07

Code: Select all
● pcscd.socket - PC/SC Smart Card Daemon Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/pcscd.socket; disabled; vendor preset: enabled)
   Active: inactive (dead)
   Listen: /run/pcscd.comm (Stream)
Last edited by isadora on Jun 20th, '18, 22:22, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
hviaene
 
Posts: 47
Joined: Oct 11th, '13, 10:41


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest