apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.01k stars 13.59k forks source link

superset can not login in #29334

Closed futureflsl closed 3 months ago

futureflsl commented 3 months ago

Bug description

logs look like well,but I can not login in dashboard environment: windows x64 superset==3.1.2

log is : (py39) C:\Users\Administrator\Desktop\superset-3.1.2>superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger Loaded your LOCAL configuration at [C:\Users\Administrator\Desktop\superset-3.1.2\superset_config.py] logging was configured successfully 2024-06-23 06:45:29,439:INFO:superset.utils.logging_configurator:logging was configured successfully 2024-06-23 06:45:29,449:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'> D:\anaconda3\envs\py39\lib\site-packages\flask_limiter\extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend. warnings.warn(

How to reproduce the bug

superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger

Screenshots/recordings

360截图20240623065155238

Superset version

3.1.3

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

dosubot[bot] commented 3 months ago

You might be unable to log in to the Superset dashboard despite the logs appearing normal because you are not using the correct URL or credentials. According to the provided documentation, you should access Superset via your web browser by visiting http://localhost:8088 and log in with the default username and password:

username: admin
password: admin

Make sure your browser is using http and not https [1].

To continue talking to Dosu, mention @dosu.

futureflsl commented 3 months ago

You might be unable to log in to the Superset dashboard despite the logs appearing normal because you are not using the correct URL or credentials. According to the provided documentation, you should access Superset via your web browser by visiting http://localhost:8088 and log in with the default username and password:

username: admin
password: admin

Make sure your browser is using http and not https [1].

To continue talking to Dosu, mention @dosu. I try http://localhost:8088,But it does not work,username and password are right,the problem still be like before

dosubot[bot] commented 3 months ago

If the default credentials and URL are correct but you still cannot log in, you can try the following steps:

  1. Check Existing Users: Verify the existing users in your Superset instance by running the following command in the terminal of your container:

    superset fab list-users
  2. Create an Admin User: If there are no admin users or if you need to create a new one, use the following command:

    superset fab create-admin
  3. Database Initialization: Ensure that the database is properly initialized. Run the following commands:

    superset db upgrade
    superset init
  4. Clear Browser Cache: Sometimes, browser cache issues can cause login problems. Clear your browser cache and try logging in again.

  5. Check Logs for Errors: Review the Superset logs for any errors or warnings that might provide more insight into the issue.

These steps should help you resolve the login issue. If the problem persists, please provide any additional error messages or logs that might help diagnose the issue further [1].

To continue talking to Dosu, mention @dosu.

futureflsl commented 3 months ago

If the default credentials and URL are correct but you still cannot log in, you can try the following steps:

  1. Check Existing Users: Verify the existing users in your Superset instance by running the following command in the terminal of your container:
    superset fab list-users
  2. Create an Admin User: If there are no admin users or if you need to create a new one, use the following command:
    superset fab create-admin
  3. Database Initialization: Ensure that the database is properly initialized. Run the following commands:
    superset db upgrade
    superset init
  4. Clear Browser Cache: Sometimes, browser cache issues can cause login problems. Clear your browser cache and try logging in again.
  5. Check Logs for Errors: Review the Superset logs for any errors or warnings that might provide more insight into the issue.

These steps should help you resolve the login issue. If the problem persists, please provide any additional error messages or logs that might help diagnose the issue further [1].

To continue talking to Dosu, mention @dosu.

you can not understand what I said.But I follow this issue https://github.com/apache/superset/issues/25471,and solved it

dosubot[bot] commented 3 months ago

Great to hear that you found a solution by following the steps in the linked issue! If you encounter any more problems or have further questions, feel free to ask. Happy dashboarding!

To continue talking to Dosu, mention @dosu.

rusackas commented 3 months ago

Sounds like this is solved, then! Closing. If you think anything needs to be added to the docs, please feel free to make edits/additions