繁体   English   中英

闪亮-发布后,我的Redshift数据库将无法连接

[英]Shiny - My Redshift Database Won't Connect Once Published

我的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?

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

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

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

最佳配置是:

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

即,Redshift安全组是指应用程序安全组。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM