Sep 1 00:26:49 /usr/sbin/irqbalance: irq 133 affinity_hint subset empty
Sep 1 00:28:57 kernel: [143516.846447] INFO: task loop1:2683 blocked for more than 120 seconds.
Sep 1 00:28:57 kernel: [143516.846498] Not tainted 3.16.0-4-amd64 #1
Sep 1 00:28:57 kernel: [143516.846536] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 1 00:28:57 kernel: [143516.846603] loop1 D ffff880ffd72eff8 0 2683 2 0x00000000
Sep 1 00:28:57 kernel: [143516.846658] ffff880ffd72eba0 0000000000000046 0000000000012f40 ffff880fc82dbfd8
Sep 1 00:28:57 kernel: [143516.846743] 0000000000012f40 ffff880ffd72eba0 ffff880ffd5b5800 00000000326417be
Sep 1 00:28:57 kernel: [143516.846827] ffff880ffd5b5888 ffff880ffd5b5824 ffff880fc82dbda8 ffff880ffd5b58a0
Sep 1 00:28:57 kernel: [143516.846913] Call Trace:
Sep 1 00:28:57 kernel: [143516.846972] [<ffffffffa01007d5>] ? jbd2_log_wait_commit+0x95/0x100 [jbd2]
Sep 1 00:28:57 kernel: [143516.847020] [<ffffffff810a9610>] ? prepare_to_wait_event+0xf0/0xf0
Sep 1 00:28:57 kernel: [143516.847070] [<ffffffffa03307e1>] ? ext4_sync_file+0x2c1/0x350 [ext4]
Sep 1 00:28:57 kernel: [143516.847115] [<ffffffffa04f0260>] ? loop_thread+0x390/0x720 [loop]
Sep 1 00:28:57 kernel: [143516.847170] [<ffffffffa04ef830>] ? __do_lo_send_write+0x110/0x110 [loop]
Sep 1 00:28:57 kernel: [143516.847214] [<ffffffff810a9610>] ? prepare_to_wait_event+0xf0/0xf0
Sep 1 00:28:57 kernel: [143516.847258] [<ffffffffa04efed0>] ? loop_control_ioctl+0x140/0x140 [loop]
Sep 1 00:28:57 kernel: [143516.847304] [<ffffffff8108954d>] ? kthread+0xbd/0xe0
Sep 1 00:28:57 kernel: [143516.847345] [<ffffffff81089490>] ? kthread_create_on_node+0x180/0x180
Sep 1 00:28:57 kernel: [143516.847391] [<ffffffff8151a3d8>] ? ret_from_fork+0x58/0x90
Sep 1 00:28:57 kernel: [143516.847433] [<ffffffff81089490>] ? kthread_create_on_node+0x180/0x180
Sep 1 00:28:57 kernel: [143516.847481] INFO: task jbd2/dm-1-8:3785 blocked for more than 120 seconds.
Sep 1 00:28:57 kernel: [143516.847524] Not tainted 3.16.0-4-amd64 #1
Sep 1 00:28:57 kernel: [143516.847562] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 1 00:28:57 kernel: [143516.847629] jbd2/dm-1-8 D ffff880fbd6a7808 0 3785 2 0x00000000
Sep 1 00:28:57 kernel: [143516.847681] ffff880fbd6a73b0 0000000000000046 0000000000012f40 ffff880fa6a13fd8
Sep 1 00:28:57 kernel: [143516.847766] 0000000000012f40 ffff880fbd6a73b0 ffff88203f2b37f0 ffff88203ffe9db0
Sep 1 00:28:57 kernel: [143516.847851] 0000000000000002 ffffffff8113f030 ffff880fa6a13b40 ffff880fa6a13db0
Sep 1 00:28:57 kernel: [143516.847935] Call Trace:
Sep 1 00:28:57 kernel: [143516.847972] [<ffffffff8113f030>] ? wait_on_page_read+0x60/0x60Sep 1 00:28:57 kernel: [143516.846603] loop1 D ffff880ffd72eff8 0 2683 2 0x00000000
Sep 1 00:28:57 kernel: [143516.846658] ffff880ffd72eba0 0000000000000046 0000000000012f40 ffff880fc82dbfd8
Sep 1 00:28:57 kernel: [143516.846743] 0000000000012f40 ffff880ffd72eba0 ffff880ffd5b5800 00000000326417be
Sep 1 00:28:57 kernel: [143516.846827] ffff880ffd5b5888 ffff880ffd5b5824 ffff880fc82dbda8 ffff880ffd5b58a0
Sep 1 00:28:57 kernel: [143516.846913] Call Trace:
Sep 1 00:28:57 kernel: [143516.846972] [<ffffffffa01007d5>] ? jbd2_log_wait_commit+0x95/0x100 [jbd2]
Sep 1 00:28:57 kernel: [143516.847020] [<ffffffff810a9610>] ? prepare_to_wait_event+0xf0/0xf0
Sep 1 00:28:57 kernel: [143516.847070] [<ffffffffa03307e1>] ? ext4_sync_file+0x2c1/0x350 [ext4]
Sep 1 00:28:57 kernel: [143516.847115] [<ffffffffa04f0260>] ? loop_thread+0x390/0x720 [loop]
Sep 1 00:28:57 kernel: [143516.847170] [<ffffffffa04ef830>] ? __do_lo_send_write+0x110/0x110 [loop]
Sep 1 00:28:57 kernel: [143516.847214] [<ffffffff810a9610>] ? prepare_to_wait_event+0xf0/0xf0
Sep 1 00:28:57 kernel: [143516.847258] [<ffffffffa04efed0>] ? loop_control_ioctl+0x140/0x140 [loop]
Sep 1 00:28:57 kernel: [143516.847304] [<ffffffff8108954d>] ? kthread+0xbd/0xe0
Sep 1 00:28:57 kernel: [143516.847345] [<ffffffff81089490>] ? kthread_create_on_node+0x180/0x180
Sep 1 00:28:57 kernel: [143516.847391] [<ffffffff8151a3d8>] ? ret_from_fork+0x58/0x90
Sep 1 00:28:57 kernel: [143516.847433] [<ffffffff81089490>] ? kthread_create_on_node+0x180/0x180
Sep 1 00:28:57 kernel: [143516.847629] jbd2/dm-1-8 D ffff880fbd6a7808 0 3785 2 0x00000000
Sep 1 00:28:57 kernel: [143516.847681] ffff880fbd6a73b0 0000000000000046 0000000000012f40 ffff880fa6a13fd8
Sep 1 00:28:57 kernel: [143516.847766] 0000000000012f40 ffff880fbd6a73b0 ffff88203f2b37f0 ffff88203ffe9db0
Sep 1 00:28:57 kernel: [143516.847851] 0000000000000002 ffffffff8113f030 ffff880fa6a13b40 ffff880fa6a13db0
Sep 1 00:28:57 kernel: [143516.847935] Call Trace:
Sep 1 00:28:57 kernel: [143516.847972] [<ffffffff8113f030>] ? wait_on_page_read+0x60/0x60
Sep 1 00:28:57 kernel: [143516.848015] [<ffffffff81516f59>] ? io_schedule+0x99/0x120
Sep 1 00:28:57 kernel: [143516.848056] [<ffffffff8113f03a>] ? sleep_on_page+0xa/0x10
Sep 1 00:28:57 kernel: [143516.848097] [<ffffffff815172dc>] ? __wait_on_bit+0x5c/0x90
Sep 1 00:28:57 kernel: [143516.848138] [<ffffffff8113ee36>] ? wait_on_page_bit+0xc6/0xd0
Sep 1 00:28:57 kernel: [143516.848180] [<ffffffff810a9640>] ? autoremove_wake_function+0x30/0x30
Sep 1 00:28:57 kernel: [143516.848226] [<ffffffff8114c82d>] ? pagevec_lookup_tag+0x1d/0x30
Sep 1 00:28:57 kernel: [143516.848349] [<ffffffff8114a092>] ? write_cache_pages+0x2a2/0x420
Sep 1 00:28:57 kernel: [143516.848392] [<ffffffff811496f0>] ? global_dirtyable_memory+0x50/0x50



