docker - 在 Mint 20 上更新 Docker Azerothcore 最新版本的问题
问题描述
我在 Docker 容器中运行 Azerothcore-WOLTK。我想更新它(它在 2019 年 12 月被克隆回来)。在这里关注我的问题:如何通过对代码(脚本)、模块和数据库(添加的任务、供应商、项目)的自定义来正确更新 Docker Azerothcore
一切都很顺利并且被安全编译。该数据库还使用 bash apps/db_assembler/db_assembler.sh 进行了更新。脚本。
但是,使用 docker-compose up 会出现一些问题:
ac-worldserver_1 | /azeroth-server/bin/worldserver: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
ac-database_1 | 2020-09-11 22:34:50+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.
ac-authserver_1 | /azeroth-server/bin/authserver: error while loading shared libraries: libmysqlclient.so.21: cannot open shared object file: No such file or directory
Exception in thread Thread-10:
Traceback (most recent call last):
File "site-packages/docker/api/client.py", line 246, in _raise_for_status
File "site-packages/requests/models.py", line 940, in raise_for_status
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: http+docker://localhost/v1.25/containers/695d16e8329be5e8771606aabaec4754a63521ef14c37f8ef92f50e55c34dfc7/attach?logs=0&stdout=1&stderr=1&stream=1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "threading.py", line 864, in run
File "compose/cli/log_printer.py", line 233, in watch_events
File "compose/container.py", line 215, in attach_log_stream
File "compose/container.py", line 307, in attach
File "site-packages/docker/utils/decorators.py", line 19, in wrapped
File "site-packages/docker/api/container.py", line 57, in attach
File "site-packages/docker/api/client.py", line 385, in _read_from_socket
File "site-packages/docker/api/client.py", line 296, in _get_raw_response_socket
File "site-packages/docker/api/client.py", line 248, in _raise_for_status
File "site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
docker.errors.APIError: 409 Client Error: Conflict ("b'container 695d16e8329be5e8771606aabaec4754a63521ef14c37f8ef92f50e55c34dfc7 is restarting, wait until the container is running'")
虽然我可以从我的 Windows 机器上使用 HeidiSQL 访问数据库(那里的一切看起来都很好),但实际的 worldserver 和 authserver 似乎失败了,我在那里得到了一个退出代码。
我检查了 libmysqlclient 和 libncurses,并且都安装了:
libncurses6 is already the newest version (6.2-0ubuntu2).
libmysqlclient21 is already the newest version (8.0.21-0ubuntu0.20.04.4).
我尝试了几次以下操作:
docker-compose down
./bin/acore-docker-remove-build-cache
./bin/acore-docker-build
docker-compose up
但结果并没有改变。任何指针?
请看下面我的 docker 和 docker-compose 版本:
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.27.1, build 509cfb99
感谢您的时间 :)
解决方案
看起来 AzerothCore 的最新版本与 Linux Mint 19.2 或 Linux Mint 20 都不兼容。
我尝试了一切,包括从源 github 擦除和重新安装,问题总是一样的。
我确实首先在 Mint 19.2 上尝试过(在升级到 20 之前希望它能解决它)并且最新版本根本不起作用。
从我在 2019 年 12 月安装的版本恢复备份是可行的。
此时,从 2019 年 12 月到现在打破了对 Mint 19.2 / 20 的支持,AC 代码发生了一些变化。经过数十小时的尝试,我没有其他结论可以得出。
对于任何可能遇到我的问题的人:如果您有 mint 19.2/20,请尝试从 AzerothCore github 安装 2019 年 12 月版本。那应该行得通。
o/
推荐阅读
- python - 使用 Keras 的模型类将 Tensorflow 1.x 代码迁移到 Tensorflow 2.x
- java - 获取二维数组中正方形的平均值
- graphql - 从 Prisma2 的辅助表中获取数据
- javascript - 谷歌折线图日期格式
- javascript - 如何记录仅在 .call() 中使用的函数
- jquery - 将两个带有输入字段的数组合并在一起
- android - 在webview android中缓存一组网页
- sql-server - 使一列的数据类型成为另一列的类型?
- opengl - 使用 SharpGL 绘制光标位置的延迟
- flutter - 在饼图颤动中更改值时出现问题