# 使用有效key下载maxmind db失败，但可以在容器内下载DB

**URL:** <https://meta.discourse.org/t/fail-to-download-maxmind-db-with-valid-key-can-download-the-db-from-inside-container/300590>\
**Category:** Bug\
**Tags:** maxmind\
**Created:** [2024年三月22日 21:10 UTC](https://meta.discourse.org/t/fail-to-download-maxmind-db-with-valid-key-can-download-the-db-from-inside-container/300590 "2024-03-22T21:10:47Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年三月26日 14:03 UTC](https://meta.discourse.org/t/fail-to-download-maxmind-db-with-valid-key-can-download-the-db-from-inside-container/300590/13 "2024-03-26T14:03:00Z")

</div>

崩溃的构建日志结束：

```plaintext
正在下载 MaxMindDB...
正在压缩 Javascript 并生成 Source Maps
I, [2024-03-26T13:27:38.305597 #1] INFO -- : 正在终止异步进程
I, [2024-03-26T13:27:38.307312 #1] INFO -- : 正在向 HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42 发送 INT
I, [2024-03-26T13:27:38.307891 #1] INFO -- : 正在向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111 发送 TERM
111:signal-handler (1711459658) 收到 SIGTERM，正在调度关闭...
2024-03-26 13:27:38.307 UTC [42] LOG: 收到快速关机请求
2024-03-26 13:27:38.314 UTC [42] LOG: 正在中止任何活动事务
2024-03-26 13:27:38.321 UTC [42] LOG: 后台工作进程“逻辑复制启动器”(PID 51) 已退出，退出代码为 1
2024-03-26 13:27:38.322 UTC [46] LOG: 正在关闭
111:M 26 Mar 2024 13:27:38.353 # 用户请求关机...
111:M 26 Mar 2024 13:27:38.353 * 正在退出前保存最终 RDB 快照。
2024-03-26 13:27:38.415 UTC [42] LOG: 数据库系统已关闭
111:M 26 Mar 2024 13:27:39.896 * DB 已保存到磁盘
111:M 26 Mar 2024 13:27:39.896 # Redis 现在可以退出了，再见...
失败
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake themes:update assets:precompile' 失败，返回 #&lt;Process::Status: pid 3889 exit 1&gt;
失败位置：/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
使用参数 {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]} 执行失败
引导失败，退出代码为 1
**引导失败** 请向上滚动查找更早的错误消息，可能不止一个。
./discourse-doctor 可能会帮助诊断问题。
fe4eec7726fdbe08aaa2691e806bb17423a8f4eaedb8414397e3097d725e04c7

```

提交：\<[Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/f350cea5d2&gt);

事后补充说明，我没有链接到发生此问题的网站，因为其中一名工作人员[正在测试一个内核 bug](https://amcforum.wiki/t/why-was-amc-down/4940) 在同一服务器上的另一个容器中，并意外导致整个服务器崩溃，因此链接到网站根本无济于事。

---

_[View the full topic](https://meta.discourse.org/t/fail-to-download-maxmind-db-with-valid-key-can-download-the-db-from-inside-container/300590)._
