mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Going through install.php process, wrong database password provides no useful feedback #5121
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NucleaPeon on GitHub (Oct 25, 2023).
Issue
I was going through https://docs.suitecrm.com/admin/installation-guide/downloading-installing/ to install SuiteCRM. All things considered, a pretty straightforward process (thank you). I got to the configuration page where you enter details.
When I went through the
mysql_secure_installationprocess, I didn't set the root password. (I assume this issue would apply to a wrong db root password, but haven't verified that.)When I filled in the db user (root user) password going through the installation wizard, I used what I thought I had set it to. When clicking the Next button, I'd get a message along the lines of
Preparing DBin a modal that flashes on the page for less than a second and ... nothing.I later went through
mysql_secure_installationand set things up properly and the wizard continued.Expected Behavior
If a bad password is supplied to the mysql / mariadb user or root password is not set, a prompt should be displayed that should recommend checking database credentials. If needed, db user should attempt to login to the database given credentials to ensure it works and return attempt success or failure.
The issue being a lack of feedback when the form is incorrect.
Actual Behavior
In the logs, it gives the messages:
Modal pops up for a split second with a progress bar.
Possible Fix
Do a connection to root mysql / mariadb account and return if things work. Maybe a
select 1;query or something brief and minimal. If false, show a modal with db message and a confirm button so user knows the potential problem areaSteps to Reproduce
Context
Without a clear message in the logs or information on the database, I spent some time reading the page and it clicked that maybe my db connection wasn't working correctly as DB was mentioned in the progress bar prompt that flickered on. Tried logging in as root to mariadb and it failed, so I fixed that up and install process worked as expected.
Your Environment