flavienbwk

    flavienbwk

    1 year ago
    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"
    Jenny

    Jenny

    1 year ago
    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’?
    flavienbwk

    flavienbwk

    1 year ago
    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 :
    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 :
    Jenny

    Jenny

    1 year ago
    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.
    flavienbwk

    flavienbwk

    1 year ago
    @Jenny if this is to be set for the
    ui
    container, the same problem occurs with or without 😕
    Jenny

    Jenny

    1 year ago
    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?
    flavienbwk

    flavienbwk

    1 year ago
    No. I get login screen only when clicking on "go to homepage"
    Jenny

    Jenny

    1 year ago
    Thanks.
    flavienbwk

    flavienbwk

    1 year ago
    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
    )
    Jenny

    Jenny

    1 year ago
    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.
    @Marvin open "Server UI is blocked with a 400 error" in UI
    Marvin

    Marvin

    1 year ago
    Joël Luijmes

    Joël Luijmes

    1 year ago
    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
    Jenny

    Jenny

    1 year ago
    Thanks @Joël Luijmes - this was a useful update!