Roundcube Community Forum

 

DB Error: SQLSTATE[HY000] [2002] No such file or directory in /var/www/roundcube

Started by JacobC1921, October 28, 2025, 08:03:30 PM

Previous topic - Next topic

JacobC1921

Hi all!

Made an account just to get some help with this. I've had no issues with Roundcube at all until now. I am also self-hosting via Yunohost on Debian GNU/Linux 12.

I am receiving this screen when going to the Roundcube address:

-------------------------

Oops... something went wrong!
An internal error has occurred. Your request cannot be processed at this time.

For administrators: Please check the application and/or server error logs for more information.

-------------------------

And after checking the error log in /var/www/roundcube/logs/errors.log, everytime i refresh the page, it puts into the error log: [28-Oct-2025 23:50:04 +0000]: <206ndaep> DB Error: SQLSTATE[HY000] [2002] No such file or directory in /var/www/roundcube/program/lib/Roundcube/rcube_db.php on line 201 (GET /)
This file definitely exists, as I can cat /var/www/roundcube/program/lib/Roundcube/rcube_db.php it with no issues, so I'm guessing it may be some sort of permission issue.

Any clue where to go from here?
Thank you!

SKaero

That error indicates that Roundcube can't connect to the database. What database are you using and is it running on the server?