question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

keylime_webapp don't work after package install

See original GitHub issue

Is your an issue a feature request? If so, please raise it as an enhancement

Environment

  • OS / version: Fedora Server 33
  • Processor architecture: x86_64
  • TPM Manufacturer: Simulator
  • Keylime version: 5.7.2

Description

keylime_webapp fails to start after installation. Complains about static content missing.

Expected behavior vs. actual behavior

Expected: should start Actual: fails to start

Steps to reproduce problem

  1. dnf install -y keylime
  2. keylime_webapp

Relevant logs

Attach any relevant log files that can help to debug your issue.

[root@fedora-server keylime]# keylime_webapp
Using config file /etc/keylime.conf
2021-01-22 17:41:31.998 - keylime.tenant - WARNING - CAUTION: using default password for private key, please set private_key_pw to a strong password
2021-01-22 17:41:31.998 - keylime.tenant - INFO - Setting up client TLS in /var/lib/keylime/cv_ca
2021-01-22 17:41:32.007 - keylime.tenant_webapp - INFO - Starting Tenant WebApp (tornado) on port 443 use <Ctrl-C> to stop
Traceback (most recent call last):
  File "/usr/bin/keylime_webapp", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/keylime/cmd/webapp.py", line 15, in main
    tenant_webapp.main()
  File "/usr/lib/python3.9/site-packages/keylime/tenant_webapp.py", line 639, in main
    raise Exception(
Exception: Static resource directory could not be found in /usr/lib/python3.9/site-packages/keylime!

[root@fedora-server keylime]# ls /usr/lib/python3.9/site-packages/keylime
ca_impl_cfssl.py           cmd            db                      keylime_logging.py   revocation_actions      tenant_webapp.py
ca_impl_openssl.py         cmd_exec.py    httpclient_requests.py  openstack.py         revocation_notifier.py  tornado_requests.py
ca_util.py                 common.py      ima.py                  __pycache__          secure_mount.py         tpm
cloud_verifier_common.py   cryptodome.py  __init__.py             registrar_client.py  serve_uuid.py           tpm_ek_ca.py
cloud_verifier_tornado.py  crypto.py      keylime_agent.py        registrar_common.py  tenant.py               vtpm_manager.py

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
dnolivercommented, Jan 25, 2021

After the update, the verifier and registrar cannot start.

[root@fedora-server keylime]# rpm -qa keylime
keylime-5.8.0-1.fc33.noarch

[root@fedora-server keylime]# keylime_verifier
Using config file /etc/keylime.conf
Traceback (most recent call last):
  File "/usr/bin/keylime_verifier", line 33, in <module>
    sys.exit(load_entry_point('keylime==0.0.0', 'console_scripts', 'keylime_verifier')())
  File "/usr/bin/keylime_verifier", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/keylime/cmd/verifier.py", line 10, in <module>
    from keylime import cloud_verifier_tornado
  File "/usr/lib/python3.9/site-packages/keylime/cloud_verifier_tornado.py", line 22, in <module>
    from keylime import cloud_verifier_common
  File "/usr/lib/python3.9/site-packages/keylime/cloud_verifier_common.py", line 24, in <module>
    from keylime import ima_file_signatures
  File "/usr/lib/python3.9/site-packages/keylime/ima_file_signatures.py", line 25, in <module>
    import asn1
ModuleNotFoundError: No module named 'asn1'
0reactions
THS-oncommented, Mar 6, 2022

@mpeters it is still broken. Should be a simple fix. Can you assign me to this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

R not finding package even after package installation
go to this folder C:\Users\hp\Documents\R\win-library\4.0 in your PC. And delete '00LOCK' named folder. then It will work properly, THis folder ...
Read more >
R Studio Package Installation Not Recognized - General
I've installed two packages, "lmtest" and "sandwich". When I try to run a package, R says that there is no package with the...
Read more >
Howto: Building R 4.2 and packages on Windows - R Project
First, install devtools (accept to build packages from source when offered, ... Note: GNU tar , which is part of Rtools42, does not...
Read more >
Troubleshooting Package Installation and Update
The pkg list command always shows installed packages, even if the package is not available from any configured publisher origin. The following command...
Read more >
Upgrading R: package compatibility issues - Amazon AWS
Sometimes packages installed with a previous version of R will not work correctly with the new version of R. Sometimes they can crash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found