DataBase error

Abdhesh

Verified User
Joined
Jun 27, 2024
Messages
5
I have installed a new DirectAdmin on my VPS, but when I am going to create any database in any user account it is giving me error.

Internal Error
Failed to load databases list

Internal Error
Failed to get information about database running on the server

Can anyone please assist me with this?
 

Attachments

  • Capture.PNG
    Capture.PNG
    37.3 KB · Views: 35
 
hi @Abdhesh, when you receive internal server error, DA will log real error into the error log. You can check it with SSH access using commands:

Last 200 log entries:
Code:
journalctl -u directadmin -n 200

Live log watching (use Ctrl+C to terminate):
Code:
journalctl -u directadmin -f

Real error message and root cause is not shown in the GUI for the end user to avoid exposing sensitive information. Also normal DA users would be unable to fix it anyway since it will require root access.
 
journalctl -u directadmin -f
creating database with user database=panel3_xx dbuser=panel3_xxx
error=field redis: unexpected value: On hostPatterns=[localhost]
 
@hadi_gby, please make sure the file /usr/local/directadmin/data/users/{user}/user.conf does not contain malformed data. I would suspect it has a line redis=On instead of expected redis=ON format.

You are not supposed to manually edit the internal DA configuration files. So the real problem is finding out who tampered with the user config file. The DA itself would never malformed config line.
 
Back
Top