ERROR TO THE RESTORE DATA IN ZAMMAD v5

Hi Team, I have a new server Zammad was installed after this, a backup copy of the old Zammad server is made, then we log in as a zammad user and start the Zammad restore:

zammad@hds:/opt/zammad/contrib/backup$ ./zammad_restore.sh 

# Zammad restored started - Wed Nov  3 19:57:50 UTC 2021!

The restore will delete your current config and database! 
Be sure to have a backup available! 

Enter 'yes' if you want to proceed!
Restore?: yes
Enter file date to restore: 
20210924114632
20211103185016
File date: 20210924114632
Enter db date to restore: 
20210924114632
20211103185016
DB date: 20210924114632
# Stopping Zammad
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'zammad.service'.
Authenticating as: Ubuntu (adminsoc)
Password: Failed to stop zammad.service: Connection timed out
See system logs and 'systemctl status zammad.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
# Checking requirements
# ... Dropping current database zammad
PG::ObjectInUse: ERROR:  database "zammad" is being accessed by other users
DETAIL:  There are 11 other sessions using the database.
Couldn't drop database 'zammad'
rake aborted!
ActiveRecord::StatementInvalid: PG::ObjectInUse: ERROR:  database "zammad" is being accessed by other users
DETAIL:  There are 11 other sessions using the database.
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `async_exec'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `block (2 levels) in execute'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:91:in `block in execute'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract_adapter.rb:728:in `block (2 levels) in log'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract_adapter.rb:727:in `block in log'6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:90:in `execute'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:54:in `drop_database'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/postgresql_database_tasks.rb:34:in `drop'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:192:in `drop'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:208:in `block in drop_current'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:479:in `block (2 levels) in each_current_configuration'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:476:in `each'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:476:in `block in each_current_configuration'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:475:in `each'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:475:in `each_current_configuration'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:207:in `drop_current'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/railties/databases.rake:62:in `block (2 levels) in <main>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <main>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli/exec.rb:63:in `load'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli/exec.rb:63:in `kernel_load'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli/exec.rb:28:in `run'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli.rb:494:in `exec'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli.rb:30:in `dispatch'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli.rb:24:in `start'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/exe/bundle:49:in `block in <top (required)>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/exe/bundle:37:in `<top (required)>'
/opt/zammad/bin/bundle:5:in `load'
/opt/zammad/bin/bundle:5:in `<main>'

