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

[QA] excessive syslog messages from hsmdaemon #286

Open
jnweiger opened this issue Jun 20, 2021 · 2 comments
Open

[QA] excessive syslog messages from hsmdaemon #286

jnweiger opened this issue Jun 20, 2021 · 2 comments

Comments

@jnweiger
Copy link
Contributor

Seen while testing encryption 1.5.1-rc1 with hsmdaemon-0.0.8 and SoftHSM master (2.6.1+) on server 10.7.0

journalctl -a | grep hsmdaemon

Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
Jun 19 03:09:59 jw-oc1070-enc-20210619-l91 hsmdaemon[42371]: File.cpp(94): Could not open the file (No such file or directory): /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d/generation
...

The token exists:

ls -la /var/lib/softhsm/tokens//2e78508d-cd88-66d9-9aa1-3f982d2b840d
total 36
drwx------ 2 root root 4096 Jun 19 03:10 .
drwxrwxrwt 3 root root 4096 Jun 19 03:09 ..
-rw------- 1 root root    0 Jun 19 03:10 07aec470-33f6-8511-7b8f-692d488c4713.lock
-rw------- 1 root root 2241 Jun 19 03:10 07aec470-33f6-8511-7b8f-692d488c4713.object
-rw------- 1 root root    0 Jun 19 03:10 0ec8a75c-1edb-2d2f-260f-092fe23d73ca.lock
-rw------- 1 root root 2273 Jun 19 03:10 0ec8a75c-1edb-2d2f-260f-092fe23d73ca.object
-rw------- 1 root root    0 Jun 19 03:10 15722a91-ed60-3778-53f9-fe983663807c.lock
-rw------- 1 root root  827 Jun 19 03:10 15722a91-ed60-3778-53f9-fe983663807c.object
-rw------- 1 root root    0 Jun 19 03:10 40bea97d-0e0e-545d-1cb5-a6bb5b4fe44c.lock
-rw------- 1 root root  862 Jun 19 03:10 40bea97d-0e0e-545d-1cb5-a6bb5b4fe44c.object
-rw------- 1 root root    0 Jun 19 03:10 52c7836f-2a62-4f1a-a144-b91a23aebe11.lock
-rw------- 1 root root 2273 Jun 19 03:10 52c7836f-2a62-4f1a-a144-b91a23aebe11.object
-rw------- 1 root root    0 Jun 19 03:10 7c9b75aa-5c7f-9ff4-c922-3b3fb5100e7a.lock
-rw------- 1 root root  862 Jun 19 03:10 7c9b75aa-5c7f-9ff4-c922-3b3fb5100e7a.object
-rw------- 1 root root    0 Jun 20 22:22 token.lock
-rw------- 1 root root  320 Jun 20 22:22 token.object
  • The log message seems harmless. Normal operation.
  • The log message is repetitive, number of new repetitiions per action:
    • 15 for a file upload, file download.
    • 60 when moving a file to an encrypted external storage
    • 30 when moving back from encrpted external storage.
    • 15 when moving a file to an unencrypted external storage.

Expected behaviour: no such messages, not wasting resources.

@jnweiger jnweiger mentioned this issue Jun 20, 2021
39 tasks
@jnweiger jnweiger changed the title [QA] excessive log messages from hsmdaemon [QA] excessive syslog messages from hsmdaemon Jun 20, 2021
@jnweiger
Copy link
Contributor Author

These messages do not show up in the logfile configured in /etc/hsmdaemon/hsmdaemon.toml -- only in the syslog accessible via journalctl.

@jnweiger jnweiger mentioned this issue Jun 20, 2021
58 tasks
@jnweiger jnweiger mentioned this issue May 25, 2022
59 tasks
@TushkiK
Copy link

TushkiK commented Aug 2, 2024

Is this issue of excessive syslog messages resolved in SoftHSM?

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