有关备份恢复的问题


(cyufu) #1

重新初始化之后的版本,版本号没有改变。

进行备份恢复的时候总是失败

点此展开日志

2018-03-10 13:48:36] ‘Caoyufu’ has started the restore!
[2018-03-10 13:48:36] Marking restore as running…
[2018-03-10 13:48:36] Making sure /var/www/discourse/tmp/restores/default/2018-03-10-134836 exists…
[2018-03-10 13:48:36] Copying archive to tmp directory…
[2018-03-10 13:48:36] Unzipping archive, this may take a while…
[2018-03-10 13:48:36] Extracting metadata file…
[2018-03-10 13:48:36] Validating metadata…
[2018-03-10 13:48:36] Current version: 20180309014014
[2018-03-10 13:48:36] Restored version: 20180309014014
[2018-03-10 13:48:36] Extracting dump file…
[2018-03-10 13:48:36] Restoring dump file… (can be quite long)
[2018-03-10 13:48:37] ERROR: current transaction is aborted, commands ignored until end of transaction block
[2018-03-10 13:48:37] ERROR: current transaction is aborted, commands ignored until end of transaction block

/var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in load' /var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in'
[2018-03-10 13:48:39] Trying to rollback…
[2018-03-10 13:48:39] There was no need to rollback
[2018-03-10 13:48:39] Notifying ‘Caoyufu’ of the end of the restore…
[2018-03-10 13:48:49] Cleaning stuff up…
[2018-03-10 13:48:49] Removing tmp ‘/var/www/discourse/tmp/restores/default/2018-03-10-134836’ directory…
[2018-03-10 13:48:49] Unpausing sidekiq…
[2018-03-10 13:48:49] Marking restore as finished…
[2018-03-10 13:48:49] Finished!


(cyufu) #2

找到原因为app.yml文件设置的问题,语言默认选项为英文,改成zh_CN
,改回去之后就好了。