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 커뮤니티 포럼 섹션을 참조하십시오.