【问题标题】:Shiny - My Redshift Database Won't Connect Once PublishedShiny - 我的 Redshift 数据库一旦发布就无法连接
【发布时间】:2018-12-27 21:31:04
【问题描述】:

我的 Shiny 应用程序在本地连接到我的 Redshift 实例,但是当我将应用程序发布到 shinyapps.io 后尝试运行时出现以下错误

Warning: Error in connection_create: could not connect to server: 
Connection timed out

Is the server running on host "redshift.bi.tmmp.io" (23.23.70.97) 
and accepting TCP/IP connections on port 5439?

在线发布后如何允许连接通过?

【问题讨论】:

    标签: r amazon-web-services shiny amazon-redshift


    【解决方案1】:

    超时通常表示应用程序无法连接到服务器(与服务器拒绝连接相反)。

    您应该首先检查与 Redshift 实例关联的安全组,以确认它将接受来自应用程序的传入连接。

    最好的配置是:

    • 与应用程序实例相关联的应用程序实例 (App-SG) 上的安全组
    • Redshift 实例 (DB-SG) 上的安全组,允许来自与 Redshift 实例关联的App-SG 的入站 Redshift(端口 5439)连接

    即Redshift安全组指的是应用安全组。

    【讨论】:

      猜你喜欢
      • 2013-11-19
      • 1970-01-01
      • 2018-11-05
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 1970-01-01
      • 1970-01-01
      • 2023-01-15
      相关资源
      最近更新 更多