Skip to content

Timescaledb container fails to restore Samba app 3.4.3 #7946

@DavidePrincipi

Description

@DavidePrincipi

Steps to reproduce

  • Deploy NS8 Samba app version 3.4.3
  • Attempt a restore of a domain controller using backup with TimescaleDB created in version 3.0.0

Expected behavior

  • The restore process completes successfully and the DC is operational

Actual behavior

  • The timescaledb container fails to restore correctly, leading to several errors (see below) and aborting the restoration process entirely.

  • Notable errors include missing TimescaleDB internal relations/columns, failures on COPY operations for non-existent views, and missing functions in triggers:

      ERROR:  relation "_timescaledb_catalog.chunk_index" does not exist
      ERROR:  column "finalized" of relation "continuous_agg" does not exist
      ERROR:  cannot copy to view "bgw_job"
      ERROR:  relation "_timescaledb_config.bgw_job_id_seq" does not exist
      ERROR:  function _timescaledb_functions.insert_blocker() does not exist
    
  • Restoration output excerpts:

      task/module/samba1/...: restore-module/60resume_state is starting
      Restore samba_audit data in TimescaleDB:
      Error sample:
      pg_restore: error: could not execute query: ERROR:  relation "_timescaledb_catalog.chunk_index" does not exist
      pg_restore: error: could not execute query: ERROR:  column "finalized" of relation "continuous_agg" does not exist
      pg_restore: error: COPY failed for table "bgw_job": ERROR:  cannot copy to view "bgw_job"
      pg_restore: error: could not execute query: ERROR:  relation "_timescaledb_config.bgw_job_id_seq" does not exist
      pg_restore: error: could not execute query: ERROR:  function _timescaledb_functions.insert_blocker() does not exist
      action "restore-module" status is "aborted" at step 60resume_state
    

Attachment

samba-restore.txt

Components

  • NethServer 8
  • Samba app version: 3.4.3
  • TimescaleDB container (PostgreSQL 17.7, TimescaleDB extension docker.io image timescaledb:2.25.2-pg17)

See also

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ToDo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions