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

Lemur init dont work von Ubuntu 22.04 #4453

Open
Chiller2019 opened this issue Jun 3, 2023 · 1 comment
Open

Lemur init dont work von Ubuntu 22.04 #4453

Chiller2019 opened this issue Jun 3, 2023 · 1 comment

Comments

@Chiller2019
Copy link

Chiller2019 commented Jun 3, 2023

Hey, I follow the Quickstart-Guide from: https://lemur.readthedocs.io/en/latest/quickstart/index.html

My System:
Ubuntu 22.04 LTS (Fresh installation on proxmox as LXC with nesting and keyctl + unprivileged container)
Python3: 3.10.6
Node: 12.22.9
postgresql: 14.8

Installted packages: nodejs npm python3-pip python3-dev libpq-dev build-essential libssl-dev libffi-dev libsasl2-dev libldap2-dev nginx git supervisor postgresql <- not python-dev and python-pip (because outdated -> python3-dev and python3-pip installed)

But it stucks on lemur init with the following error:


(lemur) lemur@Lemur:/www/lemur/lemur$ lemur init
[2023-06-03 15:39:57,526] WARNING in managers: Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2023-06-03 15:39:57,526] WARNING in managers: Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2023-06-03 15:39:57,527] WARNING in managers: Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
[2023-06-03 15:39:57,527] WARNING in managers: Plugin 'EntrustIssuerPlugin' may not work correctly. Required variable 'ENTRUST_API_USER' is not set in Lemur's conf.
Plugin 'EntrustIssuerPlugin' may not work correctly. Required variable 'ENTRUST_API_USER' is not set in Lemur's conf.
[2023-06-03 15:39:57,527] WARNING in managers: Plugin 'EntrustSourcePlugin' may not work correctly. Required variable 'ENTRUST_API_USER' is not set in Lemur's conf.
Plugin 'EntrustSourcePlugin' may not work correctly. Required variable 'ENTRUST_API_USER' is not set in Lemur's conf.
Traceback (most recent call last):
  File "/www/lemur/bin/lemur", line 33, in <module>
    sys.exit(load_entry_point('lemur', 'console_scripts', 'lemur')())
  File "/www/lemur/lemur/manage.py", line 603, in main
    manager.run()
  File "/www/lemur/lib/python3.10/site-packages/flask_script/__init__.py", line 417, in run
    result = self.handle(argv[0], argv[1:])
  File "/www/lemur/lib/python3.10/site-packages/flask_script/__init__.py", line 386, in handle
    res = handle(*args, **config)
  File "/www/lemur/lib/python3.10/site-packages/flask_script/commands.py", line 216, in __call__
    return self.run(*args, **kwargs)
  File "/www/lemur/lemur/manage.py", line 203, in run
    create()
  File "/www/lemur/lemur/manage.py", line 154, in create
    stamp(revision="head")
  File "/www/lemur/lib/python3.10/site-packages/flask_migrate/__init__.py", line 96, in wrapped
    f(*args, **kwargs)
  File "/www/lemur/lib/python3.10/site-packages/flask_migrate/__init__.py", line 389, in stamp
    command.stamp(config, revision, sql=sql, tag=tag)
  File "/www/lemur/lib/python3.10/site-packages/alembic/command.py", line 613, in stamp
    script.run_env()
  File "/www/lemur/lib/python3.10/site-packages/alembic/script/base.py", line 563, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/www/lemur/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 92, in load_python_file
    module = load_module_py(module_id, path)
  File "/www/lemur/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 108, in load_module_py
    spec.loader.exec_module(module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/www/lemur/lemur/migrations/env.py", line 6, in <module>
    import alembic_autogenerate_enums
  File "/www/lemur/lib/python3.10/site-packages/alembic_autogenerate_enums/__init__.py", line 113, in <module>
    class SyncEnumValuesOp(alembic.operations.ops.MigrateOperation):
  File "/www/lemur/lib/python3.10/site-packages/alembic/operations/base.py", line 168, in register
    exec(func_text, globals_, lcl)
  File "<string>", line 1, in <module>
NameError: name 'Tuple' is not defined. Did you mean: 'Type'?

Any suggestions?
Kind regards

@Chiller2019
Copy link
Author

Chiller2019 commented Jun 3, 2023

//04.06.2023
Tried LXC with Ubuntu 22.04/20.10 and 22.04 as VM.
All LXC/VMs fail at the same command.

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

1 participant