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

Error registering plugins on fresh build. #307

Open
OwenGalvia opened this issue Jun 28, 2024 · 0 comments
Open

Error registering plugins on fresh build. #307

OwenGalvia opened this issue Jun 28, 2024 · 0 comments

Comments

@OwenGalvia
Copy link
Contributor

make clean; make build fails as below.
So does a setup_db; make manage CMD='packages -o load_package -s ${ARCHES_PROJECT}/pkg/ -y --no-business_data'

operation: load_package
2024-06-28 13:15:30,390 arches.app.utils.task_management ERROR    A celery broker is running, but a celery worker is not available
ERROR:arches.app.utils.task_management:A celery broker is running, but a celery worker is not available
2024-06-28 13:15:31,417 arches.app.utils.task_management ERROR    A celery broker is running, but a celery worker is not available
ERROR:arches.app.utils.task_management:A celery broker is running, but a celery worker is not available
loading ontologies
reloading

Loading Source Ontology: "coral/pkg/ontologies/cidoc_crm/cidoc_crm_v6.2.xml"
Loading Extension: "CRMgeo_v1.2.rdfs.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/CRMarchaeo_v1.4.rdfs.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/CRMdig_v3.2.1.rdfs.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/CRMgeo_v1.2.rdfs.xml"
Loading Extension: "CRMsci_v1.2.3.rdfs.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/arches_crm_enhancements.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/CRMinf_v0.7.rdfs.xml"
Loading Extension: "CRMdig_v3.2.1.rdfs.xml"
Loading Extension: "CRMinf_v0.7.rdfs.xml"
Loading Extension: "coral/pkg/ontologies/cidoc_crm/CRMsci_v1.2.3.rdfs.xml"
Loading Extension: "CRMarchaeo_v1.4.rdfs.xml"
Loading Extension: "arches_crm_enhancements.xml"
loading Kibana objects
loading package_settings.py
loading preliminary sql
null value in column "sortorder" violates not-null constraint
DETAIL:  Failing row contains (80931880-3550-11ef-b45a-434b9dae4431, Search Results Heat Map, [{"id": "search-results-heat", "type": "heatmap", "paint": {"hea..., t, ion-search, t, f, null, null, null, null, t, null, null).

Failed to load sql files
loading system settings
Importing /web_root/coral/coral/system_settings/System_Settings.json. . .
1 of 1 resources saved
Resources for Import: 1, Resources Saved: 1, Tiles for Import: 9, Tiles Saved: 9, Relations for Import: 0, Relations Saved: 0
Time to import_business_data = 0:00:00.190411
No import errors
loading project extensions from project
registering /web_root/coral/coral/widgets/cover-letter-widget.json
registering /web_root/coral/coral/widgets/regex-widget.json
registering /web_root/coral/coral/widgets/check-open-applications.json
registering /web_root/coral/coral/widgets/tm65point.json
registering /web_root/coral/coral/widgets/map-with-latlon.json
Registering widget with widgetid: f7b73ee1-95d1-4b21-911f-6374b581cbaa
updating /web_root/coral/coral/widgets/sample-widget.json
duplicate key value violates unique constraint "widgets_component_4c5e8322_uniq"
DETAIL:  Key (component)=(views/components/widgets/sample-widget) already exists.

registering /web_root/coral/coral/widgets/bngpoint.json
registering /web_root/coral/coral/widgets/auto-generate-id-widget.json
registering /web_root/coral/coral/widgets/photo.json
registering /web_root/coral/coral/widgets/django-group.json
registering /web_root/coral/coral/widgets/user.json
registering /web_root/coral/coral/functions/notify_enforcement.py
registering /web_root/coral/coral/functions/tm65_to_geojson_function.py
registering /web_root/coral/coral/functions/consultation_status_function.py
registering /web_root/coral/coral/functions/calculate_composite_score_function.py
registering /web_root/coral/coral/functions/notify_planning.py
registering /web_root/coral/coral/functions/license_number_function.py
registering /web_root/coral/coral/functions/apply_revision_function.py
registering /web_root/coral/coral/functions/bngpoint_to_geojson_function.py
registering /web_root/coral/coral/functions/geojson_to_tm65_function.py
registering /web_root/coral/coral/functions/consultation_hierarchy_function.py
registering /web_root/coral/coral/functions/update_activity_name.py
registering /web_root/coral/coral/functions/geojson_to_utm_function.py
registering /web_root/coral/coral/functions/mark_read_enforcement.py
registering /web_root/coral/coral/functions/geojson_to_bngpoint_function.py
registering /web_root/coral/coral/plugins/excavation-site-visit-workflow.json
registering /web_root/coral/coral/plugins/workflow-builder-editor.json
registering /web_root/coral/coral/plugins/hb-planning-consultation-response-workflow.json
registering /web_root/coral/coral/plugins/incident-report-workflow.json
registering /web_root/coral/coral/plugins/evaluation-meeting-workflow.json
registering /web_root/coral/coral/plugins/merge-workflow.json
registering /web_root/coral/coral/plugins/init-workflow.json
registering /web_root/coral/coral/plugins/respond-to-enforcement-workflow.json
registering /web_root/coral/coral/plugins/archive-catalogue-workflow.json
registering /web_root/coral/coral/plugins/add-garden-workflow.json
registering /web_root/coral/coral/plugins/open-workflow.json
registering /web_root/coral/coral/plugins/dashboard.json
Traceback (most recent call last):
  File "/web_root/coral/manage.py", line 30, in <module>
    execute_from_command_line(sys.argv)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/web_root/arches/arches/management/commands/packages.py", line 382, in handle
    self.load_package(
  File "/web_root/arches/arches/management/commands/packages.py", line 984, in load_package
    management.call_command("project", "update")
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/__init__.py", line 194, in call_command
    return command.execute(*args, **defaults)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/web_root/arches/arches/management/commands/project.py", line 44, in handle
    self.update_extensions()
  File "/web_root/arches/arches/management/commands/project.py", line 66, in update_extensions
    self.register("plugins", "plugin")
  File "/web_root/arches/arches/management/commands/project.py", line 54, in register
    management.call_command(cmd, "register", source=module)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/__init__.py", line 194, in call_command
    return command.execute(*args, **defaults)
  File "/web_root/ENV/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/web_root/arches/arches/management/commands/plugin.py", line 42, in handle
    self.register(source=options["source"])
  File "/web_root/arches/arches/management/commands/plugin.py", line 63, in register
    details = json.load(f)
  File "/usr/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ERROR: 1
make: *** [Makefile:109: manage] Error 1
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