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.

Docker image goes into loop

See original GitHub issue
docker run -it -p 8888:8888 gethue/hue:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[22/Aug/2022 10:15:28 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 03:15:29 -0700] backend      WARNING  mozilla_django_oidc module not found
Traceback (most recent call last):
  File "./build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[22/Aug/2022 10:15:31 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:31 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue runcpserver
[INFO] Not running as root, skipping privilege drop
[22/Aug/2022 10:15:31 ] supervisor   INFO     Started proceses (pid 30) /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:31 ] supervisor   INFO     Started proceses (pid 28) /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:33 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 10:15:33 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 03:15:35 -0700] backend      WARNING  mozilla_django_oidc module not found
[22/Aug/2022 03:15:35 -0700] backend      WARNING  mozilla_django_oidc module not found
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[22/Aug/2022 10:15:35 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue kt_renewer: 1
[22/Aug/2022 10:15:35 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[22/Aug/2022 10:15:35 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:35 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue runcpserver: 1
[22/Aug/2022 10:15:35 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[22/Aug/2022 10:15:35 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue runcpserver
[INFO] Not running as root, skipping privilege drop
[22/Aug/2022 10:15:35 ] supervisor   INFO     Started proceses (pid 54) /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:35 ] supervisor   INFO     Started proceses (pid 52) /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:37 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 10:15:37 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 03:15:38 -0700] backend      WARNING  mozilla_django_oidc module not found
[22/Aug/2022 03:15:38 -0700] backend      WARNING  mozilla_django_oidc module not found
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[22/Aug/2022 10:15:39 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue runcpserver: 1
[22/Aug/2022 10:15:39 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[22/Aug/2022 10:15:39 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:39 ] supervisor   INFO     Started proceses (pid 76) /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:39 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue kt_renewer: 1
[22/Aug/2022 10:15:39 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[22/Aug/2022 10:15:39 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue kt_renewer
[INFO] Not running as root, skipping privilege drop
[22/Aug/2022 10:15:39 ] supervisor   INFO     Started proceses (pid 79) /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:40 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 10:15:41 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 03:15:42 -0700] backend      WARNING  mozilla_django_oidc module not found
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
[22/Aug/2022 03:15:42 -0700] backend      WARNING  mozilla_django_oidc module not found
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[22/Aug/2022 10:15:42 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue runcpserver: 1
[22/Aug/2022 10:15:42 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[22/Aug/2022 10:15:42 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:42 ] supervisor   INFO     Started proceses (pid 100) /usr/share/hue/build/env/bin/hue runcpserver
[22/Aug/2022 10:15:42 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue kt_renewer: 1
[22/Aug/2022 10:15:42 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[22/Aug/2022 10:15:42 ] supervisor   INFO     Starting process /usr/share/hue/build/env/bin/hue kt_renewer
[INFO] Not running as root, skipping privilege drop
[22/Aug/2022 10:15:42 ] supervisor   INFO     Started proceses (pid 103) /usr/share/hue/build/env/bin/hue kt_renewer
[22/Aug/2022 10:15:44 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 10:15:44 ] settings     INFO     Welcome to Hue 4.10.0
[22/Aug/2022 03:15:45 -0700] backend      WARNING  mozilla_django_oidc module not found
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
[22/Aug/2022 03:15:46 -0700] backend      WARNING  mozilla_django_oidc module not found
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Traceback (most recent call last):
  File "/usr/share/hue/build/env/bin/hue", line 33, in <module>
    sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
  File "/usr/share/hue/desktop/core/src/desktop/manage_entry.py", line 233, in entry
    execute_from_command_line(sys.argv)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/hue/desktop/core/src/desktop/models.py", line 55, in <module>
    from desktop.lib import fsmanager
  File "/usr/share/hue/desktop/core/src/desktop/lib/fsmanager.py", line 23, in <module>
    import aws.client
  File "/usr/share/hue/desktop/libs/aws/src/aws/client.py", line 24, in <module>
    from aws.s3.s3connection import url_client_connect_to_region, RazS3Connection
  File "/usr/share/hue/desktop/libs/aws/src/aws/s3/s3connection.py", line 39, in <module>
    from desktop.lib.raz.clients import S3RazClient
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/clients.py", line 20, in <module>
    from desktop.lib.raz.raz_client import get_raz_client
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/raz_client.py", line 33, in <module>
    import desktop.lib.raz.signer_protos_pb2 as raz_signer
  File "/usr/share/hue/desktop/core/src/desktop/lib/raz/signer_protos_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/share/hue/build/env/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[22/Aug/2022 10:15:46 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue runcpserver: 1
[22/Aug/2022 10:15:46 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue runcpserver has restarted more than 3 times in the last 10 seconds
[22/Aug/2022 10:15:46 ] supervisor   WARNING  Exit code for /usr/share/hue/build/env/bin/hue kt_renewer: 1
[22/Aug/2022 10:15:46 ] supervisor   ERROR    Process /usr/share/hue/build/env/bin/hue kt_renewer has restarted more than 3 times in the last 10 seconds
[22/Aug/2022 10:15:47 ] supervisor   WARNING  Supervisor shutting down!
[22/Aug/2022 10:15:47 ] supervisor   WARNING  Waiting for children to exit for 5 seconds...
[22/Aug/2022 10:15:47 ] supervisor   ERROR    Exception in supervisor main loop
Traceback (most recent call last):
  File "/usr/share/hue/desktop/core/src/desktop/supervisor.py", line 385, in main
    wait_loop(sups, options)
  File "/usr/share/hue/desktop/core/src/desktop/supervisor.py", line 402, in wait_loop
    shutdown(sups)  # shutdown() exits the process
  File "/usr/share/hue/desktop/core/src/desktop/supervisor.py", line 218, in shutdown
    sys.exit(1)
SystemExit: 1
[22/Aug/2022 10:15:47 ] supervisor   WARNING  Supervisor shutting down!
[22/Aug/2022 10:15:47 ] supervisor   WARNING  Waiting for children to exit for 5 seconds...

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

1reaction
Harshg999commented, Sep 14, 2022

pybigquery was installing protobuf version greater than 3.20.x as its dependency which was giving the above error. https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

This issue has been fixed now and the latest Hue image looks good. Closing the issue.

1reaction
bjornalmcommented, Sep 7, 2022

We have created and assigned an internal issue for this. A fix is on the way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker container enters a 'loop situation' - IBM
Check whether the Docker container is 'looping'. Run the command docker ps several times. · Run the command eezdocker.sh stop to stop looping...
Read more >
Docker container stuck in a build loop - Stack Overflow
I'm working on a multi-container Docker application using a node server, a postgreSQL database and adminer. When i run the command docker- ...
Read more >
Docker gets stuck in infinite loop - Stable Releases - Unraid
When a container that has other containers networked through it gets removed by auto-update-plugin the networked containers get stuck in a ...
Read more >
Inner-loop development workflow for Docker apps
Building a single app within a Docker container using Visual Studio Code and Docker CLI. Apps are made up from your own services...
Read more >
Docker compose starts app container in restarting loop
We'd have to see your Dockerfile and run command to confirm, but my suspicion is that your CMD/ENTRYPOINT is a single command that...
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