nc 27.02 - apps/files Internal Server Error

Nextcloud version : 27.0.2
Operating system and version : Alma 8.8
Apache or nginx version : Apache/2.4.37
PHP version : PHP 8.1.23

apps/files Internal Server Error

Jus make new installation nc 27.02
files not working : internal server error
same problem for access to talk …

error log:

{“reqId”:“ZPAbeUJhHtw5nNjfNONvkgAAAEs”,“level”:3,“time”:“August 31, 2023 06:47:53”,“remoteAddr”:“5.50.142.140”,“user”:“enjoy”,“app”:“index”,"
method":“GET”,“url”:“/index.php/apps/files/”,
“message”:“Symfony\Component\EventDispatcher\EventDispatcher::dispatch():
Argument #1 ($event) must be of type object, string given,
called in /var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/SymfonyAdapter.php
on line 116 in file ‘/var/www/nextcloud.selfmicro.com/3rdparty/symfony/event-dispatcher/EventDispatcher.php’
line 48”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0”,“version”:“27.0.2.1”,
“exception”:{“Exception”:“Exception”,“Message”:“Symfony\Component\EventDispatcher\EventDispatcher::dispatch():
Argument #1 ($event) must be of type object, string given,
called in /var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/SymfonyAdapter.php
on line 116 in file ‘/var/www/nextcloud.selfmicro.com/3rdparty/symfony/event-dispatcher/EventDispatcher.php’
line 48”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/AppFramework/App.php”,
“line”:183,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”}
,{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/Route/Router.php”,“line”:315,
“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},
{“file”:“/var/www/nextcloud.selfmicro.com/lib/base.php”,“line”:1071,“function”:“match”,
“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/nextcloud.selfmicro.com/index.php”,
“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],
“File”:“/var/www/nextcloud.selfmicro.com/lib/private/AppFramework/Http/Dispatcher.php”,
“Line”:169,“Previous”:{“Exception”:“TypeError”,
“Message”:“Symfony\Component\EventDispatcher\EventDispatcher::dispatch():
Argument #1 ($event) must be of type object, string given,
called in /var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/SymfonyAdapter.php
on line 116”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/SymfonyAdapter.php”,
“line”:116,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{
“file”:“/var/www/nextcloud.selfmicro.com/lib/private/Collaboration/Resources/Listener.php”,
“line”:85,“function”:“dispatch”,“class”:“OC\EventDispatcher\SymfonyAdapter”,“type”:“->”}
,{“file”:“/var/www/nextcloud.selfmicro.com/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,
“line”:230,“function”:“OC\Collaboration\Resources\{closure}”,“class”:“OC\Collaboration\Resources\Listener”,“type”:“::”,
“args”:[“*** sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud.selfmicro.com/3rdparty/symfony/event-dispatcher/EventDispatcher.php”
,“line”:59,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”}
,{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/EventDispatcher.php”,"
line":94,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”}
,{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/EventDispatcher/EventDispatcher.php”
,“line”:106,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},
“file”:“/var/www/nextcloud.selfmicro.com/apps/files/lib/Controller/ViewController.php”,“line”:286,
“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”
},{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/AppFramework/Http/Dispatcher.php”,
“line”:230,“function”:“index”,“class”:“OCA\Files\Controller\ViewController”,“type”:“->”}
,{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/AppFramework/Http/Dispatcher.php”,
“line”:137,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{
“file”:“/var/www/nextcloud.selfmicro.com/lib/private/AppFramework/App.php”,“line”:183,“function”:“dispatch”,“class”:“OC\
AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud.selfmicro.com/lib/private/Route/Router.php”,"
line":315,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/nextcloud.selfmicro.com/lib/base.php”,
“line”:1071,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/nextcloud.selfmicro.com/index.php”,“line”:36,
“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud.selfmicro.com/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,
“Line”:48},“CustomMessage”:“–”}}
=============================================================================================

config .php

<?php $CONFIG = array ( 'instanceid' => '.....', 'passwordsalt' => '.....', 'secret' => '.....',', 'trusted_domains' => array ( 0 => '.......', 1 => '......', 2 => '......', ), 'datadirectory' => '/var/www/nextcloud.......com/data', 'check_data_directory_permissions' => false, 'dbtype' => 'mysql', 'version' => '27.0.2.1', 'overwrite.cli.url' => 'http://nextcloud.........com', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '.............!', 'installed' => true, 'theme' => '', 'loglevel' => 3, 'maintenance' => false, 'default_phone_region' => 'fr_FR', 'default_language' => 'fr', 'default_locale' => 'fr_FR', 'skeletondirectory' => '/var/www/nextcloud........com/core/skeleton', 'templatedirectory' => '/var/www/nextcloud........com/templates', 'mail_from_address' => 'nextcloud', 'mail_smtpmode' => 'sendmail', 'mail_sendmailmode' => 'smtp', 'mail_domain' => '.......com', 'mail_smtphost' => '........com', 'mail_smtpport' => '587', 'mail_smtpauth' => 1, 'mail_smtpname' => '.................', 'mail_smtppassword' => '...............', 'log_type' => 'file', 'logfile' => '/var/log/nextcloud.log', 'syslog_tag' => 'Nextcloud', 'logdateformat' => 'F d, Y H:i:s', 'logtimezone' => 'Europe/Paris', 'log_query' => false, 'log_rotate_size' => 104857600, 'log.condition' => array ( 'apps' => array ( 0 => 'files', ), ), 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.local' => '\\OC\\Memcache\\APCu', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, ), 'htaccess.RewriteBase' => '/', 'htaccess.IgnoreFrontController' => false, 'allow_local_remote_servers' => true, 'check_for_working_htaccess' => true, 'localstorage.umask' => 18, ); ============================================================= Any ideas ?

Can you please edit your post so that both your log and config contents are enclosed as preformatted text? They’re basically impossible for any of us to read. :slight_smile:

sorry as new user i cant send attached documents
hereunder is better reading:

config.php

<?php $CONFIG = array ( 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => 'nextcloud2..com', ), 'datadirectory' => '/opt/nextcloud', 'dbtype' => 'mysql', 'version' => '27.0.2', 'overwrite.cli.url' => 'https://nextcloud2..com', 'dbname' => 'nextcloud2', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '!', 'updater.release.channel' => 'git', 'installed' => true, ); **/var*log/nextcloud.log** {"reqId":"ZPF39EXzQTjjcEjvRuYw7AAAAIk","level":3,"time":"September 01, 2023 07:34:44","remoteAddr":".......","user":"......","app":"index","method":"GET","url":"/apps/files/","message":"Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/nextcloud.......com/lib/private/EventDispatcher/SymfonyAdapter.php on line 116 in file '/var/www/nextcloud.......com/3rdparty/symfony/event-dispatcher/EventDispatcher.php' line 48","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0","version":"27.0.2.1","exception":{"Exception":"Exception","Message":"Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/nextcloud.......com/lib/private/EventDispatcher/SymfonyAdapter.php on line 116 in file '/var/www/nextcloud.......com/3rdparty/symfony/event-dispatcher/EventDispatcher.php' line 48","Code":0,"Trace":[{"file":"/var/www/nextcloud.......com/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud.......com/lib/base.php","line":1071,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud.......com/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud.......com/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/nextcloud.......com/lib/private/EventDispatcher/SymfonyAdapter.php on line 116","Code":0,"Trace":[{"file":"/var/www/nextcloud.......com/lib/private/EventDispatcher/SymfonyAdapter.php","line":116,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/Collaboration/Resources/Listener.php","line":85,"function":"dispatch","class":"OC\\EventDispatcher\\SymfonyAdapter","type":"->"},{"file":"/var/www/nextcloud.......com/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"OC\\Collaboration\\Resources\\{closure}","class":"OC\\Collaboration\\Resources\\Listener","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud.......com/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/apps/files/lib/Controller/ViewController.php","line":286,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud.......com/lib/private/Route/Router.php","line":315,"fun

i can give you the link to the file:
http://enjoy.selfmicro.com/config.odt
http://enjoy.selfmicro.com/nextcloud.odt

I have the same problem
apache2 is running fine
php8.2.10 is working
apache2 & php8.2.10 gets internal error

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.xxx.xxx.xxx. Set the 'ServerName' directive globally to suppress this message
[Wed Sep 13 20:28:20.471820 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.57 (Debian) PHP/8.2.10 configured -- resuming normal operations
[Wed Sep 13 20:28:20.472733 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'