keylime/keylime-vagrant-ansible-tpm-emulator

Exception running keylime_webapp

Closed this issue · 2 comments

RUKip commented

Running the keylime_webapp inside the VM throws an exception:

Traceback (most recent call last):
File "/usr/local/bin/keylime_webapp", line 11, in
load_entry_point('keylime==0.0.0', 'console_scripts', 'keylime_webapp')()
File "/usr/local/lib/python3.7/site-packages/keylime-0.0.0-py3.7.egg/keylime/cmd/webapp.py", line 15, in main
tenant_webapp.main()
File "/usr/local/lib/python3.7/site-packages/keylime-0.0.0-py3.7.egg/keylime/tenant_webapp.py", line 640, in main
'Static resource directory could not be found in %s!' % (root_dir))
Exception: Static resource directory could not be found in /usr/local/lib/python3.7/site-packages/keylime-0.0.0-py3.7.egg/keylime!

I run into this problem as well in the VM.
To reproduce it:

  1. vagrant up --provision
  2. vagrant ssh
  3. sudo su
  4. keylime_webapp

Error log:
Traceback (most recent call last):
File "/usr/local/bin/keylime_webapp", line 33, in
sys.exit(load_entry_point('keylime==0.0.0', 'console_scripts', 'keylime_webapp')())
File "/usr/local/lib/python3.9/site-packages/keylime-0.0.0-py3.9.egg/keylime/cmd/webapp.py", line 15, in main
tenant_webapp.main()
File "/usr/local/lib/python3.9/site-packages/keylime-0.0.0-py3.9.egg/keylime/tenant_webapp.py", line 694, in main
raise Exception(
Exception: Static resource directory could not be found in /usr/local/lib/python3.9/site-packages/keylime-0.0.0-py3.9.egg/keylime!

THS-on commented

Closing, because the webapp no longer exists.