公告:通过GUI升级3.3.3到3.4.0失败,只能通过命令行重建

Just a heads-up for self-hosted stable branch users. For me the upgrade via the GUI failed, I’m not sure if this would happen to everyone, as I saw some errors about unicorn processes, which tends to be a random issue in my experience. But at any rate that left my forum in a state where it claimed to be up-to-date in /admin/update while still being stuck on the old version.

So I had to SSH into the server and /var/discourse/launcher rebuild app two times, the first time it just upgrades Postgres:

UPGRADE OF POSTGRES COMPLETE

Old 13 database is stored at /shared/postgres_data_old

To complete the upgrade, rebuild again using:

./launcher rebuild app

And the second time it finishes the rest of the upgrades.

After that was all over and verifying that my data was intact I also did a /var/discourse/launcher cleanup to get rid of the huge backup file that it created for the old database.

1 个赞

据我所知,是的,这是无法通过GUI完成的升级之一。

2 个赞

它真的不应该允许人们尝试,而且,如果你使用的是 Stable 版本,我认为最好只进行命令行升级。

1 个赞

我也是这么想的。

对于稳定版主版本内的 X.Y.z 更新,GUI 似乎运行得足够好,但是的,下次有主要新版本时,我吸取了教训。

2 个赞