Since upgraded to NC25.02 public sharing doesn't work

Nextcloud version (eg, 20.0.5): 25.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): apache 2.4
PHP version (eg, 7.4): 7.4.3
The issue you are facing:

Since I updated to NC25.0.2, all my public sharing link doesn’t work for external user.

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

Steps to replicate it: create a new public share or try with an existing one.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"xGdfiHNbZtIiJ9eYcoig","level":3,"time":"2022-12-18T17:50:55+00:00","remoteAddr":"192.168.2.1","user":"--","app":"index","method":"GET","url":"/index.php/s/KbYXQRpfEYndNZ4","message":"Argument 3 passed to OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct() must be of the type string, null given in file '/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.56","version":"25.0.2.3","exception":{"Exception":"Exception","Message":"Argument 3 passed to OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct() must be of the type string, null given in file '/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"TypeError","Message":"Argument 3 passed to OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct() must be of the type string, null given","Code":0,"Trace":[{"function":"__construct","class":"OCA\\Files_Reader\\Listeners\\LoadViewerListener","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":71,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":530,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php","Line":32},"CustomMessage":"--"}}

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

gandalf@mediastation:/var/www/nextcloud/data$ less /var/www/nextcloud/config/config.php
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'XXXXXXXXX.club',
  ),
  'datadirectory' => '/home/gandalf/Nextcloud',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => 'https://xxxxxx.club',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'XXXXXXXX',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'XXXXX',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'XXXXXX@gmail.com',
  'mail_smtppassword' => 'XXXXXX',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'allow_local_remote_servers' => true,
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'default_phone_region' => 'CA',
  'app_install_overwrite' =>
  array (
    0 => 'cookbook',
    1 => 'socialsharing_facebook',
    2 => 'nextbackup',
    3 => 'issuetemplate',
    4 => 'previewgenerator',
    5 => 'socialsharing_email',
    6 => 'epubreader',
    7 => 'souvenirs',
    8 => 'dashboardcharts',
    9 => 'occweb',
    10 => 'dropit',
    11 => 'files_ebookreader',
    12 => 'impersonate',
    13 => 'files_reader',
  ),
  'updater.secret' => 'XXXXXXXXXXXXXXXXXXXX',
  'memories.exiftool_no_local' => true,

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

nextcloud.error log