Попробуйте удалить постгрес полностью, те с pure
apt-get --purge remove postgresql\*userdel -r postgres
groupdel postgresrm -r /var/lib/postgresql/
rm -r /etc/postgresql-common/
rm -r /etc/postgresql/sudo apt-get install postgresql postgresql-contrib"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/postgresql/9.6/main"
Error: initdb failed
Error: could not create default cluster. Please create it manually with
pg_createcluster 9.6 main --startsu -l postgres -c 'pg_createcluster 9.6 main --start'install: cannot change owner and permissions of `/etc/postgresql/9.6': No such file or directory
install: cannot create directory `/etc/postgresql/9.6': Permission denied
Error: could not create configuration directory; you might need to run this program with root privilegessu -l postgres -c 'pg_createcluster 9.6 main --logfile=/var/log/psql.log --user=postgres --group=postgres --start'
Running in debug mode.
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
VERSION=9.6.2
PGDATA=/var/lib/postgresql/9.6/main
share_path=/usr/share/postgresql/9.6
PGPATH=/usr/lib/postgresql/9.6/bin
POSTGRES_SUPERUSERNAME=postgres
POSTGRES_BKI=/usr/share/postgresql/9.6/postgres.bki
POSTGRES_DESCR=/usr/share/postgresql/9.6/postgres.description
POSTGRES_SHDESCR=/usr/share/postgresql/9.6/postgres.shdescription
POSTGRESQL_CONF_SAMPLE=/usr/share/postgresql/9.6/postgresql.conf.sample
PG_HBA_SAMPLE=/usr/share/postgresql/9.6/pg_hba.conf.sample
PG_IDENT_SAMPLE=/usr/share/postgresql/9.6/pg_ident.conf.sample
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
postgres:/$ initdb -D /var/lib/postgresql/9.6/main
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/9.6/main ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... "root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/postgresql/9.6/main"
Какая ос и версия ос?
Creating new cluster 9.6/main ...
config /etc/postgresql/9.6/main
data /var/lib/postgresql/9.6/main
locale en_US.UTF-8
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/postgresql/9.6/main"
Error: initdb failed