Hi!
I ran into a problem when installing openPanel: after starting the openpanel and openpanel_mysql containers, the database is not initialized, tables and users are not created, and as a result, opencli and openpanel panels do not work.
What happened:
- I installed openPanel via the bash command from the official website (no errors occurred during installation).
- The MySQL container is running (it can be accessed via docker exec - this is openpanel_mysql mysql -uroot), however, MySQL was completely clean without created users and databases.
- The user "panel" was created manually because the opencli user list gave an error when connecting to the database.
- After manually configuring the panel user, opencli was able to connect to MySQL, but since no "panel" database was created inside MySQL and the tools for creating and administering users still did not work, and the openPanel logs contain errors:
Database connection error: The 'tuple' object does not have the 'cursor' attribute
Error when importing the "timezone" module: there is no module named "modules.timezone"
Additionally:
- It seems that openPanel has not migrated or initialized the database structure.
- I could not find the SQL dump or **migration **scripts inside the image.
- I use the standard 'docker-compose.yml', I can attach the configuration if necessary.
Questions:
- Is there a command or mechanism for automatic database initialization?
- Where can I find the table structure or SQL dump if initialization does not occur automatically?
- What does the database connection error mean: the 'tuple' object does not have the 'cursor' attribute — is this an error or an incorrect setting?
I will be grateful for your help!