Cloud lÀuft nach Ubuntu Updates nicht mehr

Servus,

Ich habe vorhin Ubuntu auf dem meine Nextcloud lÀuft geupdatet. Also erst mit apt-get update alle Paketquellen auf den neusten Stand gebracht und dann mit apt-get upgrade die Pakete.
Nun startet meine Nextcloud nicht mehr, bzw. wenn ich meine Domain aufrufe kommt “Internal Server Error”.

Nextcloud Version ist 24.0.1 auf einem Apache2 Webserver mit PHP8.1 hinter einem Apache2 ReverseProxy.
Ich weiß leider absolut nicht was ich tun muss um die wieder zum Laufen zu bekommen.
Ich hoffe einer von euch kann mir helfen.

Hallo @DerLeon

leider leider leider fehlen deinem Beitrag wichtige Informationen. NC kann auf zahlreichen Betriebssystemversionen laufen.

Dann wÀren auch LogeintrÀge schön. Das Syslog, das nextcloud.log, ggf apache2 log etc.

Ich nutze Ubuntu 20.04 LXC Container auf einem QNAP NAS.

Wie finde ich die entsprechenden Logs?

ich schlage vor, indem du danach suchst :wink:

Keine sehr hilfreiche Antwort


Das ist was ich gefunden habe.

