我在Arch Linux上安装了ArangoDB 3.3.19。我注意到AUR中的版本已更新为3.4,所以我进行了升级:
yay -S arangodb
但是,当我在升级后开始启动rangod时,收到此消息:
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
答案 0 :(得分:0)
最好参考官方文档。
arangodb /文档/书籍/手册/升级为3.4·arangodb / arangodb·GitHub
https://github.com/arangodb/arangodb/tree/3.4/Documentation/Books/Manual/Upgrading
常规升级信息·ArangoDB v3.4.2文档https://docs.arangodb.com/3.4/Manual/Upgrading/GeneralInfo/