vitorl
2018 年 11 月 15 日午前 6:47
1
I have been doing web based upgrades at admin/upgrade and since I tend to have very high up times, does this replace replace the updates that are done when rebuilding the container with ./launcher rebuild?
Also, when I reboot does the container auto-update itself?
Thanks!
sam
(Sam Saffron)
2018 年 11 月 15 日午前 6:54
2
Majority of your updates can be done via the web, once in a few months you need to rebuild to get updates to the base image. If we deem it critical we will force it upon you.
「いいね!」 4
vitorl
2018 年 11 月 15 日午前 6:56
3
I was just upgrading stuff, and what a timing! I got a error
Discourse requires Ruby 2.5.2 or up
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
So I guess I’ll stick to rebuilding every week or so. The downtime is bad, but I don’t need to be up 99,9% of the time.
「いいね!」 1
sam
(Sam Saffron)
2018 年 11 月 15 日午前 7:02
4
Oh … we got to force a rebuild here I just fixed that so others do not see this issue.
「いいね!」 5
vitorl
2018 年 11 月 15 日午前 8:19
5
I don’t know if I’m doing something wrong, but I tried to do a rebuild via terminal and I’m getting this:
error: Your local changes to the following files would be overwritten by merge:
templates/import/mbox.template.yml
templates/web.ssl.template.yml
But I don’t use those templates, and I do not interact with templates files. I delete them and can proceed, but any idea why this could be happening?
And I’m not sure if you were being sarcastic, I have no reason to lie or anything…
sam
(Sam Saffron)
2018 年 11 月 15 日午前 10:17
6
cd /var/discourse
git reset --hard
git pull
./launcher rebuild app
「いいね!」 3
vitorl
2018 年 11 月 15 日午前 10:59
7
Ok I’m trying to automate this, with a cronjob to rebuild the container after every reboot.
@reboot sleep 300 && /opt/discourse/launcher rebuild app > /root/discord-update.log
It seems to be working, but for some reason the log file get cut after Removing old container.
Is there some kind of recommended way to get automatic updates working?
I had to wait 300 seconds for the docker daemon to start. With this settings it should take 10 min after reboot to be back on air. Rebuilding takes 5 min with a SSD and 2 vCPU.
pfaffman
(Jay Pfaffman)
2018 年 11 月 17 日午後 1:49
8
If you’re concerned about uptime, you should switch to a two container install.
「いいね!」 3
vitorl
2018 年 12 月 10 日午後 4:44
9
For some reason the output of my script stops redirecting to the file… is there a guide on this two container install?
5 min of downtime every month is still like 99,5% uptime so unless the two container install is easy to do/manage it doesn’t worth it…
pfaffman
(Jay Pfaffman)
2018 年 12 月 10 日午後 4:53
10
For a description see: How to move from standalone container to separate web and data containers .
For a normal rebuild/upgrade It’s pretty much the same as a single container install. Rather than
./launcher rebuild app
you do
./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only
「いいね!」 5
I’m getting ready to migrate to separate data containers as described above.
When upgrading, do I ever need to update the data container? If so, when?
Also, can I assume the web container upgrade process will make necessary changes to the data tables, etc?
pfaffman
(Jay Pfaffman)
2023 年 7 月 23 日午前 6:15
14
postgresまたはredisに変更があった場合です。それがいつ起こったかを知ることは、物事を追跡することであり、多くの人が2つのコンテナのセットアップは難しすぎると考える理由です。postgresとredisのバージョンをチェックし、変更があった場合にデータコンテナをアップグレードするスクリプトがあります。ただし、変更は1〜2年ごとに発生しますが、サブベースのアップグレードはもう少し頻繁に発生します。一般的に、13.1から13.5にアップグレードしない場合、それほど大きな違いはありません。
はい。
「いいね!」 1
pfaffman
(Jay Pfaffman)
クローズされました:
2023 年 8 月 7 日午後 1:00
15
このトピックは15日後に自動的に閉じられました。新しい返信は許可されていません。