已解决 docker 镜像版本从12.3升级到18.7,'ERROR: SQLSTATE...', '/apps/zentao/fr...', 2988, Array)

参考本此文档进行升级https://www.zentao.net/book/zentaopmshelp/42.html#3

容器日志报错提示:

[Mon Oct 30 16:51:44.733930 2023] [core:notice] [pid 398] AH00094: Command line: '/opt/zbox/run/apache/httpd -D FOREGROUND'
ERROR 1146 (42S02) at line 1: Table 'zentao.zt_pipeline' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'zentao.zt_pipeline' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'zentao.zt_pipeline' doesn't exist
ls: cannot access '/apps/zentao/config/ext.*': No such file or directory
cp: cannot stat '/zentao*.php': No such file or directory
cp: cannot stat '/ipd.php': No such file or directory
 16:51:44.80 INFO  ==> Zentao upgrade is complete.

看了升级前数据库也没有zentao.zt_pipeline这个表,浏览器访问


麻烦开发老师有时间给看下,期待回复

日志提示:

/apps/zentao/tmp/log# tail -f php.20231030.log.php
#0 /apps/zentao/framework/helper.class.php(323): EndResponseException::create('')
#1 /apps/zentao/framework/base/router.class.php(3098): helper::end()
#2 /apps/zentao/framework/router.class.php(350): baseRouter->saveError(256, 'ERROR: SQLSTATE...', '/apps/zentao/fr...', 2988)
#3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', '/apps/zentao/fr...', 2988, Array)
#4 /apps/zentao/framework/base/router.class.php(2988): trigger_error('ERROR: SQLSTATE...', 256)
#5 /apps/zentao/framework/base/router.class.php(2915): baseRouter->triggerError('SQLSTATE[HY000]...', '/apps/zentao/fr...', 2823, true)
#6 /apps/zentao/framework/base/router.class.php(2823): baseRouter->connectByPDO(Object(stdClass), 'MASTER')
#7 /apps/zentao/framework/base/router.class.php(424): baseRouter->connectDB()
#8 /apps/zentao/framework/base/router.class.php(453): baseRouter->__construct('pms', '/apps/zentao')
#9 /apps/zentao/www/index.ph in /apps/zentao/framework/base/router.class.php on line 3419 when visiting

浏览器截图

禅道版本 18.7 源码包
操作系统 CentOS
客户端浏览器 Chrome

提问者: 蝼蚁 悬赏:5 日期: 2023-10-30 17:08:49 答案:1 点击:174

获取技术支持

QQ: 电话:
设置备注
答案列表
2023/10/30
数据库先还原到12.3版本的数据库 , 12.3先升级到12.5.3 版本,升级务必做好数据备份

升级到12.5.3版本后再备份下,升级18.8版本看看

如果还有问题,添加我们的技术qq1746749398 邀请到技术交流群看看问题