[Wed Oct 14 19:24:25.529447 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.579757 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.630229 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.680712 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.731140 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.781522 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.831971 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.882473 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.932953 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:25.983405 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.033874 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.084404 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.134851 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.185320 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.235560 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.285957 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.336405 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.386849 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.437338 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.487768 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.538213 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.588710 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.639166 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.689632 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.740039 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.790473 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.840921 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.891371 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.941662 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:26.991884 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Wed Oct 14 19:24:27.042297 2020] [php7:warn] [pid 29182] [client 192.168.1.1:38998] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 256
[Thu Oct 15 08:17:13.678691 2020] [php7:error] [pid 30030] [client 91.121.16.28:43352] script '/var/www/nextcloud/wp-login.php' not found or unable to stat
[Thu Oct 15 08:17:31.014181 2020] [php7:error] [pid 30122] [client 91.121.16.28:53094] script '/var/www/nextcloud/wp-login.php' not found or unable to stat
[Thu Oct 15 17:22:54.205289 2020] [php7:notice] [pid 30608] [client 192.168.1.1:54435] {"reqId":"Lo5PtzhbLZg8NNV37unE","level":3,"time":"2020-10-15T17:22:54+00:00","remoteAddr":"192.168.1.1","user":"patrick","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":{"Exception":"Error","Message":"file_get_contents(/home/gandalf/Nextcloud/appdata_ocvdurei5x44/js/core/merged-template-prepend.js.deps): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#273","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":273,"function":"file_get_contents"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":246,"function":"file_get_contents","class":"OC\\\\Files\\\\Storage\\\\Local","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1161,"function":"file_get_contents","class":"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":597,"function":"basicOperation","class":"OC\\\\Files\\\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":57,"function":"file_get_contents","class":"OC\\\\Files\\\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":91,"function":"getContent","class":"OC\\\\Files\\\\Node\\\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":126,"function":"getContent","class":"OC\\\\Files\\\\SimpleFS\\\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":103,"function":"isCached","class":"OC\\\\Template\\\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":116,"function":"process","class":"OC\\\\Template\\\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":72,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\\\Te/var/log/apache2/nextcloud.error

nextcloud.access log

192.168.2.1 - - [18/Dec/2022:13:16:06 -0500] "GET /index.php/csrftoken HTTP/1.1" 200 6782 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54"
76.65.136.148 - - [18/Dec/2022:13:16:07 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
192.168.2.1 - - [18/Dec/2022:13:16:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
192.168.2.1 - - [18/Dec/2022:13:16:49 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
76.65.136.148 - - [18/Dec/2022:13:17:07 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
192.168.2.1 - - [18/Dec/2022:13:17:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
192.168.2.1 - - [18/Dec/2022:13:17:49 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
76.65.136.148 - - [18/Dec/2022:13:18:07 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
76.65.136.148 - - [18/Dec/2022:13:18:07 -0500] "GET /index.php/csrftoken HTTP/1.1" 200 1540 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
192.168.2.1 - - [18/Dec/2022:13:18:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
gandalf@mediastation:/var/www/nextcloud/data$ less /var/log/apache2/nextcloud.error
gandalf@mediastation:/var/www/nextcloud/data$ tail /var/log/apache2/nextcloud.access
192.168.2.1 - - [18/Dec/2022:13:18:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
192.168.2.1 - - [18/Dec/2022:13:18:49 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
76.65.136.148 - - [18/Dec/2022:13:19:07 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
192.168.2.1 - - [18/Dec/2022:13:19:18 -0500] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 1533 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
192.168.2.1 - - [18/Dec/2022:13:19:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 309 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
192.168.2.1 - - [18/Dec/2022:13:19:49 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 1536 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 6778 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
192.168.2.1 - - [18/Dec/2022:13:20:19 -0500] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 873 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"


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.

nextcloud.log

192.168.2.1 - - [18/Dec/2022:13:16:06 -0500] “GET /index.php/csrftoken HTTP/1.1” 200 6782 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54”
76.65.136.148 - - [18/Dec/2022:13:16:07 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
192.168.2.1 - - [18/Dec/2022:13:16:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
192.168.2.1 - - [18/Dec/2022:13:16:49 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
76.65.136.148 - - [18/Dec/2022:13:17:07 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
192.168.2.1 - - [18/Dec/2022:13:17:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
192.168.2.1 - - [18/Dec/2022:13:17:49 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
76.65.136.148 - - [18/Dec/2022:13:18:07 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
76.65.136.148 - - [18/Dec/2022:13:18:07 -0500] “GET /index.php/csrftoken HTTP/1.1” 200 1540 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
192.168.2.1 - - [18/Dec/2022:13:18:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
gandalf@mediastation:/var/www/nextcloud/data$ less /var/log/apache2/nextcloud.error
gandalf@mediastation:/var/www/nextcloud/data$ tail /var/log/apache2/nextcloud.access
192.168.2.1 - - [18/Dec/2022:13:18:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
192.168.2.1 - - [18/Dec/2022:13:18:49 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
76.65.136.148 - - [18/Dec/2022:13:19:07 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
192.168.2.1 - - [18/Dec/2022:13:19:18 -0500] “PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1” 200 1533 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
192.168.2.1 - - [18/Dec/2022:13:19:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 309 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
192.168.2.1 - - [18/Dec/2022:13:19:49 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] “PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1” 200 1536 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
76.65.136.148 - - [18/Dec/2022:13:20:07 -0500] “PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1” 200 6778 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
192.168.2.1 - - [18/Dec/2022:13:20:19 -0500] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 873 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0”
gandalf@mediastation:/var/www/nextcloud/data$ less /var/www/nextcloud/data/nextcloud.log
{“reqId”:“W4ouX2B0mH3FN3w0lRby”,“level”:3,“time”:“2020-10-14T18:15:28+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“jsresourceloader”,“method”:“GET”,“url”:“/”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 Edg/86.0.622.38”,“version”:“”}
{“reqId”:“eEKQiRKcwOLN9TRYXGQl”,“level”:2,“time”:“2020-10-14T18:19:35+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“”}
{“reqId”:“eEKQiRKcwOLN9TRYXGQl”,“level”:2,“time”:“2020-10-14T18:19:35+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“”}
{“reqId”:“eEKQiRKcwOLN9TRYXGQl”,“level”:3,“time”:“2020-10-14T18:19:35+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“jsresourceloader”,“method”:“GET”,“url”:“/”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“”}
{“reqId”:“KiGfXaoVsaJLnymaglYS”,“level”:2,“time”:“2020-10-14T18:20:01+00:00”,“remoteAddr”:“64.41.200.105”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“KiGfXaoVsaJLnymaglYS”,“level”:2,“time”:“2020-10-14T18:20:01+00:00”,“remoteAddr”:“64.41.200.105”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“KiGfXaoVsaJLnymaglYS”,“level”:3,“time”:“2020-10-14T18:20:01+00:00”,“remoteAddr”:“64.41.200.105”,“user”:“–”,“app”:“jsresourceloader”,“method”:“GET”,“url”:“/”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“dwbLrOYigVIu82HLj0ts”,“level”:2,“time”:“2020-10-14T18:20:16+00:00”,“remoteAddr”:“64.41.200.106”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“dwbLrOYigVIu82HLj0ts”,“level”:2,“time”:“2020-10-14T18:20:16+00:00”,“remoteAddr”:“64.41.200.106”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/”,“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“dwbLrOYigVIu82HLj0ts”,“level”:3,“time”:“2020-10-14T18:20:16+00:00”,“remoteAddr”:“64.41.200.106”,“user”:“–”,“app”:“jsresourceloader”,“method”:“GET”,“url”:“/”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”,“version”:“”}
{“reqId”:“gqyQ7b4dtjYwzBOOv7hr”,“level”:2,“time”:“2020-10-14T18:30:29+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“OPTIONS”,“url”:“/index.php/csrftoken”,“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 Edg/86.0.622.38”,“version”:“”}
{“reqId”:“gqyQ7b4dtjYwzBOOv7hr”,“level”:2,“time”:“2020-10-14T18:30:29+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“OPTIONS”,“url”:“/index.php/csrftoken”,“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 Edg/86.0.622.38”,“version”:“”}
{“reqId”:“gqyQ7b4dtjYwzBOOv7hr”,“level”:3,“time”:“2020-10-14T18:30:29+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“jsresourceloader”,“method”:“OPTIONS”,“url”:“/index.php/csrftoken”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 Edg/86.0.622.38”,“version”:“”}
{“reqId”:“X8UZafQZAnYh0sR3SRYE”,“level”:2,“time”:“2020-10-14T18:32:18+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php”,“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“”}
{“reqId”:“X8UZafQZAnYh0sR3SRYE”,“level”:2,“time”:“2020-10-14T18:32:18+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php”,“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“”}
{“reqId”:“X8UZafQZAnYh0sR3SRYE”,“level”:3,“time”:“2020-10-14T18:32:18+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“mysql.setup”,“method”:“POST”,“url”:“/index.php”,“message”:{“Exception”:“Doctrine\DBAL\Exception\ConnectionException”,“Message”:“An exception occurred while executing ‘CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;’:\n\nSQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘ncadmin’@‘localhost’ to database ‘nextcloud’”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php”,“line”:169,“function”:“convertException”,“class”:“Doctrine\DBAL\Driver\AbstractMySQLDriver”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php”,“line”:149,“function”:“wrapException”,“class”:“Doctrine\DBAL\DBALException”,“type”:“::”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php”,“line”:1071,“function”:“driverExceptionDuringQuery”,“class”:“Doctrine\DBAL\DBALException”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:214,“function”:“executeUpdate”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:84,“function”:“executeUpdate”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:57,“function”:“createDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup.php”,“line”:359,“function”:“setupDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/core/Controller/SetupController.php”,“line”:75,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:947,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php”,“Line”:93,“Previous”:{“Exception”:“Doctrine\DBAL\Driver\PDOException”,“Message”:“SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘ncadmin’@‘localhost’ to database ‘nextcloud’”,“Code”:“42000”,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php”,“line”:1068,“function”:“exec”,“class”:“Doctrine\DBAL\Driver\PDOConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:214,“function”:“executeUpdate”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:84,“function”:“executeUpdate”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:57,“function”:“createDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup.php”,“line”:359,“function”:“setupDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/core/Controller/SetupController.php”,“line”:75,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:947,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php”,“Line”:43,“Previous”:{“Exception”:“PDOException”,“Message”:“SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘ncadmin’@‘localhost’ to database ‘nextcloud’”,“Code”:“42000”,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php”,“line”:41,“function”:“exec”,“class”:“PDO”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php”,“line”:1068,“function”:“exec”,“class”:“Doctrine\DBAL\Driver\PDOConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:214,“function”:“executeUpdate”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:84,“function”:“executeUpdate”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:57,“function”:“createDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup.php”,“line”:359,“function”:“setupDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/core/Controller/SetupController.php”,“line”:75,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:947,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php”,“Line”:41}},“CustomMessage”:“Database creation failed.”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“20.0.0.9”}
{“reqId”:“X8UZafQZAnYh0sR3SRYE”,“level”:3,“time”:“2020-10-14T18:32:18+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php”,“message”:{“Exception”:“Doctrine\DBAL\DBALException”,“Message”:“Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user ‘ncadmin’@‘localhost’ to database ‘nextcloud’”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/Setup/MySQL.php”,“line”:66,“function”:“connect”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Setup.php”,“line”:359,“function”:“setupDatabase”,“class”:“OC\Setup\MySQL”,“type”:“->”},{“file”:“/var/www/nextcloud/core/Controller/SetupController.php”,“line”:75,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:["
sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:947,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/index.php”,“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“Line”:67,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“20.0.0.9”}
{“reqId”:“X8UZafQZAnYh0sR3SRYE”,“level”:3,“time”:“2020-10-14T18:32:18+00:00”,“remoteAddr”:“192.168.1.1”,“user”:“–”,“app”:“jsresourceloader”,“method”:“POST”,“url”:“/index.php”,“message”:“Could not find resource js/setup.js to load”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36”,“version”:“20.0.0.9”}

I have found this error it seem to be related:

{“reqId”:“6Shpovup3jNnmLjn0iiL”,“level”:3,“time”:“2022-12-18T03:39:46+00:00”,“remoteAddr”:“192.168.2.1”,“user”:“–”,“app”:“index”,“method”:“GET”,“url”:“/index.php/s/N4ejxxBKQfXAij2”,“message”:“Argument 3 passed to OCA\Files_Reader\Listeners\LoadViewerListener::__construct() must be of the type string, null given in file ‘/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php’ line 32”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46”,“version”:“25.0.2.3”,“exception”:{“Exception”:“Exception”,“Message”:“Argument 3 passed to OCA\Files_Reader\Listeners\LoadViewerListener::__construct() must be of the type string, null given in file ‘/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php’ line 32”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:172,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:298,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1047,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/nextcloud/index.php”,“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“Line”:165,“Previous”:{“Exception”:“TypeError”,“Message”:“Argument 3 passed to OCA\Files_Reader\Listeners\LoadViewerListener::__construct() must be of the type string, null given”,“Code”:0,“Trace”:[{“function”:“__construct”,“class”:“OCA\Files_Reader\Listeners\LoadViewerListener”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:108,“function”:“newInstanceArgs”,“class”:“ReflectionClass”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:116,“function”:“buildClass”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:133,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php”,“line”:465,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/ServerContainer.php”,“line”:145,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:71,“function”:“query”,“class”:“OC\ServerContainer”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:251,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:88,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:100,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareController.php”,“line”:530,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:225,“function”:“showShare”,“class”:“OCA\Files_Sharing\Controller\ShareController”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:133,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:172,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:298,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1047,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/nextcloud/index.php”,“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php”,“Line”:32},“CustomMessage”:“–”}}

the problem was caused by the files_reader app. I juste uninstall it!

Same problem here, but I don’t even have files_reader installed.

You should check if an incompatible application is currently activated like me.

You can start by looking at your nextcloud config.php file and disable the applications present in the “array” section.

To help you, you can also look in the logs via the NC web interface. There may be a clue about the application that would cause the problem.