Error 500 out of nowhere #1106

Closed
opened 2026-02-04 23:48:16 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @vincentmakes on GitHub (Mar 24, 2019).

Describe the bug
My site was working fine and few hours later when I went back to check a page I got a 500 error. Rebooting the server fixed it but this is a strange behaviour.

This is the error I got in the log:
Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43\nStack

From what I understand it might work to modify the database.php file and replace localhost by 127.0.0.1 in the connection string but was wondering if anyone else has encountered this.

Your Configuration (please complete the following information):
The latest one, everything was installed yesterday from the script for Ubuntu 18.04

  • Exact BookStack Version (Found in settings):
  • PHP Version:
  • Hosting Method (Nginx/Apache/Docker):
Originally created by @vincentmakes on GitHub (Mar 24, 2019). **Describe the bug** My site was working fine and few hours later when I went back to check a page I got a 500 error. Rebooting the server fixed it but this is a strange behaviour. This is the error I got in the log: `Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43\nStack` From what I understand it might work to modify the database.php file and replace localhost by 127.0.0.1 in the connection string but was wondering if anyone else has encountered this. **Your Configuration (please complete the following information):** The latest one, everything was installed yesterday from the script for Ubuntu 18.04 - Exact BookStack Version (Found in settings): - PHP Version: - Hosting Method (Nginx/Apache/Docker):
OVERLORD added the Open to discussion🐕 Support labels 2026-02-04 23:48:16 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 18, 2019):

Thanks for reporting @vincentmakes, Very strange. Have not heard of this issue myself and from the lack of comments here looks like not many other have either. Possibly a setup-specific issue.

I'm going to close this to keep issues focused but it'll still be searchable for others and I'll keep it in mind in the event something similar pops up in the future.

@ssddanbrown commented on GitHub (May 18, 2019): Thanks for reporting @vincentmakes, Very strange. Have not heard of this issue myself and from the lack of comments here looks like not many other have either. Possibly a setup-specific issue. I'm going to close this to keep issues focused but it'll still be searchable for others and I'll keep it in mind in the event something similar pops up in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1106