Streamlit in Snowflake のトラブルシューティング¶
次のシナリオは、 Streamlit in Snowflake を操作する際に発生する可能性のある問題のトラブルシューティングに役立ちます。
You can't connect to the Snowflake backend¶
In some cases, browser extensions can make local network access (LNA) requests as part of normal operation. For example, a security extension may detect Streamlit in Snowflake's cross-origin traffic and then make an LNA request. Chrome 142 introduced mandatory LNA restrictions. Because you can't configure LNA at the extension level, you must either disable the extension or allow LNA for Snowsight. For more information about Chrome's LNA restrictions, see New permission prompt for Local Network Access in the Chrome for Developers blog.
エラー |
Unable to connect to the Snowflake backend. |
|---|---|
原因 |
A browser extension attempted to make a local network access (LNA) request that was blocked by Chrome's LNA restrictions. |
解決策 |
Disable the browser extension or allow LNA for Snowsight. |
Contact Snowflake support if the issue persists after performing the following steps:
Verify you're on the latest Snowsight release.
Verify that the "Local network access" permission is enabled for Snowsight. If you use an enterprise managed browser, contact your IT administrator.
Verify that load failures continue after temporarily disabling extensions.
Verify that load failures continue after disabling the Chrome flag via
chrome://flags#local-network-access-check.
You can't load the Streamlit app¶
Streamlit in Snowflake で実行中の各Streamlitアプリは、固有のサブドメインを使用します。
ネットワーク(コンテンツフィルターシステムを含む)で、 *.snowflake.app と *.snowflake.com が許可リストに登録され、Snowflake に接続できることを確認してください。これらのドメインが許可リストに登録されている場合、アプリは何の制限もなくSnowflakeサーバーと通信することができます。しかし、下にあるサブパスをネットワークポリシーがブロックしているため、これらのドメインを追加しても十分でない場合があります。このような場合は、ネットワーク管理者に連絡してください。
さらに、Snowflakeバックエンドへの接続に問題が発生しないように、ネットワーク構成で WebSockets がブロックされていないことを確認してください。
エラー |
Could not reload streamlit files.
Error: 092806 (P0002): The specified Streamlit was not found.
|
|---|---|
原因 |
Snowflake WebSocket 接続がアプリケーションに関連付けられたエンドポイントに到達できません。 |
解決策 |
組織のファイアウォール構成の許可リストに *.snowflake.app を追加します。 |
You can't see your data or change your database¶
Streamlitアプリはオーナー権限で実行されるため、自分のデータを見たり、データベース、ウェアハウス、ロールを変更したりすることはできないかもしれません。Streamlitアプリでは、呼び出し元が現在使用しているデータベースとスキーマではなく、 Streamlit in Snowflake アプリが作成されたデータベースとスキーマを使用します。
詳細については、 所有者の権利と Streamlit in Snowflake アプリの理解 をご参照ください。
Streamlit library feature doesn't work¶
Streamlit in Snowflake でサポートされている Streamlit ライブラリのバージョンと機能を使用してください。詳細については、 サポートされているStreamlitライブラリのバージョン および サポートされていないStreamlit機能 をご参照ください。
オープンソース Streamlit ライブラリの機能に関する質問は、 Streamlit Community Forum をご覧ください。