1Panel升级Umami失败

1Panel 版本:v1.10.21-lts
运行方式:安装包运行
浏览器版本:Chrome 122.0.6261.129

通过应用商店更新Umami App一直失败,后台日志:


[2024-11-20 11:15:06] [INFO] [xpack] init db successfully
[2024-11-20 11:15:06] [INFO] [xpack] init alert db successfully
[2024-11-20 11:15:06] [INFO] [xpack] migration run successfully
[2024-11-20 11:15:06] [INFO] Starting synchronization with App Store...
[2024-11-20 11:15:06] [INFO] listen at http://0.0.0.0:26040 [tcp4]
[2024-11-20 11:15:06] [INFO] [AppStore] download file from https://apps-assets.fit2cloud.com/stable/1panel.json.zip
[2024-11-20 11:15:07] [INFO] Starting synchronization of application details...
[2024-11-20 11:15:20] [INFO] Synchronization of application details Success
[2024-11-20 11:15:20] [INFO] Synchronization with the App Store was successful!
[2024-11-20 11:18:49] [INFO] 开始升级应用 umami
[2024-11-20 11:18:49] [DEBUG] tar --warning=no-file-changed --ignore-failed-read --exclude-from=<(find /opt/1panel/apps/umami/umami -type s -printf '%P' | sed 's|^|umami/|') -zcf /opt/1panel/backup/app/umami/umami/upgrade_backup_umami_20241120111849fy34q/app.tar.gz -C /opt/1panel/apps/umami umami
[2024-11-20 11:18:49] [INFO] start to mysqldump | gzip > /opt/1panel/backup/app/umami/umami/upgrade_backup_umami_20241120111849fy34q/umami.sql.gz.gzip
[2024-11-20 11:18:50] [DEBUG] tar --warning=no-file-changed --ignore-failed-read --exclude-from=<(find /opt/1panel/backup/app/umami/umami/upgrade_backup_umami_20241120111849fy34q -type s -printf '%P' | sed 's|^|upgrade_backup_umami_20241120111849fy34q/|') -zcf /opt/1panel/backup/app/umami/umami/upgrade_backup_umami_20241120111849fy34q.tar.gz -C /opt/1panel/backup/app/umami/umami upgrade_backup_umami_20241120111849fy34q
[2024-11-20 11:18:50] [INFO] download app[Umami] from https://apps-assets.fit2cloud.com/stable/1panel/umami/2.13.2/umami-2.13.2.tar.gztime="2024-11-20T11:18:50Z" level=warning msg="The \"PANEL_DB_TYPE\" variable is not set. Defaulting to a blank string."time="2024-11-20T11:18:50Z" level=warning msg="The \"PANEL_DB_TYPE\" variable is not set. Defaulting to a blank string."time="2024-11-20T11:18:50Z" level=warning msg="The \"PANEL_DB_TYPE\" variable is not set. Defaulting to a blank string."
[2024-11-20 11:18:50] [INFO] 开始拉取镜像 ghcr.io/umami-software/umami:-v2.13.2
[2024-11-20 11:18:50] [INFO] 应用 umami 升级失败 stderr: invalid reference format

此问题在很久之前的1Panel就已经出现,到目前的v1.10.21-lts依然存在,有两台网络环境不同的机器,均存在此问题。

应该是这里没有获取到数据库类型,导致的问题,真实的镜像标签是有数据库类型的,如下图:

这里正好报了这个 PANEL_DB_TYPE 变量没有设置。
umamidocker-compose.yml 中是需要这个变量的:

你看看你自己的数据库类型是哪一个,可以把这个变量先直接替换成对应的字符串,应该可以解决这个问题。

感谢指出问题,在.env中添加一行重试更新就好了:

PANEL_DB_TYPE="mysql"

是的,在.env中添加应该是一样效果。很高兴能帮到你 :saluting_face: