500 internal server error / OVH

Hello,

I had an up and running installation on OVH (a french hosting provider, shared hosting) wih a few users (around 5).

Then one day it errored 500 on me :confused:

Nextcloud version (eg, 12.0.2): $OC_VersionString = ‘15.0.2’;
Operating system and version (eg, Ubuntu 17.04): shared hosting ovh
Apache or nginx version (eg, Apache 2.4.25): shared hosting ovh (container.image=stable)
PHP version (eg, 7.1): 7.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): yes

Steps to replicate it:

  1. go to http://nextcloud.ccmcom.fr/.

The output of your Nextcloud log in Admin > Logging:

cant access to the interface, can't log in 

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'och9nx6c9rxc',
  'passwordsalt' => 'XX',
  'secret' => 'f4ClY+XX',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.ccmcom.fr',
  ),
  'datadirectory' => '/home/ccmcomfrwk/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '15.0.2.0',
  'overwrite.cli.url' => 'http://nextcloud.ccmcom.fr',
  'installed' => true,
);

this is not in /nextcloud/config.php, but in /nextcloud/confing/config.php

The output of your Apache/nginx/system log in /var/log/____:

cant access

You should have a look in your Nextcloud log file and also the web server log file to find a possible reason for that behavior.

Could you have a look at the last entries? I can’t find anything leading to an answer https://pastebin.com/v40xs0eJ

What about

... "Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Doctrine\\DBAL\\Exception\\DriverException: An exception occurred while executing 'INSERT INTO \"oc_bruteforce_attempts\" (\"action\", \"occurred\", \"ip\", \"subnet\", \"metadata\") VALUES(?, ?, ?, ?, ?)' with params [\"login\", 1571327970, \"2.7.124.93\", \"2.7.124.93\\\/32\", \"{\\\"user\\\":\\\"Benoit\\\"}\"]:\n\nSQLSTATE[HY000]: General error: 10 disk I\/O error" ...

Due to the fact that you’re using a simple file-based SQLite database I would assume that the file size is at its limit or your file system is running out of disk space. See e.g.

https://www.google.com/search?client=firefox-b-d&q=SQLSTATE[HY000]%3A+General+error%3A+10+disk+I\%2FO+error

PS: You should think about using a real database like MariaDB and also make sure that you increase Nextcloud security by switching from http to https :wink: