https://prefect.io logo
f

flavienbwk

04/26/2021, 1:03 PM
Hi, I try to use the web UI locally but I always get redirected to
<http://universal.prefect.io|universal.prefect.io>
. Does anyone know what's the problem ? Thanks. ps: I've already cleared my cookies (and tried with Chrome incognito mode). ps: I'm using the Docker image
"prefecthq/ui:2021-04-23"
j

Jenny

04/26/2021, 1:10 PM
Hi @flavienbwk - I’m taking a look at this for you. Can I check that when you say “use the web UI locally” you are running ‘prefect server start’?
f

flavienbwk

04/26/2021, 1:15 PM
Hi @Jenny. Thanks. No I have needs to start my instance without
prefect server start
. So I am using my own compose configuration : https://pastebin.com/PBnmHJLa
Then I've run :
Copy code
prefect backend server
prefect server create-tenant --name default --slug default
It seems like its redirecting in loop and ends up with redirecting to
<http://universal.prefect.io|universal.prefect.io>
With error message :
Error 400
Your request resulted in an error. The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://prefect-admin.oktapreview.com/admin/app/oidc_client/instance/0oa9jg1pkaNp0GV6t1d6#tab-general
Example of queries for redirection :
j

Jenny

04/26/2021, 3:02 PM
Hi @flavienbwk - from what you've sent I'm not sure how but it looks like your VUE_APP_BACKEND environment variable is somehow set to CLOUD. Can you set VUE_APP_BACKEND=SERVER and see if that fixes it? Thanks for raising this - it's highlighted that the fix we put in place for toggling between Cloud and Server still needs some work.
f

flavienbwk

04/26/2021, 5:39 PM
@Jenny if this is to be set for the
ui
container, the same problem occurs with or without 😕
j

Jenny

04/26/2021, 6:13 PM
Thanks for the update @flavienbwk - looking into this a bit further. Two more questions - do you ever see the cloud login screen or is it always the 400 error one? What uri are you using for your ui?
f

flavienbwk

04/26/2021, 6:16 PM
No. I get login screen only when clicking on "go to homepage"
j

Jenny

04/26/2021, 6:21 PM
Thanks.
f

flavienbwk

04/26/2021, 6:22 PM
For the other question : I use
<http://localhost:8081>
as URI for the UI
@Jenny the problem is gone on
prefecthq/ui:2021-02-23
(was using
:master
or
:latest
)
j

Jenny

04/26/2021, 9:31 PM
Ah - if it's ok for you, using an older version would be one way around it. Looks like this is an issue that was created when we made some updates to our auth in Cloud and the UI struggles with the non-standard URI (i.e. it's not localhost: 8080). I'll create a ticket for us to find a more long-term solution.
👍 1
@Marvin open "Server UI is blocked with a 400 error" in UI
j

Joël Luijmes

04/28/2021, 9:41 AM
Since today we’re seeing the same error. We are running prefect in kubernetes (with the helm chart). Interestingly we haven’t touched anything, no updates, no new registrations - it happend out of the blue this morning.
Downgrading to 2021-04-15 solved the issue for me: https://github.com/PrefectHQ/ui/releases/tag/2021-04-15
j

Jenny

04/29/2021, 3:27 PM
Thanks @Joël Luijmes - this was a useful update!
5 Views