auth0-deploy-cli icon indicating copy to clipboard operation
auth0-deploy-cli copied to clipboard

Export gets stuck on "info: Retrieving branding data from Auth0" step

Open mhautala opened this issue 1 year ago • 0 comments

Checklist

  • [X] I have looked into the README and have not found a suitable solution or answer.
  • [X] I have looked into the documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have upgraded to the latest version of this tool and the issue still persists.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

When running export the client gets stuck in step "Retrieving branding data from Auth0". We have tested with the latest version of 7.24.2 and the same issue reproduces. Unfortunately no logs or errors can be seen - the export just gets stuck.

Below full log from the deployment client:

[email protected] export npx auth0-deploy-cli export --format=directory --output_folder=exported

2024-10-14T10:18:23.253Z - info: Loading Auth0 Tenant Data
2024-10-14T10:18:23.454Z - info: Retrieving rules data from Auth0
2024-10-14T10:18:23.644Z - info: Retrieving rulesConfigs data from Auth0
2024-10-14T10:18:23.838Z - info: Retrieving hooks data from Auth0
2024-10-14T10:18:24.267Z - info: Retrieving pages data from Auth0
2024-10-14T10:18:24.518Z - info: Retrieving resourceServers data from Auth0
2024-10-14T10:18:24.733Z - info: Retrieving clients data from Auth0
2024-10-14T10:18:24.970Z - info: Retrieving databases data from Auth0
2024-10-14T10:18:25.209Z - info: Reviewing connections for SCIM support. This may take a while...
2024-10-14T10:18:25.210Z - info: Retrieving connections data from Auth0
2024-10-14T10:18:25.441Z - warn: The following tenant flags have not been updated because deemed incompatible with the target tenant: allow_changing_enable_sso, disable_impersonation, new_universal_login_experience_enabled, universal_login, dashboard_new_onboarding, custom_domains_provisioning
      These flags can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.
2024-10-14T10:18:25.441Z - info: Retrieving tenant data from Auth0
2024-10-14T10:18:25.677Z - info: Retrieving emailProvider data from Auth0
2024-10-14T10:18:25.950Z - info: Retrieving emailTemplates data from Auth0
2024-10-14T10:18:26.156Z - info: Retrieving clientGrants data from Auth0
2024-10-14T10:18:26.385Z - info: Retrieving guardianFactors data from Auth0
2024-10-14T10:18:26.670Z - info: Retrieving guardianFactorProviders data from Auth0
2024-10-14T10:18:26.951Z - info: Retrieving guardianFactorTemplates data from Auth0
2024-10-14T10:18:27.156Z - info: Retrieving guardianPolicies data from Auth0
2024-10-14T10:18:27.386Z - info: Retrieving guardianPhoneFactorSelectedProvider data from Auth0
2024-10-14T10:18:27.561Z - info: Retrieving guardianPhoneFactorMessageTypes data from Auth0
2024-10-14T10:18:37.371Z - info: Retrieving roles data from Auth0
2024-10-14T10:18:38.297Z - info: Retrieving branding data from Auth0

A workaround is to remove scope read:tenant_settings from the client. Then deployment does not get stuck but we don't get the tenant.json file in the export.

Some possibly related customized branding related things:

  • We have a custom universal login page template and it is deployed by deploy client. Below image shows the folder structure where under /branding/templates/ we have the universal_login.html and .json files.
image
  • We also have custom themes under themes/theme.json

  • We also have a few customized partials on our page https://auth0.com/docs/customize/login-pages/universal-login/customize-signup-and-login-prompts

Expectation

Export should not get stuck or at least show some meaningful error.

Reproduction

  1. Given I have configured custom universal page template, page themes and partials and my auth0 deployment client app has the read:tenant_settings scope enabled for management api
  2. When I run export
  3. The export gets stuck on step "Retrieving branding data from Auth0"

I understand reproducing this might be difficult. But also when knowing the code it might help narrowing done the configurations that are possibly releated to this. Also we are glad to help on getting more detailed logs on what happens under the hood when the export seems to get stuck if we receive further instructions on how to do that.

Deploy CLI version

7.24.2

Node version

v18.18.0

mhautala avatar Oct 14 '24 10:10 mhautala