# S3问题：由于缺少密钥访问，无法建立到169.254.169.254的TCP连接

**URL:** <https://meta.discourse.org/t/trouble-with-s3-failed-to-open-tcp-connection-to-169-254-169-254-due-to-missing-secret-access-key/358402>\
**Category:** Self-hosting\
**Created:** [2025年三月21日 23:58 UTC](https://meta.discourse.org/t/trouble-with-s3-failed-to-open-tcp-connection-to-169-254-169-254-due-to-missing-secret-access-key/358402 "2025-03-21T23:58:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2025年三月21日 23:58 UTC](https://meta.discourse.org/t/trouble-with-s3-failed-to-open-tcp-connection-to-169-254-169-254-due-to-missing-secret-access-key/358402/1 "2025-03-21T23:58:05Z")

</div>

这是一个标准的安装。这些凭据在旧服务器上可用，并且在使用 `s3cmd` 时在新服务器上也能正常工作，但当我尝试使用 `discourse restore` 获取备份列表时，我得到了：

```plaintext
Error retrieving instance profile credentials: Failed to open TCP connection to 169.254.169.254:80 (execution expired)

```

这是一个真正的 AWS 存储桶。Discourse 出现问题似乎说不通，但我想到的其他任何原因也说不通。

这是我尝试迁移到运行 Ubuntu 24.04 的新服务器的第一个自托管论坛之一。

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-s3-failed-to-open-tcp-connection-to-169-254-169-254-due-to-missing-secret-access-key/358402)._
