Nextcloud stop working

my next cloud stopped working from one day to the next, yesterday it worked and today I see this message:

"Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log."

In var/log/apache2/error.log appears:

[Fri Oct 15 12:01:29.796761 2021] [php7:notice] [pid 4068] [client 127.0.0.1:54946] {“reqId”:“WKXKyJK2WOsU7JVbVOkt”,“level”:3,“time”:“2021-10-15T10:01:29+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–","app>
[Fri Oct 15 12:10:07.890953 2021] [mpm_prefork:notice] [pid 4060] AH00169: caught SIGTERM, shutting down
[Fri Oct 15 12:10:07.965689 2021] [mpm_prefork:notice] [pid 4286] AH00163: Apache/2.4.41 (Ubuntu) configured – resuming normal operations
[Fri Oct 15 12:10:07.965741 2021] [core:notice] [pid 4286] AH00094: Command line: ‘/usr/sbin/apache2’

Could you help me make it work again please

you may check nextcloud.log in your data folder.

did you check if mysql and/or redis is still working?

Hi

I’m using:
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2021-09-28T22:28:10

mysql is working properly because I also have an installed worpress and it is working without problems

The nextcloud log are not working, I have been read several posts and they indicate that to activate the log you have to add these lines to the ‘var/www/nextcloud/config/config.php’ file:

My is like that and does nothing

<?php $CONFIG = array ( 'instanceid' => 'oc4qxv7yizv9', 'passwordsalt' => 'QRAOZ+dZR1+eIbuhADAPZb0lLAdvjC', 'secret' => 'l6tdSCCx2FgQriJS49W+LdMBI/Q0j5gYnztpxrUGY3G4N2lK', 'log_type' => 'file', 'logfile' => '/var/log/nextcloud.log', 'logfilemode' => 0640, 'loglevel' => '0', 'logdateformat' => 'F d, Y H:i:s', 'trusted_domains' => array ( 0 => 'kleine.ddns.net:9280', ), 'datadirectory' => '/media/nextcloud', 'dbtype' => 'mysql', 'version' => '22.2.0.2', 'overwrite.cli.url' => 'http://localhost', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '*******', (change for security) 'installed' => true, 'mail_from_address' => '', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => '', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, ); thanks for replying

That kind of an error can come from a number of places;

  1. Web server. Please provide a cut from your apache ACCESS log (the error log wouldn’t cover this).
  2. PHP-FPM. Please provide the relevant PHP log.
  3. Nextcloud. By default, it logs to {nextcloud root}/data/nextcloud.log

Hi

The apache access.log appears:

91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET / HTTP/1.1” 403 443 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET / HTTP/1.1” 403 443 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo.png HTTP/1.1” 404 440 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo.png HTTP/1.1” 404 440 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo.jpg HTTP/1.1” 404 440 “-” “Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo.jpg HTTP/1.1” 404 440 “-” “Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo-1.jpg HTTP/1.1” 404 440 “-” “Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko”
91.240.109.1 - - [18/Oct/2021:05:46:39 +0200] “GET /img/logo-1.jpg HTTP/1.1” 404 440 “-” “Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko”

In Nextcloud.log:
{“reqId”:“Co1SPGT4oJttMYgAWzKo”,“level”:2,“time”:“2021-10-05T11:21:27+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/",“message”:“Host localhost was not connected to because it violates local access rules”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0”,“version”:""}
{“reqId”:“Co1SPGT4oJttMYgAWzKo”,“level”:2,“time”:“2021-10-05T11:21:27+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/",“message”:“Host localhost was not connected to because it violates local access rules”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0”,“version”:""}
{“reqId”:“gavh1FagnK1MH734hW4C”,“level”:2,“time”:“2021-10-05T11:22:12+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/index.php",“message”:“Host localhost was not connected to because it violates local access rules”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0”,“version”:""}
{“reqId”:“gavh1FagnK1MH734hW4C”,“level”:2,“time”:“2021-10-05T11:22:12+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/index.php",“message”:“Host localhost was not connected to because it violates local access rules”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0”,“version”:""}

The php.log I can’t find it

I’m a bit of a beginner and have a bit of a hard time finding things.

Many trades for help