We have proceeded with the upgrade to v7 of the PRE version of the museum data environment.
The first two steps, Run Preflight and Deep Preflight, completed successfully without any issues.
However, when we reached the third step Prepare installation for v7, we encountered the attached log, which indicates that the task could not be completed and provides information about the problems detected.
Could you please advise us on how we should proceed? Thank you very much for your assistance.

LOG:
COMMENT ON COLUMN matrix_tools.relation_search IS 'Complementary relationships as parents, used to search for all children of the parent being searched for.';
COMMENT ON COLUMN matrix_tools.meta IS 'Component metadata, used as counters for components and other value identifiers.';
COMMENT ON COLUMN matrix_users.id IS 'Unique table identifier';
COMMENT ON COLUMN matrix_users.section_id IS 'Section unique identifier';
COMMENT ON COLUMN matrix_users.section_tipo IS 'Ontology section identifier (ontology TLD | ontology instance ID, e.g., oh1 = Oral History)';
COMMENT ON COLUMN matrix_users.data IS 'Section data';
COMMENT ON COLUMN matrix_users.relation IS 'Component data with relation values: dd151 | dd48 | dd47 | dd96 | dd98 | dd675';
COMMENT ON COLUMN matrix_users.string IS 'Component data with string values: dd750';
COMMENT ON COLUMN matrix_users.date IS 'Component data with date values: dd1481';
COMMENT ON COLUMN matrix_users.iri IS 'Component data with IRI values: dd1562';
COMMENT ON COLUMN matrix_users.geo IS 'Component data with geolocation values: dd1564';
COMMENT ON COLUMN matrix_users.number IS 'Component data with number values: dd1480';
COMMENT ON COLUMN matrix_users.media IS 'Component data with media values: dd1482';
COMMENT ON COLUMN matrix_users.misc IS 'Other component data with miscellaneous values: dd1474';
COMMENT ON COLUMN matrix_users.relation_search IS 'Complementary relationships as parents, used to search for all children of the parent being searched for.';
COMMENT ON COLUMN matrix_users.meta IS 'Component metadata, used as counters for components and other value identifiers.'; | Updated sql: Executed database update:
ANALYZE "matrix", "matrix_activities", "matrix_activity", "matrix_dataframe", "matrix_dd", "matrix_hierarchy", "matrix_hierarchy_main", "matrix_indexations", "matrix_langs", "matrix_layout", "matrix_layout_dd", "matrix_list", "matrix_nexus", "matrix_nexus_main", "matrix_notes", "matrix_ontology", "matrix_ontology_main", "matrix_profiles", "matrix_projects", "matrix_stats", "matrix_test", "matrix_tools", "matrix_users"; | Updated sql: Executed database update:
DO $$
BEGIN
IF EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_name = 'matrix_updates'
AND column_name = 'datos'
) THEN
ALTER TABLE "matrix_updates" RENAME COLUMN datos TO data;
END IF;
END $$; | Updated sql: Executed database update:
COMMENT ON COLUMN matrix_updates.data IS 'Table data as a general JSON data'; | Updated sql: Executed database update:
ANALYZE "matrix_updates"; | Updated sql: Executed database update:
CREATE UNLOGGED TABLE IF NOT EXISTS temp (
key text PRIMARY KEY,
value jsonb NULL
); | Updated sql: Executed database update:
ALTER TABLE matrix_notifications SET UNLOGGED; | Updated sql: Executed database update:
DROP INDEX IF EXISTS "idx_matrix_langs_hierarchy41_value";
CREATE INDEX IF NOT EXISTS idx_matrix_langs_hierarchy41_value ON "matrix_langs" (
(string->'hierarchy41'->0->>'value')
);
ANALYZE matrix_langs; | Updated sql: Executed database update:
DROP INDEX IF EXISTS "idx_matrix_time_machine_search_default";
CREATE INDEX IF NOT EXISTS idx_matrix_time_machine_search_default ON "matrix_time_machine" (
section_id, section_tipo, tipo, lang, timestamp DESC
);
ANALYZE matrix_time_machine; | Updated sql: Executed database update:
DROP INDEX IF EXISTS "matrix_counter_tipo_idx";
BEGIN;
-- Drop the constraint if it exists (safe operation in recent PostgreSQL versions)
ALTER TABLE matrix_counter
DROP CONSTRAINT IF EXISTS matrix_counter_tipo_key;
-- Add the constraint
ALTER TABLE matrix_counter
ADD CONSTRAINT matrix_counter_tipo_key UNIQUE (tipo);
COMMIT; | Updated sql: Executed database update:
DROP INDEX IF EXISTS "matrix_counter_dd_tipo_idx";
BEGIN;
-- Drop the constraint if it exists (safe operation in recent PostgreSQL versions)
ALTER TABLE matrix_counter_dd
DROP CONSTRAINT IF EXISTS matrix_counter_dd_tipo_key;
-- Add the constraint
ALTER TABLE matrix_counter_dd
ADD CONSTRAINT matrix_counter_dd_tipo_key UNIQUE (tipo);
COMMIT; | Updated sql: Executed database update:
DO $$
BEGIN
IF EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_name = 'matrix_counter'
AND column_name = 'dato'
) THEN
-- Rename the Original Table
ALTER TABLE matrix_counter RENAME TO temp_matrix_counter;
-- Create a New Table
CREATE TABLE matrix_counter (
"tipo" character varying(128) NOT NULL,
"value" integer,
"ref" text,
CONSTRAINT matrix_counter_tipo_pkey PRIMARY KEY ("tipo")
);
-- Copy Data from the temporary table to the new table
INSERT INTO matrix_counter (tipo, value, ref)
SELECT tipo, dato, ref
FROM temp_matrix_counter;
-- Drop the Temporary Table
DROP TABLE temp_matrix_counter;
ANALYZE matrix_counter;
END IF;
END $$; | Updated sql: Executed database update:
DO $$
BEGIN
IF EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_name = 'matrix_counter_dd'
AND column_name = 'dato'
) THEN
-- Rename the Original Table
ALTER TABLE matrix_counter_dd RENAME TO temp_matrix_counter_dd;
-- Create a New Table
CREATE TABLE matrix_counter_dd (
"tipo" character varying(128) NOT NULL,
"value" integer,
"ref" text,
CONSTRAINT matrix_counter_dd_tipo_pkey PRIMARY KEY ("tipo")
);
-- Copy Data from the temporary table to the new table
INSERT INTO matrix_counter_dd (tipo, value, ref)
SELECT tipo, dato, ref
FROM temp_matrix_counter_dd;
-- Drop the Temporary Table
DROP TABLE temp_matrix_counter_dd;
ANALYZE matrix_counter_dd;
END IF;
END $$; | Updated run scripts: Request done successfully | Updated run scripts: true | Updated run scripts: true | Updated run scripts: true | Updated run scripts: Request done with errors | Updated run scripts: true | Updated run scripts: true | Updated run scripts: true | Updated run scripts: true | Updated run scripts: Request done with errors (52) | Error on run_scripts: {
"info": "UPDATE all data Time machine in PostgreSQL with new v7 format (SAVE DATA IGNORING FOUND ERRORS)",
"script_class": "v6_to_v7",
"script_method": "reformat_matrix_time_machine_data",
"stop_on_error": false,
"script_vars": [
[
"matrix_time_machine"
],
true
]
} | Error updating Dédalo data | Request done with errors (52) | Updated run scripts: true | Updated run scripts: true | Updated run scripts: OK | Updated run scripts: OK | Updated run scripts: OK | Updated run scripts: OK | Updated run scripts: OK. intify_section_id_locators applied. converted: 196775416, changed rows: 26907124 | Updated run scripts: true | Updated run scripts: Error. Request failed [update::run_scripts] False result is received for: v6_to_v7::create_relation_index_store | Error on run_scripts: {
"info": "Create the v7 relation index (matrix_relation_index): table, sync triggers and btree indexes, backfilled from the migrated data",
"script_class": "v6_to_v7",
"script_method": "create_relation_index_store",
"stop_on_error": true,
"script_vars": []
} | Error updating Dédalo data | Error. Request failed [update::run_scripts] False result is received for: v6_to_v7::create_relation_index_store
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18442'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18464'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18465'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18466'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18467'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18468'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18469'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18470'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18471'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18472'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18473'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18474'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18475'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18602'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18970'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18971'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18972'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18973'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18974'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18970'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18971'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '18999'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19000'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19001'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19002'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19003'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19004'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19005'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19006'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19007'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19008'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19009'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19010'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19011'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19012'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19013'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19223'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19224'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19225'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19226'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19227'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19228'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19229'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19230'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19231'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19232'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19233'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19234'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19235'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19327'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: value_type). tipo: 'dd1482' - section_tipo: 'dd1500' - section_id: '19328'
2026-11-02T20:39:46+01:00 [phase2] · Bad component data [2]. Expected object. (invalid format. typology: dd1474 - model: section_group). tipo: 'dd1476' - section_tipo: 'dd1500' - section_id: '17213'
2026-11-02T20:39:46+01:00 [phase2] · unable to run update script
2026-11-02T20:39:46+01:00 [phase2] ABORT: update_version failed. Inspect the log and restore from backup if needed.
2026-11-02T19:39:46+00:00 [run] phase2_update.php last output (36871733 lines): ABORT: update_version failed. Inspect the log and restore from backup if needed.
2026-11-02T19:39:46+00:00 [run] phase2_update.php exited with code 5
2026-11-02T19:39:46+00:00 [run] Migration FAILED in phase 2 (code 5). Restore from backup if needed.