Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Authentication Incorrect password #585

Open
SeifAjax04 opened this issue Mar 11, 2025 — with Huly for GitHub · 1 comment
Open

Database Authentication Incorrect password #585

SeifAjax04 opened this issue Mar 11, 2025 — with Huly for GitHub · 1 comment
Labels
question Further information is requested

Comments

Copy link

SeifAjax04 commented Mar 11, 2025

Hello,

I am encountering an issue when trying to initialize the database. I have set the database password correctly in both the .env file and the settings.py file, ensuring that the passwords are identical in both locations. However, when I run the initialize-database command and enter the password, the system responds with an error stating that the password is incorrect.
Steps to Reproduce:

Set the database password in both the .env and settings.py files, ensuring they match.
Run the initialize-database command.
Enter the password when prompted.
Observe the error message indicating the password is incorrect.

Expected Behavior:

The system should accept the entered password and initialize the database without error.
Actual Behavior:

The system throws an error stating that the entered password is incorrect, even though the password in both files is the same.
Additional Information:

I have verified the password in both .env and settings.py files.
No special characters are used in the password.
The issue persists after restarting the system and ensuring the environment variables are loaded correctly.

Could you please help identify the root cause of this issue or suggest any troubleshooting steps?

Thank you!

Image

@horilla-opensource
Copy link
Owner

Hi @SeifAjax04,

Thank you for reaching out!

You don’t need to update the settings.py file to add DB_INIT_PASSWORD. If you are using the .env file, Horilla’s settings.py will automatically take values from it. The DB_INIT_PASSWORD is specifically used for initializing the database and loading the demo database.

Please ensure that:

  • The .env file is correctly formatted and loaded.
  • The environment variables are properly applied in your terminal/session before running the command.
  • There are no trailing spaces or hidden characters in the password.

Happy to have you as part of the Horilla community!

Let us know if you need further assistance!

Best Regards,
Team Horilla

@horilla-opensource horilla-opensource added the question Further information is requested label Mar 12, 2025
Repository owner deleted a comment from huly-for-github bot Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants