-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Hello,
unfortunately i get this traceback from the API Docker Logs.
I pulled the newest image but the Api will not start. I would like to use it again to monitor my backup jobs with Icinga2.
Do you know this error or is it a problem at my site?
Traceback (most recent call last):
File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
File "/home/bareos/.local/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/bareos/.local/lib/python3.10/site-packages/bareos_restapi/__init__.py", line 40, in <module>
from bareos_restapi.models import *
File "/home/bareos/.local/lib/python3.10/site-packages/bareos_restapi/models.py", line 184, in <module>
class aclCollection(BaseModel):
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 226, in __new__
complete_model_class(
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 658, in complete_model_class
schema = cls.__get_pydantic_core_schema__(cls, handler)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/main.py", line 702, in __get_pydantic_core_schema__
return handler(source)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in __call__
schema = self._handler(source_type)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 612, in generate_schema
schema = self._generate_schema_inner(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 881, in _generate_schema_inner
return self._model_schema(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 693, in _model_schema
{k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 693, in <dictcomp>
{k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1073, in _generate_md_field_schema
common_field = self._common_field_schema(name, field_info, decorators)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1261, in _common_field_schema
schema = self._apply_annotations(
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2061, in _apply_annotations
schema = get_inner_schema(source_type)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in __call__
schema = self._handler(source_type)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2042, in inner_handler
schema = self._generate_schema_inner(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 886, in _generate_schema_inner
return self.match_type(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 988, in match_type
return self._match_generic_type(obj, origin)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1016, in _match_generic_type
return self._union_schema(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1323, in _union_schema
choices.append(self.generate_schema(arg))
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 612, in generate_schema
schema = self._generate_schema_inner(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 886, in _generate_schema_inner
return self.match_type(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 997, in match_type
return self._unknown_type_schema(obj)
File "/home/bareos/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 515, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'bareos_restapi.models.bareosACL'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.10/u/schema-for-unknown-type
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels