Skip to content
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

Status 500 on missing MySQL Database #4157

Closed
christianhauff opened this issue Mar 30, 2017 · 1 comment
Closed

Status 500 on missing MySQL Database #4157

christianhauff opened this issue Mar 30, 2017 · 1 comment

Comments

@christianhauff
Copy link

Steps to reproduce

  1. MySQL-Server is crashed
  2. Try to open nextcloud

Expected behaviour

If the server is crashed, nextcloud should display an error message describing the problem

Actual behaviour

I get an HTTP ERROR 500, my apache error_log says the following:

[Thu Mar 30 09:33:11 2017] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Doctrine\\DBAL\\DBALException' with message 'Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused' in /var/www/cloud.xxxxx.de/lib/private/DB/Connection.php:60

Server configuration

CentOS 6

Web server:
Apache 2.2

Database:
MySQL 5.1

PHP version:
5.6.21

Nextcloud version: (see Nextcloud admin page)
11.0.2

@MorrisJobke
Copy link
Member

We do this, to not expose the error message. You can find it in the logs and this is there to not expose details that would help an attacker to get internal information. So this is intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants