主机论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 77|回复: 3

升级umami出错了,大佬看看怎么解决?

[复制链接]

131

主题

797

回帖

2567

积分

金牌会员

Rank: 6Rank: 6

积分
2567
发表于 2024-12-15 01:37:33 | 显示全部楼层 |阅读模式
  1. # docker compose up --force-recreate
  2. [+] Running 2/2
  3. ✔ Container umami-umami-1  Recreated                                                         0.1s
  4. ✔ Container umami-db-1     Recreated                                                         0.1s
  5. Attaching to db-1, umami-1
  6. db-1     |
  7. db-1     | PostgreSQL Database directory appears to contain a database; Skipping initialization
  8. db-1     |
  9. db-1     | 2024-12-14 17:35:35.818 UTC [1] LOG:  starting PostgreSQL 15.10 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
  10. db-1     | 2024-12-14 17:35:35.818 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
  11. db-1     | 2024-12-14 17:35:35.818 UTC [1] LOG:  listening on IPv6 address "::", port 5432
  12. db-1     | 2024-12-14 17:35:35.823 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  13. db-1     | 2024-12-14 17:35:35.829 UTC [29] LOG:  database system was shut down at 2024-12-14 17:26:40 UTC
  14. db-1     | 2024-12-14 17:35:35.836 UTC [1] LOG:  database system is ready to accept connections
  15. umami-1  | yarn run v1.22.22
  16. umami-1  | $ npm-run-all check-db update-tracker start-server
  17. umami-1  | $ node scripts/check-db.js
  18. umami-1  | ✓ DATABASE_URL is defined.
  19. umami-1  | ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x".
  20. umami-1  |
  21. umami-1  | This happened because Prisma Client was generated for "linux-musl-arm64-openssl-1.1.x", but the actual deployment required "linux-musl-arm64-openssl-3.0.x".
  22. umami-1  | Add "linux-musl-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
  23. umami-1  |
  24. umami-1  | generator client {
  25. umami-1  |   provider      = "prisma-client-js"
  26. umami-1  |   binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
  27. umami-1  | }
  28. umami-1  |
  29. umami-1  | The following locations have been searched:
  30. umami-1  |   /app/node_modules/.prisma/client
  31. umami-1  |   /app/node_modules/@prisma/client
  32. umami-1  |   /tmp/prisma-engines
  33. umami-1  |   /app/prisma
  34. umami-1  | error Command failed with exit code 1.
  35. umami-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  36. umami-1  | ERROR: "check-db" exited with 1.
  37. umami-1  | error Command failed with exit code 1.
  38. umami-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  39. umami-1 exited with code 0
  40. umami-1  | yarn run v1.22.22
  41. umami-1  | $ npm-run-all check-db update-tracker start-server
  42. umami-1  | $ node scripts/check-db.js
  43. umami-1  | ✓ DATABASE_URL is defined.
  44. umami-1  | ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x".
  45. umami-1  |
  46. umami-1  | This happened because Prisma Client was generated for "linux-musl-arm64-openssl-1.1.x", but the actual deployment required "linux-musl-arm64-openssl-3.0.x".
  47. umami-1  | Add "linux-musl-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
  48. umami-1  |
  49. umami-1  | generator client {
  50. umami-1  |   provider      = "prisma-client-js"
  51. umami-1  |   binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
  52. umami-1  | }
  53. umami-1  |
  54. umami-1  | The following locations have been searched:
  55. umami-1  |   /app/node_modules/.prisma/client
  56. umami-1  |   /app/node_modules/@prisma/client
  57. umami-1  |   /tmp/prisma-engines
  58. umami-1  |   /app/prisma
  59. umami-1  | error Command failed with exit code 1.
  60. umami-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  61. umami-1  | ERROR: "check-db" exited with 1.
  62. umami-1  | error Command failed with exit code 1.
  63. umami-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  64. umami-1 exited with code 1
  65. umami-1  | yarn run v1.22.22
  66. umami-1  | $ npm-run-all check-db update-tracker start-server
  67. Gracefully stopping... (press Ctrl+C again to force)
  68. [+] Stopping 2/2
  69. ✔ Container umami-umami-1  Stopped                                                           0.2s
  70. ✔ Container umami-db-1     Stopped                           
复制代码



升级umami经常出错,这次更悲剧。
回复

使用道具 举报

240

主题

1612

回帖

4914

积分

论坛元老

Rank: 8Rank: 8

积分
4914
发表于 2024-12-15 02:30:25 | 显示全部楼层
我的自动更新挂了,回滚 2.14 版本,再也不升级了。
回复

使用道具 举报

25

主题

1365

回帖

3307

积分

论坛元老

Rank: 8Rank: 8

积分
3307
发表于 2024-12-15 10:07:21 | 显示全部楼层
吓得我不敢升级了
回复

使用道具 举报

16

主题

2821

回帖

6884

积分

论坛元老

Rank: 8Rank: 8

积分
6884
发表于 2024-12-15 10:33:47 | 显示全部楼层
你这是arm版吧?建议慢一个节拍升级,我amd的都不敢立即升,等一段时间再说
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|主机论坛

GMT+8, 2025-1-22 08:08 , Processed in 0.070629 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表