【发布时间】:2019-01-28 03:32:25
【问题描述】:
我在 Arch Linux 上安装了 ArangoDB 3.3.19。我注意到 AUR 中的版本更新到了 3.4,所以我做了这个升级:
yay -S arangodb
但是,当我在升级后启动 arangod 时,我收到了这条消息:
2018-12-22T01:25:22Z [2023] ERROR {startup} Database directory version (30319) is lower than current version (30400).
2018-12-22T01:25:22Z [2023] ERROR {startup} ----------------------------------------------------------------------
2018-12-22T01:25:22Z [2023] ERROR {startup} It seems like you have upgraded the ArangoDB binary.
2018-12-22T01:25:22Z [2023] ERROR {startup} If this is what you wanted to do, please restart with the'
2018-12-22T01:25:22Z [2023] ERROR {startup} --database.auto-upgrade true'
2018-12-22T01:25:22Z [2023] ERROR {startup} option to upgrade the data in the database directory.'
2018-12-22T01:25:22Z [2023] ERROR {startup} Normally you can use the control script to upgrade your database'
2018-12-22T01:25:22Z [2023] ERROR {startup} /etc/init.d/arangodb stop'
2018-12-22T01:25:22Z [2023] ERROR {startup} /etc/init.d/arangodb upgrade'
2018-12-22T01:25:22Z [2023] ERROR {startup} /etc/init.d/arangodb start'
2018-12-22T01:25:22Z [2023] ERROR {startup} ----------------------------------------------------------------------'
2018-12-22T01:25:22Z [2023] ERROR Database 'AirlineCompany' needs upgrade. Please start the server with --database.auto-upgrade
2018-12-22T01:25:22Z [2023] FATAL Database 'AirlineCompany' upgrade failed (bad parameter). Please inspect the logs from the upgrade procedure and try starting the server again.
Arch Linux 上不存在控制脚本/etc/init.d/arangodb。是否可以或推荐使用控制脚本方法升级 ArangoDB?如果有,是怎么做的?
或者是做这样两个步骤的最佳方法吗?
yay -S arangodb
sudo /usr/bin/arangod --database.auto-upgrade true
【问题讨论】:
标签: upgrade arangodb archlinux