在window下22.0.beta升级到22.7后,gitfox无法启动解决中
悬赏5积分
D:\deploy\zentaopms\gitfox\windows-amd64>start.bat
D:\deploy\zentaopms\gitfox\windows-amd64>set ZONEINFO=D:\deploy\zentaopms\gitfox\windows-amd64\zoneinfo.zip
D:\deploy\zentaopms\gitfox\windows-amd64>gitfox.exe server prod
panic: failed to migrate rules for plugin cppcheck: Error 1054 (42S22): Unknown column 'name' in 'where clause'
goroutine 1 [running]:
github.com/easysoft/gitfox-community/cmd/cli/operations/server.(*App).runMigrations(0xc00068de00)
/gitfox/4257/gitfox-community/cmd/cli/operations/server/server.go:237 +0x3dd
github.com/easysoft/gitfox-community/cmd/cli/operations/server.RunWithApp({0x7ff6a67bcb70, 0xc0015ca640}, 0xc00068de00, 0xc000de5b70?, {0xc00000a240, 0x4}, 0x1, 0x0)
/gitfox/4257/gitfox-community/cmd/cli/operations/server/server.go:92 +0xb1
github.com/easysoft/gitfox-community/cmd/cli/operations/server.RunServerWithContext({0x7ff6a67bcb70, 0xc0015ca640}, {0xc00000a240, 0x4}, 0x1, 0x0)
/gitfox/4257/gitfox-community/cmd/cli/operations/server/server.go:76 +0x99
github.com/easysoft/gitfox-community/cmd/cli/operations/server.(*command).run(0xc0015a7320, 0x7ff6a3e8833f?)
/gitfox/4257/gitfox-community/cmd/cli/operations/server/server.go:58 +0x1b8
github.com/quicklyon/kingpin/v2.(*actionMixin).applyActions(...)
/go/pkg/mod/github.com/quicklyon/kingpin/v2@v2.2.7-0.20240528063919-2c35cbd0f246/actions.go:28
github.com/quicklyon/kingpin/v2.(*Application).applyActions(0xc000760ff0?, 0xc000626990)
/go/pkg/mod/github.com/quicklyon/kingpin/v2@v2.2.7-0.20240528063919-2c35cbd0f246/app.go:557 +0xd0
github.com/quicklyon/kingpin/v2.(*Application).execute(0xc000760ff0, 0xc000626990, {0xc001634380, 0x1, 0x1})
/go/pkg/mod/github.com/quicklyon/kingpin/v2@v2.2.7-0.20240528063919-2c35cbd0f246/app.go:390 +0x65
github.com/quicklyon/kingpin/v2.(*Application).Parse(0xc000760ff0, {0xc0000d6010?, 0x7ff6a5d6aa73?, 0x6?})
/go/pkg/mod/github.com/quicklyon/kingpin/v2@v2.2.7-0.20240528063919-2c35cbd0f246/app.go:222 +0x13f
main.main()
/gitfox/4257/gitfox-community/cmd/cli/main.go:67 +0x47e
gitfox 日志:
sql.log
2026/11/23 10:43:47 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[1.029ms] [rows:0] SELECT * FROM ops_runner WHERE token = 'internal.default.1' AND deleted = 0 ORDER BY ops_runner.`id` LIMIT 1
2026/11/23 10:43:47 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[1.078ms] [rows:0] INSERT INTO ops_runner (`name`,`desc`,`version`,`hostname`,`ip`,`os`,`arch`,`runtime`,`labels`,`token`,`heartBeat`,`online`,`status`,`isDefault`,`createdBy`,`createdDate`,`editedBy`,`editedDate`,`deleted`) VALUES ('default-runner-1','','','WIN-7BFS6230V0Q','169.254.88.234','windows','amd64','Docker','','internal.default.1',0,'online','enable',true,'system','2026-11-23 10:43:47.704','system','2026-11-23 10:43:47.704',0)
2026/11/23 10:43:47 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[0.535ms] [rows:0] SELECT * FROM ops_runner WHERE token = 'internal.default.2' AND deleted = 0 ORDER BY ops_runner.`id` LIMIT 1
2026/11/23 10:43:47 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[1.120ms] [rows:0] INSERT INTO ops_runner (`name`,`desc`,`version`,`hostname`,`ip`,`os`,`arch`,`runtime`,`labels`,`token`,`heartBeat`,`online`,`status`,`isDefault`,`createdBy`,`createdDate`,`editedBy`,`editedDate`,`deleted`) VALUES ('default-runner-2','','','WIN-7BFS6230V0Q','169.254.88.234','windows','amd64','Docker','','internal.default.2',0,'online','enable',true,'system','2026-11-23 10:43:47.717','system','2026-11-23 10:43:47.717',0)
2026/11/23 10:43:47 Error 1054 (42S22): Unknown column 'name' in 'where clause'
[22.301ms] [rows:0] SELECT * FROM ops_scan_rule_migrations WHERE name = 'cppcheck-C' AND deleted = 0 ORDER BY ops_scan_rule_migrations.`name` LIMIT 1
2026/11/23 10:43:54 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[1.044ms] [rows:0] SELECT * FROM ops_runner WHERE token = 'internal.default.1' AND deleted = 0 ORDER BY ops_runner.`id` LIMIT 1
2026/11/23 10:43:54 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[1.072ms] [rows:0] INSERT INTO ops_runner (`name`,`desc`,`version`,`hostname`,`ip`,`os`,`arch`,`runtime`,`labels`,`token`,`heartBeat`,`online`,`status`,`isDefault`,`createdBy`,`createdDate`,`editedBy`,`editedDate`,`deleted`) VALUES ('default-runner-1','','','WIN-7BFS6230V0Q','169.254.88.234','windows','amd64','Docker','','internal.default.1',0,'online','enable',true,'system','2026-11-23 10:43:54.747','system','2026-11-23 10:43:54.747',0)
2026/11/23 10:43:54 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[0.518ms] [rows:0] SELECT * FROM ops_runner WHERE token = 'internal.default.2' AND deleted = 0 ORDER BY ops_runner.`id` LIMIT 1
2026/11/23 10:43:54 Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist
[0.534ms] [rows:0] INSERT INTO ops_runner (`name`,`desc`,`version`,`hostname`,`ip`,`os`,`arch`,`runtime`,`labels`,`token`,`heartBeat`,`online`,`status`,`isDefault`,`createdBy`,`createdDate`,`editedBy`,`editedDate`,`deleted`) VALUES ('default-runner-2','','','WIN-7BFS6230V0Q','169.254.88.234','windows','amd64','Docker','','internal.default.2',0,'online','enable',true,'system','2026-11-23 10:43:54.755','system','2026-11-23 10:43:54.755',0)
2026/11/23 10:43:54 Error 1054 (42S22): Unknown column 'name' in 'where clause'
[2.986ms] [rows:0] SELECT * FROM ops_scan_rule_migrations WHERE name = 'cppcheck-C' AND deleted = 0 ORDER BY ops_scan_rule_migrations.`name` LIMIT 1
system.log
{"level":"INFO","time":"2026-11-23 10:43:47.559","msg":"[Provider] Initializing database","driver":"mysql"}
{"level":"INFO","time":"2026-11-23 10:43:47.6","msg":"[Provider] Database connection established successfully","driver":"mysql"}
{"level":"ERROR","time":"2026-11-23 10:43:47.809","msg":"[Server] Failed to migrate scan rules","error":"failed to migrate rules for plugin cppcheck: Error 1054 (42S22): Unknown column 'name' in 'where clause'"}
{"level":"INFO","time":"2026-11-23 10:43:47.809","msg":"[Provider] Database connections closed","driver":"mysql"}
{"level":"INFO","time":"2026-11-23 10:43:47.809","msg":"[Server] Cleaning up resources..."}
{"level":"INFO","time":"2026-11-23 10:43:54.607","msg":"[Provider] Initializing database","driver":"mysql"}
{"level":"INFO","time":"2026-11-23 10:43:54.624","msg":"[Provider] Database connection established successfully","driver":"mysql"}
{"level":"INFO","time":"2026-11-23 10:43:54.867","msg":"[Server] Cleaning up resources..."}
{"level":"INFO","time":"2026-11-23 10:43:54.867","msg":"[Provider] Database connections closed","driver":"mysql"}
{"level":"ERROR","time":"2026-11-23 10:43:54.867","msg":"[Server] Failed to migrate scan rules","error":"failed to migrate rules for plugin cppcheck: Error 1054 (42S22): Unknown column 'name' in 'where clause'"}
default.log
{"level":"ERROR","time":"2026-11-23 10:43:47.706","msg":"[poller] failed to register default runner, token=internal.default.1","error":"Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist"}
{"level":"ERROR","time":"2026-11-23 10:43:47.718","msg":"[poller] failed to register default runner, token=internal.default.2","error":"Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist"}
{"level":"ERROR","time":"2026-11-23 10:43:54.748","msg":"[poller] failed to register default runner, token=internal.default.1","error":"Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist"}
{"level":"ERROR","time":"2026-11-23 10:43:54.755","msg":"[poller] failed to register default runner, token=internal.default.2","error":"Error 1146 (42S02): Table 'gitfox.ops_runner' doesn't exist"}
禅道版本:禅道开源版 22.7
安装包类型:源码包
操作系统:Windows Server 2008
客户端浏览器:
禅道-阿龙2026-11-23 13:30:50 请问当前禅道使用的哪种安装方式?禅道22.7版本运行环境目前只支持php8.4版本; 1、如果咱们当前是自行源码安装的禅道,需要先将php版本升级到8.4后,才能进行升级,升级步骤参考:https://www.zentao.net/book/zentaopms/461.html?releaseID=26 2、如果禅道旧版本使用的windows一键安装包,升级22.7版本的话,需要先将老版本的数据库和附件备份,安装22.7版本的一键包后,将备份的数据导入后进行升级,操作步骤可以参考:https://www.zentao.net/book/zentaopms/1428.html?releaseID=26 根据报错内容,提示是找不到gitfox使用的ops_开头的相关表,可以详细描述下目前升级的完整操作步骤; 方便的话,可以添加下方客户经理联系方式,或者添加QQ1418096010 邀请您进入技术沟通群方便排查具体问题。 |






精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


