Troubleshooting Prefect Cloud¶
This page provides tips that may be helpful if you run into problems using Prefect Cloud.
Prefect Cloud and proxies¶
Proxies intermediate network requests between a server and a client.
To communicate with Prefect Cloud, the Prefect client library makes HTTPS requests. These requests are made using the
httpx Python library.
httpx respects accepted proxy environment variables, so the Prefect client is able to communicate through proxies.
To enable communication via proxies, simply set the
SSL_CERT_FILE environment variables as appropriate in your execution environment and things should “just work.”
See the Using Prefect Cloud with proxies topic in Prefect Discourse for examples of proxy configuration.
Prefect Cloud access via API¶
If the Prefect Cloud API key, environment variable settings, or account login for your execution environment are not configured correctly, you may experience errors or unexexpected flow run results when using Prefect CLI commands, running flows, or observing flow run results in Prefect Cloud.
prefect config view CLI command to make sure your execution environment is correctly configured to access Prefect Cloud.
$ prefect config view PREFECT_PROFILE='cloud' PREFECT_API_KEY='pnu_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' (from profile) PREFECT_API_URL='https://api-beta.prefect.io/api/accounts/...' (from profile)
PREFECT_API_URL is configured to use
PREFECT_API_KEY is configured to use a valid API key.
You can use the
prefect cloud workspace ls CLI command to view or set the active workspace.
$ prefect cloud workspace ls ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Available Workspaces: ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ g-gadflow/g-workspace │ │ * prefect/workinonit │ └─────────────────────────┘ * active workspace
You can also check that the account and workspace IDs specified in the URL for
PREFECT_API_URL match those shown in the URL bar for your Prefect Cloud workspace.
Prefect Cloud login errors¶
If you're having difficulty logging in to Prefect Cloud, the following troubleshooting steps may resolve the issue, or will provide more information when sharing your case to the support channel.
- Are you logging into Prefect Cloud 2? Prefect Cloud 1 and Prefect Cloud 2 use separate accounts. Make sure to use the right Prefect Cloud 2 URL: https://app.prefect.cloud/
- Do you already have a Prefect Cloud account? If you’re having difficulty accepting an invitation, try creating an account first using the email associated with the invitation, then accept the invitation.
- Are you using a single sign-on (SSO) provider (Google or Microsoft) or just using a username and password login?
- Did you utilize the “having trouble/forgot password” link on the login page? If so, did you receive the password reset email? Occasionally the password reset email can get filtered into your spam folder.
Other tips to help with login difficulties:
- Hard refresh your browser with Cmd+Shift+R.
- Try in a different browser. We actively test against the following browsers:
- Clear recent browser history/cookies
This error may be caused by a bad service worker.
To resolve the problem, we recommend unregistering service workers.
In your browser, start by opening the developer console.
- In Chrome: View > Developer > Developer Tools
- In Firefox: Tools > Browser Tools > Web Developer Tools
Once the developer console is open:
- Go to the Application tab in the developer console.
- Select Storage.
- Make sure Unregister service workers is selected.
- Select Clear site data, then hard refresh the page with CMD+Shift+R (CTRL+Shift+R on Windows).
See the Login to Prefect Cloud fails... topic in Prefect Discourse for a video demonstrating these steps.
None of this worked?
Email us at email@example.com and provide answers to the questions above in your email to make it faster to troubleshoot and unblock you. Make sure you add the email address with which you were trying to log in, your Prefect Cloud account name, and, if applicable, the organization to which it belongs.