# עדכון מ-2.9.0 beta2 ל-beta4 נכשל (האתר שלי מושבת)

**URL:** <https://meta.discourse.org/t/update-from-2-9-0-beta2-to-beta4-failed-my-site-is-down/226727>\
**Category:** Self-hosting\
**Created:** [11 במאי,‏ 2022,‏ 7:43am UTC](https://meta.discourse.org/t/update-from-2-9-0-beta2-to-beta4-failed-my-site-is-down/226727 "2022-05-11T07:43:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)\
**Post date:** [11 במאי,‏ 2022,‏ 7:43am UTC](https://meta.discourse.org/t/update-from-2-9-0-beta2-to-beta4-failed-my-site-is-down/226727/1 "2022-05-11T07:43:01Z")

</div>

Hello, please help me to bring site alive.

Errors logs below. I try to use discourse-doctor but it doesn’t help.

```plaintext
I, [2022-05-11T07:32:19.831848 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2022-05-11 07:32:24.341 UTC [2330] discourse@discourse ERROR: permission denied to create extension "unaccent"
2022-05-11 07:32:24.341 UTC [2330] discourse@discourse HINT: Must be superuser to create this extension.
2022-05-11 07:32:24.341 UTC [2330] discourse@discourse STATEMENT: CREATE EXTENSION IF NOT EXISTS unaccent
rake aborted!
PG::InsufficientPrivilege: ERROR: permission denied to create extension "unaccent"
HINT: Must be superuser to create this extension.
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/postgres/connection.rb:209:in `run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/active_record_postgres/connection.rb:38:in `block in run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/active_record_postgres/connection.rb:34:in `block in with_lock'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/active_record_postgres/connection.rb:34:in `with_lock'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/active_record_postgres/connection.rb:38:in `run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_sql-1.4.0/lib/mini_sql/postgres/connection.rb:181:in `exec'
/var/www/discourse/lib/tasks/db.rake:218:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/db.rake:218:in `each'
/var/www/discourse/lib/tasks/db.rake:218:in `block (2 levels) in <main>'
/var/www/discourse/lib/distributed_mutex.rb:33:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:29:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:29:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:14:in `synchronize'
/var/www/discourse/lib/tasks/db.rake:210:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I, [2022-05-11T07:32:24.370907 #1] INFO -- :
I, [2022-05-11T07:32:24.371509 #1] INFO -- : Terminating async processes
I, [2022-05-11T07:32:24.371622 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 1719
I, [2022-05-11T07:32:24.371705 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 1836
2022-05-11 07:32:24.371 UTC [1719] LOG: received fast shutdown request
1836:signal-handler (1652254344) Received SIGTERM scheduling shutdown...
1836:M 11 May 2022 07:32:24.377 # User requested shutdown...
1836:M 11 May 2022 07:32:24.377 * Saving the final RDB snapshot before exiting.
2022-05-11 07:32:24.508 UTC [1719] LOG: aborting any active transactions
2022-05-11 07:32:24.514 UTC [1719] LOG: worker process: logical replication launcher (PID 1728) exited with exit code 1
2022-05-11 07:32:24.515 UTC [1723] LOG: shutting down
2022-05-11 07:32:24.558 UTC [1719] LOG: database system is shut down
1836:M 11 May 2022 07:32:30.043 * DB saved on disk
1836:M 11 May 2022 07:32:30.043 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 2316 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
8069e918f9bcb61fbf533bf8f8fd3247d5ba20f12e9a704344adf44453b73449
==================== END REBUILD LOG ====================
Failed to rebuild app.

Checking your domain name . . .

Connection to www.dastereo.ru succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . .
x86_64 arch detected.
WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml

starting up existing container
+ /usr/bin/docker start app
app
a35517feb14f local_discourse/app "/sbin/boot" 2 months ago Up Less than a second 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:2222->22/tcp app
Restarted the container.

==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
## - git clone https://github.com/discourse/discourse-vk-auth.git
## - git clone https://github.com/discourse/discourse-whos-online.git
## - git clone https://github.com/discourse/discourse-reactions.git
## - git clone https://github.com/discourse/discourse-categories-suppressed.git
## - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
## - git clone https://github.com/angusmcleod/discourse-topic-previews.git

WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at www.dastereo.ru: NOT FOUND
Discourse version at localhost: NOT FOUND

==================== MEMORY INFORMATION ====================
RAM (MB): 16434

             total used free shared buffers cached
Mem: 16048 13261 2787 1 1256 7721
-/+ buffers/cache: 4283 11765
Swap: 2047 16 2031

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem Size Used Avail Use% Mounted on
/dev/disk/by-label/DOROOT 315G 225G 75G 76% /
/dev/disk/by-label/DOROOT 315G 225G 75G 76% /var/lib/docker/aufs
/dev/disk/by-label/DOROOT 315G 225G 75G 76% /
/dev/disk/by-label/DOROOT 315G 225G 75G 76% /var/lib/docker/plugins
/dev/disk/by-label/DOROOT 315G 225G 75G 76% /

==================== DISK INFORMATION ====================

WARNING: GPT (GUID Partition Table) detected on '/dev/vda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/vda: 343.6 GB, 343597383680 bytes
255 heads, 63 sectors/track, 41773 cylinders, total 671088640 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/vda1 1 671088639 335544319+ ee GPT

Disk /dev/sda: 429.5 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders, total 838860800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [dmitry.krasnoperov@gmail.com]: т
Sending mail to т. . .
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.

Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DONE! ====================
Would you like to serve a publicly available version of this file? (Y/n)n
Publicly available log not generated.

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q -- quit
/error<ENTER> -- search for the word 'error'
n -- search for the next occurrence
g -- go to the beginning of the file
f -- go forward a page
b -- go back a page
G -- go to the end of the file

```

---

_[View the full topic](https://meta.discourse.org/t/update-from-2-9-0-beta2-to-beta4-failed-my-site-is-down/226727)._
