Streamlit in Snowflake のトラブルシューティング

次のシナリオは、 Streamlit in Snowflake を操作する際に発生する可能性のある問題のトラブルシューティングに役立ちます。

Snowflakeのバックエンドに接続できない

場合によっては、ブラウザー拡張機能は通常の操作の一環としてローカルネットワーク(LNA)リクエストを行うことができます。たとえば、セキュリティ拡張機能は Streamlit in Snowflake のクロスオリジントラフィックを検出し、LNA リクエストを行う場合があります。Chrome 142 では必須の LNA 制限が導入されました。拡張機能レベルで LNA を構成することはできないため、拡張機能を無効にするか、Snowsight に対して LNA を許可する必要があります。Chrome の LNA 制限の詳細については、Chrome for Developers ブログの`ローカルネットワークアクセスの新しい権限プロンプト<https://developer.chrome.com/blog/local-network-access>`_をご覧ください。

エラー

Snowflakeのバックエンドに接続できません。

原因

ブラウザー拡張機能がローカルネットワークアクセス(LNA)リクエストを行おうとしましたが、Chrome の LNA 制限によってブロックされました。

解決策

ブラウザー拡張機能を無効にするか、Snowsight の LNA を許可します。

次の手順を実行した後も問題が解決しない場合は、Snowflakeサポートにお問い合わせください。

  • 最新のSnowsightリリースを使用していることを確認してください。

  • Snowsight に対して「ローカルネットワークアクセス」権限が有効になっていることを確認してください。エンタープライズが管理するブラウザーを使用している場合は、IT 管理に問い合わせてください。

  • 拡張機能を一時的に無効にした後も、ロード失敗が継続することを確認します。

  • chrome://flags#local-network-access-check 経由でChromeフラグを無効にした後も、ロード失敗が継続することを確認します。

You can't load the Streamlit app

Streamlit in Snowflake で実行中の各Streamlitアプリは、固有のサブドメインを使用します。

Ensure that *.snowflake.app and *.snowflake.com are on the allowlist in your network (including content filtering systems), and can connect to Snowflake. For Streamlit apps using container runtimes, also add *.snowflakecomputing.app to the allowlist. When these domains are on the allowlist, your apps can communicate with Snowflake servers without any restrictions. However, in some cases adding these domains may not be sufficient due to network policies blocking subpaths under them. If this occurs, contact your network administrator.

さらに、Snowflakeバックエンドへの接続に問題が発生しないように、ネットワーク構成で WebSockets がブロックされていないことを確認してください。

エラー

Could not reload streamlit files.
Error: 092806 (P0002): The specified Streamlit was not found.

原因

Snowflake WebSocket 接続がアプリケーションに関連付けられたエンドポイントに到達できません。

解決策

Add *.snowflake.app to the allowlist on the organization's firewall configuration. For Streamlit apps using container runtimes, also add *.snowflakecomputing.app to the allowlist.

You can't see your data or change your database

Streamlitアプリはオーナー権限で実行されるため、自分のデータを見たり、データベース、ウェアハウス、ロールを変更したりすることはできないかもしれません。Streamlitアプリでは、呼び出し元が現在使用しているデータベースとスキーマではなく、 Streamlit in Snowflake アプリが作成されたデータベースとスキーマを使用します。

For more information, see 所有者の権利と Streamlit in Snowflake アプリの理解.

Streamlit library feature doesn't work

Ensure that the Streamlit library version and feature that you use are supported by Streamlit in Snowflake. For more information, see ウェアハウスランタイムでサポートされているStreamlitライブラリのバージョン and サポートされていないStreamlit機能.

オープンソース Streamlit ライブラリの機能に関する質問は、 Streamlit Community Forum をご覧ください。