# Проблема при обновлении до 2.5.0.beta4

**URL:** <https://meta.discourse.org/t/problem-upgrade-to-2-5-0-beta4/150364>\
**Category:** Self-hosting\
**Created:** [04.Май.2020 20:08:02 UTC](https://meta.discourse.org/t/problem-upgrade-to-2-5-0-beta4/150364 "2020-05-04T20:08:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sturdy2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sturdy2/32/138218_2.png) [@sturdy2](https://meta.discourse.org/u/sturdy2)\
**Post date:** [04.Май.2020 20:08:02 UTC](https://meta.discourse.org/t/problem-upgrade-to-2-5-0-beta4/150364/1 "2020-05-04T20:08:02Z")

</div>

Нажал кнопку обновления для обновления Docker. Всё, казалось, прошло успешно. Нажал «Вернуться» и получил следующее:

> ```
> Вы используете старую версию образа Discourse.
> Обновления через веб-интерфейс отключены, пока вы не запустите последнюю версию образа.
> Для этого войдите на сервер через SSH и выполните:
> 
> cd /var/discourse
> git pull
> ./launcher rebuild app
> 
> ```

Выполнил указанные выше шаги, но получил следующую ошибку:

```
root@ubuntu-s-1vcpu-1gb-nyc1-01:~# cd /var/discourse
root@ubuntu-s-1vcpu-1gb-nyc1-01:/var/discourse# git pull
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 22 (delta 11), reused 12 (delta 6), pack-reused 0
Unpacking objects: 100% (22/22), done.
From https://github.com/discourse/discourse_docker
   70a3323..8c8dbd0 master -> origin/master
 * [new branch] pg12 -> origin/pg12
Updating 70a3323..8c8dbd0
Fast-forward
 launcher | 2 +-
 templates/sshd.template.yml | 49 ---------------------------------------------
 templates/web.template.yml | 2 ++
 3 files changed, 3 insertions(+), 50 deletions(-)
 delete mode 100644 templates/sshd.template.yml
root@ubuntu-s-1vcpu-1gb-nyc1-01:/var/discourse# ./launcher rebuild app

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20200429-2110' locally
2.0.20200429-2110: Pulling from discourse/base
54fec2fa59d0: Pulling fs layer
19bc9811812d: Pulling fs layer
54fec2fa59d0: Verifying Checksum
54fec2fa59d0: Download complete
54fec2fa59d0: Pull complete
19bc9811812d: Verifying Checksum
19bc9811812d: Download complete
19bc9811812d: Pull complete
Digest: sha256:3400307b0464d1fc70f554f990e22842f0abe82e3ed42fbee1eb5bad464ce008
Status: Downloaded newer image for discourse/base:2.0.20200429-2110
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2020-05-04T19:34:20.671303 #1] INFO -- : Loading --stdin
I, [2020-05-04T19:34:20.680407 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2020-05-04T19:34:20.754357 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2020-05-04T19:34:20.755052 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2020-05-04T19:34:20.763216 #1] INFO -- : 
I, [2020-05-04T19:34:20.765101 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2020-05-04T19:34:20.769530 #1] INFO -- : 
I, [2020-05-04T19:34:20.770264 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2020-05-04T19:34:20.774593 #1] INFO -- : 
I, [2020-05-04T19:34:20.775571 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2020-05-04T19:34:20.780287 #1] INFO -- : 
I, [2020-05-04T19:34:20.781259 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2020-05-04T19:34:20.785953 #1] INFO -- : 
I, [2020-05-04T19:34:20.786915 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
I, [2020-05-04T19:34:20.884925 #1] INFO -- : postgres already running stop container

FAILED
--------------------
Pups::ExecError: socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 failed with return #<Process::Status: pid 25 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1"
28acae3e3ece0cb518bcdb99f94ff1f21dc7b8663ab30720b7d7dad43dcc6d52
**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.

```

Утилита discourse-doctor выдаёт аналогичный результат. Может ли кто-нибудь определить эту проблему и указать правильное направление? Заранее спасибо.

**РЕДАКТИРОВАНИЕ: Перезагрузил ОС, выполнил rebuild приложения, и всё работает. Не знаю, в чём была проблема.**

---

_[View the full topic](https://meta.discourse.org/t/problem-upgrade-to-2-5-0-beta4/150364)._
