amazon-ec2 - 无法命中来自 ec2 实例的 shopify 请求

标签 amazon-ec2 shopify amazon-elastic-beanstalk

直到昨天/今天午夜,一切都运行良好。但是今天我们无法从位于孟买 (ap-south-1) 的 ec2 实例访问 shopify REST api。 dns 正确解析到 shopify 商店:

[ec2-user@ip-172-31-12-194 ~]$ dig turms.myshopify.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.58.amzn1 <<>> turms.myshopify.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52296
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;turms.myshopify.com.       IN  A

;; ANSWER SECTION:
turms.myshopify.com.    30  IN  CNAME   shops.myshopify.com.
shops.myshopify.com.    8   IN  A   23.227.63.64

;; Query time: 0 msec
;; SERVER: 172.31.0.2#53(172.31.0.2)
;; WHEN: Sat Jun  1 06:13:17 2019
;; MSG SIZE  rcvd: 73

购买任何 REST api 都行不通:

[ec2-user@ip-172-31-12-194 ~]$ curl -vX GET   https://turms.myshopify.com/admin/api/2019-04/orders/metafieldId/metafields.json   -H 'Accept: */*'   -H 'Authorization: Basic Auth'
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying 23.227.63.64...
* TCP_NODELAY set
* connect to 23.227.63.64 port 443 failed: Connection timed out
* Failed to connect to turms.myshopify.com port 443: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to turms.myshopify.com port 443: Connection timed out

为什么从 ec2 实例内部调用 shopify 失败?到目前为止,重启服务器、刷新缓存和启动新机器都没有给我任何结果。感谢您的帮助。

更新: 美国东部实例中不存在此问题。因此,我们创建了一个代理实例来通过代理服务器路由来 self 们应用程序的 shopify 调用。这不是一个长期的解决方案,我们仍在寻找答案。

最佳答案

我仍然不知道问题出在哪里,但这是来自 Shopify 的官方通讯:

This is to let you know that early morning today there was a connectivity issue across Shopify's platform and this email is to inform you that your stores have been recovered, we understand that situations like this impact you, your business and your teams. The internet-wide network outage affected several services, including Shopify. Once the network has resorted please know our team worked to get your store online as soon as possible. In the coming days, we will work to fully understand how this widespread Internet infrastructure failure affected our platform.

关于amazon-ec2 - 无法命中来自 ec2 实例的 shopify 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56404335/

相关文章:

performance - Amazon 的微型实例(Linux、64 位)适合 MongoDB 服务器吗?

ubuntu - 在 Amazon ec2 Ubuntu 服务器上挂载和外部硬盘驱动器

javascript - 显示默认展开的折叠过滤器

node.js - 为什么 Socket.io 轮询请求不断收到 404 错误?

amazon-web-services - 如何将静态地址分配给 VPC 中的 EBS(beanstalk)?

python - Amazon EC2 Django 静态文件配置

graphql - Shopify GraphQL 查询过滤器部分匹配

ruby - Shopify 液体模板调试

amazon-web-services - 由 elastic beanstalk 生成的 ec2 实例的默认用户名

amazon-elastic-beanstalk - 如何使用弹性 beantalk 设置多个环境(dev\stage\production)?