Caused by:
PG::ObjectInUse: ERROR:  database "zammad" is being accessed by other users
DETAIL:  There are 11 other sessions using the database.
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `async_exec'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `block (2 levels) in execute'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:91:in `block in execute'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract_adapter.rb:728:in `block (2 levels) in log'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
6.0.4.1/lib/active_record/connection_adapters/abstract_adapter.rb:727:in `block in log'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activesupport-/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:54:in `drop_database'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/postgresql_database_tasks.rb:34:in `drop'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:192:in `drop'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:208:in `block in drop_current'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/tasks/database_tasks.rb:479:in `block (2 levels) in each_current_configuration'6.0.4.1/lib/active_record/tasks/database_tasks.rb:207:in `drop_current'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/railties/databases.rake:62:in `block (2 levels) in <main>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <main>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli/exec.rb:63:in `load'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli/exec.rb:63:in `kernel_load'
2.2.16/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/cli.rb:24:in `start'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/exe/bundle:49:in `block in <top (required)>'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/opt/zammad/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.16/exe/bundle:37:in `<top (required)>'
/opt/zammad/bin/bundle:5:in `load'
/opt/zammad/bin/bundle:5:in `<main>'
Tasks: TOP => db:drop:_unsafe
(See full trace by running task with --trace)
# ... Creating database zammad for owner zammad
Password: 
su: Authentication failure
# Restoring PostgreSQL DB
SET
SET
SET
 set_config 
------------
 
(1 row)

SET
SET
SET
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  relation "public.chat_topics" does not exist
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  relation "public.chat_topics" does not exist
ALTER TABLE
DROP INDEX
DROP INDEX
DROP INDEX
ERROR:  index "index_mentions_on_mentionable_type_and_mentionable_id" does not exist
DROP INDEX
DROP INDEX
DROP INDEX
ERROR:  index "index_chat_topics_on_name" does not exist
DROP INDEX
DROP INDEX
DROP INDEX
ALTER TABLE
ERROR:  cannot drop constraint users_pkey on table public.users because other objects depend on it
DETAIL:  constraint fk_rails_5e7c1bf746 on table public.core_workflows depends on index public.users_pkey
constraint fk_rails_50bf89399d on table public.core_workflows depends on index public.users_pkey
HINT:  Use DROP ... CASCADE to drop the dependent objects too.
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  relation "public.chat_topics" does not exist
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  relation "public.chat_topics" does not exist
ALTER TABLE
ALTER TABLE
ALTER TABLE
DROP SEQUENCE
DROP TABLE
DROP SEQUENCE
ERROR:  cannot drop table public.users because other objects depend on it
DETAIL:  constraint fk_rails_5e7c1bf746 on table public.core_workflows depends on table public.users
constraint fk_rails_50bf89399d on table public.core_workflows depends on table public.users
HINT:  Use DROP ... CASCADE to drop the dependent objects too.

DROP TABLE
DROP SEQUENCE
DROP TABLE
DROP SEQUENCE
DROP TABLE
ERROR:  sequence "chat_topics_id_seq" does not exist
ERROR:  table "chat_topics" does not exist
DROP SEQUENCE
DROP TABLE
DROP SEQUENCE
DROP TABLE
SET
SET
CREATE TABLE
CREATE SEQUENCE
ALTER SEQUENCE
CREATE TABLE
CREATE SEQUENCE
ALTER SEQUENCE
CREATE SEQUENCE
ALTER SEQUENCE
ERROR:  relation "users" already exists
CREATE SEQUENCE
ALTER SEQUENCE
CREATE TABLE
CREATE SEQUENCE
ALTER SEQUENCE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
COPY 0
COPY 1268
COPY 1
COPY 3
COPY 264
COPY 1
COPY 4
COPY 6
COPY 7
COPY 3
COPY 12
COPY 2321
COPY 7
COPY 44
COPY 548
COPY 0
COPY 75013
COPY 6
COPY 30
ERROR:  duplicate key value violates unique constraint "users_pkey"
DETAIL:  Key (id)=(1) already exists.
CONTEXT:  COPY users, line 1
COPY 0
 setval 
--------
 429431
(1 row)
 setval 
--------
   8946
(1 row)

 setval 
--------
     14
(1 row)

 setval 
--------
    311
(1 row)

 setval 
--------
    317
(1 row)

 setval 
--------
      1
(1 row)

ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  multiple primary keys for table "users" are not allowed
ALTER TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "schedulers" violates foreign key constraint "fk_rails_08966259e8"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "online_notifications" violates foreign key constraint "fk_rails_0c0055c5df"
DETAIL:  Key (created_by_id)=(13) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "overviews" violates foreign key constraint "fk_rails_13fe2fde45"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "stores" violates foreign key constraint "fk_rails_17354e2aa6"
DETAIL:  Key (created_by_id)=(14) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "mentions" violates foreign key constraint "fk_rails_1b711e94aa"
DETAIL:  Key (user_id)=(8) is not present in table "users".
ERROR:  insert or update on table "knowledge_base_answer_translations" violates foreign key constraint "fk_rails_20d30feefb"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "report_profiles" violates foreign key constraint "fk_rails_214a4c247b"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "histories" violates foreign key constraint "fk_rails_317bea7955"
DETAIL:  Key (created_by_id)=(14) is not present in table "users".
ERROR:  insert or update on table "channels" violates foreign key constraint "fk_rails_32268ed43d"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "text_modules" violates foreign key constraint "fk_rails_343b2c0fce"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "triggers" violates foreign key constraint "fk_rails_35c0846653"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "avatars" violates foreign key constraint "fk_rails_36592d9368"
DETAIL:  Key (updated_by_id)=(14) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "ticket_articles" violates foreign key constraint "fk_rails_38b783461b"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "ticket_articles" violates foreign key constraint "fk_rails_3cb6a3675a"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "jobs" violates foreign key constraint "fk_rails_3e355905b6"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "postmaster_filters" violates foreign key constraint "fk_rails_4b17873e0f"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "authorizations" violates foreign key constraint "fk_rails_4ecef5b8c5"
DETAIL:  Key (user_id)=(171) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "groups" violates foreign key constraint "fk_rails_55ff2495b5"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "knowledge_base_answers" violates foreign key constraint "fk_rails_564f85e760"
DETAIL:  Key (published_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "tickets" violates foreign key constraint "fk_rails_5685ed71b0"
DETAIL:  Key (customer_id)=(69) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "activity_streams" violates foreign key constraint "fk_rails_5e0981116b"
DETAIL:  Key (created_by_id)=(25) is not present in table "users".
ERROR:  insert or update on table "tags" violates foreign key constraint "fk_rails_5f245fd6a7"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "organizations" violates foreign key constraint "fk_rails_6b945c40b8"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "chat_sessions" violates foreign key constraint "fk_rails_6d2ee2e9b7"
DETAIL:  Key (user_id)=(13) is not present in table "users".
ERROR:  insert or update on table "karma_activity_logs" violates foreign key constraint "fk_rails_6d31f4fe31"
DETAIL:  Key (user_id)=(22) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "avatars" violates foreign key constraint "fk_rails_7f23a117cf"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "triggers" violates foreign key constraint "fk_rails_7f3d25350f"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "signatures" violates foreign key constraint "fk_rails_82877eeea3"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "text_modules" violates foreign key constraint "fk_rails_84148bfddb"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "macros" violates foreign key constraint "fk_rails_84f97aa218"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "groups_users" violates foreign key constraint "fk_rails_8546c71994"
DETAIL:  Key (user_id)=(13) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "stats_stores" violates foreign key constraint "fk_rails_8b167ccaf8"
DETAIL:  Key (created_by_id)=(250) is not present in table "users".
ERROR:  insert or update on table "translations" violates foreign key constraint "fk_rails_8cb1380a17"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "knowledge_base_answers" violates foreign key constraint "fk_rails_9310a46d9c"
DETAIL:  Key (archived_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "tickets" violates foreign key constraint "fk_rails_939b990649"
DETAIL:  Key (owner_id)=(13) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "postmaster_filters" violates foreign key constraint "fk_rails_99ae723fc6"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "chat_agents" violates foreign key constraint "fk_rails_99fffe7295"
DETAIL:  Key (updated_by_id)=(14) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "ticket_time_accountings" violates foreign key constraint "fk_rails_a206f3ed55"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "email_addresses" violates foreign key constraint "fk_rails_a24ae390cf"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "mentions" violates foreign key constraint "fk_rails_ab5f91f9d0"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "chat_messages" violates foreign key constraint "fk_rails_af8ea0a844"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "online_notifications" violates foreign key constraint "fk_rails_bc45d196c5"
DETAIL:  Key (user_id)=(14) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "report_profiles" violates foreign key constraint "fk_rails_c0dbdacc53"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "ticket_articles" violates foreign key constraint "fk_rails_c2dbb9e7aa"
DETAIL:  Key (origin_by_id)=(110) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "jobs" violates foreign key constraint "fk_rails_c4f56411f8"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "chats" violates foreign key constraint "fk_rails_cb3fe7fa69"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "mentions" violates foreign key constraint "fk_rails_cf60468410"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "chat_agents" violates foreign key constraint "fk_rails_d009868f7d"
DETAIL:  Key (created_by_id)=(14) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "karma_users" violates foreign key constraint "fk_rails_d2cc0e2912"
DETAIL:  Key (user_id)=(86) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "translations" violates foreign key constraint "fk_rails_d6e6d9635d"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "roles_users" violates foreign key constraint "fk_rails_e2a7142459"
DETAIL:  Key (user_id)=(8) is not present in table "users".
ERROR:  insert or update on table "knowledge_base_answer_translations" violates foreign key constraint "fk_rails_e55f86d7ec"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "user_devices" violates foreign key constraint "fk_rails_e700a96826"
DETAIL:  Key (user_id)=(8) is not present in table "users".
ERROR:  insert or update on table "object_manager_attributes" violates foreign key constraint "fk_rails_e812039563"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "roles" violates foreign key constraint "fk_rails_e85422db7e"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ALTER TABLE
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "organizations" violates foreign key constraint "fk_rails_edec76c076"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "tickets" violates foreign key constraint "fk_rails_edf0f77848"
DETAIL:  Key (updated_by_id)=(8) is not present in table "users".
ERROR:  insert or update on table "online_notifications" violates foreign key constraint "fk_rails_ee155e3c0c"
DETAIL:  Key (updated_by_id)=(13) is not present in table "users".
ERROR:  insert or update on table "cti_caller_ids" violates foreign key constraint "fk_rails_f03ef195fa"
DETAIL:  Key (user_id)=(27) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "channels" violates foreign key constraint "fk_rails_f1fc2a34ff"
DETAIL:  Key (created_by_id)=(8) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "taskbars" violates foreign key constraint "fk_rails_f3c54fdb6d"
DETAIL:  Key (user_id)=(15) is not present in table "users".
ALTER TABLE
ERROR:  insert or update on table "tickets" violates foreign key constraint "fk_rails_f694a04b71"
DETAIL:  Key (created_by_id)=(26) is not present in table "users".
ALTER TABLE
ALTER TABLE
ERROR:  insert or update on table "recent_views" violates foreign key constraint "fk_rails_fa835b7d0c"
DETAIL:  Key (created_by_id)=(13) is not present in table "users".
ALTER TABLE
# Restoring Files
# Ensuring correct file rights ...
# Clearing Cache ...
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/railtie/configuration.rb:97:in `method_missing': undefined method `websocket_session_store' for #<Rails::Application::Configuration:0x000055d346786f80> (NoMethodError)
	from /opt/zammad/config/initializers/log_websocket_session_store.rb:3:in `<main>'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:285:in `block in load'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:285:in `load'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/engine.rb:663:in `block in load_config_initializer'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/notifications.rb:170:in `instrument'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/engine.rb:662:in `load_config_initializer'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/engine.rb:619:in `each'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/engine.rb:619:in `block in <class:Engine>'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:32:in `instance_exec'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:32:in `run'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:50:in `each'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:50:in `tsort_each_child'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:415:in `call'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:347:in `each'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:347:in `call'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
	from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/initializable.rb:60:in `run_initializers'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/application.rb:361:in `initialize!'
	from /opt/zammad/config/environment.rb:5:in `<main>'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `block in require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/application.rb:337:in `require_environment!'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/actions.rb:28:in `require_environment!'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:29:in `perform'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/base.rb:69:in `perform'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command.rb:46:in `invoke'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands.rb:18:in `<main>'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `block in require'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `require'
	from /opt/zammad/bin/rails:9:in `<main>'
./zammad_restore.sh: line 39: _zammad: command not found
# Starting Zammad
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'zammad.service'.
Authenticating as: Ubuntu (adminsoc)
Password: Failed to start zammad.service: Connection timed out
See system logs and 'systemctl status zammad.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure

# Zammad restored successfully - Wed Nov  3 20:02:33 UTC 2021!

Here in the sections where it asks to place the password, it did not put anything and it automatically continued, and as you see at the end it indicates that everything is satisfactorily.

So when I log into the system I get this message

image

So when checking the database with the user zammad I see this:

zammad=> \l
                              List of databases
   Name    |  Owner   | Encoding | Collate |  Ctype  |   Access privileges   
-----------+----------+----------+---------+---------+-----------------------
 postgres  | postgres | UTF8     | C.UTF-8 | C.UTF-8 | 
 template0 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | =c/postgres          +
           |          |          |         |         | postgres=CTc/postgres
 template1 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | =c/postgres          +
           |          |          |         |         | postgres=CTc/postgres
 zammad    | zammad   | UTF8     | C.UTF-8 | C.UTF-8 | =Tc/zammad           +
           |          |          |         |         | zammad=CTc/zammad
(4 rows)

I can also see that the tables that exist are (summarized):

                         List of relations
 Schema |                    Name                    | Type  | Owner  
--------+--------------------------------------------+-------+--------
 public | active_job_locks                           | table | zammad
 public | activity_streams                           | table | zammad
 public | calendars                                  | table | zammad
 public | channels                                   | table | zammad
 public | chat_agents                                | table | zammad
 public | chat_messages                              | table | zammad
 public | chat_sessions                              | table | zammad
 public | chats                                      | table | zammad
......
public | roles                                      | table | zammad
 public | roles_groups                               | table | zammad
 public | roles_users                                | table | zammad
 public | sessions                                   | table | zammad
 public | settings                                   | table | zammad
 public | ticket_states                              | table | zammad
 public | ticket_time_accountings                    | table | zammad
 public | tickets                                    | table | zammad
 public | user_devices                               | table | zammad
 public | users                                      | table | zammad
(109 rows)

So I check the “users” table and this appears:

                                                  Table "public.users"
            Column            |              Type              | Collation | Nullable |              Default              
------------------------------+--------------------------------+-----------+----------+-----------------------------------
 id                           | integer                        |           | not null | nextval('users_id_seq'::regclass)
 organization_id              | integer                        |           |          | 
 login                        | character varying(255)         |           | not null | 
 firstname                    | character varying(100)         |           |          | ''::character varying
 lastname                     | character varying(100)         |           |          | ''::character varying
 email                        | character varying(255)         |           |          | ''::character varying
 image                        | character varying(100)         |           |          | 
 image_source                 | character varying(200)         |           |          | 
 web                          | character varying(100)         |           |          | ''::character varying
 password                     | character varying(100)         |           |          | 
 phone                        | character varying(100)         |           |          | ''::character varying
 fax                          | character varying(100)         |           |          | ''::character varying
 mobile                       | character varying(100)         |           |          | ''::character varying
 department                   | character varying(200)         |           |          | ''::character varying
 street                       | character varying(120)         |           |          | ''::character varying
 zip                          | character varying(100)         |           |          | ''::character varying
 city                         | character varying(100)         |           |          | ''::character varying
 country                      | character varying(100)         |           |          | ''::character varying
 address                      | character varying(500)         |           |          | ''::character varying
 vip                          | boolean                        |           |          | false
 verified                     | boolean                        |           | not null | false
 active                       | boolean                        |           | not null | true
 note                         | character varying(5000)        |           |          | ''::character varying
 last_login                   | timestamp(3) without time zone |           |          | 
 source                       | character varying(200)         |           |          | 
 login_failed                 | integer                        |           | not null | 0
 out_of_office                | boolean                        |           | not null | false
 out_of_office_start_at       | date                           |           |          | 
 out_of_office_end_at         | date                           |           |          | 
 out_of_office_replacement_id | integer                        |           |          | 
 preferences                  | character varying(8000)        |           |          | 
 updated_by_id                | integer                        |           | not null | 
 updated_by_id                | integer                        |           | not null | 
  created_by_id                | integer                        |           | not null | 
  created_at                   | timestamp(3) without time zone |           | not null | 
  updated_at                   | timestamp(3) without time zone |           | not null | 
 Indexes:
     "users_pkey" PRIMARY KEY, btree (id)
     "index_users_on_login" UNIQUE, btree (lower(login::text))
     "index_out_of_office" btree (out_of_office, out_of_office_start_at, out_of_office_end_at)
     "index_users_on_created_by_id" btree (created_by_id)
     "index_users_on_department" btree (department)
     "index_users_on_email" btree (email)
     "index_users_on_fax" btree (fax)
     "index_users_on_image" btree (image)
     "index_users_on_mobile" btree (mobile)
     "index_users_on_organization_id" btree (organization_id)
     "index_users_on_out_of_office_replacement_id" btree (out_of_office_replacement_id)
     "index_users_on_phone" btree (phone)
     "index_users_on_source" btree (source)
 Foreign-key constraints:
     "fk_rails_355a7ffe95" FOREIGN KEY (updated_by_id) REFERENCES users(id)
     "fk_rails_45307c95a3" FOREIGN KEY (created_by_id) REFERENCES users(id)
     "fk_rails_b8d57d3c5d" FOREIGN KEY (out_of_office_replacement_id) REFERENCES users(id)
     "fk_rails_d7b9ff90af" FOREIGN KEY (organization_id) REFERENCES organizations(id)
 Referenced by:
     TABLE "ticket_article_types" CONSTRAINT "fk_rails_01020bb700" FOREIGN KEY (updated_by_id) REFERENCES users(id)
     TABLE "chat_topics" CONSTRAINT "fk_rails_05113b359f" FOREIGN KEY (created_by_id) REFERENCES users(id)
     TABLE "http_logs" CONSTRAINT "fk_rails_0a97b58d1a" FOREIGN KEY (updated_by_id) REFERENCES users(id)
     TABLE "ticket_state_types" CONSTRAINT "fk_rails_0b22ef689c" FOREIGN KEY (updated_by_id) REFERENCES users(id)
     TABLE "ticket_article_senders" CONSTRAINT "fk_rails_0d21d01513" FOREIGN KEY (created_by_id) REFERENCES users(id)
     TABLE "slas" CONSTRAINT "fk_rails_15319a5af4" FOREIGN KEY (created_by_id) REFERENCES users(id)
     TABLE "macros" CONSTRAINT "fk_rails_18961fdc52" FOREIGN KEY (created_by_id) REFERENCES users(id)
     TABLE "calendars" CONSTRAINT "fk_rails_1923375e08" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "ticket_states" CONSTRAINT "fk_rails_2927b269ed" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "calendars" CONSTRAINT "fk_rails_2a2c81de1a" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "users" CONSTRAINT "fk_rails_355a7ffe95" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "ticket_flags" CONSTRAINT "fk_rails_373b7f0039" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "packages" CONSTRAINT "fk_rails_438d68f470" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "users" CONSTRAINT "fk_rails_45307c95a3" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "templates" CONSTRAINT "fk_rails_4688f6dd32" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "ticket_states" CONSTRAINT "fk_rails_4a7d116edc" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "email_addresses" CONSTRAINT "fk_rails_4f204b5369" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "core_workflows" CONSTRAINT "fk_rails_50bf89399d" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "ticket_article_types" CONSTRAINT "fk_rails_521ad892f1" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "slas" CONSTRAINT "fk_rails_5a768af5b2" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "core_workflows" CONSTRAINT "fk_rails_5e7c1bf746" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "ticket_article_flags" CONSTRAINT "fk_rails_6805881e8b" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "ticket_state_types" CONSTRAINT "fk_rails_70faf2d7df" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "ticket_priorities" CONSTRAINT "fk_rails_7ba453ab6d" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "groups" CONSTRAINT "fk_rails_7bec5aff4f" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "packages" CONSTRAINT "fk_rails_86b7b71dbf" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "knowledge_base_answers" CONSTRAINT "fk_rails_890b51fb27" FOREIGN KEY (internal_by_id) REFERENCES users(id)
    TABLE "chats" CONSTRAINT "fk_rails_9053a479a7" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "templates" CONSTRAINT "fk_rails_989d730f4b" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "signatures" CONSTRAINT "fk_rails_997a237d5e" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "chat_sessions" CONSTRAINT "fk_rails_9b5b542892" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "overviews" CONSTRAINT "fk_rails_a12668341b" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "overviews_users" CONSTRAINT "fk_rails_a217c968b0" FOREIGN KEY (user_id) REFERENCES users(id)
    TABLE "organizations_users" CONSTRAINT "fk_rails_a89915da94" FOREIGN KEY (user_id) REFERENCES users(id)
    TABLE "chat_topics" CONSTRAINT "fk_rails_aae140f2f9" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "tokens" CONSTRAINT "fk_rails_ac8a5d0441" FOREIGN KEY (user_id) REFERENCES users(id)
    TABLE "object_manager_attributes" CONSTRAINT "fk_rails_acacd17a49" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "roles" CONSTRAINT "fk_rails_b41292c88f" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "http_logs" CONSTRAINT "fk_rails_b5bedd0284" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "users" CONSTRAINT "fk_rails_b8d57d3c5d" FOREIGN KEY (out_of_office_replacement_id) REFERENCES users(id)
    TABLE "ticket_priorities" CONSTRAINT "fk_rails_d43af6872e" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "chat_sessions" CONSTRAINT "fk_rails_dab338cf4e" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "schedulers" CONSTRAINT "fk_rails_e0c99c2069" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "users" CONSTRAINT "fk_rails_b8d57d3c5d" FOREIGN KEY (out_of_office_replacement_id) REFERENCES users(id)
    TABLE "ticket_priorities" CONSTRAINT "fk_rails_d43af6872e" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "chat_sessions" CONSTRAINT "fk_rails_dab338cf4e" FOREIGN KEY (updated_by_id) REFERENCES users(id)
    TABLE "schedulers" CONSTRAINT "fk_rails_e0c99c2069" FOREIGN KEY (created_by_id) REFERENCES users(id)
    TABLE "ticket_article_senders" CONSTRAINT "fk_rails_f5ba9a2f30" FOREIGN KEY (updated_by_id) REFERENCES users(id)

But I do not see any data of my users in these tables, why is this? How can I solve it because with the Zammad4 I did not have these problems

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.