Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Empty strings are not allowed without defaults #1

Open
eljeffeg opened this issue Feb 14, 2023 · 1 comment
Open

Empty strings are not allowed without defaults #1

eljeffeg opened this issue Feb 14, 2023 · 1 comment

Comments

@eljeffeg
Copy link

Tried running this service (and other NVISO services), but I get this error. The images might need to be rebuilt with the latest assemblyline base.

{"@timestamp": "2023-02-14 01:01:01,743", "event": { "module": "assemblyline", "dataset": "assemblyline.service.process_handler" }, "host": { "ip": "10.201.36.13", "hostname": "ee02e2c9310c" }, "log": { "level": "INFO", "logger": "assemblyline.service.process_handler" }, "process": { "pid": "1" }, "message": "task_handler: exit(1)"}
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_service_client/task_handler.py", line 508, in <module>
    TaskHandler(register_only=register_arg, container_mode=ctr_mode).serve_forever()
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_core/server_base.py", line 113, in serve_forever
    self.start()
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_service_client/task_handler.py", line 99, in start
    self.load_service_manifest()
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_service_client/task_handler.py", line 144, in load_service_manifest
    self.service = Service(service)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline/odm/base.py", line 1167, in __init__
    self._odm_py_obj[name] = field_type.check(value, **params)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline/odm/base.py", line 906, in check
    return self.child_type(value, mask=mask, ignore_extra_values=ignore_extra_values, extra_fields=extra_fields)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline/odm/base.py", line 1167, in __init__
    self._odm_py_obj[name] = field_type.check(value, **params)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline/odm/base.py", line 931, in check
    return self.child_type.check(value, *args, **kwargs)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline/odm/base.py", line 259, in check
    raise ValueError(f"[{self.name or self.parent_name}] Empty strings are not allowed without defaults")
ValueError: [registry_username] Empty strings are not allowed without defaults
@StevenD33
Copy link

i have forked the project and rebuild the docker with the latest assemblyline release and it's working on my instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants