# rm -rf /var/db/postgres/data15/pg_wal/000000010000000000000000 # service postgresql start 2023-06-13 17:34:22.535 +03 [3039] LOG: starting PostgreSQL 15.3 on amd64-portbld-freebsd13.1, compiled by FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303), 64-bit 2023-06-13 17:34:22.535 +03 [3039] LOG: listening on IPv6 address "::1", port 5432 2023-06-13 17:34:22.535 +03 [3039] LOG: listening on IPv4 address "127.0.0.1", port 5432 2023-06-13 17:34:22.535 +03 [3039] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432" 2023-06-13 17:34:22.558 +03 [3042] LOG: database system was interrupted while in recovery at 2023-06-13 17:33:38 +03 2023-06-13 17:34:22.558 +03 [3042] HINT: This probably means that some data is corrupted and you will have to use the last backup for recovery. 2023-06-13 17:34:22.558 +03 [3042] LOG: database system was not properly shut down; automatic recovery in progress 2023-06-13 17:34:22.559 +03 [3042] LOG: redo is not required 2023-06-13 17:34:22.562 +03 [3040] LOG: checkpoint starting: end-of-recovery immediate wait 2023-06-13 17:34:22.589 +03 [3043] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.589 +03 [3043] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.640 +03 [3044] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.640 +03 [3044] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.704 +03 [3045] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.704 +03 [3045] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.754 +03 [3046] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.754 +03 [3046] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.817 +03 [3047] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.817 +03 [3047] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.867 +03 [3048] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.867 +03 [3048] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.931 +03 [3049] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.931 +03 [3049] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:22.978 +03 [3050] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:22.978 +03 [3050] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.045 +03 [3051] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.045 +03 [3051] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.086 +03 [3052] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.086 +03 [3052] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.158 +03 [3053] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.158 +03 [3053] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.197 +03 [3054] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.197 +03 [3054] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.272 +03 [3055] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.272 +03 [3055] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.310 +03 [3056] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.310 +03 [3056] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.386 +03 [3057] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.386 +03 [3057] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.424 +03 [3039] LOG: checkpointer process (PID 3040) was terminated by signal 11: Segmentation fault 2023-06-13 17:34:23.424 +03 [3039] LOG: terminating any other active server processes 2023-06-13 17:34:23.430 +03 [3039] LOG: all server processes terminated; reinitializing 2023-06-13 17:34:23.623 +03 [3059] LOG: database system shutdown was interrupted; last known up at 2023-06-13 17:34:22 +03 2023-06-13 17:34:23.623 +03 [3059] LOG: database system was not properly shut down; automatic recovery in progress 2023-06-13 17:34:23.624 +03 [3059] LOG: redo is not required 2023-06-13 17:34:23.624 +03 [3059] PANIC: invalid magic number 0000 in log segment 000000010000000000000000, offset 0 2023-06-13 17:34:23.643 +03 [3062] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.643 +03 [3062] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.649 +03 [3063] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.649 +03 [3063] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.757 +03 [3064] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.757 +03 [3064] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.767 +03 [3065] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.767 +03 [3065] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.869 +03 [3066] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.869 +03 [3066] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.878 +03 [3067] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.878 +03 [3067] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.980 +03 [3068] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.980 +03 [3068] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:23.991 +03 [3069] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:23.991 +03 [3069] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.094 +03 [3070] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.094 +03 [3070] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.101 +03 [3071] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.101 +03 [3071] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.236 +03 [3072] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.236 +03 [3072] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.236 +03 [3073] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.236 +03 [3073] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.348 +03 [3074] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.348 +03 [3074] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.348 +03 [3075] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.348 +03 [3075] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.466 +03 [3076] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.466 +03 [3076] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.466 +03 [3077] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.466 +03 [3077] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.580 +03 [3078] FATAL: the database system is not yet accepting connections 2023-06-13 17:34:24.580 +03 [3078] DETAIL: Consistent recovery state has not been yet reached. 2023-06-13 17:34:24.583 +03 [3039] LOG: startup process (PID 3059) was terminated by signal 6: Abort trap 2023-06-13 17:34:24.583 +03 [3039] LOG: terminating any other active server processes 2023-06-13 17:34:24.591 +03 [3039] LOG: shutting down due to startup process failure 2023-06-13 17:34:24.608 +03 [3039] LOG: database system is shut down pg_ctl: could not start server Examine the log output.