Jun 17 10:31:32 ianderwalddorfschueler dbus-daemon[86]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jun 17 10:31:32 ianderwalddorfschueler systemd[1]: Started PackageKit Daemon.
Jun 17 10:35:01 ianderwalddorfschueler CRON[3927]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 10:36:38 ianderwalddorfschueler PackageKit: daemon quit
Jun 17 10:36:38 ianderwalddorfschueler systemd[1]: packagekit.service: Succeeded.
Jun 17 10:39:01 ianderwalddorfschueler CRON[3990]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun 17 10:39:02 ianderwalddorfschueler systemd[1]: Starting Clean php session files...
Jun 17 10:39:02 ianderwalddorfschueler systemd[1]: phpsessionclean.service: Succeeded.
Jun 17 10:39:02 ianderwalddorfschueler systemd[1]: Finished Clean php session files.
Jun 17 10:40:01 ianderwalddorfschueler CRON[4079]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 10:45:01 ianderwalddorfschueler CRON[4098]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 10:47:05 ianderwalddorfschueler systemd[1]: Reloading.
Jun 17 10:47:05 ianderwalddorfschueler systemd[1]: Starting Daily apt download activities...
Jun 17 10:47:05 ianderwalddorfschueler systemd[1]: Reloading.
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: Reloading.
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: apt-daily.service: Succeeded.
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: Finished Daily apt download activities.
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: Starting Fail2Ban Service...
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: Started Fail2Ban Service.
Jun 17 10:47:06 ianderwalddorfschueler fail2ban-server[4378]: Server ready
Jun 17 10:47:06 ianderwalddorfschueler systemd[1]: Reloading.
Jun 17 10:47:07 ianderwalddorfschueler dbus-daemon[86]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.50' (uid=0 pid=4456 comm="/usr/bin/gdbus call --system --dest org.freedeskto")
Jun 17 10:47:07 ianderwalddorfschueler systemd[1]: Starting PackageKit Daemon...
Jun 17 10:47:07 ianderwalddorfschueler PackageKit: daemon start
Jun 17 10:47:07 ianderwalddorfschueler dbus-daemon[86]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jun 17 10:47:07 ianderwalddorfschueler systemd[1]: Started PackageKit Daemon.
Jun 17 10:50:01 ianderwalddorfschueler CRON[4488]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 10:52:12 ianderwalddorfschueler PackageKit: daemon quit
Jun 17 10:52:12 ianderwalddorfschueler systemd[1]: packagekit.service: Succeeded.
Jun 17 10:54:45 ianderwalddorfschueler systemd[1]: Stopping Fail2Ban Service...
Jun 17 10:54:46 ianderwalddorfschueler fail2ban-client[4524]: Shutdown successful
Jun 17 10:54:46 ianderwalddorfschueler systemd[1]: fail2ban.service: Succeeded.
Jun 17 10:54:46 ianderwalddorfschueler systemd[1]: Stopped Fail2Ban Service.
Jun 17 10:54:46 ianderwalddorfschueler systemd[1]: Starting Fail2Ban Service...
Jun 17 10:54:46 ianderwalddorfschueler systemd[1]: Started Fail2Ban Service.
Jun 17 10:54:46 ianderwalddorfschueler fail2ban-server[4526]: 2022-06-17 10:54:46,452 fail2ban.configreader   [4526]: ERROR   Found no accessible config files for 'filter.d/jk_nextcloud' under /etc/fail2ban
Jun 17 10:54:46 ianderwalddorfschueler fail2ban-server[4526]: 2022-06-17 10:54:46,452 fail2ban.jailreader     [4526]: ERROR   Unable to read the filter 'jk_nextcloud'
Jun 17 10:54:46 ianderwalddorfschueler fail2ban-server[4526]: 2022-06-17 10:54:46,452 fail2ban.jailsreader    [4526]: ERROR   Errors in jail 'jk_nextcloud'. Skipping...
Jun 17 10:54:46 ianderwalddorfschueler fail2ban-server[4526]: Server ready
Jun 17 10:55:01 ianderwalddorfschueler CRON[4540]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 10:57:06 ianderwalddorfschueler systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs...
Jun 17 10:57:06 ianderwalddorfschueler systemd[1]: ua-timer.service: Succeeded.
Jun 17 10:57:06 ianderwalddorfschueler systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs.
Jun 17 10:57:14 ianderwalddorfschueler systemd[1]: Stopping Fail2Ban Service...
Jun 17 10:57:16 ianderwalddorfschueler fail2ban-client[4582]: Shutdown successful
Jun 17 10:57:16 ianderwalddorfschueler systemd[1]: fail2ban.service: Succeeded.
Jun 17 10:57:16 ianderwalddorfschueler systemd[1]: Stopped Fail2Ban Service.
Jun 17 11:00:01 ianderwalddorfschueler CRON[4661]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 11:05:01 ianderwalddorfschueler CRON[4708]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 11:09:01 ianderwalddorfschueler CRON[4735]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun 17 11:09:02 ianderwalddorfschueler systemd[1]: Starting Clean php session files...
Jun 17 11:09:02 ianderwalddorfschueler systemd[1]: phpsessionclean.service: Succeeded.
Jun 17 11:09:02 ianderwalddorfschueler systemd[1]: Finished Clean php session files.
Jun 17 11:10:01 ianderwalddorfschueler CRON[4809]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 11:15:01 ianderwalddorfschueler CRON[4852]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Jun 17 11:17:01 ianderwalddorfschueler CRON[4864]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Jun 17 11:20:01 ianderwalddorfschueler CRON[4883]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
 Stopping System Logging Service...
 [origin software="rsyslogd" swVersion="8.2001.0" x-pid="23842" x-info="https://www.rsyslog.com"] exiting on signal 15.
 rsyslog.service: Succeeded.
 Stopped System Logging Service.
 Starting System Logging Service...
 action '192' treated as ':omusrmsg:192' - please use ':omusrmsg:192' syntax instead, '192' will not be supported in the future [v8.2001.0 try https://www.rsyslog.com/e/2184 ]
 error during parsing file /etc/rsyslog.conf, on or before line 56: warnings occured in file '/etc/rsyslog.conf' around line 56 [v8.2001.0 try https://www.rsyslog.com/e/2207 ]
 Started System Logging Service.
 imfile: no working or state file directory set, imfile will create state files in the current working directory (probably the root dir). Use global(workDirectory="/some/path") to set the working directory [v8.2001.0 try https://www.rsyslog.com/e/2450 ]
 imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2001.0]
 imfile: on startup file '/var/log/nextcloud/nextcloud.log' does not exist but is configured in static file monitor - this may indicate a misconfiguration. If the file appears at a later time, it will automatically be processed. Reason: No such file or directory [v8.20>
 [origin software="rsyslogd" swVersion="8.2001.0" x-pid="4909" x-info="https://www.rsyslog.com"] start
 (www-data) CMD (php -f /var/www/nextcloud/cron.php)
 (www-data) CMD (php -f /var/www/nextcloud/cron.php)

Das ist der Nextcloud Log

{"reqId":"MC2pX0wU4A7SHHCurjAI","level":2,"time":"2022-06-15T13:28:57+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozil>
{"reqId":"MC2pX0wU4A7SHHCurjAI","level":2,"time":"2022-06-15T13:28:57+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozi>
{"reqId":"XO527t45ucm9KHCdPE7o","level":2,"time":"2022-06-15T13:29:12+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozil>
{"reqId":"XO527t45ucm9KHCdPE7o","level":2,"time":"2022-06-15T13:29:12+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozi>
{"reqId":"YYe7wYS2UX8Ng8HLsSP0","level":2,"time":"2022-06-15T13:43:57+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"YYe7wYS2UX8Ng8HLsSP0","level":2,"time":"2022-06-15T13:43:57+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"Ac3QVcpTBL4sAW3gNVpX","level":2,"time":"2022-06-15T13:59:39+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozil>
{"reqId":"Ac3QVcpTBL4sAW3gNVpX","level":2,"time":"2022-06-15T13:59:39+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozi>
{"reqId":"lskmfwi2uXZGC6rx47d4","level":2,"time":"2022-06-15T14:01:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"lskmfwi2uXZGC6rx47d4","level":2,"time":"2022-06-15T14:01:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"4SdhR0WDCK5yK4tV6s92","level":2,"time":"2022-06-15T14:14:40+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"4SdhR0WDCK5yK4tV6s92","level":2,"time":"2022-06-15T14:14:40+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"Z779uGVy1lMj1fhFtnjl","level":2,"time":"2022-06-15T14:16:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"Z779uGVy1lMj1fhFtnjl","level":2,"time":"2022-06-15T14:16:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"2CqXPObhcn4TL6eqjc7T","level":2,"time":"2022-06-15T14:29:39+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"2CqXPObhcn4TL6eqjc7T","level":2,"time":"2022-06-15T14:29:39+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"VwN6hDs7I0ntxDZBUNHU","level":2,"time":"2022-06-15T14:31:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in http:///data/htaccesstest.txt","userAge>
{"reqId":"VwN6hDs7I0ntxDZBUNHU","level":2,"time":"2022-06-15T14:31:10+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Could not detect any host in https:///data/htaccesstest.txt","userAg>
{"reqId":"74jIcohDPui25RDOYlJl","level":2,"time":"2022-06-15T14:42:40+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozi>
{"reqId":"74jIcohDPui25RDOYlJl","level":2,"time":"2022-06-15T14:42:40+00:00","remoteAddr":"192.168.178.124","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Moz>

Such mal im Internet nach der Fehlermeldung. Ich habe z. B. diesen Beitrag gefunden. Hast du auch dein Ubuntu von 20.04 LTS auf 22.04 LTS hochgezogen? Vielleicht fehlt dir nur irgendein PHP-Modul wie im verlinkten Beitrag.

Lese evtl. noch hier. Dort werden viele Ubuntu-Pakete angefĂŒhrt. Schau, ob dir davon vielleicht was fehlt.

doch, du hast doch welche gefunden.

Im NC-log steht doch sogar auch eine verwertbare Fehlermeldung: " ```
Could not detect any host in http:///data/htaccesstest.txt

Such doch mal nach dieser im Forum und schau, was dir da fĂŒr Tipps gegeben werden. Ggf findest du da etwas. 

Ich gehe davon aus, dass du KEIN Backup deines Systems vor dem Upgrade hast, richtig? (im Übrigen wissen wir hier immer noch nicht, welches Ubuntu du genau fĂ€hrst)

Im Übrigen meldet dein Fail2Ban, dass es keine Filterlisten findet. ggf mal ausschalten fĂŒr den Moment?
Und vermutlich gibt es ein Problem mit einer Ip-Adresse wo der Interpreter eine URL erwartet. Poste doch bitte mal deine `config.php` (und pass auf, dass du sicherheitstrelevante Informationen zuvor unkenntlich machst)

Wie bereits erwÀhnt ich nutze Ubuntu 20.04 als LXC Container auf einem QNAP NAS. Habe ich aber bereits erwÀhnt.

Hier noch meine config.php

'secret' => 'blablabla',
  'trusted_domains' => 
  array (
    0 => '192.168.178.28',
    1 => 'nextcloud.geheim.eu',
  ),
  'trusted_proxies' => 
  array (
    0 => '192.168.178.31',
    1 => '192.168.178.31/24',
  ),
  'overwritehost' => 'nextcloud.geheim.eu',
  'overwriteprotocol' => 'https',
  'forwarded_for_headers' => 
  array (
    0 => 'HTTP_X_FORWARDED',
    1 => 'HTTP_FORWARDED_FOR',
    2 => 'HTTP_X_FORWARDED_FOR',
  ),
  'datadirectory' => '/home/data',
  'dbtype' => 'mysql',
  'version' => '24.0.4.1',
  'overwrite.cli.url' => 'https://nextcloud.geheim.eu',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'nö',
  'installed' => true,
  'mail_domain' => 'geheim.eu',
  'mail_from_address' => 'support',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'smtp.strato.de',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'geheim',
  'mail_smtppassword' => 'geheim',
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'skeletondirectory' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'htaccess.RewriteBase' => '/',
  'force_language' => 'de',
  'default_locale' => 'de_DE',
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
    'jwt_header' => 'AuthorizationJwt',
    'jwt_secret' => 'auch geheim',
  ),
);

Nein, ich habe nicht die Ubuntu Version geupgradet sondern einfach nur sÀmtliche Pakete aktualisiert.

Nein, blöder Weise habe ich noch kein Backup-System. Ist dumm, ich weiß. Kommt in Zukunft auch noch, hatte nicht erwartet das Pakete aktualisieren so viel kaputt machen kann.

Such wie gesagt im Internet den Fehler und schau, wo es auf deine Infrastruktur passt. Probiere einiges aus und melde dich mit neuen Erkenntnissen gerne wieder.