-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Bug]: You will not be able to install anymore once you fill an incorrect database user/password in the installation form. #34121
Comments
i was experiencing this issue as well and was able to resolve it by deleting the relevant lines from the /etc/webapps/nextcloud/config/config.php (which is where the config is stored in the archlinux package) file |
Thanks, @PikaFan123. I also found out later that I could just delete the config.php file then refresh the installation page again. |
holy moly, just spent 2 hours with the error "MySQL username and/or password not valid" and deleting config.php solved this issue, thank you! |
I think this is expected and not a bug. |
The current version (straight from GH source) of nextcloud seems to not save config.php properly. Even after deleting it and re running the install button, it seems to just pick a predetermined database user ( |
Bug description
Using web installation script, setup-nextcloud.php, on my VPS (DirectAdmin, CentOS 7.2, Apache 2.4, PHP 7.4) I found that after I filled in the incorrect database user/password at the first time and the script return that "MySQL username and/or password not valid. You need to enter details of an existing account.", then I will not be able to finish it anymore no matter you use the correct user/password at the later times.
Soon later, still not finished installtion, I found that in the config.php, there will be a new random password everytime I submit the form no matter what password I filled in. It seems the installtion script will always generate the new random one. Surely the generated one will never be the correct one that I created at the database server. So I will never pass this step anymore after I did it wrong at the first time.
I do not have time to find the bug myself, so I restart all my process again and this time with correct db password at the first time. Then everything is fine.
Additionally I found that when I filled in the port number in the hostname field (formatted 'hostname:port'), it will be saved in the field 'dhhost' in config.php with the same format. However in the config.php, there is another field 'dbport' separated from the 'dbhost'. I am curious should the script split them off at put it into the right variable in the config.php rather?
Steps to reproduce
Expected behavior
The correct user/password should not return any error. It should lead to the finish of installation.
Installation method
Community Web installer on a VPS or web space
Operating system
RHEL/CentOS
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: