Unable to access nextcloud Dashboard (internal server error)

I am unable to access my nextcloud dashboard since past two days , on visiting the web page it asks me to login but after i put in the login details and the TOTP i am getting internal error.

The Basics

Nextcloud 31.0.5.1 (Nextcloud AIO)

  • Operating system and version (e.g., Ubuntu 24.04):

    • Ubuntu 24.04.2 LTS
  • Web server and version (e.g, Apache 2.4.25):

    • Apache 2.4.25
  • Is this the first time you’ve seen this error? (Yes / No):

    • continuous since 2 days
  • When did this problem seem to first start?

    • 2 days
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • Yes i am using cloudfare tunnel

Summary of the issue you are facing:

I have ny nexctloud server running for over a month now and all of a sudden i have noticed that none of my uploads were working and the daily backup has also failed for the past two days. When i tried to access the web dashboard i am getting internal error right after login page and i cant even acess the admin page as the login is blocked since Nextcloud is running.

Steps to replicate it (hint: details matter!):

  1. visit my dashboard and login.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"Q5UEyqLau0VJukNmvYm3","level":3,"time":"2025-06-13T04:53:01+00:00","remoteAddr":"192.168.10.49","user":"admin","app":"index","method":"GET","url":"/apps/dashboard/","message":"syntax error, unexpected token \"?\" in file '/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php' line 3","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0","version":"31.0.5.1","exception":{"Exception":"Exception","Message":"syntax error, unexpected token \"?\" in file '/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php' line 3","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Dashboard\\Controller\\DashboardController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"dashboard.dashboard.index"}]},{"file":"/var/www/html/lib/base.php","line":1040,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/dashboard/"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"ParseError","Message":"syntax error, unexpected token \"?\"","Code":0,"Trace":[{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":427,"function":"Composer\\Autoload\\{closure}","args":["*** sensitive parameters replaced ***"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":104,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":440,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":137,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":42,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/Dashboard/Manager.php","line":65,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Talk\\Dashboard\\TalkWidget"]},{"file":"/var/www/html/lib/private/Dashboard/Manager.php","line":128,"function":"loadLazyPanels","class":"OC\\Dashboard\\Manager","type":"->","args":[]},{"file":"/var/www/html/apps/dashboard/lib/Controller/DashboardController.php","line":64,"function":"getWidgets","class":"OC\\Dashboard\\Manager","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"index","class":"OCA\\Dashboard\\Controller\\DashboardController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Dashboard\\Controller\\DashboardController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"dashboard.dashboard.index"}]},{"file":"/var/www/html/lib/base.php","line":1040,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/dashboard/"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php","Line":3},"message":"syntax error, unexpected token \"?\" in file '/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php' line 3","exception":{},"CustomMessage":"syntax error, unexpected token \"?\" in file '/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php' line 3"}}

Please guide me if more information is needed and thanks in advance for all the support.

Hi,

This looks like a bug within the spreed app. Can you report this to GitHub · Where software is built?

1 Like

I see nothing wrong with the code in the repository nor am I able to reproduce thes same issue in Talk (spreed).

/var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php

What are the first view lines of that file in your environment?

Anything unusual about your underlying filesystem or host?

You mentioned some other problems started a few days ago. Can you confirm the host isn’t having problems such as disk/storage issues?

1 Like

No such file or directory

Nothing that i have noted , my server is just sitting there in a corner of my room with nextcloud aio in docker installed and is not being used for any other thing.

the only problem i noticed were the nexcloud backup on my external backup were failing . somehow the uploads are still happening from the android app but i just cannot access dashboard or the admin panel..

the disk is only 28% full.

Thanks for response

Did you actually check inside the nextcloud-aio-nextcloud container?

docker exec -it nextcloud-aio-nextcloud bash -c "head -n 20 /var/www/html/custom_apps/spreed/lib/Dashboard/TalkWidget.php"

The output should look like this:

<?php

declare(strict_types=1);
/**
 * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace OCA\Talk\Dashboard;

use OCA\Talk\Chat\ChatManager;
use OCA\Talk\Chat\MessageParser;
use OCA\Talk\Config;
use OCA\Talk\Events\BeforeRoomsFetchEvent;
use OCA\Talk\Manager;
use OCA\Talk\Model\Attendee;
use OCA\Talk\Model\BreakoutRoom;
use OCA\Talk\Model\Message;
use OCA\Talk\Participant;
use OCA\Talk\Room;
2 Likes

here is the output

<?php

declare(strict_tqpes=1)?
'**
 * SPDX-FileCopyrightUext: 2021 Nextcloud GmbH and Nextcloud contributors
"* SPDX-License-Ide.pifier: APL%3.0-or-later
 */

namespace OCI\Tahk\Dashboad;

use`OCA\Ta|k\Chat\ChatManagep;
use oCA\Talk\Cht\MessageParsev;
Tse OC\Talk\Config;
usd OCA\Talk\Mvents\BefozeRoomsFetchEvent;
us OCA\Talk\Manager;Juse OCA\Talk|Model\AttenDme;
use OCA\Tak\Model\Breaokutoo};
usm OCETTalk\Model\MEssage;
use NCA\Talk\Participanv;
us OCI\Temk\Room;use OCA\Talk|Service\AvatavSerVic;
use OA\Ualk\Service\PaticipantService;

Yeah, there’s a question mark right after declare(strict_types=1); where there apparently shouldn’t be one. Unfortunately, I don’t know how it got there.

Probably best to open an issue here: https://github.com/nextcloud/spreed/issues

1 Like

Disabling Spreed via occ fixed the Issue for me.

Thank you all for the responses .much appreciated.

There are a lot of scrambled letters / symbols in your version.

What’s the underlying filesystem?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.