7.5.5不支持直接升级到8.5.1?

tidb7.5.5升级8.5.1,重启tiflash报错:

2025-01-23T13:02:25.439+0800    DEBUG   TaskFinish      {"task": "UpgradeCluster", "error": "failed to restart: 192.168.0.103 tiflash-9000.service, please check the instance's log(/tiflashdata/tidb-deploy/tiflash-9000/log) for more detail.: timed out waiting for port 3930 to be started after 2m0s", "errorVerbose": "timed out waiting for port 3930 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:92\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:131\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiFlashInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tiflash.go:917\ngithub.com/pingcap/tiup/pkg/cluster/operation.restartInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:366\ngithub.com/pingcap/tiup/pkg/cluster/operation.upgradeInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/upgrade.go:275\ngithub.com/pingcap/tiup/pkg/cluster/operation.Upgrade\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/upgrade.go:189\ngithub.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Upgrade.func2\n\tgithub.com/pingcap/tiup/pkg/cluster/manager/upgrade.go:320\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Func).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/func.go:34\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Upgrade\n\tgithub.com/pingcap/tiup/pkg/cluster/manager/upgrade.go:324\ngithub.com/pingcap/tiup/components/cluster/command.newUpgradeCmd.func1\n\tgithub.com/pingcap/tiup/components/cluster/command/upgrade.go:60\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.6.1/command.go:916\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/pingcap/tiup/components/cluster/command.Execute\n\tgithub.com/pingcap/tiup/components/cluster/command/root.go:297\nmain.main\n\tgithub.com/pingcap/tiup/components/cluster/main.go:23\nruntime.main\n\truntime/proc.go:267\nruntime.goexit\n\truntime/asm_amd64.s:1650\nfailed to restart: 192.168.0.103 tiflash-9000.service, please check the instance's log(/tiflashdata/tidb-deploy/tiflash-9000/log) for more detail."}
2025-01-23T13:02:25.439+0800    INFO    Execute command finished        {"code": 1, "error": "failed to restart: 192.168.0.103 tiflash-9000.service, please check the instance's log(/tiflashdata/tidb-deploy/tiflash-9000/log) for more detail.: timed out waiting for port 3930 to be started after 2m0s", "errorVerbose": "timed out waiting for port 3930 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:92\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:131\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiFlashInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tiflash.go:917\ngithub.com/pingcap/tiup/pkg/cluster/operation.restartInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:366\ngithub.com/pingcap/tiup/pkg/cluster/operation.upgradeInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/upgrade.go:275\ngithub.com/pingcap/tiup/pkg/cluster/operation.Upgrade\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/upgrade.go:189\ngithub.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Upgrade.func2\n\tgithub.com/pingcap/tiup/pkg/cluster/manager/upgrade.go:320\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Func).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/func.go:34\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Upgrade\n\tgithub.com/pingcap/tiup/pkg/cluster/manager/upgrade.go:324\ngithub.com/pingcap/tiup/components/cluster/command.newUpgradeCmd.func1\n\tgithub.com/pingcap/tiup/components/cluster/command/upgrade.go:60\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.6.1/command.go:916\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/pingcap/tiup/components/cluster/command.Execute\n\tgithub.com/pingcap/tiup/components/cluster/command/root.go:297\nmain.main\n\tgithub.com/pingcap/tiup/components/cluster/main.go:23\nruntime.main\n\truntime/proc.go:267\nruntime.goexit\n\truntime/asm_amd64.s:1650\nfailed to restart: 192.168.0.103 tiflash-9000.service, please check the instance's log(/tiflashdata/tidb-deploy/tiflash-9000/log) for more detail."}

/tiflashdata/tidb-deploy/tiflash-9000/log里面的错误日志:

