You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Snowflake CLI执行snow git execute命令时遭遇250001连接失败错误的求助

Snowflake CLI执行snow git execute命令时遭遇250001连接失败错误的求助

我最近在尝试通过Snowflake CLI执行GitHub远程仓库里的SQL脚本,用的命令是:

snow git execute @advanced_data_engineering_snowflake/branches/main/forums-analyes/pipeline/data/load_forums_data.sql -D "env='STAGING'" --database=COURSE_REPO --schema=PUBLIC

最开始遇到了「Connection default is not configured」的错误,于是我调整了两个配置文件:

  1. config.toml中设置了默认连接名称:
[cli]
ignore_new_version_warning = false

[cli.logs]
save_logs = true
path = "C:\\Users\\larry.cueva\\.snowflake\\logs"
level = "info"
default_connection_name = "data_eng_devops_with_snowflake"
  1. connections.toml中配置了对应连接的详细信息:
[data_eng_devops_with_snowflake]
account = "BAN***S-BAB***58"
user = "myname"
authenticator = "snowflake"
password = "***"
role = "ACCOUNTADMIN"

调整后第一个错误消失了,但重新执行原命令时,又碰到了新的连接失败错误:

Invalid connection configuration. 250001: 250001: Could not connect to Snowflake backend after 2 attempt(s).Aborting Verify that the hostnames and port numbers in SYSTEM$ALLOWLIST are added to your firewall's allowed list.

我先后尝试了以下排查操作,但问题依旧:

  • 执行snow connections test测试所有连接
  • 执行snow connection test --connection data_eng_devops_with_snowflake单独测试目标连接
  • 清理了~/.snowflake/目录下的缓存文件
  • 执行snow connection list能正常看到配置的连接项,但测试始终失败

我确认过account参数用的是Snowflake组织名+账户名的正确格式,现在已经卡了3小时,实在摸不着头脑,有没有大佬能帮忙分析下问题出在哪?

另外补充:我检查过本地防火墙设置,暂时没发现有拦截Snowflake相关请求的规则,也确认过Snowflake账户的白名单配置,看起来是没问题的。

火山引擎 最新活动