NachServerumzug "Der Server konnte die Anfrage nicht fertig stellen." Seite aktualisieren löst das Problem

Seit Serverumzug: Jetzt armbian 22.11 auf ubuntu Basis mit php 8.1; zuvor armbian auf buster Basis mit php7.4; nextcloud zuvor und danach 24.0.8. Nextcloud wie folgt umgezogen: "var/www/nextcloud und das Datenverzeichnis koiert sowie MariaDB-Dump wiederhergestellt. Es kommt immer wieder die (hier bereits bekannte) Fehlermeldung beim Einloggen: “Der Server konnte die Anfrage nicht fertig stellen.” Aktualisieren (F5) löst das Problem immer, d.h. der Einlog-Vorgang läuft durch. In nextcloud.log zu der Anfragekennung finde ich nichts spezielles, aber ich verstehe das log auch nicht komplett. Fällt jemand etwas ein?

hallo @Beres-Berlin bitte beschreibe dein Setup entsprechend dem required support template

Nahcdem das System “halbwegs” funktioniert können die logs sicher helfen dem Fehler auf den Grund zu gehen und zwar

  • nextcloud.log
  • webserver log
  • browser log (F12)

ich würde alle logs

  • von dem ersten Versuch,
  • inkl F5
  • bis

laufen lassen und hier uploaden…

Danke für Deine Antwort:

ich glaube, ich hab das Problem schon mit Deiner Hilfe identifiziert: Es war die App “Reader”, die ich installiert hatte, um .cbr lesen zu können. Das Log in der Admin Oberfläche hatte gute Infos, das kannte ich gar nicht. Nach dem Deaktivieren der App trat der Fehler bislang nicht mehr auf.

Hier die Daten (hab in der Zwischenzeit auf 24.0.9 geupdatet):

Nextcloud version: 24.0.9
Operating system and version: armbian 22.11.1
Apache or nginx version: Apache/2.4.54 (Ubuntu)
PHP version: 8.1.14

The issue you are facing:

Is this the first time you’ve seen this error?: YES

Steps to replicate it: Logging in or out of nextcloud instance with Firefox

The output of your Nextcloud log in Admin > Logging:

[core] Fehler: TypeError: OCA\Files_Reader\Hooks::OCA\Files_Reader\{closure}(): Argument #1 ($node) must be of type OCA\Files_Reader\Node, OC\Files\Node\Folder given at <<closure>>

 0. <<closure>>
    OCA\Files_Reader\Hooks::OCA\Files_Reader\{closure}("*** sensitive parameters replaced ***")
 1. /var/www/nextcloud/lib/private/Hooks/EmitterTrait.php line 106
    call_user_func_array()
 2. /var/www/nextcloud/lib/private/Hooks/PublicEmitter.php line 40
    OC\Hooks\BasicEmitter->emit()
 3. /var/www/nextcloud/lib/private/Files/Node/Root.php line 143
    OC\Hooks\PublicEmitter->emit()
 4. /var/www/nextcloud/lib/private/Files/Node/Node.php line 117
    OC\Files\Node\Root->emit()
 5. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 387
    OC\Files\Node\Node->sendHooks()
 6. /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php line 67
    OC\Files\Node\Folder->delete()
 7. /var/www/nextcloud/lib/private/Preview/BackgroundCleanupJob.php line 67
    OC\Files\SimpleFS\SimpleFolder->delete()
 8. /var/www/nextcloud/lib/private/BackgroundJob/Job.php line 54
    OC\Preview\BackgroundCleanupJob->run()
 9. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php line 60
    OC\BackgroundJob\Job->execute()
10. /var/www/nextcloud/cron.php line 152
    OC\BackgroundJob\TimedJob->execute()

at 2023-01-19T21:30:07+00:00

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

<?php
$CONFIG = array (
  'instanceid' => '***removed***',
  'passwordsalt' => '***removed***',
  'secret' => '***removed***',
  'trusted_domains' => 
  array (
    0 => '***removed***',
    1 => '***removed***',
  ),
  'datadirectory' => '/mnt/red/data',
  'overwrite.cli.url' => 'http://***removed***',
  'dbtype' => 'mysql',
  'version' => '24.0.9.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '***removed***',
  'dbtableprefix' => 'oc_',
  'dbuser' => '***removed***',
  'dbpassword' => '***removed***',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\TIFF',
    3 => 'OC\\Preview\\Movie',
    4 => 'OC\\Preview\\MKV',
    5 => 'OC\\Preview\\MP4',
    6 => 'OC\\Preview\\AVI',
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 1024,
  'preview_max_scale_factor' => 10,
  'preview_max_filesize_image' => 50,
  'maintenance' => false,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => 2,
  'mail_from_address' => '***removed***',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => '***removed***',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '***removed***',
  'mail_smtpport' => '465',
  'mail_smtpname' => '***removed***',
  'mail_smtppassword' => '***removed***',
  'mail_smtpsecure' => 'ssl',
  'updater.release.channel' => 'stable',
  'session_lifetime' => 300,
  'session_keepalive' => false,
  'theme' => '',
  'mail_sendmailmode' => 'smtp',
  'defaultapp' => 'files',
  'mysql.utf8mb4' => true,
  'default_phone_region' => 'de',
  'updater.secret' => '***removed***',
);

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

nextcloud_error.log:

[Thu Jan 19 03:21:15.487504 2023] [php:error] [pid 51815] [client ***removed***:54116] script '/var/www/nextcloud/gate.php' not found or unable to stat
[Thu Jan 19 17:47:41.994081 2023] [php:error] [pid 58839] [client  ***removed***:47452] script '/var/www/nextcloud/system_api.php' not found or unable to stat
[Thu Jan 19 17:47:44.146856 2023] [php:error] [pid 58585] [client  ***removed***:56558] script '/var/www/nextcloud/system_api.php' not found or unable to stat

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"eOZhBO8se5Stoby7urBD","level":3,"time":"2023-01-19T21:30:07+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OC\\Preview\\BackgroundCleanupJob, arguments: )","userAgent":"--","version":"24.0.9.2","exception":{"Exception":"TypeError","Message":"OCA\\Files_Reader\\Hooks::OCA\\Files_Reader\\{closure}(): Argument #1 ($node) must be of type OCA\\Files_Reader\\Node, OC\\Files\\Node\\Folder given","Code":0,"Trace":[{"function":"OCA\\Files_Reader\\{closure}","class":"OCA\\Files_Reader\\Hooks","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":106,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":40,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":143,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":117,"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":387,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":67,"function":"delete","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/BackgroundCleanupJob.php","line":67,"function":"delete","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":54,"function":"run","class":"OC\\Preview\\BackgroundCleanupJob","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/files_reader/lib/Hooks.php","Line":18,"message":"Error while running background job (class: OC\\Preview\\BackgroundCleanupJob, arguments: )","CustomMessage":"Error while running background job (class: OC\\Preview\\BackgroundCleanupJob, arguments: )"}}
1 Like