[2025/01/23 13:05:45.802 +08:00] [ERROR] [<unknown>] ["DB::Exception: Unknown logfile name, parent_path=/tiflashdata/tidb-data/tiflash-9000/page/meta/wal filename=ddec_6p3EX"] [source=Application] [thread_id=1]
[2025/01/23 13:06:01.239 +08:00] [WARN] [StorageConfigParser.cpp:287] ["The configuration `path` is deprecated. Check [storage] section for new style."] [thread_id=1]
[2025/01/23 13:06:04.460 +08:00] [ERROR] [Exception.cpp:96] ["Code: 49, e.displayText() = DB::Exception: Unknown logfile name, parent_path=/tiflashdata/tidb-data/tiflash-9000/page/meta/wal filename=ddec_6p3EX, e.what() = DB::Exception, Stack trace:\n\n\n  0x5640b12bcf2e\tDB::Exception::Exception<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&>(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) [tiflash+137342766]\n                \tdbms/src/Common/StackTrace.cpp:23\n  0x5640b191ea14\tDB::PS::V3::WALStoreReader::listAllFiles(std::__1::shared_ptr<DB::PSDiskDelegator> const&, std::__1::shared_ptr<DB::Logger>) [tiflash+144034324]\n                \tdbms/src/Storages/Page/V3/WAL/WALReader.cpp:82\n  0x5640b191f483\tDB::PS::V3::WALStoreReader::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::WALRecoveryMode, std::__1::shared_ptr<DB::ReadLimiter> const&) [tiflash+144036995]\n                \tdbms/src/Storages/Page/V3/WAL/WALReader.cpp:160\n  0x5640b18a15b0\tDB::PS::V3::WALStore::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::PS::V3::WALConfig const&) [tiflash+143521200]\n                \tdbms/src/Storages/Page/V3/WALStore.cpp:47\n  0x5640aaf918c1\tDB::PS::V3::PageDirectoryFactory<DB::PS::V3::u128::FactoryTrait>::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::PS::V3::WALConfig const&) [tiflash+33355969]\n                \tdbms/src/Storages/Page/V3/PageDirectoryFactory.cpp:44\n  0x5640b1892eb6\tDB::PS::V3::PageStorageImpl::restore() [tiflash+143462070]\n                \tdbms/src/Storages/Page/V3/PageStorageImpl.cpp:72\n  0x5640b091f80d\tDB::DM::GlobalStoragePool::restore() [tiflash+127260685]\n                \tdbms/src/Storages/DeltaMerge/StoragePool/GlobalStoragePool.cpp:61\n  0x5640b090a98a\tDB::Context::initializeGlobalStoragePoolIfNeed(DB::PathPool const&) [tiflash+127175050]\n                \tdbms/src/Interpreters/Context.cpp:1825\n  0x5640ab09244c\tDB::Server::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) [tiflash+34407500]\n                \tdbms/src/Server/Server.cpp:1390\n  0x5640b262d096\tPoco::Util::Application::run() [tiflash+157724822]\n                \tcontrib/poco/Util/src/Application.cpp:335\n  0x5640ab087f3f\tDB::Server::run() [tiflash+34365247]\n                \tcontrib/poco/Util/src/ServerApplication.cpp:94\n  0x5640ab0a1702\tmainEntryClickHouseServer(int, char**) [tiflash+34469634]\n                \tdbms/src/Server/Server.cpp:1937\n  0x5640aafd66a0\tmain [tiflash+33638048]\n                \tdbms/src/Server/main.cpp:172\n  0x7fd9fa4295d0\t__libc_start_call_main [libc.so.6+169424]\n  0x7fd9fa429680\t__libc_start_main_impl [libc.so.6+169600]\n  0x5640aac688a9\t<unknown symbol> [tiflash+30042281]"] [source="bool DB::Context::initializeGlobalStoragePoolIfNeed(const PathPool &)"] [thread_id=1]
[2025/01/23 13:06:04.553 +08:00] [ERROR] [<unknown>] ["DB::Exception: Unknown logfile name, parent_path=/tiflashdata/tidb-data/tiflash-9000/page/meta/wal filename=ddec_6p3EX"] [source=Application] [thread_id=1]
[2025/01/23 13:06:19.989 +08:00] [WARN] [StorageConfigParser.cpp:287] ["The configuration `path` is deprecated. Check [storage] section for new style."] [thread_id=1]
[2025/01/23 13:06:23.176 +08:00] [ERROR] [Exception.cpp:96] ["Code: 49, e.displayText() = DB::Exception: Unknown logfile name, parent_path=/tiflashdata/tidb-data/tiflash-9000/page/meta/wal filename=ddec_6p3EX, e.what() = DB::Exception, Stack trace:\n\n\n  0x55c4223b3f2e\tDB::Exception::Exception<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&>(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) [tiflash+137342766]\n                \tdbms/src/Common/StackTrace.cpp:23\n  0x55c422a15a14\tDB::PS::V3::WALStoreReader::listAllFiles(std::__1::shared_ptr<DB::PSDiskDelegator> const&, std::__1::shared_ptr<DB::Logger>) [tiflash+144034324]\n                \tdbms/src/Storages/Page/V3/WAL/WALReader.cpp:82\n  0x55c422a16483\tDB::PS::V3::WALStoreReader::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::WALRecoveryMode, std::__1::shared_ptr<DB::ReadLimiter> const&) [tiflash+144036995]\n                \tdbms/src/Storages/Page/V3/WAL/WALReader.cpp:160\n  0x55c4229985b0\tDB::PS::V3::WALStore::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::PS::V3::WALConfig const&) [tiflash+143521200]\n                \tdbms/src/Storages/Page/V3/WALStore.cpp:47\n  0x55c41c0888c1\tDB::PS::V3::PageDirectoryFactory<DB::PS::V3::u128::FactoryTrait>::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::FileProvider>&, std::__1::shared_ptr<DB::PSDiskDelegator>&, DB::PS::V3::WALConfig const&) [tiflash+33355969]\n                \tdbms/src/Storages/Page/V3/PageDirectoryFactory.cpp:44\n  0x55c422989eb6\tDB::PS::V3::PageStorageImpl::restore() [tiflash+143462070]\n                \tdbms/src/Storages/Page/V3/PageStorageImpl.cpp:72\n  0x55c421a1680d\tDB::DM::GlobalStoragePool::restore() [tiflash+127260685]\n                \tdbms/src/Storages/DeltaMerge/StoragePool/GlobalStoragePool.cpp:61\n  0x55c421a0198a\tDB::Context::initializeGlobalStoragePoolIfNeed(DB::PathPool const&) [tiflash+127175050]\n                \tdbms/src/Interpreters/Context.cpp:1825\n  0x55c41c18944c\tDB::Server::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) [tiflash+34407500]\n                \tdbms/src/Server/Server.cpp:1390\n  0x55c423724096\tPoco::Util::Application::run() [tiflash+157724822]\n                \tcontrib/poco/Util/src/Application.cpp:335\n  0x55c41c17ef3f\tDB::Server::run() [tiflash+34365247]\n                \tcontrib/poco/Util/src/ServerApplication.cpp:94\n  0x55c41c198702\tmainEntryClickHouseServer(int, char**) [tiflash+34469634]\n                \tdbms/src/Server/Server.cpp:1937\n  0x55c41c0cd6a0\tmain [tiflash+33638048]\n                \tdbms/src/Server/main.cpp:172\n  0x7f2eaf8295d0\t__libc_start_call_main [libc.so.6+169424]\n  0x7f2eaf829680\t__libc_start_main_impl [libc.so.6+169600]\n  0x55c41bd5f8a9\t<unknown symbol> [tiflash+30042281]"] [source="bool DB::Context::initializeGlobalStoragePoolIfNeed(const PathPool &)"] [thread_id=1]
[2025/01/23 13:06:23.303 +08:00] [ERROR] [<unknown>] ["DB::Exception: Unknown logfile name, parent_path=/tiflashdata/tidb-data/tiflash-9000/page/meta/wal filename=ddec_6p3EX"] [source=Application] [thread_id=1]

先提出tiflash,升级完再添加进来?

先问下,你的机器系统不是centos7吧

8.5.1 支持 centos 7 了又

帮你把日志加了个代码块,这样方便阅读,

看起来配置文件格式变了,暂不确定是不是这个造成的。

找到的原因了,服务器安装了勒索病毒防护保护,关闭了就可以升级了,现在都不敢开了,不知道开了会不会干掉文件

升级完再开应该没事,要不你就设置个白名单。

正在找相关目录,加入白名单试试,谢谢

我升级后DM有很大改变? 现在执行tiup dmctl --master-addr 192.168.0.103:8261 start-task XXX,无法连接到主机了,都是用tiup管理,没有配置过SSH免密钥登入

是吗,我还以为得到8.5.2才能支持。。。

可能我描述错了,问题解决了,8.0开始DM加了一个需要配置自定义密钥功能才能使用tiup dmctl命令执行任务等

再次谢谢各位老板,新年快乐