[solved] Failed to run scheduled job 'Generate user based stats.'. Cause: Failed to run Stats.generate after 10 tries #<RuntimeError: No settings with area 'Dashboard::Stats' defined>

Hello,

I was diggin a bit deeper and found some errors ind the /var/log/postgresql/postgresql-10-main.log

2019-02-22 09:59:55.363 CET [13604] zammad@zammad ERROR:  deadlock detected
2019-02-22 09:59:55.363 CET [13604] zammad@zammad DETAIL:  Process 13604 waits for ShareLock on transaction 1031948; blocked by process 8218.
        Process 8218 waits for ShareLock on transaction 1031947; blocked by process 13604.
        Process 13604: SELECT  "taskbars".* FROM "taskbars" WHERE "taskbars"."id" = $1 LIMIT $2 FOR UPDATE
        Process 8218: SELECT  "taskbars".* FROM "taskbars" WHERE "taskbars"."id" = $1 LIMIT $2 FOR UPDATE
2019-02-22 09:59:55.363 CET [13604] zammad@zammad HINT:  See server log for query details.
2019-02-22 09:59:55.363 CET [13604] zammad@zammad CONTEXT:  while locking tuple (5,3) in relation "taskbars"
2019-02-22 09:59:55.363 CET [13604] zammad@zammad STATEMENT:  SELECT  "taskbars".* FROM "taskbars" WHERE "taskbars"."id" = $1 LIMIT $2 FOR UPDATE
2019-02-22 10:34:39.899 CET [1293] LOG:  received fast shutdown request
2019-02-22 10:34:39.903 CET [1293] LOG:  aborting any active transactions
2019-02-22 10:34:39.904 CET [21622] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.904 CET [14751] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.904 CET [20355] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.904 CET [14749] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.908 CET [14866] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.911 CET [13604] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.917 CET [8046] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [12357] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.917 CET [10882] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [8662] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [8016] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [12646] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [10869] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [12648] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [8771] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [10872] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [11135] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.921 CET [7985] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.917 CET [8003] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.921 CET [13601] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.920 CET [12353] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.921 CET [13605] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.918 CET [10871] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.922 CET [12356] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.925 CET [12355] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.925 CET [8218] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.925 CET [8015] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.925 CET [12354] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.928 CET [8776] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:39.929 CET [7991] zammad@zammad FATAL:  terminating connection due to administrator command
2019-02-22 10:34:40.098 CET [1293] LOG:  worker process: logical replication launcher (PID 1306) exited with exit code 1
2019-02-22 10:34:40.160 CET [1301] LOG:  shutting down
2019-02-22 10:34:40.229 CET [1293] LOG:  database system is shut down
2019-02-22 10:35:15.822 CET [1297] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2019-02-22 10:35:15.825 CET [1297] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-02-22 10:35:15.881 CET [1305] LOG:  database system was shut down at 2019-02-22 10:34:40 CET
2019-02-22 10:35:15.895 CET [1297] LOG:  database system is ready to accept connections
2019-02-22 10:35:16.434 CET [1326] [unknown]@[unknown] LOG:  incomplete startup packet

Could the problem caused by a Problem in the Database ?
Best regards
Martin