You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a network failure and our nextcloud instance lost connection to the mysql database server we are running. The error handling in this situation was inadequate to troubleshoot the issue. No logs were written to nextcloud.logs (loglevel debug) and no hint about the issue was given to the user. I would like this error to produce some kind of log to nextcloud.logs to enable efficient troubleshooting. My way of solving it was to simply remove the catches in index.php to expose the raw exception to the end user, no other method I tried managed to produce any indication at all about what was wrong.
Great, initially we had both the nextcloud and the mysql instances working, then there was a network failure between them. There was some exception thrown that landed in the try/catch block in index.php. My usual solution would be to write something helpful to the log in the catch block. I have however not worked very much with php so I did not dare trying to fix it myself.
My guess is that the easiest way of reproducing it is by starting the two instances in docker and after installation shut down the mysql instance.
Bug description
We had a network failure and our nextcloud instance lost connection to the mysql database server we are running. The error handling in this situation was inadequate to troubleshoot the issue. No logs were written to nextcloud.logs (loglevel debug) and no hint about the issue was given to the user. I would like this error to produce some kind of log to nextcloud.logs to enable efficient troubleshooting. My way of solving it was to simply remove the catches in index.php to expose the raw exception to the end user, no other method I tried managed to produce any indication at all about what was wrong.
Steps to reproduce
Expected behavior
Exceptions thrown in index.php error handling should write to nextcloud.log.
Installation method
Community Docker image
Nextcloud Server version
25
Operating system
RHEL/CentOS
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
nextcloud.log only contains logs from before the network failure.
The text was updated successfully, but these errors were encountered: